@extends('layouts.master') @section('title') {{ __('students') }} @endsection @section('content')

{{ __('create') . ' ' . __('students') }}

@csrf
{!! Form::text('first_name', null, ['placeholder' => __('first_name'), 'class' => 'form-control']) !!}
{!! Form::text('last_name', null, ['placeholder' => __('last_name'), 'class' => 'form-control']) !!}
{!! Form::number('mobile', null, ['placeholder' => __('mobile'), 'class' => 'form-control mobile', 'min' => 10]) !!}

{!! Form::text('dob', null, ['placeholder' => __('dob'), 'class' => 'datepicker-popup-no-future form-control']) !!}
{!! Form::text('admission_no', $admission_no, [ 'readonly' => true, 'placeholder' => __('gr_number'), 'class' => 'form-control', ]) !!}
{!! Form::text('caste', null, ['placeholder' => __('caste'), 'class' => 'form-control']) !!}
{!! Form::text('religion', null, ['placeholder' => __('religion'), 'class' => 'form-control']) !!}
{!! Form::text('admission_date', $admission_date, ['placeholder' => __('admission_date'), 'class' => 'datepicker-popup-no-future form-control']) !!}
{!! Form::text('height', null, ['placeholder' => __('height'), 'class' => 'form-control']) !!}
{!! Form::text('weight', null, ['placeholder' => __('weight'), 'class' => 'form-control']) !!}
{!! Form::textarea('current_address', null, [ 'placeholder' => __('current_address'), 'class' => 'form-control', 'id' => 'current_address', 'rows' => 2, ]) !!}
{!! Form::textarea('permanent_address', null, [ 'placeholder' => __('permanent_address'), 'class' => 'form-control', 'id' => 'permanent_address', 'rows' => 2, ]) !!}
@foreach ($studentFields as $row) @if ($row->type === 'text' || $row->type === 'number')
' : '' !!} is_required === 1 ? 'required' : '' }}>
@endif @if ($row->type === 'dropdown')
' : '' !!}
@endif @if ($row->type === 'radio')
' : '' !!}
@foreach (json_decode($row->default_values) as $options) @if ($options != null)
@endif @endforeach
@endif @if ($row->type === 'checkbox')
' : '' !!}
@foreach (json_decode($row->default_values) as $options) @if ($options != null)
@endif @endforeach
@endif @if ($row->type === 'textarea')
' : '' !!}
@endif @if ($row->type === 'file')
' : '' !!} is_required === 1 ? 'required' : '' }} />
@endif @endforeach
@if (env('DEMO_MODE')) @else @endif
{!! Form::text('guardian_first_name', null, [ 'placeholder' => __('guardian') . ' ' . __('first_name'), 'class' => 'form-control', 'id' => 'guardian_first_name', ]) !!}
{!! Form::text('guardian_last_name', null, [ 'placeholder' => __('guardian') . ' ' . __('last_name'), 'class' => 'form-control', 'id' => 'guardian_last_name', ]) !!}
{!! Form::number('guardian_mobile', null, [ 'placeholder' => __('guardian') . ' ' . __('mobile'), 'class' => 'form-control', 'id' => 'guardian_mobile', 'min' => 0, ]) !!}

{!! Form::text('guardian_dob', null, [ 'placeholder' => __('guardian') . ' ' . __('dob'), 'class' => 'form-control datepicker-popup-no-future form-control', 'id' => 'guardian_dob', ]) !!}
{!! Form::text('guardian_occupation', null, [ 'placeholder' => __('guardian') . ' ' . __('occupation'), 'class' => 'form-control', 'id' => 'guardian_occupation', ]) !!}
@foreach ($parentFields as $row) @if ($row->type === 'text' || $row->type === 'number')
' : '' !!} is_required === 1 ? 'required' : '' }}>
@endif @if ($row->type === 'dropdown')
' : '' !!}
@endif @if ($row->type === 'radio')
' : '' !!}
@foreach (json_decode($row->default_values) as $options) @if ($options != null)
@endif @endforeach
@endif @if ($row->type === 'checkbox')
' : '' !!}
@foreach (json_decode($row->default_values) as $options) @if ($options != null)
is_required === 1 ? 'required' : '' }}>
@endif @endforeach
@endif @if ($row->type === 'textarea')
' : '' !!}
@endif @if ($row->type === 'file')
' : '' !!} is_required === 1 ? 'required' : '' }} />
@endif @endforeach
@endsection