@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
--}}
# |
Slip# |
Name |
F/Name |
Course |
Admission |
Exam |
Monthly Fee |
Material Fee |
Total |
Status |
{{-- | --}}
@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
{{++$loop->index}} |
{{$row->id}} |
{{$stName}} |
{{$fName}} |
{{$courseName}} |
{{$row->admission_fee}} |
{{$row->exam_fee}} |
{{$row->payment}} |
{{$row->material_fees}} |
{{$totalStudentRevenue}} |
{{$row->fees_payment}} |
@endforeach
Total: {{$student_total}} |
@endif
@if(isset($transactions))
Other Incomes
# |
Category |
Title |
Description |
Date |
Amount |
@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
{{++$loop->index}} |
{{$account->name}} |
{{$row->title}} |
{{$row->description}} |
{{$row->timestamp}} |
{{$row->amount}} |
@endforeach
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 }} |