@extends('layouts.master') @section('content')
@component('components.search_student', [ 'student_name' => request()->query('student_name') ?? '', 'student_id_no' => request()->query('student_id_no') ?? '', 'required' => '', ]) @endcomponent
{{ generateDropdown($shifts, 'class="form-control shift" id="shift" name="shift"', request()->query('shift'), "Select Shift") }}
{{ generateDropdown($groups, 'class="form-control group" id="group" name="group"', request()->query('group'), "Select Group") }}
{{ generateDropdown($studentClasses, 'class="form-control student_class" id="student_class" name="student_class" ', request()->query('student_class'), "Select Class") }}
{{ generateDropdown([], 'class="form-control section" id="section" name="section"', request()->query('section'), "Select Section") }}
Student List @if ($students) (Total Students : {{ $students ? $students->total() : 'N/A' }}) @endif
@if ($students) @php // $sn = paginationStartNumber($students); @endphp @foreach ($students as $student) @endforeach @endif
Stu. ID Image Name Class Roll Section Shift Branch Actions
{{ $student->student_id_no }} @php $student_image = $student->profile_image ? $student->profile_image : 'graduated_student.png'; @endphp {{ $student->first_name." ".$student->last_name }} {{ $student->studentClass?->class_name ?? "" }} {{ $student->class_roll ?? "" }} {{ $student->section?->section_name ?? "" }} {{ $student->shift?->shift_name ?? "" }} {{ $student->branch?->branch_name ?? "" }} @if (isset($student->studentTransport) && $student->studentTransport->count()>0) @else @endif
{!! $students->links('pagination::bootstrap-4') !!}
@endsection @section('scripts') @endsection