@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

{{--

asdfasdf

--}} {{-- --}} {{-- --}} @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 PositionPayment TypeAmountDescriptionDate
{{++$loop->index}} {{$employee->emp_fname}} {{$employee->emp_father_name}} {{$employee->emp_job}} {{$salary}}{{$exam}}{{($monthly + $exam + $admission + $material)}}{{$row->amount}}
@endif @if(isset($transactions)) @foreach($transactions as $data) @php $count = $loop->index; @endphp @if(count($data) >0)

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

{{--

asdfasdf

--}} @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