@extends('backend.layouts.app') @section('title', 'Edit Staff') @section('content') @php $pageTitle = 'Edit Staff'; $indexRoute = 'content-directory-staff.index'; $indexLabel = 'Staff'; @endphp @include('backend.layouts.partials._page_header') @php $inputClass = 'dark:bg-dark-900 shadow-theme-xs focus:border-brand-300 focus:ring-brand-500/10 dark:focus:border-brand-800 h-11 w-full rounded-lg border bg-transparent px-4 py-2.5 text-sm text-gray-800 placeholder:text-gray-400 focus:ring-3 focus:outline-hidden dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30'; @endphp
@csrf @method('PUT')

Staff Information

@error('directory_staff_name')

{{ $message }}

@enderror
@error('directory_staff_department_id')

{{ $message }}

@enderror
@php $selectedPosition = old('directory_staff_position', $staff->directory_staff_position); $hasSelectedPosition = $positions->contains('descr', $selectedPosition); @endphp @error('directory_staff_position')

{{ $message }}

@enderror
@if($staff->directory_staff_photo)
Staff Photo

Current file: {{ basename($staff->directory_staff_photo) }}

@endif @include('backend.layouts.partials._upload-hint', ['text' => 'Staff photo · 500 × 500 px · JPG, PNG, WebP · Max 15MB']) @error('directory_staff_photo')

{{ $message }}

@enderror

Optional. No strict email format and no @ required.

@error('directory_staff_email')

{{ $message }}

@enderror
@error('directory_staff_phone')

{{ $message }}

@enderror
@error('directory_staff_sort')

{{ $message }}

@enderror
@error('directory_staff_status')

{{ $message }}

@enderror
Cancel
@endsection @push('styles') @include('backend.layouts.partials._directory-select2-styles') @endpush @push('scripts') @endpush