@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($studentRevenue))

Student Incomes

{{--

asdfasdf

--}} {{-- --}} {{-- --}} @foreach($studentRevenue as $row) @php $student = App\Models\Student::where('id', $row->student_id)->first(); $material = App\Models\Payment::where('student_id', $row->student_id) ->where('account_id',4) ->whereBetween('timestamp', [$fromDate, $toDate]) ->sum('amount'); $admission = App\Models\Payment::where('student_id', $row->student_id) ->where('account_id',6) ->whereBetween('timestamp', [$fromDate, $toDate]) ->sum('amount'); $monthly = App\Models\Payment::where('student_id', $row->student_id) ->where('account_id',3) ->whereBetween('timestamp', [$fromDate, $toDate]) ->sum('amount'); $exam = App\Models\Payment::where('student_id', $row->student_id) ->where('account_id',5) ->whereBetween('timestamp', [$fromDate, $toDate]) ->sum('amount'); @endphp {{-- --}} @endforeach
#Slip#Name F/Name Monthly Fee Admission Material Exams Total AmountNotes
{{++$loop->index}} {{$student->name}} {{$student->father_name}} {{$monthly}} {{$admission}} {{$material}} {{$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
# Category Title Description Amount
{{++$loop->index}} {{$accountName[$count]}} {{$row->title}} {{$row->description}} {{$row->amount}}
@endif @endforeach @endif
@endsection @section('script') @endsection