@extends('web_site.layouts.master') @php($locale = app()->getLocale()) @section('content')

{{ trans('site.notifications.title') }}

{{ trans('site.notifications.title') }}

@if ($notifications->where('read_at', null)->isNotEmpty())
@csrf
@endif
@forelse ($notifications as $notification)
{{ data_get($notification->data, "title_$locale") ?? data_get($notification->data, 'title') }} {{ $notification->created_at?->diffForHumans() }}

{{ data_get($notification->data, "message_$locale") ?? data_get($notification->data, 'message') }}

@empty

{{ trans('site.notifications.empty') }}

@endforelse
{{ $notifications->links() }}
@endsection