| {{ __('Staff member') }} | {{ __('Role') }} | {{ __('API key') }} | {{ __('API orders') }} | {{ __('Last active') }} | {{ __('Action') }} |
|---|---|---|---|---|---|
|
{{ $row->name }}
{{ $row->email }}
|
{{-- Role --}}
{{ __(ucwords(str_replace('_', ' ', $row->roles->first()?->name ?? ($row->is_super ? 'super admin' : '—')))) }} | {{-- Key status --}}
@if ($row->api_key_hash)
•••• {{ strtoupper(substr($row->api_key_hash, -8)) }}
@else
{{ __('No key yet') }}
@endif
|
{{-- Orders placed via API --}}
@if ($row->api_orders_count > 0) {{ number_format($row->api_orders_count) }} @else — @endif | {{-- Last active (proxied from last API order) --}}@if ($row->api_last_used) {{ \Carbon\Carbon::parse($row->api_last_used)->diffForHumans() }} @else {{ __('Never used') }} @endif | {{-- Actions --}}
@if ($row->api_key_hash)
|