@extends('layouts.dash') @section('title', 'Notifications') @section('content')

Notifications

Broadcast notices to users (dashboard + homepage).

{{ $n->exists ? 'Edit' : 'New' }} Notice
@csrf @if($n->exists) @method('PATCH') @endif
@if($n->exists)
@endif
@if($n->exists)Cancel@endif
All Notices ({{ $list->count() }})
@forelse($list as $x) @php $bg = ['success' => 'bg-green', 'warning' => 'bg-amber', 'error' => 'bg-red'][$x->type] ?? 'bg-sky'; @endphp
{{ $x->title }}{{ $x->created_at->diffForHumans() }}
{{ \Illuminate\Support\Str::limit($x->message, 160) }}
{!! badge($x->type, 'info') !!} {!! badge($x->status) !!}{{ $x->target }} Edit
@csrf @method('DELETE')
@empty
No notices yet
@endforelse
@endsection