@extends('backEnd.master') @section('title') @lang('student.student_admission') @endsection @section('css') @endsection @section('mainContent')
@if (userPermission('student_store')) {{ Form::open(['class' => 'form-horizontal studentadmission', 'files' => true, 'route' => 'student_store', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'student_form']) }} @endif

@lang('student.add_student')

@if (userPermission('import_student')) @endif
@if ($errors->any())
{{ 'Something went wrong, please try again' }}
@foreach ($errors->all() as $error) @if ($error == 'The email address has already been taken.')
{{ 'The email address has already been taken, You can find out in student list or disabled student list' }}
@else {{--
{{ $error }}
--}} @endif @endforeach @endif @if ($errors->any()) @endif

@lang('student.academic_info')

@if ($errors->has('session')) {{ $errors->first('session') }} @endif
@php $classes = DB::table('sm_classes') ->where('academic_id', '=', old('session', getAcademicId())) ->get(); @endphp
loader
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if (!empty(old('class'))) @php $old_sections = DB::table('sm_class_sections') ->where('class_id', '=', old('class')) ->join('sm_sections', 'sm_class_sections.section_id', '=', 'sm_sections.id') ->get(); @endphp
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@else
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@endif @if (is_show('admission_number'))
@if ($errors->has('admission_number')) {{ $errors->first('admission_number') }} @endif
@endif @if (is_show('admission_date'))
{{ $errors->first('admission_date') }}
@endif @if (is_show('roll_number'))
@if ($errors->has('roll_number')) {{ $errors->first('roll_number') }} @endif
@endif @if (is_show('student_group_id'))
@if ($errors->has('student_group_id')) {{ $errors->first('student_group_id') }} @endif
@endif

@lang('student.personal_info')

@if (is_show('first_name'))
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@endif @if (is_show('last_name'))
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@endif @if (is_show('gender'))
@if ($errors->has('gender')) {{ $errors->first('gender') }} @endif
@endif @if (is_show('date_of_birth'))
{{ $errors->first('date_of_birth') }}
@endif @if (is_show('religion'))
@if ($errors->has('religion')) {{ $errors->first('religion') }} @endif
@endif @if (is_show('caste'))
@if ($errors->has('caste')) {{ $errors->first('caste') }} @endif
@endif @if (is_show('photo'))
@if ($errors->has('photo')) {{ $errors->first('photo') }} @endif
@endif

@lang('student.contact_info')

@if (is_show('email_address'))
@if ($errors->has('email_address')) {{ $errors->first('email_address') }} @endif
@endif @if (is_show('phone_number'))
@if ($errors->has('phone_number')) {{ $errors->first('phone_number') }} @endif
@endif
@if (is_show('current_address') || is_show('permanent_address'))

@lang('student.student_address_info')

@if (moduleStatusCheck('Lead') == true) @if (is_show('lead_city'))
@if ($errors->has('lead_city')) {{ $errors->first('lead_city') }} @endif
@endif @endif @if (is_show('current_address'))
@if ($errors->has('current_address')) {{ $errors->first('current_address') }} @endif
@endif @if (is_show('permanent_address'))
@if ($errors->has('permanent_address')) {{ $errors->first('permanent_address') }} @endif
@endif
@endif

@lang('student.medical_record')

@if (is_show('blood_group'))
@if ($errors->has('blood_group')) {{ $errors->first('blood_group') }} @endif
@endif @if (is_show('student_category_id'))
@if ($errors->has('student_category_id')) {{ $errors->first('student_category_id') }} @endif
@endif @if (is_show('height'))
@if ($errors->has('height')) {{ $errors->first('height') }} @endif
@endif @if (is_show('weight'))
@if ($errors->has('weight')) {{ $errors->first('weight') }} @endif
@endif @if (moduleStatusCheck('Lead') == true)
@if (is_show('source_id'))
@if ($errors->has('source_id')) {{ $errors->first('source_id') }} @endif
@endif
@endif
@if (generalSetting()->with_guardian) @if (is_show('guardians_email') || is_show('guardians_phone'))
@endif @endif
@if (generalSetting()->with_guardian)

@lang('common.fathers_info')

@if (is_show('fathers_name'))
@if ($errors->has('fathers_name')) {{ $errors->first('fathers_name') }} @endif
@endif @if (is_show('fathers_occupation'))
@if ($errors->has('fathers_occupation')) {{ $errors->first('fathers_occupation') }} @endif
@endif @if (is_show('fathers_phone'))
@if ($errors->has('fathers_phone')) {{ $errors->first('fathers_phone') }} @endif
@endif @if (is_show('fathers_photo'))
{{ $errors->first('fathers_photo') }}
@endif
@endif
@if (is_show('mothers_name'))
@if ($errors->has('mothers_name')) {{ $errors->first('mothers_name') }} @endif
@endif @if (is_show('mothers_occupation'))
@if ($errors->has('mothers_occupation')) {{ $errors->first('mothers_occupation') }} @endif
@endif @if (is_show('mothers_phone'))
@if ($errors->has('mothers_phone')) {{ $errors->first('mothers_phone') }} @endif
@endif @if (is_show('mothers_photo'))
{{ $errors->first('mothers_photo') }}
@endif

