@if($design && $design->invoice_header) Header Image @endif

Money Receipt

Student: {{ $data->name ?? '--' }}

Student ID: {{ $data->register_no ?? '--' }}

Month: @foreach($months as $month) {{ \Carbon\Carbon::parse($month)->format('F - Y') }}@if(!$loop->last), @endif @endforeach

Date: {{ \Carbon\Carbon::parse($data->date)->format('d-m-Y') }}

Class: {{ $data->stuclass->name ?? '--' }}

Receipt No: {{ $invoice->receipt_no ?? '--' }}

@if($hostelAmount > 0) @foreach ($hostelFee as $key => $fee) {{-- @dd($fee) --}} @endforeach @endif @if ($onabashikAmount > 0) @foreach ($onabashikFee as $key => $fee) {{-- @dd($fee) --}} @endforeach @endif @if($academicAmount > 0) {{-- @dd($academicFee) --}} @foreach ($academicFee as $key => $fee) {{-- @dd($fee) --}} @endforeach @endif @if($otherAmount > 0) @foreach ($otherFee as $key => $fee) {{-- @dd($fee) --}} @endforeach @endif @if ($specialAmount > 0) @foreach ($specialFee as $key => $fee) {{-- @dd($fee) --}} @endforeach @endif @if($totalDiscount > 0) @endif

Total Amount:{{ round($totalAmount) }}

Previous Received:{{ round($previousReceived) }}

Current Received:{{ round($currentReceived - $totalDiscount) }}

Due:{{ round($totalAmount + $totalDiscount - ($previousReceived + $currentReceived )) }}

________________________
Student's Signature

__________________________
Account's Signature