Company Logo

{{ getBusinessNameById(auth()->user()->business_id) }}

{{ __('accounting.mobile') }} : @if ($feeInvoice->business->phone) {{ $feeInvoice->business->phone }} @else {{ __('accounting.na') }} @endif {{ __('accounting.email') }} : @if ($feeInvoice->business->email) {{ $feeInvoice->business->email }} @else {{ __('accounting.na') }} @endif

{{ __('accounting.student') }} : {{ getUserFullName($feeInvoice->user->id) }}
{{ __('accounting.class') }} : {{ $feeInvoice->academicClass->academic_class ?? '' }}
{{ __('accounting.group') }} : {{ $feeInvoice->student->group->group_name ?? '' }}
{{ __('accounting.section') }} : {{ $feeInvoice->section->section_name ?? '' }}
{{ __('accounting.month') }} : @if ($feeInvoice->student->admission_date) {{ \Carbon\Carbon::parse($feeInvoice->student->created_at)->format('F') }} @else {{ __('accounting.na') }} @endif
{{ __('accounting.genarate_date') }} : @if ($feeInvoice->student->admission_date) {{ \Carbon\Carbon::parse($feeInvoice->student->created_at)->format('d-M-Y') }} @else {{ __('accounting.na') }} @endif
{{ __('accounting.invoice_number') }} : INV- @if ($feeInvoice->created_at) {{ \Carbon\Carbon::parse($feeInvoice->created_at)->format('Y') }} -{{ $feeInvoice->id }} @else {{ __('accounting.na') }} @endif
{{ __('accounting.admission_number') }} : {{ $feeInvoice->student->admission_no }}
{{ __('accounting.account_department_no') }} : {{ $feeInvoice->business->account_department_no }}
@if (!empty($feeInvoice->student->guardians)) {{ __('accounting.guardian_name') }} : {{ $feeInvoice->student->guardians[0]->guardian_name ?? '' }}
{{ __('accounting.guardian_contact') }} : {{ $feeInvoice->student->guardians[0]->guardian_phone ?? '' }}
@else {{ __('accounting.guardian_name') }} :
{{ __('accounting.guardian_contact') }} :
@endif
@foreach ($feeInvoiceDetails as $key => $details) @endforeach
{{ __('accounting.sl') }} {{ __('accounting.fee_type') }} {{ __('accounting.discount') }} {{ __('accounting.fine') }} {{ __('accounting.gross_amount') }} {{ __('accounting.net_amount') }} {{ __('accounting.paid') }}
{{ $key + 1 }} {{ $details->feeCategory->fee_category ?? '' }} {{ $details->discount->discount_amount ?? '' }} @if (!empty($details->extra_discount) && $details->extra_discount > 0) ({{ $details->extra_discount }}) @endif {{ $details->fine_amount ?? '' }} {{ $details->amount ?? '' }} {{ number_format($details->amount + $details->fine_amount - (($details->discount->discount_amount ?? 0) + ($details->extra_discount ?? 0)) ?? '', 2) }} {{ $details->recieve ?? '' }}
{{ __('accounting.subtotal') }} : {{ $feeInvoice['total_amount'] ?? '' }}
{{ __('accounting.discount') }} : {{ $feeInvoice['total_discount'] + (!empty($feeInvoiceDetails->extra_discount) && $feeInvoiceDetails->extra_discount > 0 ? $feeInvoiceDetails->extra_discount : 0) }}
{{ __('accounting.fine') }} : {{ $feeInvoice['total_fine'] ?? '' }}
{{ __('accounting.total') }} : {{ number_format($feeInvoice['total_amount'] - $feeInvoice['total_discount'], 2) }}
{{ __('accounting.paid_amount') }} : {{ $feeInvoice['total_recieve'] }}
{{ __('accounting.due_amount') }} : {{ number_format($feeInvoice['total_amount'] - $feeInvoice['total_discount'] - $feeInvoice['total_recieve'], 2) }}
{{ __('accounting.paid_date') }}: @if ($feeInvoice->created_at) {{ \Carbon\Carbon::parse($feeInvoice->created_at)->format('d-M-Y') }} @else {{ __('accounting.na') }} @endif

{{ __('accounting.payment_method') }} : @if ($feeInvoice->transection) @if ($feeInvoice->transection->payment_method == '1') Cash @elseif($feeInvoice->transection->payment_method == '2') Card @elseif($feeInvoice->transection->payment_method == '3') Cheque @elseif($feeInvoice->transection->payment_method == '4') Bank Transfer @elseif($feeInvoice->transection->payment_method == '5') Other @endif @else {{ __('accounting.not_available') }} @endif

{{ __('accounting.authorize_by') }}