@section('title', 'Leave Type')
{{ __('Create New Leave Type') }}
{!! Form::model($leave_type, [ 'url' => $leave_type->exists ? route('backend.leave_type.update', $leave_type->id) : route('backend.leave_type.store'), 'method' => $leave_type->exists ? 'PUT' : 'POST', 'id' => $leave_type->exists ? 'leaveTypeUpdate' : 'leaveTypeCreate', 'novalidate' => true, ]) !!}
{!! Form::label('name', 'Leave Type Name', ['class' => 'form-label']) !!} * {!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('name', 'Leave Types', ['class' => 'form-label']) !!} * {!! Form::select( 'category', ['' => 'Select Type'] + [ 'sick' => 'Sick', 'earned' => 'Earned', 'unpaid' => 'Unpaid', 'maternity' => 'Maternity', 'paternity' => 'Paternity', 'religious' => 'Religious', 'annual' => 'Annual', ], old('category', $leave_type->category), [ 'class' => 'form-control form-select select2', 'id' => 'category', ], ) !!}
{!! Form::label('name', 'Maximum Days', ['class' => 'form-label']) !!} * {!! Form::number('max_days', null, ['class' => 'form-control']) !!}
{!! Form::label('name', 'Aplicable For', ['class' => 'form-label']) !!} * {!! Form::select( 'aplicable_for', ['' => 'Select Type'] + [ 'all' => 'All', 'male' => 'Male', 'female' => 'Female', ], old('aplicable_for', $leave_type->aplicable_for), [ 'class' => 'form-control form-select select2', 'id' => 'aplicable_for', ], ) !!}

{!! Form::submit($leave_type->exists ? 'Update' : 'Create', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@push('css') @endpush @push('js') @endpush