@foreach($received_alerts as $alerts) @foreach($alerts as $alert) {{ date('d/m/Y',strtotime($alert->national_alert->start_time))}}
{{ date('h:i a',strtotime($alert->national_alert->start_time))}} @if($alert->national_alert->is_overdue() && $alert->status == App\Models\LocationReceivedAlert::$unactionedStatus)

Overdue - by {{$alert->national_alert->generateOverDueString()}}!
@elseif(count($alert->actions) == 0)

NEW @endif
@foreach($alert->actions as $key=>$action)
{{$action->user->initials}}
@if($key == 8)
+{{(count($alert->actions) - 7)}}
@break @endif @endforeach
{{$alert->national_alert->title}}
@if($alert->national_alert->class !== 'None') {{$alert->national_alert->class}} {{$alert->national_alert->showClassTitle($alert->national_alert->class)}} @endif

Action Within: {{$alert->national_alert->showActionWithinTitle()}} @if($alert->national_alert->type != 'None') Type: @if($alert->national_alert->type == 'Custom') {{$alert->national_alert->custom_type }} @else {{ $alert->national_alert->type }} @if($alert->national_alert->type == 'Company-Led Medicines Recall/Notification' || $alert->national_alert->type == 'Medicines Recall' ) @if($alert->national_alert->patient_level_recall)
Patient Level Recall @endif @endif @endif

@endif Originator(s): @foreach($alert->national_alert->originators as $o) @if($o->originator == 'Custom') {{$alert->national_alert->custom_originator}} @if(!$loop->last), @endif @else {{$o->originator}}@if(!$loop->last), @endif @endif @endforeach @endforeach @endforeach