@extends('layouts.admin') @section('heading', $staffMember->exists ? 'Edit staff' : 'Add staff') @section('subheading', $staffMember->exists ? 'Update staff details and role.' : 'Create a login for a new staff member.') @section('content')
@csrf @if($staffMember->exists) @method('PUT') @endif @if ($errors->any())
{{ $errors->first() }}
@endif
exists ? '' : 'required' }} class="w-full px-4 py-2.5 rounded-lg border text-sm outline-none" style="border-color:#e6e1d8;">
@if($roles->isEmpty())

No roles created yet — create one first.

@endif
is_active ?? true) ? 'checked' : '' }} style="accent-color:#C2185B;">
Cancel
@endsection