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

Notifications

Back
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
Please fix the following:
@endif
Post a Notification
@csrf
@foreach($notifications as $n) @endforeach
Type Data Status Action
{{ $n->type }} @if($n->type === 'user_news')
{{ $n->data['title'] ?? '—' }}
{{ $n->data['message'] ?? '—' }}
@else
{{ json_encode($n->data, JSON_PRETTY_PRINT) }}
@endif
@if($n->read_at) Read @else New @endif @if(! $n->read_at)
@csrf
@else @endif
{{ $notifications->links() }}
@endsection