@extends('layouts.app') @section('content')

Activity Logs

Clinical actions and patient timeline

Patient Timeline

Showing {{ $activityLogs->count() }} recent activities
@if($activityLogs && $activityLogs->count() > 0)
@foreach($activityLogs as $log)
{{ $log->patient_initials ?? substr($log->patient_name, 0, 2) }}

{{ $log->description }}

{{ $log->patient_name }} @if($log->reference_number) {{ $log->reference_number }} @endif

@if($log->details)

{{ $log->details }}

@endif

{{ $log->performed_at->format('M j, g:i A') }} {{ $log->time_since }} @if($log->performed_by) {{ $log->performed_by }} @endif

@if($log->status)
{{ $log->status }}
@endif
@endforeach
@else

No activity recorded yet

@endif
{{ $stats['approved'] ?? 0 }}
Approved
{{ $stats['pending'] ?? 0 }}
Pending
{{ $stats['completed'] ?? 0 }}
Completed
{{ $stats['cancelled'] ?? 0 }}
Cancelled
@endsection