@extends('layouts.app') @section('title', 'Admin Dashboard') @section('content') @php $roleIcons = [ 'superadmin' => 'shield-lock', 'lecturer' => 'mortarboard', 'clinical_instructor' => 'clipboard2-pulse', 'student' => 'people', ]; $tone = fn (string $a) => match (true) { str_contains($a, 'delete') || str_contains($a, 'archive') => 'danger', str_contains($a, 'create') || str_contains($a, 'import') => 'success', str_contains($a, 'login') || str_contains($a, 'logout') => 'secondary', str_contains($a, 'impersonation') => 'warning', default => 'primary', }; @endphp
{{ now()->format('l, d F Y') }} — accounts, activity and things needing attention.
| Action | By | Description | When |
|---|---|---|---|
| {{ str_replace('_', ' ', $log->action) }} | {{ $log->user?->name ?? 'System' }} | {{ Str::limit($log->description, 70) }} | {{ $log->created_at?->diffForHumans(short: true) }} |
| No activity recorded yet. | |||