Report Content
@if(isset($fromDate) && isset($toDate))
@endif
@if(isset($invoices))
Student Receivables
# |
Student Name |
Course Name |
Date |
Total |
Payment |
Remaining |
@foreach($invoices as $row)
@php
$student = App\Models\Student::where('id', $row->student_id)->first();
$course = App\Models\Course::where('id', $row->section_id)->first();
@endphp
{{++$loop->index}} |
{{$student->name}} |
{{$course != null ? $course->title: ''}} |
{{$row->creation_timestamp}} |
{{$row->payable_amount}} |
{{$row->payment}} |
{{$row->payable_amount - $row->payment}} |
@endforeach
@endif
@if(isset($bookInvoices))
Book Receivables
# |
Student Name |
Date |
Total |
Payment |
Remaining |
@foreach($bookInvoices as $row)
@php
$student = App\Models\Student::where('id', $row->student_id)->first();
$course = App\Models\Course::where('id', $row->section_id)->first();
@endphp
{{++$loop->index}} |
{{$student->name}} |
{{$row->creation_timestamp}} |
{{$row->payable_amount}} |
{{$row->payment}} |
{{$row->payable_amount - $row->payment}} |
@endforeach
@endif
@if(isset($transactions))
Other Receivables
# |
Name |
Account Name |
Amount |
Payment |
Remaining |
@foreach($transactions as $row)
@php
$account = App\Models\ChartofAccount::where('id', $row->account_id)->first();
$totalAmount = 0;
$totalPayment = 0;
$totalAmount += $row->amount;
$totalPayment += $row->payment;
@endphp
{{++$loop->index}} |
{{$row->title}} |
{{$account->name}} |
{{$row->amount}} |
{{$row->payment}} |
{{$row->amount - $row->payment}} |
@endforeach
@endif