@extends('admin.layouts.main') @section('menu','System') @section('title','Activity Log') @section('content')
| Date | User | Action | Subject | Description | IP Address |
|---|---|---|---|---|---|
| {{ $log->created_at->format('M d, Y H:i') }} | @if($log->user) {{ $log->user->first_name }} {{ $log->user->last_name }} @else System @endif | @php $actionColors = [ 'created' => 'success', 'updated' => 'info', 'deleted' => 'danger', 'cancelled' => 'warning', 'marked_paid' => 'success', 'refunded' => 'warning', 'login' => 'info', 'logout' => 'default', 'login_failed' => 'danger', 'registered' => 'success', 'password_changed' => 'warning', 'profile_updated' => 'info', 'impersonated' => 'warning', 'whois_search' => 'default', 'email_sent' => 'info', 'sms_sent' => 'info', 'payment_success' => 'success', 'payment_failed' => 'danger', ]; $color = $actionColors[$log->action] ?? 'default'; @endphp {{ ucfirst(str_replace('_', ' ', $log->action)) }} | @if($log->subject_type) {{ class_basename($log->subject_type) }} #{{ $log->subject_id }} @else - @endif | {{ $log->description }} | {{ $log->ip_address }} |
| No activity logs found. | |||||