@extends('layouts.app') @section('title', 'Users') @section('content')

Users

Every staff account and the role that controls what they can do. @can('settings.roles') Change what each role can do → @endcan

@can('users.manage') @endcan
@forelse ($users as $user)
@csrf @method('PUT')
usesPinOnly()) required @endif placeholder="{{ $user->usesPinOnly() ? 'Not needed — signs in with PIN' : '' }}">
@include('settings.users._access', ['user' => $user, 'sections' => $sections])
@csrf

Each person needs their own PIN — it is how the till knows who is signing in. Ask them to change it themselves from My Profile afterwards.

@csrf
@empty @endforelse
NameEmployee codeEmailPhoneRoleSectionsSign-inStatus
{{ $user->name }} {{ $user->employee_code ?? '—' }} {{ $user->email }} {{ $user->phone ?? '—' }} {{ $user->role->name ?? 'No role' }} @if (($user->location ?: 'all') === 'all') All areas @elseif ($user->sections->isNotEmpty())
@foreach ($user->sections as $section) {{ $section->name }} @endforeach
@else {{ \App\Models\User::locationOptions()[$user->location] ?? 'No sections' }} @endif
@if ($user->usesPinOnly()) {{ $user->hasPin() ? 'PIN only' : 'PIN needed' }} @else Email{{ $user->hasPin() ? ' + PIN' : '' }} @endif {{ $user->is_active ? 'Active' : 'Inactive' }}
@can('users.manage') @unless ($user->usesPinOnly()) @endunless
@csrf
@endcan
No users found.
{{ $users->links() }}
@csrf

This role signs in with a PIN only — no email or password.

@include('settings.users._access', ['sections' => $sections])
@endsection