@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
@php $income_openning = App\Models\ChartofAccount::where('account_type', '!=', 'expense') ->where("account_type", '!=','fixed assets') ->sum("openning_balance"); @endphp @if(isset($studentRevenues))

Student Incomes

{{--

asdfasdf

--}} {{-- --}} @php $student_total = 0; @endphp @foreach($studentRevenues as $row) @php $student = App\Models\Student::where('id', $row->student_id)->first(); $course = App\Models\Course::where('id', $row->section_id)->first(); $courseName = $course != null ? $course->title : ''; $stName = $student != null ? $student->name : ''; $fName = $student != null ? $student->father_name : ''; $totalStudentRevenue = $row->payment + $row->admission_fee + $row->material_fees + $row->exam_fee; $student_total += $totalStudentRevenue; @endphp @endforeach
# Slip# Name F/Name Course Admission Exam Monthly Fee Material Fee Total Status
{{++$loop->index}} {{$row->id}} {{$stName}} {{$fName}} {{$courseName}} {{$row->admission_fee}} {{$row->exam_fee}} {{$row->payment}} {{$row->material_fees}} {{$totalStudentRevenue}} {{$row->fees_payment}}
Total: {{$student_total}}
@endif @if(isset($transactions))

Other Incomes

@php $other_total = 0; @endphp @foreach($transactions as $row) @php $account = App\Models\ChartofAccount::where('id', $row->account_id)->first(); $other_total += $row->amount; @endphp @endforeach
# Category Title Description Date Amount
{{++$loop->index}} {{$account->name}} {{$row->title}} {{$row->description}} {{$row->timestamp}} {{$row->amount}}
Total: {{$other_total}}
@php $r = rand(1000,1100); @endphp
Revenue {{$other_total + $student_total}}
Openning Balance {{$income_openning}}
Total Revenue {{$other_total + $student_total +$income_openning }}
@endif
@endsection @section('script') @endsection