{{ $log->created_at->setTimezone('Africa/Cairo')->format('h:i a') }}
{{ json_decode($log->description) }}
@if ($log->action)
-
{{--
{{ $log->action?->subject }}
--}}
@php
$routeName = strtolower(class_basename($log->action_type)) . 's.index';
@endphp
@if (Route::has($routeName))
@if ($log->action_type == 'App\Models\Task')
{{ $log->action?->title }}
@else
{{ $log->action?->subject }}
@endif
@elseif($log->action?->subject)
{{ $log->action?->subject }}
@elseif($log->related?->assigned_to)
{{ $log->related?->first_name }}
@endif
@endif
by {{ $log->user->full_name }}
{{ $log->created_at->format('F d, Y') }}