@extends('admin.master') @section('main_content') @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); } @endphp
@if (session('lang') == 2) @endif
@csrf
@if (session('settings')->shift == 1)
{{ session('lang') == 2 ? 'শিফট' : 'Shift' }} @php $shifts = getShifts(); @endphp
@endif
{{ $lang['Class'] ?? 'Class' }}
{{ $lang['Section'] ?? 'Section' }}
{{-- Group filter: relevant for Nine/Ten and HSC First/Second Year. Shown when the current class is one of those, or when picked in the dropdown above. --}} @php $isNineTen = isset($class) && in_array($class, ['Nine', 'Ten', 'HSC First Year', 'HSC Second Year']); @endphp
{{ session('lang') == 2 ? 'গ্রুপ' : 'Group' }}
{{-- Gender filter: unlike Group this applies to every class, so it is always shown. Values are neutral 'male'/'female' because the stored column is English on some schools and Bangla on others. --}}
{{ session('lang') == 2 ? 'লিঙ্গ' : 'Gender' }}
{{ $lang['Report Type'] ?? 'Report Type' }}
 

@if (isset($title)) {{ session('lang') == 2 ? ($title == 'Residential Students' ? 'আবাসিক শিক্ষার্থী' : $lang[$title] ?? $lang['students']) : $lang[$title] ?? ($title ?? $lang['students']) }} @else {{ $lang['students'] }} @if (isset($type) && $type == 'Inactive') {{ session('lang') == 2 ? 'নিষ্ক্রিয়' : $lang['Inactive'] ?? 'Inactive' }} @elseif (isset($type) && $type == 'Session') {{ $lang['Next Session'] ?? 'Next Session' }} ({{ $class }}) @endif @endif

{{ session('lang') == 2 ? 'শিক্ষার্থীদের তালিকা ও ভর্তি পরিচালনা করুন' : 'Manage student records and admissions' }}

@if (session('user.super_admin') == 'yes') {{-- Bulk delete (super admin only) --}} @endif
@if (isset($class) && session('settings.std_id') == 1)
@endif @if (isset($class) && (session('settings')->roll != 0 || session('settings')->roll == null))
@endif @if (isset($class)) {{ $class }} ({{ $data->count() }}) @else {{ session('lang') == 2 ? 'মোট শিক্ষার্থী' : 'Total Students' }}: ({{ $data->count() }}) @endif
@if (session('settings.std_id') == 1) @endif @if (session('settings')->shift == 1) @endif @if (session('settings')->section == 1) @endif @if ($isNineTen) @endif @if (session('settings')->roll != 0 || session('settings')->roll == null) @endif {{-- --}} @if (isset($show_food_fee) && $show_food_fee) @endif @foreach ($data as $item) @php // Normalised so the row matches whichever way this // school spells the value in students.gender. $rowGender = in_array($item->gender, ['Male', 'ছেলে'], true) ? 'male' : (in_array($item->gender, ['Female', 'মেয়ে'], true) ? 'female' : ''); @endphp @if (session('settings.std_id') == 1) @endif @if (session('settings')->shift == 1) @endif @if (session('settings')->section == 1) @endif @if ($isNineTen) @endif @if (session('settings')->roll != 0 || session('settings')->roll == null) @endif {{-- --}} @if (isset($show_food_fee) && $show_food_fee) @endif @php $mobile = $item->f_mobile ?: $item->mobile; @endphp @endforeach
SL {{ session('lang') == 2 ? 'ছবি' : 'Photo' }} {{ session('lang') == 2 ? 'আইডি' : 'Std ID' }} {{ session('lang') == 2 ? 'শিক্ষার্থীর নাম' : 'Student Name' }} {{ session('lang') == 2 ? 'শ্রেণি' : 'Class' }} {{ session('lang') == 2 ? 'শিফট' : 'Shift' }} {{ session('lang') == 2 ? 'শাখা' : 'Section' }} {{ session('lang') == 2 ? 'গ্রুপ' : 'Group' }} {{ session('lang') == 2 ? 'রোল' : 'Roll' }} {{ session('lang') == 2 ? 'ফি' : 'Fees' }} {{ session('lang') == 2 ? 'খাবারের ফি' : 'Food Fee' }} {{ session('lang') == 2 ? 'মোবাইল' : 'Mobile' }} {{ session('lang') == 2 ? 'অবস্থা' : 'Status' }} {{ session('lang') == 2 ? 'কার্যক্রম' : 'Action' }}
{{ $loop->iteration }} @if (!empty($item->image)) @else @endif {{ session('lang') == 2 ? $item->std_id : $item->std_id }} {{ $item->name }} {{ getClass($item->class) }}{{ $item->shift ? (($shifts ?? collect())->firstWhere('id', $item->shift)?->name ?? '-') : '-' }}{{ getSection($item->section) }}{{ getGroup($item->group_id) ?: '-' }} {{ session('lang') == 2 ? e2b($item->roll) : $item->roll }} {{ session('lang') == 2 ? e2b($item->tuition_fee) : $item->tuition_fee }}{{ session('lang') == 2 ? e2b($item->food_fee) : $item->food_fee }} {{ session('lang') == 2 ? e2b($mobile) : $mobile }} @if ($item->active === 'on') {{ session('lang') == 2 ? 'সক্রিয়' : 'Active' }} @else {{ session('lang') == 2 ? 'নিষ্ক্রিয়' : 'Inactive' }} @endif
@endsection