@extends('admin.layouts.app') @section('title', 'Activity Logs') @section('page-title', 'Activity Logs') @section('content')
| Date | User | Action | Description | IP Address |
|---|---|---|---|---|
| {{ $log->created_at->format('M d, Y H:i:s') }} | @if($log->user) {{ $log->user->name }} ({{ $log->user->roles->first()?->name }}) @else System @endif | @switch($log->action) @case('create') Created @break @case('update') Updated @break @case('delete') Deleted @break @case('login') Login @break @case('logout') Logout @break @default {{ $log->action }} @endswitch | {{ $log->description }} | {{ $log->ip_address ?? 'N/A' }} |
| No activity logs found. | ||||