@include('reports._report_header') @php use App\Models\Setting; $settings = Setting::where('client_id', session('client_id'))->first(); @endphp @php if (!Session::has('lang') || session('lang') == null) { session()->put('lang', 1); } if (session('lang') == 1) { $lang = json_decode(file_get_contents(resource_path('lang/en.json')), true); } elseif (session('lang') == 2) { $lang = json_decode(file_get_contents(resource_path('lang/bn.json')), true); } elseif (session('lang') == 3) { $lang = json_decode(file_get_contents(resource_path('lang/ar.json')), true); } else { $lang = json_decode(file_get_contents(resource_path('lang/en.json')), true); } //dd(session('lang')); @endphp @if(session('lang') == 2) {{-- _css_bangla already loaded in
via _report_header; only override sizes here --}} @endif@if(session('settings.std_id') == 1 && !empty($student->std_id)) {{ session('lang') == 2 ? 'আইডি' : 'ID' }} : {{ session('lang') == 2 ? e2b($student->std_id) : $student->std_id }} - @endif {{ $lang['Name'] }}: {{ $student->name }} | {{ $lang['Class'] }}: {{ getClass($student->class) }} | {{ $lang['Roll'] }}: {{ session('lang') == 2 ? e2b($student->roll) : $student->roll }} @if($date_range) | {{ session('lang') == 2 ? e2b($date_range) : $date_range }} @endif
@php $info_parts = []; if (!empty($student->father)) { $info_parts[] = '' . $lang['Father Name'] . ': ' . $student->father; } if (!empty($student->mobile)) { $info_parts[] = '' . $lang['Mobile'] . ': ' . $student->mobile; } if (!empty($student->address)) { $info_parts[] = '' . $lang['Address'] . ': ' . $student->address; } @endphp @if (count($info_parts) > 0){!! implode(' | ', $info_parts) !!}
@endif @php $sw = $session_window ?? null; $monthNamesList = ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; @endphp @if($sw){{ $lang['Session'] ?? 'Session' }}: {{ $sw['name'] ?? '-' }} | {{ $lang['Years'] ?? 'Years' }}: {{ !empty($sw['years']) ? implode('-', $sw['years']) : '-' }} @if(empty($sw['legacy'])) | {{ $lang['Months'] ?? 'Months' }}: {{ $monthNamesList[$sw['start_month']] ?? '-' }} – {{ $monthNamesList[$sw['end_month']] ?? '-' }} @endif
@endif @if(session('user.super_admin') == 'yes'){{ session('lang') == 2 ? 'বেতন (ছাত্র রেকর্ড)' : 'Tuition Fee (student record)' }}:
@endif| # | {{ $lang['Date'] }} | {{ session('lang') == 2 ? 'টিউশন ফি' : 'Tuition Fees' }} | {{ session('lang') == 2 ? 'সময়কাল' : 'Period' }} | {{ session('lang') == 2 ? 'ইনভ আইডি' : 'Inv ID' }} | {{ $lang['Amount'] }} | {{ session('lang') == 2 ? 'পেমেন্ট' : 'PM' }} | {{ $lang['Status'] }} | @if($showFeeActions)@endif |
|---|---|---|---|---|---|---|---|---|
| @if (session('user.user_type') == 'Admin') {{ session('lang') == 2 ? e2b($loop->iteration) : $loop->iteration }} {{ session('lang') == 2 ? e2b($loop->iteration) : $loop->iteration }} @else {{ session('lang') == 2 ? e2b($loop->iteration) : $loop->iteration }} @endif | {{ $feeDate }} | @if ($item->product_id == 1) @php $feeLabel = getMonth($item->month) . (!empty($item->year) ? ' ' . $item->year : ''); @endphp {{ $feeLabel }} {{ $feeLabel }} @else {{ $item->name }} {{ $item->name }} @endif @include('reports._fee_waiver_info') | {{ $periodDisplay ?: '-' }} | @if($tInvId) {{ session('lang') == 2 ? e2b($tInvId) : $tInvId }} {{ session('lang') == 2 ? e2b($tInvId) : $tInvId }} @else - @endif | @if(($settings->update_tuition_on_invoice ?? 'no') === 'yes' && session('user.super_admin') == 'yes' && isset($item->fee_id) && !isset($item->order_id) && $item->status != 'Waived') {{ session('lang') == 2 ? e2b(number_format($item->amount, 0)) : number_format($item->amount, 0) }} @else {{ session('lang') == 2 ? e2b(number_format($item->amount, 0)) : number_format($item->amount, 0) }} @endif | {{ $tPm }} | {{ session('lang') == 2 ? (['Paid' => 'পেইড', 'Due' => 'বকেয়া', 'Waived' => 'মওকুফ'][$item->status] ?? $item->status) : $item->status }} | @if($showFeeActions)@include('reports._fee_waiver_action', ['invoiced' => (bool) $tOrderId]) @if($isSuper) @if($item->status == 'Due') @endif @endif | @endif
| {{ session('lang') == 2 ? 'মোট টিউশন ফি' : 'Total Tuition Fees' }}: | {{ session('lang') == 2 ? e2b(number_format($ttl_tuition_fee, 0)) : number_format($ttl_tuition_fee, 0) }} | @if($showFeeActions) | @endif | |||||
| {{ session('lang') == 2 ? 'কোন টিউশন ফি পাওয়া যায়নি' : 'No tuition fees found' }} | ||||||||
| # | {{ $lang['Date'] }} | {{ $lang['Particular'] }} | {{ session('lang') == 2 ? 'সময়কাল' : 'Period' }} | {{ session('lang') == 2 ? 'ইনভ আইডি' : 'Inv ID' }} | {{ $lang['Amount'] }} | {{ session('lang') == 2 ? 'ছাড়' : 'Discount' }} | {{ session('lang') == 2 ? 'পেমেন্ট' : 'PM' }} | {{ $lang['Status'] }} | @if($showFeeActions)@endif |
|---|---|---|---|---|---|---|---|---|---|
| @if (session('user.user_type') == 'Admin') {{ session('lang') == 2 ? e2b($loop->iteration) : $loop->iteration }} {{ session('lang') == 2 ? e2b($loop->iteration) : $loop->iteration }} @else {{ session('lang') == 2 ? e2b($loop->iteration) : $loop->iteration }} @endif | {{ $feeDate }} | {{ session('lang') == 2 ? ($item->name2 ?? $item->name) : $item->name }} {{ session('lang') == 2 ? ($item->name2 ?? $item->name) : $item->name }} @include('reports._fee_waiver_info') | - | @if($oInvId) {{ session('lang') == 2 ? e2b($oInvId) : $oInvId }} {{ session('lang') == 2 ? e2b($oInvId) : $oInvId }} @else - @endif | {{ session('lang') == 2 ? e2b(number_format($item->amount, 0)) : number_format($item->amount, 0) }} | @if($oDiscount > 0) -{{ session('lang') == 2 ? e2b(number_format($oDiscount, 0)) : number_format($oDiscount, 0) }} @else - @endif | {{ $oPm }} | {{ session('lang') == 2 ? (['Paid' => 'পেইড', 'Due' => 'বকেয়া', 'Waived' => 'মওকুফ'][$item->status] ?? $item->status) : $item->status }} | @if($showFeeActions)@include('reports._fee_waiver_action', ['invoiced' => $oOrderId !== null]) @if($isSuper) @if($item->status == 'Due' && $oOrderId === null) @endif @if($oOrderId === null) @endif @endif | @endif
| {{ session('lang') == 2 ? 'মোট অন্যান্য ফি' : 'Total Other Fees' }}: | {{ session('lang') == 2 ? e2b(number_format($ttl_other_fee, 0)) : number_format($ttl_other_fee, 0) }} | @if($ttl_other_discount > 0) -{{ session('lang') == 2 ? e2b(number_format($ttl_other_discount, 0)) : number_format($ttl_other_discount, 0) }} @else - @endif | @if($showFeeActions) | @endif | |||||
| {{ session('lang') == 2 ? 'কোন অন্যান্য ফি পাওয়া যায়নি' : 'No other fees found' }} | |||||||||
| {{ $lang['Total Fees'] }}: {{ session('lang') == 2 ? e2b(number_format($ttl_fees_display, 0)) : number_format($ttl_fees_display, 0) }} | {{ $lang['Total Fees Paid'] }}: {{ session('lang') == 2 ? e2b(number_format($total_bill_paid + $ob_debit + $total_return, 0)) : number_format($total_bill_paid + $ob_debit + $total_return, 0) }} | {{ session('lang') == 2 ? 'মোট বকেয়া' : 'Total Due' }}: {{ session('lang') == 2 ? e2b(number_format($total_due, 0)) : number_format($total_due, 0) }} |
| # | {{ session('lang') == 2 ? 'তারিখ' : 'Date' }} | {{ session('lang') == 2 ? 'ইনভ আইডি' : 'Inv ID' }} | {{ session('lang') == 2 ? 'সাবটোটাল' : 'Sub Total' }} | {{ session('lang') == 2 ? 'ছাড়' : 'Discount' }} | {{ session('lang') == 2 ? 'মোট' : 'Net Amount' }} | {{ session('lang') == 2 ? 'স্ট্যাটাস' : 'Status' }} | {{ session('lang') == 2 ? 'তৈরিকারী' : 'Created By' }} |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ session('lang') == 2 ? bddate($inv->created_at) : date('d M Y', strtotime($inv->created_at)) }} | {{ $inv->inv_id }} | {{ number_format($inv->sub_total, 0) }} | @if(floatval($inv->discount_amount) > 0) -{{ number_format($inv->discount_amount, 0) }} @else - @endif | {{ number_format($inv->total_price, 0) }} |
{{ session('lang') == 2 ? ($inv->status == 'Paid' ? 'পেইড' : ($inv->status == 'Due' ? 'বকেয়া' : $inv->status)) : $inv->status }}
@if(!empty($inv->settled_by_inv_id))
{{ session('lang') == 2 ? 'সেটেলড: ' . e2b($inv->settled_by_inv_id) : 'via #' . $inv->settled_by_inv_id }} @endif |
{{ $inv->created_by_name ?? '-' }} |
| {{ session('lang') == 2 ? 'মোট' : 'Total' }} | {{ number_format($student_invoices->sum('sub_total'), 0) }} | @if($student_invoices->sum('discount_amount') > 0) -{{ number_format($student_invoices->sum('discount_amount'), 0) }} @else - @endif | {{ number_format($student_invoices->sum('total_price'), 0) }} | ||||