@extends('backEnd.master') @section('title') @lang('exam.assign_students') @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_create_search', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@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($students))

@lang('exam.assign_exam_room')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'seat_plan_store_create', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'seat_plan_store']) }}
@if(count($seat_plan_assign_childs) == 0) @else @php $i = 0; @endphp @foreach($seat_plan_assign_childs as $seat_plan_assign_child) @php $i++; @endphp @php $used_room = App\SmSeatPlanChild::usedRoomCapacity($seat_plan_assign_child->room_id); $class_room = $seat_plan_assign_child->class_room; $alreday_assigned = $class_room->capacity - $used_room; @endphp @endforeach @endif
@lang('dashboard.total_students') @lang('academics.start_time') @lang('academics.end_time') @lang('academics.room_no') @lang('academics.capacity') @lang('exam.assign_students_no'). @lang('common.action')
{{$students->count()}}
@if ($errors->has('start_time')) {{ $errors->first('start_time') }} @endif
@if ($errors->has('end_time')) {{ $errors->first('end_time') }} @endif
{{$i == 1? $students->count(): ''}} @if($i == 1)
@if ($errors->has('start_time')) {{ $errors->first('start_time') }} @endif
@endif
@if($i == 1)
@if ($errors->has('end_time')) {{ $errors->first('end_time') }} @endif
@endif
{{ Form::close() }}
@endif @endsection @include('backEnd.partials.date_picker_css_js')