@extends('layouts.admin_app') @section('title','View All National Alerts') @section('content') @if(Session::has('success_message'))
| Date | Alert | Uploaded Docs | Send To: | Class | Actions |
|---|---|---|---|---|---|
|
{{ date('d/m/Y',strtotime($nationalAlert->start_time))}} {{ date('h:i a',strtotime($nationalAlert->start_time))}} @if(time() < strtotime($nationalAlert->start_time)) Scheduled @endif
|
{{ $nationalAlert->title }} @if($nationalAlert->type == 'Custom') {{ $nationalAlert->type }} ({{$nationalAlert->custom_type }}) @else {{ $nationalAlert->type }} @endif @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 {{ $nationalAlert->summary }} |
@foreach($nationalAlert->documents as $doc)
{{$doc->document->original_file_name()}} @endforeach |
Countries: @if($nationalAlert->send_to_all_countries) All @else {{$nationalAlert->countries->implode('country', ', ')}} @endif Designations: @if($nationalAlert->send_to_all_designations) All @else @foreach($nationalAlert->designations as $d) {{$d->position->name}}@if(!$loop->last), @endif @endforeach @endif @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: @if($nationalAlert->send_to_all_head_offices) All @else @foreach($nationalAlert->head_offices as $d) {{$d->head_office->name()}} @if(!$loop->last), @endif @endforeach @endif @elseif($nationalAlert->send_to_head_offices_or_location == 'locations') Locations: @if($nationalAlert->send_to_all_locations) All @else @foreach($nationalAlert->locations as $d) {{$d->location->short_name()}}@if(!$loop->last), @endif @endforeach @endif @endif |
Class: {{$nationalAlert->class}} {{\App\Models\NationalAlert::showClassTitle($nationalAlert->class)}} Action Within: {{$nationalAlert->showActionWithinTitle()}} |
|