@extends('admin.layout') @section('title') Notifications @endsection @section('content')

Notifications

@if($notifications->isEmpty())

No notifications found.

@else @foreach($notifications as $notification) @endforeach
Title Type End Date Content Employees Actions
{{ $notification->title }}
{{ ucfirst($notification->type) }}
{{ $notification->end_date ? $notification->end_date : 'N/A' }} @if($notification->content)

{{ $notification->content }}

@endif @if($notification->image) Notification Image @endif
@if($notification->for_all_employees)

All Employees

@else @if($notification->employees->isEmpty()) No Employees @else @foreach($notification->employees as $employee)

{{ $employee->name }}

@endforeach @endif @endif
@endif
@endsection @section('script') @endsection