@if(isset($empExpense))
Employees Expense
{{--
asdfasdf
--}}
# |
Name |
F/Name |
Position |
{{-- Payment Type | --}}
Amount |
{{-- Description | --}}
Date |
@foreach($empExpense as $row)
@php
$employee = App\Models\Employee::where('id', $row->employee_id)->first();
$salary = App\Models\Payment::where('employee_id', $row->employee_id)
->where('account_id',8)
->whereBetween('timestamp', [$fromDate, $toDate])
->sum('amount');
@endphp
{{++$loop->index}} |
{{$employee->emp_fname}} |
{{$employee->emp_father_name}} |
{{$employee->emp_job}} |
{{$salary}} |
{{-- {{$exam}} | --}}
{{-- {{($monthly + $exam + $admission + $material)}} | --}}
{{-- {{$row->amount}} | --}}
|
@endforeach
@endif
@if(isset($transactions))
@foreach($transactions as $data)
@php
$count = $loop->index;
@endphp
@if(count($data) >0)
{{$accountName[$loop->index]}}
{{--
asdfasdf
--}}
# |
Particular |
Date |
Voucher Number |
Credit |
Debit |
@foreach($data as $row)
{{++$loop->index}} |
{{$accountName[$count]}} |
{{ $row->timestamp}} |
{{$row->voucher_id}} |
{{$row->amount}} |
{{$row->amount}} |
@endforeach
@endif
@endforeach
@endif