@extends('dashboard.layouts.app') @section('title', trans('admin.staffs.title') . ' - ') @section('speedbar')
@endsection @section('content')
@can('store', 'staffs')
@lang('admin.add')
@endcan
@if (count($staffs) == 0) @endif @foreach ($staffs as $staff) @endforeach
ID @lang('admin.users.username') @lang('admin.users.role') @lang('admin.actions')
@lang('admin.no_data')
{{ $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
{{ $staffs->links('pagination::bootstrap-4') }}
@endsection