@extends('layouts.app') @section('title', 'Agents') @push('styles') @endpush @section('content')
An agent is a staff member designated as the person responsible for a location — its stock, its dispatch, its riders. Every location should have one primary agent.
| Agent | Role | Location | Status | Actions |
|---|---|---|---|---|
|
{{ strtoupper(substr($staff->user->name ?? 'U', 0, 1)) }}
{{ $staff->user->name ?? '—' }}
@if($staff->is_location_primary)
Primary
@endif
{{ $staff->user->email ?? '' }}{{ $staff->title ? ' · ' . $staff->title : '' }}
|
@if($staff->customRole) {{ $staff->customRole->name }} @else {{ ucfirst($staff->role ?? 'viewer') }} @endif | {{ $staff->location->name ?? '—' }} | {{ $staff->is_active ? 'Active' : 'Inactive' }} |
No agents assigned yet.
Assign your first agent