@if($notifications->isEmpty())
No notifications found.
@else
| Title |
Type |
End Date |
Content |
Employees |
Actions |
@foreach($notifications as $notification)
| {{ $notification->title }} |
{{ ucfirst($notification->type) }}
|
{{ $notification->end_date ? $notification->end_date : 'N/A' }} |
@if($notification->content)
{{ $notification->content }}
@endif
@if($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
|
|
@endforeach
@endif