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

{{ __('create_teacher') }}

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

{!! Form::text('email', null, ['required' => true, 'placeholder' => __('email'), 'class' => 'form-control']) !!}
{!! Form::number('mobile', null, ['required' => true, 'placeholder' => __('mobile'), 'min' => 1, 'class' => 'form-control']) !!}
{!! Form::text('dob', null, ['required' => true, 'placeholder' => __('dob'), 'class' => 'datepicker-popup-no-future form-control']) !!}
{!! Form::textarea('qualification', null, ['required' => true, 'placeholder' => __('qualification'), 'class' => 'form-control', 'rows' => 3]) !!}
{!! Form::textarea('current_address', null, ['required' => true, 'placeholder' => __('current_address'), 'class' => 'form-control', 'rows' => 3]) !!}
{!! Form::textarea('permanent_address', null, ['required' => true, 'placeholder' => __('permanent_address'), 'class' => 'form-control', 'rows' => 3]) !!}
@foreach ($teacherFields 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
{{ __('note_for_permission_of_student_manage') }}
@endsection