@extends('layouts.teacher') @section('content')
Installment Transactions
@lang('student.filter by')
{{-- tabs --}} {{-- @if (request()->course || request()->start_date || request()->end_date) --}}

Installment List

@if (count($installments) > 0)
@endif
@php $count=0 @endphp @forelse ($installments as $installment) @empty @endforelse
@lang('student.table.id') student name @lang('student.table.course name') due date Percentage amount amount EGP amount AED course Currency payment currency Rate @lang('student.table.status') paid at
{{ ++$count }} {{ $installment->first_name.' '.$installment->middle_name.' '.$installment->last_name }} {{$installment->acyname.'_'.$installment->cname.' ( '.$installment->lshort_name.' )'}} {{ $installment->due_date }} {{$installment->installment_amount}} % {{$installment->teacher_amount}} {{$installment->teacher_amount_aed}} {{ $installment->course_currency == '1' ? 'AED':'EGP' }} @php // if the installment is EGP it will show as EGP if($installment->payment_currency == 2){ $currency = 'EGP'; } else{ if($installment->is_paid){ $currency = ($installment->payment_currency == '1') ? 'AED' : 'EGP'; }else{ // else we chck the student profile and based on that we show the currency $currency = ($installment->payment_gateway == '1') ? 'AED':'EGP'; } } @endphp {{ $currency }} {{ $installment->rate ? $installment->rate : '-' }} @if ($installment->is_paid == 0) Un-Paid @else Paid @endif {{-- check is refunded --}} @if ($installment->is_refunded == 1 || $installment->is_refunded_after_post == 1) refunded @endif @if ($installment->is_posted == 1) Posted @else Un-Posted @endif {{-- check if holded --}} @if ($installment->holded_transaction_id) Holded @endif @if ($installment->is_exempted) Exempted @endif @if ($installment->is_paid == 1) {{ $installment->paid_date}} @else @endif
empty table

There is no data!

{{ $installments->appends(Request::except('page'))->render('inc.paginate') }}

Displaying {{$installments->count()}} of {{ $installments->total() }} transaction(s).

{{-- @endif --}}
@endsection @section('teacher-js') {{-- draw all data tables --}} @endsection