@php use Vtiful\Kernel\Format; @endphp @extends('layouts/eims_pre_admission_layout') @section('title', '| ' . $pageTitle) @section('content') {{Form::open(['method'=>'post','enctype'=>'multipart/form-data', 'autocomplete' => 'off'])}}

Welcome To

{{ $company->name }}

{{ $company->address }}

Online Admission Primary Information Entry

Please apply now if you are interested in admission

{{-- session_id --}}
{!! Form::label('session_id', 'Session: *', ['class' => 'control-label'],false) !!}
{!! Form::select('session_id', $sessions ?? [], $admissionExam->session_id ?? null, [ 'class' => 'form-control custom-select2', 'placeholder'=> 'Select Session', 'id' => 'session_id', 'required' =>true]) !!}

{{Form::hidden('program_id', null,['id' => 'program_id'])}} {{Form::hidden('semester_class_id', null, ['id' => 'semester_class_id'])}} {{Form::hidden('company_id', $company->encoded_id)}} {{-- admission_exam_id --}}
@php($semesterOrClassLabel = match ($company->companyType) {'UNV' => 'Semester', 'SCL', 'CLG' => 'Class', default => 'Semester/Class/Year'}) {!! Form::label('admission_exam_id', $semesterOrClassLabel . ': *', ['class' => 'control-label'], false) !!}
{!! Form::select('admission_exam_id', [], null, [ 'class'=>'form-control custom-select2', 'id' => 'admission_exam_id', 'placeholder' => "Select $semesterOrClassLabel", ]) !!}

@if($company->companyType !== 'UNV' ) {{-- group_id --}}
{!! Form::label('semester_class_group_id', 'Group: *', ['class' => 'control-label'], false) !!}
{!! Form::select('semester_class_group_id', $semesterClassGroups ?? [], $applicant->group_id ?? null, [ 'class' => 'form-control custom-select2', 'id' => 'semester_class_group_id', 'placeholder' => 'Please Select Group']) !!}

@endif
{!! Form::label('name', 'Name of Applicant: *', ['class' => 'control-label'], false) !!}
{!! Form::text('name', $applicant->name ?? null, ['class' => 'form-control', 'id' => 'name', 'type' => 'text', 'placeholder' => 'Enter name']) !!}

{!! Form::label('username', 'User Name:*', ['class' => 'control-label'], false) !!}
{!! Form::text('username', null, [ 'class' => 'form-control', 'id' => 'username', 'placeholder' => 'Enter user name', ]) !!}

{!! Form::label('password', 'Password: *', ['class' => 'control-label'], false) !!}
{!! Form::password('password', [ 'class' => 'form-control', 'id' => 'password', 'placeholder' => 'Enter password', ]) !!}

{!! Form::label('dob', 'Date of Birth: *', ['class' => 'control-label'], false) !!}
{!! Form::text('dob', ($applicant->dob ?? date('d-m-Y', strtotime('-3 years'))) , ['class' => 'form-control', 'id' => 'dob', 'readonly', 'autocomplete' => 'off']) !!}

@if($company->companyType === 'UNV' ) {{-- national_id --}}
{!! Form::label('national_id', 'National ID: *', ['class' => 'control-label'], false) !!}
{!! Form::text('national_id', null, ['class' => 'form-control', 'id' => 'national_id', 'placeholder' => 'Enter your national ID']) !!}

{!! Form::label('gender', 'Gender: *', ['class' => 'control-label'], false) !!}
@php($genders = ['male', 'female', 'others']) @foreach($genders as $gender)
{!! Form::radio('gender', $gender, null, ['class' => 'form-check-input', 'id' => "gender_$gender"]) !!} {!! Form::label("gender_$gender", ucfirst($gender), ['class' => 'form-check-label']) !!}
@endforeach

@elseif($company->companyType === 'SCL' || $company->companyType === 'CLG') {{-- birth_certificate_id --}}
{!! Form::label('birth_certificate_id', 'Birth Certificate ID: *', ['class' => ' control-label'], false) !!}
{!! Form::text('birth_certificate_id', null, ['class' => 'form-control', 'id' => 'birth_certificate_id', 'placeholder' => 'Enter your birth certificate ID']) !!}

@endif
{{-- phone_number --}}
{!! Form::label('phone_number', 'Phone Number: *', ['class' => 'control-label'], false) !!}
{!! Form::text('phone_number', $applicant->phone_number ?? null, ['class' => 'form-control', 'id' => 'phone_number', 'type' => 'text', 'placeholder' => 'Enter phone number']) !!}

{!! Form::label('email', 'Email:', ['class' => 'control-label'], false) !!}
{!! Form::email('email', $applicant->email ?? null, ['class' => 'form-control', 'id' => 'email', 'placeholder' => 'Enter email']) !!}

@if($company->companyType === 'SCL')
{!! Form::label('institute_name', 'Previous Institution Name:', ['class' => 'control-label'], false) !!}
{{ Form::hidden('institute_type[]', 'previous') }} {!! Form::text('institute_name[]', null, [ 'class' => 'form-control', 'id' => 'institute_name', 'type' => 'text', 'placeholder' => 'Enter name of the institution']) !!}