@lang('common.guardian_info')

@if (is_show('guardians_email') || is_show('guardians_phone'))

@lang('student.relation_with_guardian')

@endif @if (is_show('guardians_name'))
@if ($errors->has('guardians_name')) {{ $errors->first('guardians_name') }} @endif
@endif @if (is_show('guardians_email') || is_show('guardians_phone'))
@if ($errors->has('relation')) {{ $errors->first('relation') }} @endif
@endif @if (is_show('guardians_email'))
@if ($errors->has('guardians_email')) {{ $errors->first('guardians_email') }} @endif
@endif @if (is_show('guardians_photo'))
{{ $errors->first('guardians_photo') }}
@endif
@if (is_show('guardians_phone'))
@if ($errors->has('guardians_phone')) {{ @$errors->first('guardians_phone') }} @endif
@endif @if (is_show('guardians_occupation'))
@if ($errors->has('guardians_occupation')) {{ @$errors->first('guardians_occupation') }} @endif
@endif @if (is_show('guardians_address'))
@if ($errors->has('guardians_address')) {{ $errors->first('guardians_address') }} @endif
@endif
{{--
--}}

@lang('student.document_info')

@if (is_show('national_id_number'))
@if ($errors->has('national_id_number')) {{ $errors->first('national_id_number') }} @endif
@endif @if (is_show('local_id_number'))
@if ($errors->has('local_id_number')) {{ $errors->first('local_id_number') }} @endif
@endif @if (is_show('additional_notes'))
@if ($errors->has('additional_notes')) {{ $errors->first('additional_notes') }} @endif
@endif

@lang('student.bank_info')

@if (is_show('bank_name'))
@if ($errors->has('bank_name')) {{ $errors->first('bank_name') }} @endif
@endif @if (is_show('bank_account_number'))
@if ($errors->has('bank_account_number')) {{ $errors->first('bank_account_number') }} @endif
@endif @if (is_show('ifsc_code'))
@if ($errors->has('ifsc_code')) {{ $errors->first('ifsc_code') }} @endif
@endif

@lang('student.document_attachment')

@if (is_show('document_file_1'))
@if ($errors->has('document_title_1')) {{ $errors->first('document_title_1') }} @endif
@endif
@if (is_show('document_file_2'))
@if ($errors->has('document_title_2')) {{ $errors->first('document_title_2') }} @endif
@endif
@if (is_show('document_file_3'))
@if ($errors->has('document_title_3')) {{ $errors->first('document_title_3') }} @endif
@endif
@if (is_show('document_file_4'))
@if ($errors->has('document_title_4')) {{ $errors->first('document_title_4') }} @endif
@endif
@if (is_show('previous_school_details'))
@if ($errors->has('previous_school_details')) {{ $errors->first('previous_school_details') }} @endif
@endif
@if (isMenuAllowToShow('transport')) @if (is_show('route') || is_show('vehicle'))

@lang('student.transport')

@if (is_show('route'))
@if ($errors->has('route')) {{ $errors->first('route') }} @endif
@endif @if (is_show('vehicle'))
loader
@if ($errors->has('vehicle')) {{ $errors->first('vehicle') }} @endif
@endif
@endif @endif
@if (isMenuAllowToShow('dormitory')) @if (is_show('dormitory_name') || is_show('room_number'))

@lang('student.dormitory_info')

@if (is_show('dormitory_name'))
@if ($errors->has('dormitory_name')) {{ $errors->first('dormitory_name') }} @endif
@endif @if (is_show('room_number'))
loader
@if ($errors->has('room_number')) {{ $errors->first('room_number') }} @endif
@endif
@endif @endif
@if (count($custom_fields) && is_show('custom_field') && isMenuAllowToShow('custom_field')) {{-- Custom Filed Start --}}

@lang('student.custom_field')

@include('backEnd.studentInformation._custom_field') {{-- Custom Filed End --}} @endif
{{ Form::close() }}
{{-- student photo --}} {{-- --}} {{-- end student photo --}} {{-- father photo --}} {{-- --}} {{-- end father photo --}} {{-- mother photo --}} {{-- --}} {{-- end mother photo --}} {{-- mother photo --}} {{-- --}} {{-- end mother photo --}} @endsection @include('backEnd.partials.date_picker_css_js') @section('script') @endsection