@extends('layouts.student') @section('content')
Installment Transactions
@lang('student.filter by')
{{--
--}}

Installment List

@php $count=0 @endphp @foreach ($offeredCourses as $course) @foreach ($installments->where('coffid',$course->coffid) as $installment) @if ($installment->by_month) @if (date('Y-m-d') >= date('Y-m-d', strtotime('-7 days',strtotime($installment->due_date)))) @endif @else @endif @endforeach @endforeach
@lang('student.table.id') @lang('student.table.course name') @lang('student.table.teacher name') due date @lang('student.table.amount') course Currency payment currency @lang('student.table.status') paid at
{{ ++$count }} {{-- check if paid --}} @if ($installment->is_exempted == 0 && $installment->is_paid == 0 && $installment->is_posted == 0 && $installment->is_refunded == 0 && $installment->is_refunded_after_post == 0) Pay
@csrf
@else @if ($installment->is_exempted) @elseif ($installment->is_refunded == 1 || $installment->is_refunded_after_post == 1) @else @endif @endif
{{$installment->acyname.'_'.$installment->cname.' ( '.$installment->lshort_name.' )'}} {{$installment->has_label ? $installment->label : ''}} {{ $installment->ttname }} {{ $installment->due_date }} @php // if the installment is EGP it will show as EGP // if($installment->payment_currency == 2){ // $amount = $installment->amount; // $currency = 'EGP'; // } // else{ if($installment->is_paid){ $currency = ($installment->payment_currency == '1') ? 'AED' : 'EGP'; $amount = ($installment->payment_currency == '1') ? $installment->amount_aed : $installment->amount; }else{ // else we chck the student profile and based on that we show the currency $amount = ($paymentGateway == '1') ? $installment->amount_aed : $installment->amount; $currency = ($paymentGateway == '1') ? 'AED':'EGP'; } // } @endphp {{ $amount }} @if ($installment->discount_value) @endif {{ $installment->course_currency == '1' ? 'AED':'EGP' }} {{ $currency }} @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_exempted) Exempted @endif @if ($installment->is_paid == 1) {{ $installment->paid_date}} @else @endif
{{ ++$count }} {{-- check if paid --}} @if ($installment->is_exempted == 0 && $installment->is_paid == 0 && $installment->is_posted == 0 && $installment->is_refunded == 0 && $installment->is_refunded_after_post == 0) {{-- Check if the 7 days pay installment is active --}} @if($feature != null) {{-- Check if the installment is ready to be paid --}} @if (date('Y-m-d') >= date('Y-m-d', strtotime('-7 days',strtotime($installment->due_date)))) Pay
@csrf
@else {{-- un Hold --}} {{-- check if holded before --}} @if (!$installment->holded_before && $loop->first) @if ($installment->holded_transaction_id) Un-Hold @else Hold @endif @endif @endif @else Pay
@csrf
@endif @else @if ($installment->is_exempted) @elseif ($installment->is_refunded == 1 || $installment->is_refunded_after_post == 1) @else @endif @endif
{{$installment->acyname.'_'.$installment->cname.' ( '.$installment->lshort_name.' )'}} {{$installment->has_label ? $installment->label : ''}} {{ $installment->ttname }} {{ $installment->due_date }} @php // if the installment is EGP it will show as EGP // if($installment->payment_currency == 2){ // $amount = $installment->amount; // $currency = 'EGP'; // } // else{ if($installment->is_paid){ $currency = ($installment->payment_currency == '1') ? 'AED' : 'EGP'; $amount = ($installment->payment_currency == '1') ? $installment->amount_aed : $installment->amount; }else{ // else we check the student profile and based on that we show the currency $amount = ($paymentGateway == '1') ? $installment->amount_aed : $installment->amount; $currency = ($paymentGateway == '1') ? 'AED':'EGP'; } // } @endphp {{ $amount }} @if ($installment->discount_value) @endif {{ $installment->course_currency == '1' ? 'AED':'EGP' }} {{ $currency }} @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_exempted) Exempted @endif {{-- check if holded --}} @if ($installment->holded_transaction_id) Holded @endif @if ($installment->is_paid == 1) {{ $installment->paid_date}} @else @endif
{{-- {{ $transactions->links('inc.paginate') }} --}}
{{-- un hold modal --}} {{-- hold modal --}} @endsection @section('student-js') {{-- draw all data tables --}} @endsection