@extends('layouts.app') @section('title', 'Notifications') @section('crumbs', '๐Ÿ”” Notifications') @section('content')
๐Ÿ“Œ My Tasks ({{ count($tasks) }})live ยท approvals + overdue + expiries
@if(!count($tasks))
Nothing needs you right now. โœ…
@endif @foreach($tasks as $t) {{ $t['icon'] }} {{ $t['label'] }} {{ $t['sub'] }} @endforeach
Unread ({{ $unread->count() }}) @if($unread->count())
@csrf
@endif
@if(!$unread->count())
All caught up. ๐ŸŽ‰
@endif @foreach($unread as $n) {{ $n->data['icon'] ?? '๐Ÿ””' }} {{ $n->data['title'] ?? $n->type }} {{ $n->data['body'] ?? '' }} {{ $n->created_at->diffForHumans() }} @endforeach
@if($read->count())
Recently read
@foreach($read as $n) {{ $n->data['icon'] ?? '๐Ÿ””' }} {{ $n->data['title'] ?? $n->type }} {{ $n->created_at->diffForHumans() }} @endforeach
@endif @endsection