@extends('layouts.app') @section('title', 'Activity Logs') @section('page', 'Activity Logs') @section('content')

Activity Logs

Track all user actions across the system

Add Log
Clear
@csrf
@forelse($logs as $log) @empty @endforelse
Time User Action Description IP Address Actions
{{ $log->created_at->diffForHumans() }}
{{ $log->created_at->format('M d, Y h:i A') }}
@if($log->user)
{{ substr($log->user->name, 0, 2) }}
{{ $log->user->name }}
@else System @endif
@php $actionColors = [ 'created' => ['bg' => 'bg-emerald-500/10', 'text' => 'text-emerald-400', 'icon' => 'fa-plus-circle'], 'updated' => ['bg' => 'bg-blue-500/10', 'text' => 'text-blue-400', 'icon' => 'fa-pen'], 'deleted' => ['bg' => 'bg-red-500/10', 'text' => 'text-red-400', 'icon' => 'fa-trash'], 'logged_in' => ['bg' => 'bg-purple-500/10', 'text' => 'text-purple-400', 'icon' => 'fa-right-to-bracket'], 'logged_out' => ['bg' => 'bg-amber-500/10', 'text' => 'text-amber-400', 'icon' => 'fa-right-from-bracket'], ]; $color = $actionColors[$log->action] ?? ['bg' => 'bg-slate-500/10', 'text' => 'text-slate-400', 'icon' => 'fa-circle']; @endphp {{ ucfirst(str_replace('_', ' ', $log->action)) }} {{ Str::limit($log->description, 80) }} @if($log->properties) @endif {{ $log->ip_address ?? '-' }}
@csrf @method('DELETE')

No activity logs found

@if($logs->hasPages())
{{ $logs->withQueryString()->links() }}
@endif
@endsection