@extends('layouts.admin') @section('title', 'Notifikasi') @section('content')

Notifikasi

Kelola notifikasi Anda

@if($notifications->total() > 0)
@csrf @method('PATCH')
@endif
@if($errors->any()) @foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif @if(session('success')) {{ session('success') }} @endif
@if($notifications->count() > 0)
@foreach($notifications as $notification)

{{ $notification->title }}

{{ ucfirst($notification->type) }} @if(!$notification->read_at) @endif

{{ $notification->message }}

{{ $notification->created_at->format('d M Y H:i') }}

@if(!$notification->read_at)
@csrf @method('PATCH')
@endif @if($notification->url) Lihat @endif
@endforeach
{{ $notifications->links() }}
@else @endif
@endsection