@extends('layouts.admin') @section('content')
Un-Calculated Transactions {{-- @if (request()->course || request()->student ||request()->status ||request()->start_date ||request()->end_date ) --}}
{{-- transaction by lesson --}} @if ($transaction_by_lesson)
@lang('student.filter by')

Transactions List

{{-- --}} @php $count=0; @endphp @forelse ($transaction_by_lesson as $transaction) {{-- --}} @empty @endforelse
id Student course name Enrollment Method Teacher date amount due (EGP) amount due (AED) Transaction CurrencyStudent CurrencyRate status
{{ ++$count }} {{ $transaction->user->first_name . ' ' . $transaction->user->middle_name. ' ' . $transaction->user->last_name}} {{$transaction->courseOffering->has_label ? ' ( '.$transaction->courseOffering->label.' ) ':''}} {{$transaction->courseOffering->academicYearSession->acyname.'_'.$transaction->courseOffering->course->cname.' ( '.$transaction->courseOffering->course->level->lshort_name.' )'}} @if (!$transaction->courseOffering->is_active) In Active @endif {{$transaction->enrollment->fees_by_lesson ? 'By Lesson':'By Course'}} {{ $teamCoach->firstWhere('ttid', $transaction->courseOffering->ttid)->user->first_name }} {{ $teamCoach->firstWhere('ttid', $transaction->courseOffering->ttid)->user->last_name }} {{ $transaction->created_at->format('d-m-Y') . ' / '}} {{date('h:i A', strtotime($transaction->created_at))}} {{ $transaction->amount_due }} EGP {{ $transaction->amount_due_aed }} AED {{ $transaction->currency == 2 ? 'EGP':'AED' }}{{ $transaction->payment_gateway == 2 ? 'EGP':'AED' }}{{ $transaction->rate ? $transaction->rate : 0 }} @if ($transaction->is_refunded == 1 || $transaction->is_refunded_after_post == 1) Refunded @else Paid @endif @if ($transaction->is_posted == 1) Posted @else Un-Posted @endif {{$transaction->is_live == 1 ? 'Live':'Recording'}}
empty table

There is no data!

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

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

@endif {{-- installment --}} @if ($istallment_transactions)
@lang('student.filter by')

Installment Transactions List

@php $count=0; @endphp @forelse ($istallment_transactions as $installment) @empty @endforelse
@lang('student.table.id') student name @lang('student.table.course name') @lang('student.table.teacher name') due date percentage amount amount EGP amount AED course Currency payment currency Rate @lang('student.table.status') paid at
{{ ++$count }} {{ $installment->user->first_name.' '.$installment->user->middle_name.' '.$installment->user->last_name }} {{$installment->courseOffering->has_label ? ' ( '.$installment->courseOffering->label.' ) ':''}} {{$installment->courseOffering->academicYearSession->acyname.'_'.$installment->courseOffering->course->cname.' ( '.$installment->courseOffering->course->level->lshort_name.' )'}} @if (!$installment->courseOffering->is_active) In Active @endif {{ $teamCoach->firstWhere('ttid', $installment->courseOffering->ttid)->user->first_name }} {{ $teamCoach->firstWhere('ttid', $installment->courseOffering->ttid)->user->last_name }} {{ $installment->due_date }} {{$installment->installment_amount}} % {{$installment->amount}} {{$installment->amount_aed}} {{ $installment->courseOffering->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) refunded @endif @if ($installment->is_paid == 1) {{ $installment->paid_date}} @else @endif
empty table

There is no data!

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

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

@endif
{{-- @endif --}}
{{-- refund reason modeal --}} @endsection @section('admin-js') {{-- draw all data tables --}} @endsection