@extends('layouts.admin') @section('title', 'My Activity Logs') @section('content')

Activity History

{{ $isAdmin ? 'All User Activities' : 'My Activities' }}
@if($isAdmin)
@endif
@forelse($logs as $log) @empty @endforelse
Date & Time Action IP Address Device/Browser Status
{{ $log->timestamp->format('M d, Y') }}
{{ $log->timestamp->format('h:i A') }}
{{ ucfirst($log->action) }} @if($log->module)
{{ $log->module }} @endif
{{ $log->ip_address ?? 'N/A' }}
{{ Str::limit($log->user_agent ?? 'Unknown', 30) }}
@if($log->user && $log->user->name)
{{ $log->user->name }}
@endif
Success
No activity logs found for your account.
@if($logs->hasPages()) @endif
@endsection