@if($notifications->isNotEmpty())
{!! \MoonShine\ActionButtons\ActionButton::make( label: 'Удалить все уведомления', url: route('notifications.all-delete'), ) ->withConfirm( 'Подтверждение', 'Удалить все уведомления?', 'Удалить', )->primary() !!}
@slot('thead') № Уведомление Кому Просмотрено @endslot @slot('tbody') @foreach($notifications as $notification) @php $data = json_decode($notification->data, true); @endphp {{ $loop->iteration }} {!! $data['message'] ?? 'Нет сообщения' !!} {{ $notification->user->email . ' - Баланс: ' . $notification->user->balance }} {{ $notification->read_at ? \Illuminate\Support\Carbon::parse($notification->read_at)->diffForHumans() : '-' }} @endforeach @endslot @if($notifications->hasPages()) {{ $notifications->links('panel.includes.pagination-donate') }} @endif @else

Уведомлений пока нет


@endif