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

All Staff Users

All Staff Users

@can('staff-write') Add Staff User @endcan

Following is the list of all the staff users.

@foreach($users as $k => $user) @endforeach
S.No Name Type Permissions Added On Status Action

{{ $k + 1 }}

{{ $user->complete_name }} {{ ucwords($user->user_type) }} @if($user->user_type != 'admin') @foreach ($user->user_permissions as $permission)

{{ ucwords(str_replace('-',' ',$permission->name)) }}

@endforeach @else

All Permissions

@endif

{{ get_date($user->created_on) }}

Current Status: {{$user->is_active ? 'Active' : 'Disabled'}}

@can('staff-update')

@endcan
@can('staff-update') @endcan @can('staff-delete') @endcan
@if (!empty($users)) {{$users->withQueryString()->links('vendor.pagination.bootstrap-4')}} @endif
@endsection @section('page-scripts') @include('admin.partials.datatable') @endsection