@extends('layouts.app', [ 'title' => trans('notifications.index.title'), 'description' => trans('notifications.index.description'), 'breadcrumbs' => [ ['url' => route('notifications'), 'label' => trans('notifications.index.title')] ] ]) @section('content') @include('partials.errors')
@foreach ($r = Auth::user()->notifications()->paginate() as $notification) @endforeach
@if (!empty($notification->data['icon'])) {!! trans('notifications.' . $notification->data['key'], $notification->data['params']) !!} @else

{!! trans('notifications.' . $notification->data['key'] . '.body')!!}

@endif {{ $notification->created_at->diffForHumans() }}
{!! $r->links() !!} @if (Auth::user()->notifications()->count() == 0)

{{ trans('notifications.no_notifications') }}

@endif
@endsection