@extends('layouts.app') @section('title', 'Activity Log') @section('page-title', 'Activity Log') @section('content')
Complete audit trail of all system actions
| User | Role | Action | Description | Subject | IP Address | Timestamp |
|---|---|---|---|---|---|---|
|
|
@php $roleColors = ['super_admin'=>'danger','manager'=>'primary','sales_rep'=>'success']; $roleLabels = ['super_admin'=>'Super Admin','manager'=>'Manager','sales_rep'=>'Sales Rep']; $rc = $roleColors[$log->user_role] ?? 'secondary'; @endphp {{ $roleLabels[$log->user_role] ?? $log->user_role }} |
{{ $log->action_label }}
|
{{ $log->description }} | @if($log->subject_label) @if($log->subject_type === 'Lead' && $log->subject_id) {{ $log->subject_label }} @else {{ $log->subject_label }} @endif @else — @endif | @if($log->ip_address) {{ $log->ip_address }} @else — @endif |
{{ $log->created_at->format('M d, Y') }}
{{ $log->created_at->format('H:i:s') }}
|
Showing {{ $logs->firstItem() }}–{{ $logs->lastItem() }} of {{ $logs->total() }}
{{ $logs->links('pagination::bootstrap-5') }}Try adjusting your filters.