{{ $activityTitle }}
{{ optional($activity->created_at)->format('d M Y · h:i A') }}
Routing:
{{-- =================================================
FILE FLOW ROUTING
================================================== --}}
@if ($fileFlow)
{{-- From User --}}
{{ $fromUser ?? 'Unknown User' }}
{{-- From Seat --}}
@if ($fromSeat)
({{ $fromSeat }})
@endif
→
{{-- To User --}}
{{ $toUser ?? 'Unknown User' }}
{{-- To Seat --}}
@if ($toSeat)
({{ $toSeat }})
@endif
{{-- =================================================
SUBMITTED WITHOUT FILE FLOW
================================================== --}}
@elseif(str_contains($activityName, 'submitted'))
Public Portal
→
{{ optional($application->targetOffice)->name ?? (optional($application->office)->name ?? 'Receiving Office') }}
{{-- =================================================
NORMAL ACTIVITY WITHOUT FILE FLOW
================================================== --}}
@elseif($activity->user || $activity->seat)
@if ($activity->user)
{{ $activity->user->name }}
@endif
@if ($activity->seat)
@if ($activity->user)
({{ $activity->seat->name }})
@else
{{ $activity->seat->name }}
@endif
@endif
{{-- =================================================
SYSTEM ACTIVITY
================================================== --}}
@else
System
@endif
{{-- =================================================
APPLICATION ACTIVITY DESCRIPTION
================================================== --}}
{{--
ALWAYS show the activity description here.
This must NOT be replaced by FileFlow comment.
--}}
@if (!empty($activityEventNote))
"{{ $activityEventNote }}"
"{{ $fileFlowComment }}"