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

Staff List

@can('add-staff') Add Staff @endcan
Selected
@can('customer_edit') @endcan @if (!empty($staffs) && $staff->count()) @foreach ($staffs as $key => $staff) @can('customer_edit') @endcan @endforeach @else @endif
Id User Phone Role StatusAction
{{ $staff->user_no }} @if ($staff->image == null)
@else
@endif
{{ $staff->name }} {{ $staff->email ?? '-' }}
{{ $staff->phone ?? '-' }}
{{ $staff->roles()->first()->name ?? '-' }}
@if ($staff->status === null) Pending Verification @elseif ($staff->status === 0) Inactive @else Active @endif
No matching records found
{{ $staffs->links() }}
@endsection @push('script') @endpush