@extends('layouts.app') @section('title', __('Enroll Admission Students')) @section('content')
@include('layouts.leftside-menubar')
@include('components.pages-bar',['pageTitle' =>''. transMsg('Admission').' / '.transMsg('Enroll of Student').'']) @include('components.sectionbar.admission-bar')
@if($admissionyear)
{!! Form::open(['route' => ['academic.admission.enroll',[auth()->user()->school->code,$admissionyear->id,$admissionyear->year]], 'method' => 'post']) !!} {!! Form::label('class_id',transMsg('Enroll In'),['class'=>'pull-left mr-2','style'=>'margin-top:8px;margin-right:5px']) !!} {!! Form::select('class_id',admissionClass(),$class_id ?? null, array('required'=>true, 'class' => 'pull-left form-control w-40','onchange' => 'this.form.submit()', 'placeholder' => trans('Select Class'))) !!} {!! Form::select('from_st',[1=>transMsg('Merit List'),2=>transMsg('First Waiting List'),3=>transMsg('Second Waiting List'),4=>transMsg('Third Waiting List')],$from_st ?? null, array('required'=>true, 'class' => 'pull-right form-control w-40','onchange' => 'this.form.submit()')) !!} {!! Form::close() !!}
@endif @if(isset($students) && count($students) > 0) @foreach ($students as $student)
@lang('Class') - {{$student->section->class->name}}   @lang('Section') - {{ ucwords($student->section->section_number)}}   @lang('Current Date Time'):  {{ Carbon\Carbon::now()->format('h:i A d/m/Y')}}
@php $section_id = $student->section->id @endphp @break($loop->first) @endforeach
@component('components.enroll-students',['students'=>$students,'classes'=>$classes,'section_id'=>$section_id,'preadmissionID'=>$admissionyear->id]) @endcomponent
@else
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

@if($getmessage == 'FirstTime') *@lang('Note'): @lang('Please select an class'). @else *@lang('Note') : @lang('Class') {{$getmessage}} @lang('has no available data') . @endif
@endif
@endsection