@if(isset($bills))
Prepaid Accounts Reports
{{--
asdfasdf
--}}
# |
Account Name |
Amount |
Bill Year |
Bill Month |
Description |
@php $total = 0; @endphp
@foreach($bills as $row)
@php
$account = App\Models\ChartofAccount::where('id', $row->account_id)->first();
$accountName = $account != null ? $account->name : '';
@endphp
{{++$loop->index}} |
{{$accountName}} |
{{$row->amount}} |
{{$row->bill_year}} |
{{$months[$row->bill_month - 1]}} |
{{$row->description}} |
@endforeach
@endif
@if(isset($teacherSalary))
Prepaid Teacher Salary Reports
{{--
asdfasdf
--}}
# |
Teacher Name |
Amount |
Payment Year |
Payment Month |
Description |
@php $total = 0; @endphp
@foreach($teacherSalary as $row)
@php
$teacher = App\Models\Teacher::where('id', $row->teacher_id)->first();
$teacherName = $teacher != null ? $teacher->name : '';
@endphp
{{++$loop->index}} |
{{$teacherName}} |
{{$row->amount}} |
{{$row->payment_year}} |
{{$months[$row->payment_month - 1]}} |
{{$row->description}} |
@endforeach
@endif
@if(isset($empSalary))
Prepaid Employee Salary Reports
{{--
asdfasdf
--}}
# |
Employee Name |
Amount |
Payment Year |
Payment Month |
Description |
@php $total = 0; @endphp
@foreach($empSalary as $row)
@php
$emp = App\Models\Employee::where('id', $row->emp_id)->first();
$empName = $emp != null ? $emp->emp_fname : '';
@endphp
{{++$loop->index}} |
{{$empName}} |
{{$row->amount}} |
{{$row->payment_year}} |
{{$months[$row->payment_month - 1]}} |
{{$row->description}} |
@endforeach
@endif
@if(isset($invenTransactions))
Prepaid Inventory Items Reports
{{--
asdfasdf
--}}
# |
Name |
Quantity |
Amount |
Date |
Transaction Type |
@php $total = 0; @endphp
@foreach($invenTransactions as $row)
@php
$item = App\Models\InventoryItems::where('id', $row->item_id)->first();
$transaction = App\Models\Transactions::where('int_trans_id', $row->id)->first();
// $account = App\Models\ChartofAccount::where('id', $row->account_id)->first();
$transactionAmount = $transaction != null ? $transaction->payment: 0;
$itemName = $item != null ? $item->name : '';
@endphp
{{++$loop->index}} |
{{$itemName}} |
{{$row->quantity}} |
{{$transactionAmount}} |
{{$row->date}} |
{{$row->transaction_type}} |
@endforeach
@endif