@extends('layouts.app') @section('title', 'Users') @section('content')
Every staff account and the role that controls what they can do. @can('settings.roles') Change what each role can do → @endcan
| Name | Employee code | Phone | Role | Sections | Sign-in | Status | ||
|---|---|---|---|---|---|---|---|---|
| {{ $user->name }} | {{ $user->employee_code ?? '—' }} | {{ $user->email }} | {{ $user->phone ?? '—' }} |
@if (($user->location ?: 'all') === 'all')
All areas
@elseif ($user->sections->isNotEmpty())
@foreach ($user->sections as $section)
@else
|
@if ($user->usesPinOnly())
|
@can('users.manage')
@unless ($user->usesPinOnly())
@endunless
@endcan
|
||
| No users found. | ||||||||