@php use App\Models\GeneralSetting; $siteName = GeneralSetting::where('key', 'site_name')->value('value'); $logoPath = GeneralSetting::where('key', 'logo')->value('value'); // Get the image file contents and encode it to base64 $imageData = base64_encode(file_get_contents(public_path($logoPath))); // Create the base64 data URI $imageBase64 = 'data:image/png;base64,' . $imageData; @endphp
Site Logo

{{ $siteName }} - School Fees Payment

{{-- @foreach($payments as $key => $payment) {{dd($payment)}} --}}

Invoice #: {{ $payments->id }}

@foreach($payments->students as $student)

Student Name: {{ $student['student_name'] }}
Age: {{ $student['student_age'] }}
Gender: {{ $student['gender'] }}
Communication Address: {{ $student['communication_address'] }}
Contact Phone: {{ $student['contact_phone'] }}
Class: {{ $student['student_class'] }}
Standard: {{ $student['student_std'] }}


@endforeach
@if ($payments->extrapayment > 0) @endif
Item Description Amount
School Fees Fees for @if(is_array($payments->students)) {{ implode(', ', array_column($payments->students, 'student_name')) }} @elseif(is_string($payments->students)) {{ $payments->students }} @endif ₹{{ $payments->amount }}
Total ₹{{ $payments->amount }}
Total fees ₹{{ $payments->balance_amount }}
Balance Amount to pay ₹{{ $payments->balance }}
Extra Amount paid ₹{{ $payments->extrapayment }}

Terms

Thank you for sponsoring these students' education. Your continued support is invaluable. Please ensure any outstanding balances are settled before the due date.

{{-- @endforeach --}}