@extends('layouts.admin_app') @section('title','View National Alert') @section('content')
| Date | {{ date('d/m/Y',strtotime($nationalAlert->start_time))}} {{ date('h:i a',strtotime($nationalAlert->start_time))}} |
|---|---|
| Title | {{ $nationalAlert->title }} |
| Type | @if($nationalAlert->type == 'Custom') {{ $nationalAlert->type }} ({{$nationalAlert->custom_type }}) @else {{ $nationalAlert->type }} @endif |
| Originator | @foreach($nationalAlert->originators as $o) @if($o->originator == 'Custom') {{$o->originator}} ({{$nationalAlert->custom_originator}})@if(!$loop->last), @endif @else {{$o->originator}}@if(!$loop->last), @endif @endif @endforeach |
| Class | {{$nationalAlert->class}} {{\App\Models\NationalAlert::showClassTitle($nationalAlert->class)}} |
| Action Within | {{$nationalAlert->showActionWithinTitle()}} |
| Summary | {{ $nationalAlert->summary }} |
| Suggested Actions | {{ $nationalAlert->suggested_actions }} |
| Send to Countries | @if($nationalAlert->send_to_all_countries) All @endif {{$nationalAlert->countries->implode('country', ', ')}} |
| Send to Designation | @if($nationalAlert->send_to_all_designations) All @endif @foreach($nationalAlert->designations as $d) {{$d->position->name}}@if(!$loop->last), @endif @endforeach |
| Send to Head Office / Locations |
@if($nationalAlert->send_to_head_offices_or_location == 'all')
Head Offices: All Locations: All @elseif($nationalAlert->send_to_head_offices_or_location == 'head_offices') Head Offices: @foreach($nationalAlert->head_offices as $d) {{$d->head_office->name()}} @if(!$loop->last), @endif @endforeach @elseif($nationalAlert->send_to_head_offices_or_location == 'locations') Locations: @foreach($nationalAlert->locations as $d) {{$d->location->short_name()}}@if(!$loop->last), @endif @endforeach @endif |
| Patient Level Recall | {{$nationalAlert->patient_level_recall?'Yes':'No'}} |
| Scheduled |
@if($nationalAlert->schedule_later == 'no')
No
@else
{{ date('d/m/Y',strtotime($nationalAlert->start_time))}} {{ date('h:i a',strtotime($nationalAlert->start_time))}} @if(time() < strtotime($nationalAlert->start_time)) Scheduled @endif
@endif
|
| Uploaded Docs |
@foreach($nationalAlert->documents as $doc)
{{$doc->document->original_file_name()}} @endforeach |