{{ session('lang') == 2 ? 'ফি বরাদ্দ' : 'Fee Allocation' }}
@if(session('success')){{ session('success') }}
@endif
{{-- Per-item breakdown of the last run: an item that allocated
nothing says here which gate its students fell at. --}}
@if(session('allocation_detail'))
@php $bnA = session('lang') == 2; @endphp
| {{ $bnA ? 'ফি আইটেম' : 'Fee item' }} | {{ $bnA ? 'নতুন' : 'New' }} | {{ $bnA ? 'আপডেট' : 'Updated' }} | {{ $bnA ? 'অপরিবর্তিত' : 'Unchanged' }} | {{ $bnA ? 'যারা পায়নি — কারণ' : 'Not allocated — reason' }} |
|---|---|---|---|---|
| {{ $row['item'] }} @if($row['per_student']) {{ $bnA ? 'পরিমাণ শিক্ষার্থীর প্রোফাইল থেকে' : 'amount from the student profile' }} @endif | {{ $row['created'] ?: '—' }} | {{ $row['updated'] ?: '—' }} | {{ $row['unchanged'] ?: '—' }} | @php $reasons = []; @endphp @if($row['no_food']) @php $reasons[] = ($bnA ? $row['no_food'] . " জনের প্রোফাইলে 'খাবার গ্রহণ করে' টিক দেওয়া নেই" : $row['no_food'] . " student(s) are not marked 'Takes food' on their profile"); @endphp @endif @if($row['food_no_amount']) @php $reasons[] = ($bnA ? $row['food_no_amount'] . ' জনের নিট খাবার ফি শূন্য বা খালি' : $row['food_no_amount'] . ' student(s) have a net food fee of 0 / blank'); @endphp @endif @if($row['no_price']) @php $reasons[] = ($bnA ? $row['no_price'] . ' জনের কোনো মূল্য পাওয়া যায়নি (ক্লাস প্যাকেজ বা আইটেমের মূল্য শূন্য)' : $row['no_price'] . ' student(s) had no price (cost package and item price are both 0)'); @endphp @endif @if($row['not_applicable']) @php $reasons[] = ($bnA ? $row['not_applicable'] . ' জনের ক্ষেত্রে প্রযোজ্য নয় (ভর্তি/সেশন নিয়ম)' : $row['not_applicable'] . ' student(s) not applicable (admission / session rule)'); @endphp @endif @if(empty($reasons)) — @else {{ implode(' · ', $reasons) }} @endif |
{{ session('error') }}
@endif
{{-- Allocated Fee Records (per-record list + single-row delete) --}}
{{-- Recent Allocation Runs --}}
@php $recentRuns = $recentRuns ?? []; @endphp
@if(count($recentRuns) > 0)
{{ session('lang') == 2 ? 'সাম্প্রতিক বরাদ্দ' : 'Recent Allocation Runs' }}