@if ($school['horizontal_logo'] ?? '') @else @endif
{{$school['school_name'] ?? ''}}
{{$school['school_address'] ?? ''}}

Fee Receipt

Invoice
Fee Receipt :- {{$feesPaid->id ?? ''}}


Student Details :-
Name :- {{$student->user->full_name}}
{{-- Session :- {{isset($feesPaid) ? $feesPaid->session_year->name : '-'}}
--}} Class :- {{$student->class_section->full_name ?? ''}}

@php $no = 1; $total_fees = 0; $total_optional_fees = 0; @endphp @php $compulsoryFeesType = $feesPaid->fees->compulsory_fees->pluck('fees_type_name'); $compulsoryFeesType = implode(" , ",$compulsoryFeesType->toArray()); @endphp {{--Compulsory Fees Listing --}} @if(isset($feesPaid->compulsory_fee) && $feesPaid->compulsory_fee->isNotEmpty()) @foreach ($feesPaid->compulsory_fee as $compulsoryFee) @if($compulsoryFee->type == "Full Payment") {{-- @foreach ($feesPaid->compulsory_fee as $data) --}} {{-- @endforeach --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @elseif($compulsoryFee->type == "Installment Payment") @endif @php $total_fees += $compulsoryFee->amount + $compulsoryFee->due_charges; @endphp @endforeach @endif {{-- Optional Fees Listing --}} @if(isset($feesPaid->optional_fee) && $feesPaid->optional_fee->isNotEmpty()) @foreach ($feesPaid->optional_fee as $optionalFee) @php $total_fees += $optionalFee->amount; $total_optional_fees += $optionalFee->amount; @endphp @endforeach @endif @if ($feesPaid->fees->total_compulsory_fees != ($total_fees - $total_optional_fees)) @endif
Sr no. Fee Type Amount
{{$no++}} {{$compulsoryFee->type}}
( {{$compulsoryFeesType}} )
Mode : ({{ $compulsoryFee->mode}})
Date  : {{date('d-m-Y',strtotime($compulsoryFee->date))}}
Due Charges : {{$compulsoryFee->due_charges ?? 0}}
{{$compulsoryFee->amount + $compulsoryFee->due_charges}} {{$school['currency_symbol'] ?? ''}}




{{--
--}} {{-- {{$data->amount + $compulsoryFee->due_charges}} {{$school['currency_symbol'] ?? ''}} --}}
{{$no++}}Due Charges{{$compulsoryFee->due_charges ?? 0}} {{$school['currency_symbol'] ?? ''}}
{{$no++}} {{$compulsoryFee->installment_fee->name}}
Mode : ({{ $compulsoryFee->mode}})
Date  : {{date('d-m-Y',strtotime($compulsoryFee->date))}}
Includes : {{$compulsoryFeesType}} @if ((float)$compulsoryFee->due_charges > 0)
Due Charges: {{ $compulsoryFee->due_charges }} @endif
{{$compulsoryFee->amount + $compulsoryFee->due_charges}} {{$school['currency_symbol'] ?? ''}}
{{$no++}} {{ $optionalFee->fees_class_type->fees_type_name}} ({{__("optional")}})
Mode : ({{ $optionalFee->mode }})
Date  : {{date('d-m-Y',strtotime($optionalFee->date))}}
{{$optionalFee->amount}} {{$school['currency_symbol'] ?? ''}}
Total Amount {{$total_fees}} {{$school['currency_symbol'] ?? ''}}
Total Fees Amount {{ $feesPaid->fees->total_compulsory_fees }} {{$school['currency_symbol'] ?? ''}}
Remaining Fees Amount {{ ($feesPaid->fees->total_compulsory_fees - $total_fees + $total_optional_fees) }} {{$school['currency_symbol'] ?? ''}}