@extends('layouts.admin-simple') @section('title', 'Activity Logs') @section('page-title', 'Activity Logs') @section('breadcrumb')
| Date & Time | User | Action | Description | IP Address | Details |
|---|---|---|---|---|---|
|
{{ $activity->created_at->format('M d, Y') }}
{{ $activity->created_at->format('H:i:s') }}
|
@if($activity->user)
{{ $activity->user->full_name ?? $activity->user->name }}
{{ $activity->user->email }}
@else
System
@endif
|
@php $actionClass = match(true) { str_contains($activity->action, 'created') => 'badge-soft-success', str_contains($activity->action, 'updated') => 'badge-soft-info', str_contains($activity->action, 'deleted') => 'badge-soft-danger', str_contains($activity->action, 'login') => 'badge-soft-primary', str_contains($activity->action, 'logout') => 'badge-soft-warning', default => 'badge-soft-secondary' }; @endphp {{ ucwords(str_replace('_', ' ', $activity->action)) }} | {{ $activity->description }} | {{ $activity->ip_address ?? '-' }} | @if($activity->properties && count($activity->properties) > 0) @else - @endif |
|
history
No activity logs found@if(request()->hasAny(['user_id', 'action', 'from_date', 'to_date', 'search'])) Try adjusting your filter criteria. @else Activity logs will appear here as users interact with the system. @endif |
|||||