@extends('admin.layouts.main') @section('content')

{{ trans('messages.Notifications') }}

@foreach ($notifications as $key => $notification) @endforeach
# {{ trans('messages.Title') }} {{ trans('messages.Body') }} {{ trans('messages.Action') }} {{ trans('messages.topic') }} {{ trans('messages.user') }} {{ trans('messages.created_at') }}
{{ $key + 1 + ($notifications->currentPage() - 1) * $notifications->perPage() }} {{ $notification->title }} {{ $notification->body }} {{ $notification->action }} {{ $notification->topic ? trans('messages.All subscribers of') . ' ' . $notification->topic : trans('messages.User Notification') }} {{ $notification->user->name ?? trans('messages.Topic Notification') }} {{ $notification->created_at }}
{!! $notifications->withQueryString()->links('pagination::bootstrap-4') !!}
@endsection