@extends('backEnd.master') @section('css') @endsection @section('title') @lang('student.profile_update') @endsection @php $max_admission_id = 0; @endphp @push('css') @endpush @section('mainContent')

@lang('student.profile_update')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'my-profile-update', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'student_form']) }}
@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))
@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))
@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))
@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))
{{ $errors->first('fathers_photo') }}
@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))
{{ $errors->first('mothers_photo') }}
@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))
@endif @if (in_array('guardians_email', $fields))
@if ($errors->has('guardians_email')) {{ $errors->first('guardians_email') }} @endif
@endif @if (in_array('guardians_photo', $fields))
{{ $errors->first('guardians_photo') }}
@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))
@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
{{ Form::close() }}
{{-- student photo --}} {{-- end student 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')