@section('title', 'Positions')
{{ __('Create New Positions') }}
{!! Form::model($position, [ 'url' => $position->exists ? route('backend.position.update', $position->id) : route('backend.position.store'), 'method' => $position->exists ? 'PUT' : 'POST', 'id' => $position->exists ? 'positionUpdate' : 'positionCreate', ]) !!}
{!! Form::label('name', 'Positions Name', ['class' => 'form-label']) !!} * {!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('name', 'Department Name', ['class' => 'form-label']) !!} * {!! Form::select( 'department_id', ['' => 'Select Department'] + $departments, old('department_id', $position->department_id), [ 'class' => 'form-control form-select select2', 'id' => 'department', ], ) !!}
{!! Form::submit($position->exists ? 'Update' : 'Create', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@push('js') @endpush