@extends('layouts.app') @section('btn') @can('create', \App\Models\Staff::class) @endcan @endsection @section('content')
@foreach($staffs as $staff) @endforeach
SID Nom du personnel Fonction Téléphone Status ID Connexion Actions
{{$staff->id}}
{{$staff->last_name}}
{{$staff->first_name}}
{{substr_replace($staff->role ?? "", "...", 40) }} {{$staff->phone}} @if($staff->status == "enabled") Active @else($staff->status == "disabled") Désactivé @endif @if($staff->user) OUI @else NON @endif @can('view', $staff) Détails @endcan
@endsection @section('scripts') @include('layouts.plugins.scripts.datatable') @endsection