@extends('layouts.head_office_app') @section('title', 'View Patient Safety Alert') @section('content')

Back

{{$alert->date_with_year()}}

{{$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

Originators: @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

{{$alert->national_alert->summary}}

@if(!empty($alert->national_alert->suggested_actions))

Suggested Actions
{{$alert->national_alert->suggested_actions}}

@endif

@if($alert->national_alert->is_overdue() && $alert->status == App\Models\LocationReceivedAlert::$unactionedStatus)

Overdue - by {{$alert->national_alert->generateOverDueString()}}!
@endif

Attachments
@if(count($alert->national_alert->documents) == 0) No attachments are added@endif @foreach($alert->national_alert->documents as $doc) {{$doc->document->original_file_name()}}
@endforeach

@if($alert->status == 'unapproved' && $alert->has_child_alert() == 0 && $headOffice->holding_area_on ) Edit Alert (before approving) @elseif($alert->national_alert->created_by == 'head_office') Edit Alert @endif Archive

@endsection @section('styles') @endsection @section('scripts') @endsection