@extends('layouts.app') @section('title', 'Activity Details - EDUC Pharmacy') @section('content')
Detailed information about this activity
| Date & Time: |
{{ $activityLog->created_at->format('M d, Y H:i:s') }} {{ $activityLog->time_ago }} |
| User: |
@if($activityLog->user)
{{ strtoupper(substr($activityLog->user->name, 0, 1)) }}
{{ $activityLog->user->name }}
{{ $activityLog->user->email }}
|
| Action: | {{ ucfirst($activityLog->action) }} |
| Description: | {{ $activityLog->description ?? '-' }} |
| Subject Type: | {{ $activityLog->subject_type ? class_basename($activityLog->subject_type) : '-' }} |
| Subject ID: | {{ $activityLog->subject_id ?? '-' }} |
| IP Address: | {{ $activityLog->ip_address ?? '-' }} |
| User Agent: | {{ $activityLog->user_agent ?? '-' }} |
Other activities by {{ $activityLog->user->name }}:
@php $relatedActivities = \App\Models\ActivityLog::where('user_id', $activityLog->user_id) ->where('id', '!=', $activityLog->id) ->latest() ->take(5) ->get(); @endphp @if($relatedActivities->count() > 0)No other activities found.
@endif @elseNo user information available.
@endif