{{--
User profile — docs/wireframes-v12/view-user.html, content region for content
region, minus everything CR-13 §0 removes.
v12's order, top to bottom: a profile header card (64px initials circle, the
name, a badge row, and the action buttons on the right), a `.grid-2` of two
detail cards, an Assigned Permissions card, and a `.grid-2` holding Recent
Activity and Performance Summary.
## Deliberate differences from the wireframe
* **The "Reset Password" button is gone** (decision D2; line 92). The
client's edit-password rule makes the edit form's optional password
fields the one mechanism, and a second writer of the same column is
exactly what that decision avoids.
* **Delete is NOT on this page**, because v12 does not draw it here. It
lives on the listing row, where the wireframe's own action group is.
* **The Account Details card loses two rows** — Username (client, §0.3;
line 143) and Two-Factor Auth (client, §0.5; line 167) — and **Failed
Login Attempts** goes with them (decision D4; line 171), because nothing
counts them. Five rows are left and every one of them is real.
* **The Assigned Permissions grid is this application's own permissions**
(decision D5): all thirty-two entries of
RolePermissionSeeder::PERMISSIONS, in the seeder's order, each ticked or
crossed by asking `$user->can()`. v12's sixteen checkboxes name features
NREMS does not have ("Manage Visits", "Export Data"), and a grid of
labels nothing could ever grant would be furniture. Asking the GATE
rather than reading the pivot is what makes a Super Admin show every box
ticked while holding no permission at all — which is the truth about
what they can do.
* **Recent Activity is real spatie rows** the user CAUSED, newest first,
capped at ten. v12's six entries are mock-ups, and they are prose over a
log that stores an event, a subject and a properties bag — so this
renders those three things and fabricates no sentence.
* **Performance Summary draws THREE tiles, not four.** "Revenue Generated"
is removed (financials are excluded by a standing client rule) and the
fourth cell is left empty rather than filled with a metric invented to
occupy it. The "This month" / "Above avg" trend lines go too: they name
periods nothing computes, and these values are all-time.
Every blank is an em-dash, which is this application's blank.
--}}
@extends('layouts.app')
@section('title', __('users.show_title', ['name' => $user->name]))
@section('breadcrumbs')
{{ __('users.show.no_activity') }}
@else {{-- Composed here rather than in the controller because it is *wording*, and the controller hands over four facts per row: the formatted time, the log's event name, the description spatie wrote, and the subject's code where the subject has one. No sentence is invented. An event this application names — the three HasAudit writes plus the module events CR-9, CR-12 and CR-13 log by hand — reads as its lang string; anything else degrades to the raw word, and to the raw DESCRIPTION when even that is empty, because a timeline entry with no sentence is a dot with nothing beside it. Both are escaped like everything else here. --}}