@extends('backend.layouts.admin.app') @section('content')

{{$title}}

@if(auth()->user()->isAdmin() || auth()->user()->can('staff.create')) Add Staff @endif
@include('backend.layouts.alert')
@forelse($staffUsers as $staff) @empty @endforelse
Name Role Email Phone Creation Date Status Action
{{ $staff->name }} {{ $staff->roles->first()->name ?? 'No Role' }} {{ $staff->email }} {{ $staff->phone_accounts }} {{ $staff->created_at->format('d/m/Y') }} @if(auth()->user()->isAdmin() || auth()->user()->can('staff.edit'))
status_label == 'active' ? 'checked' : '' }} aria-checked="{{ $staff->status_label == 'active' ? 'true' : 'false' }}"> {{ $staff->status_label }}
@else {{ ucfirst($staff->status_label) }} @endif
@if(auth()->user()->isAdmin() || auth()->user()->can('staff.edit')) @endif @if(auth()->user()->isAdmin()) @endif
@endsection