{!! Form::label('institute_board_id', 'Previous Institution Board:', ['class' => 'control-label'], false) !!}
{!! Form::select('institute_board_id[]', $boards ?? [], null, [ 'class' => 'form-control custom-select2', 'id' => 'institute_board_id', 'placeholder' => 'Please Select Board']) !!}

{!! Form::label('institute_gpa', 'Previous Institution Division/GPA:', ['class' => 'control-label'], false) !!}
{!! Form::text('institute_gpa[]', null, [ 'class' => 'form-control', 'id' => 'institute_gpa', 'placeholder' => 'GPA']) !!}

{!! Form::label('institute_group_id', 'Previous Institution Group:', ['class' => 'control-label'], false) !!}
{!! Form::select('institute_group_id[]', $semesterClassGroups ?? [], null, [ 'class' => 'form-control custom-select2', 'id' => 'institute_group_id', 'placeholder' => 'Please Select Group']) !!}

{!! Form::label('institute_year', 'Previous Institution Year:', ['class' => 'control-label'], false) !!}
{!! Form::text('institute_year[]', null, [ 'class' => 'form-control', 'id' => 'institute_year', 'placeholder' => 'Enter year', ]) !!}

{!! Form::label('gender', 'Gender: *', ['class' => 'control-label'], false) !!}
@php($genders = ['male', 'female', 'others']) @foreach($genders as $gender)
{!! Form::radio('gender', $gender, null, ['class' => 'form-check-input', 'id' => "gender_$gender"]) !!} {!! Form::label("gender_$gender", ucfirst($gender), ['class' => 'form-check-label']) !!}
@endforeach

@endif @if($company->companyType === 'CLG' || $company->companyType === 'UNV' )
{!! Form::label('institute_name', 'SSC Institution: *', ['class' => 'control-label'], false) !!}
{{ Form::hidden('institute_type[]', 'ssc') }} {!! Form::text('institute_name[]', null, [ 'class' => 'form-control', 'id' => 'institute_name', 'type' => 'text', 'placeholder' => 'Enter name of the institution']) !!}

{!! Form::label('institute_board_id', 'SSC Board:', ['class' => 'control-label'], false) !!}
{!! Form::select('institute_board_id[]', $boards ?? [], null, [ 'class' => 'form-control custom-select2', 'id' => 'institute_board_id', 'placeholder' => 'Please Select Board']) !!}

{!! Form::label('institute_gpa', 'SSC Division/GPA: *', ['class' => 'control-label'], false) !!}
{!! Form::text('institute_gpa[]', null, [ 'class' => 'form-control', 'id' => 'institute_gpa', 'placeholder' => 'GPA']) !!}

{!! Form::label('institute_group_id', 'SSC Group:', ['class' => 'control-label'], false) !!}
{!! Form::select('institute_group_id[]', $semesterClassGroups ?? [], null, [ 'class' => 'form-control custom-select2', 'id' => 'institute_group_id', 'placeholder' => 'Please Select Group']) !!}

{!! Form::label('institute_year', 'SSC Year: *', ['class' => 'control-label'], false) !!}
{!! Form::text('institute_year[]', null, [ 'class' => 'form-control', 'id' => 'institute_year', 'placeholder' => 'Enter year', ]) !!}

@endif @if($company->companyType === 'CLG')
{!! Form::label('gender', 'Gender: *', ['class' => 'control-label'], false) !!}
@php($genders = ['male', 'female', 'others']) @foreach($genders as $gender)
{!! Form::radio('gender', $gender, null, ['class' => 'form-check-input', 'id' => "gender_$gender"]) !!} {!! Form::label("gender_$gender", ucfirst($gender), ['class' => 'form-check-label']) !!}
@endforeach

@endif @if($company->companyType === 'UNV' )
{!! Form::label('institute_name', 'HSC Institution: *', ['class' => 'control-label'], false) !!}
{{ Form::hidden('institute_type[]', 'hsc') }} {!! Form::text('institute_name[]', null, [ 'class' => 'form-control', 'id' => 'institute_name', 'type' => 'text', 'placeholder' => 'Enter name of the institution']) !!}

{!! Form::label('institute_board_id', 'HSC Board:', ['class' => 'control-label'], false) !!}
{!! Form::select('institute_board_id[]', $boards ?? [], null, [ 'class' => 'form-control custom-select2', 'id' => 'institute_board_id', 'placeholder' => 'Please Select Board']) !!}

{!! Form::label('institute_gpa', 'HSC Division/GPA: *', ['class' => 'control-label'], false) !!}
{!! Form::text('institute_gpa[]', null, [ 'class' => 'form-control', 'id' => 'institute_gpa', 'placeholder' => 'GPA']) !!}

{!! Form::label('institute_group_id', 'HSC Group:', ['class' => 'control-label'], false) !!}
{!! Form::select('institute_group_id[]', $semesterClassGroups ?? [], null, [ 'class' => 'form-control custom-select2', 'id' => 'institute_group_id', 'placeholder' => 'Please Select Group']) !!}

{!! Form::label('institute_year', 'HSC Year: *', ['class' => 'control-label'], false) !!}
{!! Form::text('institute_year[]', null, [ 'class' => 'form-control', 'id' => 'institute_year', 'placeholder' => 'Enter year', ]) !!}

@endif
{{Form::close()}} {{-- Tab Loading Scripts --}} @endsection