@extends('../layout/' . $layout) @section('subhead') Atarud MIS - Charts of Accounts @endsection @section('subcontent')

Accounting Reports

@include('../pages/account/reports/sidebar')

Report Filters

Report Content

@if(isset($fromDate) && isset($toDate))
@endif
@if(isset($empExpense))

Employees Expense

@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 @endforeach
# Name F/Name Position Amount Date
{{++$loop->index}} {{$employee->emp_fname}} {{$employee->emp_father_name}} {{$employee->emp_job}} {{$salary}}
@endif @if(isset($transactions)) @foreach($transactions as $data) @php $count = $loop->index; @endphp @if(count($data) >0)

{{$accountName[$loop->index]}}

@foreach($data as $row) @endforeach
# Particular Date Voucher Number Credit Debit
{{++$loop->index}} {{$accountName[$count]}} {{ $row->timestamp}} {{$row->voucher_id}} {{$row->amount}} {{$row->amount}}
@endif @endforeach @endif
@endsection @section('script') @endsection