{{-- Left (you wrote Right label আগে, কিন্তু copy text অনুযায়ী এটা Student Copy) --}}
@if (!empty($schoolInfo->school_logo)) @endif

{{ $schoolInfo->school_name }}

{{ $schoolInfo->address }}

Phone: {{ $schoolInfo->phone }} | EIIN: {{ $schoolInfo->eiin_number }}

Payment Receipt — Student Copy

Invoice: {{ $payment->invoice_no }} | Date: {{ \Carbon\Carbon::parse($payment->payment_date)->format('d-F-Y') }}

Student Information

Name: {{ $payment->student->student_name_english }}

Student ID: {{ $payment->student->admission_roll }}

Class: {{ $registration->class->name ?? 'N/A' }}

Group: {{ $registration->group->name ?? '--' }}

Section: {{ $registration->section->name ?? 'N/A' }}

Roll: {{ $registration->class_roll ?? '--' }}

Payment Details
@php $count = 0; @endphp @if ($items != null) @foreach ($items as $it) @if ($it->item_due != null) {{-- previous due hide --}} @else @php $count++; @endphp @endif @endforeach @if ($previousPaidAdjustments > 0) @endif @php $paidDisplay = number_format( $previousPaidAdjustments > 0 ? $totalPaidThisTxn : $total_paid_including_waiver, ); @endphp @if ($hasDue == 1 && $hasNew == 0) @if ($totalDueAfter != 0) @endif @elseif ($hasDue == 1 && $hasNew == 1) @if ($totalDueAfter != 0) @endif @elseif ($hasDue == 0 && $hasNew == 1) @if ($totalDueAfter != 0) @endif @else @if ($totalDueAfter != 0) @endif @endif @endif
SL Description Fee Amount
{{ $count }} {{ $it->fee->note ?? 'N/A' }} {{ number_format($it->fee_amount) }}
{{ $count + 1 }} Due Collection
(This receipt includes previous dues collected against receipts: {{ $previousCombined }}.)
{{ number_format($previousPaidAdjustments) }}
Paid {{ $paidDisplay }}
Total Due {{ number_format($totalDueAfter) }}
Total {{ number_format($totalFee) }}
Paid {{ $paidDisplay }}
Total Due {{ number_format($totalDueAfter) }}
Total {{ number_format($totalFee) }}
Paid {{ $paidDisplay }}
Total Due {{ number_format($totalDueAfter) }}
Total {{ number_format($totalFee) }}
Paid {{ $paidDisplay }}
Total Due {{ number_format($totalDueAfter) }}
{{-- Right: School Copy --}}
@if (!empty($schoolInfo->school_logo)) @endif

{{ $schoolInfo->school_name }}

{{ $schoolInfo->address }}

Phone: {{ $schoolInfo->phone }} | EIIN: {{ $schoolInfo->eiin_number }}

Payment Receipt — School Copy

Invoice: {{ $payment->invoice_no }} | Date: {{ \Carbon\Carbon::parse($payment->payment_date)->format('d-F-Y') }}

Student Information

Name: {{ $payment->student->student_name_english }}

Student ID: {{ $payment->student->admission_roll }}

Class: {{ $registration->class->name ?? 'N/A' }}

Group: {{ $registration->group->name ?? '--' }}

Section: {{ $registration->section->name ?? 'N/A' }}

Roll: {{ $registration->class_roll ?? '--' }}

Payment Details
@php $count = 0; @endphp @if ($items != null) @foreach ($items as $it) @if ($it->item_due != null) {{-- previous due hide করছি --}} @else @php $count++; @endphp @endif @endforeach @if ($previousPaidAdjustments > 0) @endif @php $paidDisplay = number_format( $previousPaidAdjustments > 0 ? $totalPaidThisTxn : $total_paid_including_waiver, ); @endphp @if ($hasDue == 1 && $hasNew == 0) @if ($totalDueAfter != 0) @endif @elseif ($hasDue == 1 && $hasNew == 1) @if ($totalDueAfter != 0) @endif @elseif ($hasDue == 0 && $hasNew == 1) @if ($totalDueAfter != 0) @endif @else @if ($totalDueAfter != 0) @endif @endif @endif
SL Description Fee Amount
{{ $count }} {{ $it->fee->note ?? 'N/A' }} {{ number_format($it->fee_amount) }}
{{ $count + 1 }} Due Collection
(This receipt includes previous dues collected against receipts: {{ $previousCombined }}.)
{{ number_format($previousPaidAdjustments) }}
Paid {{ $paidDisplay }}
Total Due {{ number_format($totalDueAfter) }}
Total {{ number_format($totalFee) }}
Paid {{ $paidDisplay }}
Total Due {{ number_format($totalDueAfter) }}
Total {{ number_format($totalFee) }}
Paid {{ $paidDisplay }}
Due {{ number_format($totalDueAfter) }}
Total {{ number_format($totalFee) }}
Paid {{ $paidDisplay }}
Total Due {{ number_format($totalDueAfter) }}