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

{{ __('Create Staff') }}

{!! Form::text('dob', null, ['required', 'placeholder' => __('dob'), 'class' => 'datepicker-popup-no-future form-control','autocomplete'=>'off']) !!}
@if (Auth::user()->school_id)
@endif @if (Auth::user()->school_id)
@endif @if (!Auth::user()->school_id)
{!! Form::select('school_id[]', $schools, null, ['class' => 'form-control select2-dropdown select2-hidden-accessible','multiple']) !!}
@endif @hasFeature('Staff Management')
{!! Form::text('joining_date', null, ['placeholder' => __('joining_date'), 'class' => 'datepicker-popup form-control','autocomplete'=>'off']) !!}

@if(!empty(Auth::user()->school_id)) {{ __('Note').' :- '.__('Activating this will consider in your current subscription cycle') }} @endif
@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 @endHasFeature()
@hasFeature('Expense Management') {{-- allowances --}}

{{ __('allowances') }}

{{-- deductions --}}

{{ __('deductions') }}

@endHasFeature

{{ __('Staff List') }}

@if (Auth::user() && Auth::user()->school_id)
@endif
@if (!Auth::user()->school_id) @endif @if (!Auth::user()->school_id) @endif
{{ __('id') }} {{ __('no.') }} {{ __('image') }} {{ __('name') }} {{ __('role') }} {{ __('mobile') }} {{ __('email') }}{{ __('Salary') }}{{ __('join_session_year') }} {{ __('leave_session_year') }}{{ __('assign_schools') }}{{ __('created_at') }} {{ __('updated_at') }} {{ __('action') }}
@endsection @section('script') @endsection