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

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

@csrf
{!! Form::text('admission_no', $admission_no, ['readonly','placeholder' => __('Gr Number'), 'class' => 'form-control']) !!}
{!! Form::text('admission_date', null, ['placeholder' => __('admission_date'), 'class' => 'datepicker-popup-no-future form-control','id'=>'admission_date','autocomplete'=>'off']) !!}
@if(!empty($features) )

{{ __('Note').':-'.__('Activating this will consider in your current subscription cycle') }}
@endif

{!! Form::text('first_name', null, ['placeholder' => __('first_name'), 'class' => 'form-control']) !!}
{!! Form::text('last_name', null, ['placeholder' => __('last_name'), 'class' => 'form-control']) !!}
{!! Form::text('dob', null, ['placeholder' => __('dob'), 'class' => 'datepicker-popup-no-future form-control','autocomplete'=>'off']) !!}

{!! Form::number('mobile', null, ['placeholder' => __('mobile'), 'min' => 0 ,'class' => 'form-control remove-number-increment']) !!}
{!! Form::textarea('current_address', null, ['required', 'placeholder' => __('current_address'), 'class' => 'form-control', 'rows' => 3]) !!}
{!! Form::textarea('permanent_address', null, ['required', 'placeholder' => __('permanent_address'), 'class' => 'form-control', 'rows' => 3]) !!}
@if(count($extraFields))
{{-- Loop the FormData --}} @foreach ($extraFields as $key => $data) {{-- Edit Extra Details ID --}} {{ Form::hidden('extra_fields['.$key.'][id]', '', ['id' => $data->type.'_'.$key.'_id']) }} {{-- Form Field ID --}} {{ Form::hidden('extra_fields['.$key.'][form_field_id]', $data->id, ['id' => $data->type.'_'.$key.'_id']) }}
{{-- Add lable to all the elements excluding checkbox --}} @if($data->type != 'radio' && $data->type != 'checkbox') @endif {{-- Text Field --}} @if($data->type == 'text') {{ Form::text('extra_fields['.$key.'][data]', '', ['class' => 'form-control text-fields', 'id' => $data->type.'_'.$key, 'placeholder' => $data->name, ($data->is_required == 1 ? 'required' : '')]) }} {{-- Number Field --}} @elseif($data->type == 'number') {{ Form::number('extra_fields['.$key.'][data]', '', ['min' => 0, 'class' => 'form-control number-fields', 'id' => $data->type.'_'.$key, 'placeholder' => $data->name, ($data->is_required == 1 ? 'required' : '')]) }} {{-- Dropdown Field --}} @elseif($data->type == 'dropdown') {{ Form::select('extra_fields['.$key.'][data]',$data->default_values,null, ['id' => $data->type.'_'.$key,'class' => 'form-control select-fields', ($data->is_required == 1 ? 'required' : ''), 'placeholder' => 'Select '.$data->name ] )}} {{-- Radio Field --}} @elseif($data->type == 'radio')
@if(count($data->default_values)) @foreach ($data->default_values as $keyRadio => $value)
@endforeach @endif
{{-- Checkbox Field --}} @elseif($data->type == 'checkbox') @if(count($data->default_values))
@foreach ($data->default_values as $chkKey => $value)
@endforeach
@endif {{-- Textarea Field --}} @elseif($data->type == 'textarea') {{ Form::textarea('extra_fields['.$key.'][data]', '', ['placeholder' => $data->name, 'id' => $data->type.'_'.$key, 'class' => 'form-control textarea-fields', ($data->is_required ? 'required' : '') , 'rows' => 3]) }} {{-- File Upload Field --}} @elseif($data->type == 'file')
{{ Form::file('extra_fields['.$key.'][data]', ['class' => 'file-upload-default', 'id' => $data->type.'_'.$key, ($data->is_required ? 'required' : '')]) }} {{ Form::text('', '', ['class' => 'form-control file-upload-info', 'disabled' => '', 'placeholder' => __('image')]) }}
@endif
@endforeach
@endif
{{-- Guardian Details --}}
{!! 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 remove-number-increment', 'id' => 'guardian_mobile','min' => 1 ]) !!}

Guardian Image
@endsection @section('script') @endsection