@extends('backEnd.master') @section('title') @lang('exam.seat_plan_report') @endsection @section('mainContent')

@lang('common.select_criteria')

@if(session()->has('message-success') != "") @if(session()->has('message-success'))
{{ session()->get('message-success') }}
@endif @endif @if(session()->has('message-danger') != "") @if(session()->has('message-danger'))
{{ session()->get('message-danger') }}
@endif @endif
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'seat_plan_report_search_new', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
@if ($errors->has('exam')) {{ $errors->first('exam') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
{{ Form::close() }}
@if(isset($seat_plans))

@lang('exam.seat_plan_report')

@foreach($seat_plans as $seat_plan) @php $seat_plan_childs = $seat_plan->seatPlanChild; @endphp @php $i = 0; @endphp @foreach($seat_plan_childs as $seat_plan_child) @php $i++; @endphp @endforeach @endforeach
@lang('exam.exam') @lang('common.date') @lang('exam.start_end_time') @lang('exam.student') @lang('common.class_Sec') @lang('dashboard.total_students') @lang('student.roll_no') @lang('student.category') @lang('exam.assign_students')
@php $exam = $seat_plan->exam; if($i == 1){ echo $exam->name; } @endphp @php $exam = $seat_plan->exam; if($i == 1){ echo dateConvert($seat_plan->date); } @endphp @php $subject = $seat_plan->subject; if($i == 1){ echo date('h:i a', strtotime($seat_plan_child->start_time)).'-'.date('h:i a', strtotime($seat_plan_child->end_time)); } @endphp @php $subject = $seat_plan->subject; if($i == 1){ echo $subject->subject_name; } @endphp @php $class = $seat_plan->class; $section = $seat_plan->section; if($i == 1){ echo $class->class_name.' ('.$section->section_name.')'; } @endphp @php if($i == 1){ echo App\SmSeatPlan::total_student($seat_plan->class_id, $seat_plan->section_id); } @endphp @php $class_room = $seat_plan_child->class_room; echo $class_room->room_no; @endphp {{$class_room->capacity}} {{$seat_plan_child->assign_students}}
@endif @endsection @include('backEnd.partials.date_picker_css_js')