@extends('dashboard.layouts.app')
@section('title', trans('admin.staffs.title') . ' - ')
@section('speedbar')
@endsection
@section('content')
@can('store', 'staffs')
@endcan
| ID |
@lang('admin.users.username') |
@lang('admin.users.role') |
@lang('admin.actions') |
@if (count($staffs) == 0)
|
@lang('admin.no_data')
|
@endif
@foreach ($staffs as $staff)
| {{ $staff->id }} |
{{ $staff->username }} |
{{ $staff->role->name }}
|
@can('update', 'staffs')
@if (auth()->user()->id != $staff->id)
@if ($staff->block)
@else
@endif
@endif
@endcan
@can('update', 'staffs')
@if (auth()->user()->id != $staff->id)
@endif
@endcan
|
@endforeach
{{ $staffs->links('pagination::bootstrap-4') }}
@endsection