@extends('backEnd.master') @section('css') @endsection @push('css') @endpush @section('mainContent')

@lang('common.profile_update')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'my-children-update', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'student_form']) }}
@if($errors->any()) @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' }}
@endif @endforeach @endif @if ($errors->any())
{{ 'Something went wrong, please try again' }}
@endif

@lang('student.personal_info')

@if(in_array('admission_number',$fields))
@if ($errors->has('admission_number')) {{ $errors->first('admission_number') }} @endif
@endif @if(in_array('roll_number',$fields)) @if(generalSetting()->multiple_roll==0)
@endif @endif
@if(in_array('first_name',$fields))
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@endif @if(in_array('last_name',$fields))
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@endif @if(in_array('gender',$fields))
@if ($errors->has('gender')) {{ $errors->first('gender') }} @endif
@endif @if(in_array('date_of_birth',$fields))
@if ($errors->has('date_of_birth')) {{ $errors->first('date_of_birth') }} @endif
@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))
@if ($errors->has('email_address')) {{ $errors->first('email_address') }} @endif
@endif @if(in_array('phone_number',$fields))
@if ($errors->has('phone_number')) {{ $errors->first('phone_number') }} @endif
@endif
@if(in_array('admission_date',$fields))
admission_date)): date('m/d/Y')}}" autocomplete="off">
@endif @if(in_array('student_category_id',$fields))
@if ($errors->has('student_category_id')) {{ $errors->first('student_category_id') }} @endif
@endif @if(in_array('student_group_id',$fields))
@if ($errors->has('student_group_id')) {{ $errors->first('student_group_id') }} @endif
@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))
student_photo):(is_required('student_photo')==true ? trans('common.student_photo') .'*': trans('common.student_photo'))}}" disabled>
@endif @if(in_array('add_parent',$fields))
@endif
@if(count($siblings) > 1)

@lang('student.siblings')

@foreach($siblings as $sibling) @if($sibling->id != $student->id)
{{$student->parents->fathers_name}}
@lang('student.full_name')
{{$sibling->full_name}}
@lang('student.admission_number')
{{$sibling->admission_no}}
@lang('common.class')
{{$sibling->class!=""?$sibling->class->class_name:""}}
@lang('common.section')
{{$sibling->section !=""?$sibling->section->section_name:""}}
@endif @endforeach
@endif

@lang('student.parents_and_guardian_info')

@if(in_array('fathers_name',$fields))
@if ($errors->has('fathers_name')) {{ $errors->first('fathers_name') }} @endif
@endif @if(in_array('fathers_occupation',$fields))
@endif @if(in_array('fathers_phone',$fields))
@if ($errors->has('fathers_phone')) {{ $errors->first('fathers_phone') }} @endif
@endif @if(in_array('fathers_photo',$fields))
parents->fathers_photo):(is_required('fathers_photo')==true ? __('common.photo') .'*': __('common.photo'))}}" disabled>
@endif
@if(in_array('mothers_name',$fields))
@if ($errors->has('mothers_name')) {{ $errors->first('mothers_name') }} @endif
@endif @if(in_array('mothers_occupation',$fields))
@endif @if(in_array('mothers_phone',$fields))
@if ($errors->has('mothers_phone')) {{ $errors->first('mothers_phone') }} @endif
@endif @if(in_array('mothers_photo',$fields))
parents->mothers_photo):(is_required('mothers_photo')==true ? __('common.photo') .'*': __('common.photo'))}}" disabled>
@endif
@if(in_array('relation',$fields))

@lang('student.relation_with_guardian') *

parents->relation == "F"? 'checked':''}}>
parents->relation == "M"? 'checked':''}}>
parents->relation == "O"? 'checked':''}}>
@endif
@if(in_array('guardians_name',$fields))
@if ($errors->has('guardians_name')) {{ $errors->first('guardians_name') }} @endif
@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))
parents->guardians_relation:""}}" readonly>
@endif @if(in_array('guardians_email',$fields))
@if ($errors->has('guardians_email')) {{ $errors->first('guardians_email') }} @endif
@endif @if(in_array('guardians_photo',$fields))
parents->guardians_photo):(is_required('guardians_photo')==true ? __('common.photo') .'*': __('common.photo'))}}" disabled>
@endif
@if(in_array('guardians_phone',$fields))
@if ($errors->has('guardians_phone')) {{ $errors->first('guardians_phone') }} @endif
@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))
loader
@if ($errors->has('vehicle')) {{ $errors->first('vehicle') }} @endif
@endif
@if(in_array('dormitory_name', $fields))
@if ($errors->has('dormitory_name')) {{ $errors->first('dormitory_name') }} @endif
@endif @if(in_array('room_number', $fields))
loader
@if ($errors->has('room_number')) {{ $errors->first('room_number') }} @endif
@endif

@lang('student.Other_info')

@if(in_array('national_id_number', $fields))
@if ($errors->has('national_id_number')) {{ $errors->first('national_id_number') }} @endif
@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))
document_file_1):(is_required('document_title_1')==true ? '01 *': '01') }}" disabled>
@endif @if(in_array('document_file_2', $fields))
document_file_2):(is_required('document_title_2')==true ? '02 *': '02')}}" disabled>
@endif @if(in_array('document_file_3', $fields))
document_file_3):(is_required('document_title_3')==true ? '03 *': '03')}}" disabled>
@endif @if(in_array('document_file_4', $fields))
document_file_4):(is_required('document_title_4')==true ? '04 *': '04') }}" disabled>
@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
{{ Form::close() }}
{{-- student photo --}} {{-- end student photo --}} {{-- father photo --}} {{-- end father photo --}} {{-- mother photo --}} {{-- end mother photo --}} {{-- mother photo --}} {{-- end mother photo --}} @endsection @section('script') @endsection @include('backEnd.partials.date_picker_css_js')