@extends('admin.admin_dashboard') @section('title', 'Activity Logs') @section('customcss') @endsection @section('admin')
Filter
Clear
Activity Log List
@forelse ($logs as $key => $log) @php $props = $log->properties ?? []; $type = $props['type'] ?? 'Info'; $badgeClass = match ($type) { 'Success' => 'badge-success', 'Error' => 'badge-error', 'Warning' => 'badge-warning', default => 'badge-info' }; @endphp @empty @endforelse
# Activity Type Activity URL Activity By Activity At Action
{{ $logs->firstItem() + $key }} {{ $type }} {{ $log->description }} {{ $props['url'] ?? 'N/A' }} {{ $log->causer->name ?? 'System' }} {{ \Carbon\Carbon::parse($log->created_at )->timezone('Asia/Dhaka')->format('d-m-Y h:i:s A') }}
@csrf @method('DELETE')
No activity logs found.
Displaying {{ $logs->firstItem() }}–{{ $logs->lastItem() }} of {{ $logs->total() }}
{{ $logs->onEachSide(1)->links('pagination::bootstrap-5') }}
@endsection