@extends('layouts.location_app') @section('title', 'View Patient Safety Alert') @section('content') @if(request()->query('success'))
{{request()->query('success')}}
@endif @if(request()->query('error'))
{{request()->query('error')}}
@endif

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) action() && !$alert->document_is_read) onclick="makeAttachmentRead({{$alert->id}})" @endif href="{{route('location.view.attachment', $doc->document->unique_id).$doc->document->extension()}}" target="_blank">{{$doc->document->original_file_name()}}
@endforeach

What have you done about this alert?
@if(!$alert->action() || ($alert->action() && $alert->canEditAndDelete())) @endif

Staff Actions

Read Alert
@foreach(\App\Models\LocationReceivedAlert::actionsBasedOnType($alert->id,'read_alert') as $action)
{{$action->user->initials}}
@endforeach @foreach($alert->quickLoginsWhoReadTheAlert() as $quicklogin)
{{$quicklogin->user->initials}}
@endforeach
Taken Action
@if(count(\App\Models\LocationReceivedAlert::actionsBasedOnType($alert->id,'read_and_taken_action'))) @foreach(\App\Models\LocationReceivedAlert::actionsBasedOnType($alert->id,'read_and_taken_action') as $action)
{{$action->user->initials}}
@include('location.patient_safety_alerts.taken_action') @endforeach @endif

Not rel
@if(count(\App\Models\LocationReceivedAlert::actionsBasedOnType($alert->id,'not_relevant_to_my_practice'))) @foreach(\App\Models\LocationReceivedAlert::actionsBasedOnType($alert->id,'not_relevant_to_my_practice') as $action)
{{$action->user->initials}}
@endforeach @endif


Statistics

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