@extends('layouts.app') @section('title', 'Create Staff Member') @section('content') {{-- Reusable error icon (for inline use) --}} @php $errorIconSvg = ''; @endphp
{{-- ── Top row ── --}}

Create New Staff Member

Add a new staff member to the system

Back
{{-- ── Main card ── --}}
{{-- Server-side errors summary (only on failed submit) --}} @if ($errors->any())
⚠️ Please correct the following errors:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf {{-- Section: Personal Information --}}
👤 Personal Information
{!! $errorIconSvg !!} @error('name'){{ $message }}@enderror
{!! $errorIconSvg !!} @error('email'){{ $message }}@enderror
{!! $errorIconSvg !!} @error('mobile'){{ $message }}@enderror
{!! $errorIconSvg !!} @error('location'){{ $message }}@enderror
{!! $errorIconSvg !!} @error('role'){{ $message }}@enderror
JPG, PNG (Max 2MB)
{!! $errorIconSvg !!} @error('img'){{ $message }}@enderror

{{-- Section: Professional Information --}}
Professional Information
{{-- Trade — only shown for role "training_officer" — hidden by default --}}
{!! $errorIconSvg !!} @error('status'){{ $message }}@enderror
📝 Default Password: "default@123" — User should change it after first login for security.
Cancel
{{-- /card-body --}}
{{-- /card --}}
{{-- /wrap --}} @endsection