@extends('backend.layouts.app') @section('title', @$data['title']) @section('style') @endsection @section('content') {!! breadcrumb([ 'title' => @$data['title'], route('admin.dashboard') => _trans('common.Dashboard'), '#' => @$data['title'], ]) !!}
@forelse ($data['notifications'] as $notification) @php $sender = App\Models\User::find($notification->sender_id); $unseenClass = $notification->seen ? "" : "unseen"; @endphp @empty @endforelse
{{ _trans('common.Message') }} {{ _trans('common.Created At') }} {{ _trans('common.Seen At') }}

{!! @$notification->message !!}

{{ @$notification->created_at->diffForHumans() }}
{{ $notification->seen_at ? \Carbon\Carbon::parse($notification->seen_at)->diffForHumans() : '' }}
{{-- Show pagination --}}
{{ $data['notifications']->links() }}
@endsection @section('script') @include('backend.partials.table_js') @endsection