@extends('backEnd.master')
@section('title')
{{@$pt}}
@endsection
@section('mainContent')
@lang('common.select_criteria')
{{@$pt}}
{{-- @foreach($students as $student)
@lang('student.admission_no')
@lang('student.roll_no')
@lang('student.name')
@lang('common.class')
@if(generalSetting()->with_guardian)
@lang('student.father_name')
@endif
@lang('common.date_of_birth')
@lang('common.gender')
@lang('common.type')
@lang('common.phone')
@lang('common.actions')
@endforeach --}}
{{$student->admission_no}}
{{$student->roll_no}}
{{$student->first_name.' '.$student->last_name}}
@php
$class_sec=[];
foreach ($student->studentRecords as $classSec) {
$class_sec[]=$classSec->class->class_name.'('. $classSec->section->section_name .'), ' ;
}
if (request()->class) {
$sections = [];
$class = $student->recordClass ? $student->recordClass->class->class_name : '';
if (request()->section) {
$sections [] = $student->recordSection != "" ? $student->recordSection->section->section_name:"";
} else {
foreach ($student->recordClasses as $section) {
$sections [] = $section->section->section_name;
}
}
echo $class .'('.implode(', ', $sections).'), ';
} else{
echo implode(', ', $class_sec);
}
@endphp
{{-- {{$student->class !=""?$student->class->class_name:""}} --}}
{{-- @if(generalSetting()->with_guardian)
{{$student->parents !=""?$student->parents->fathers_name:""}}
@endif
{{$student->date_of_birth != ""? dateConvert($student->date_of_birth):''}}
{{$student->gender != ""? $student->gender->base_setup_name :''}}
{{$student->category != ""? $student->category->category_name:''}}
{{$student->mobile}}