@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $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' }}
@endif
@endforeach
@endif
@if ($errors->any())
{{ 'Something went wrong, please try again' }}
@endif
@lang('student.personal_info')
@if (in_array('admission_number', $fields))
@endif
@if (in_array('roll_number', $fields))
@if (generalSetting()->multiple_roll == 0)
@endif
@endif
@if (in_array('first_name', $fields))
@endif
@if (in_array('last_name', $fields))
@endif
@if (in_array('gender', $fields))
@if ($errors->has('gender'))
{{ $errors->first('gender') }}
@endif
@endif
@if (in_array('date_of_birth', $fields))
@endif
@if (in_array('blood_group', $fields))
@if ($errors->has('blood_group'))
{{ $errors->first('blood_group') }}
@endif
@endif
@if (in_array('religion', $fields))
@if ($errors->has('religion'))
{{ $errors->first('religion') }}
@endif
@endif
@if (in_array('caste', $fields))
@endif
@if (in_array('email_address', $fields))
@endif
@if (in_array('phone_number', $fields))
@endif
@if (in_array('admission_date', $fields))
@endif
@if (in_array('student_category_id', $fields))
@endif
@if (in_array('student_group_id', $fields))
@endif
@if (in_array('height', $fields))
@endif
@if (in_array('weight', $fields))
@endif
@if (moduleStatusCheck('Lead') == true && in_array('source_id', $fields))
@if ($errors->has('source_id'))
{{ $errors->first('source_id') }}
@endif
@endif
@if (in_array('photo', $fields))
@endif
@if (in_array('add_parent', $fields))
@endif
@if (count($siblings) > 1)
@lang('student.siblings')
@foreach ($siblings as $sibling)
@if ($sibling->id != $student->id)
@endif
@endforeach
@endif
@lang('student.parents_and_guardian_info')
@if (in_array('fathers_name', $fields))
@endif
@if (in_array('fathers_occupation', $fields))
@endif
@if (in_array('fathers_phone', $fields))
@endif
@if (in_array('fathers_photo', $fields))
@endif
@if (in_array('mothers_name', $fields))
@endif
@if (in_array('mothers_occupation', $fields))
@endif
@if (in_array('mothers_phone', $fields))
@endif
@if (in_array('mothers_photo', $fields))
@endif
@if (in_array('relation', $fields))
@lang('student.relation_with_guardian') *
@endif
@if (in_array('guardians_name', $fields))
@endif
@php
if ($student->parents->guardians_relation == 'F') {
$show_relation = 'Father';
}
if ($student->parents->guardians_relation == 'M') {
$relashow_relationtion = 'Mother';
}
if ($student->parents->guardians_relation == 'O') {
$show_relation = 'Other';
}
@endphp
@if (in_array('relation', $fields))
@endif
@if (in_array('guardians_email', $fields))
@endif
@if (in_array('guardians_photo', $fields))
@endif
@if (in_array('guardians_phone', $fields))
@endif
@if (in_array('guardian_occupation', $fields))
@endif
@if (in_array('guardians_address', $fields))
@if ($errors->has('guardians_address'))
{{ $errors->first('guardians_address') }}
@endif
@endif
@lang('student.student_address_info')
@if (moduleStatusCheck('Lead') == true && in_array('lead_city', $fields))
@if ($errors->has('lead_city'))
{{ $errors->first('lead_city') }}
@endif
@endif
@if (in_array('current_address', $fields))
@endif
@if (in_array('permanent_address', $fields))
@endif
@lang('student.transport_and_dormitory_info')
@if (in_array('route', $fields))
@if ($errors->has('route'))
{{ $errors->first('route') }}
@endif
@endif
@if (in_array('vehicle', $fields))
@endif
@if (in_array('dormitory_name', $fields))
@if ($errors->has('dormitory_name'))
{{ $errors->first('dormitory_name') }}
@endif
@endif
@if (in_array('room_number', $fields))
@endif
@lang('student.Other_info')
@if (in_array('national_id_number', $fields))
@endif
@if (in_array('local_id_number', $fields))
@endif
@if (in_array('bank_account_number', $fields))
@endif
@if (in_array('bank_name', $fields))
@endif
@if (in_array('bank_name', $fields))
@endif
@if (in_array('additional_notes', $fields))
@endif
@if (in_array('ifsc_code', $fields))
@endif
@lang('student.document_info')
@if (in_array('document_file_1', $fields))
@endif
@if (in_array('document_file_2', $fields))
@endif
@if (in_array('document_file_3', $fields))
@endif
@if (in_array('document_file_4', $fields))
@endif
@if (in_array('document_file_1', $fields))
@endif
@if (in_array('document_file_2', $fields))
@endif
@if (in_array('document_file_3', $fields))
@endif
@if (in_array('document_file_4', $fields))
@endif
{{-- Custom Field Start --}}
@if (in_array('custom_field', $fields))
@lang('student.custom_field')
@include('backEnd.studentInformation._custom_field')
{{-- Custom Field End --}}
@endif
@if (count($fields) > 0)
@endif