@extends('layouts.public') @section('content') @php /** * Customer Notifications page — public layout with the account sidebar, mirroring the other * account pages (favorites, addresses, loyalty). The shared content partial does the work. */ @endphp

{{ t_raw('header.notifications') }}

@php /* The page's messages belong UNDER its title band, inside the page the reader is looking at — not floating above it. getFlashes() consumes, so the layout's own call further out finds nothing and does not draw it twice. */ @endphp
@partial('flash')
@partial('account-nav')
@partial('notifications-center', [ 'rows' => $rows ?? [], 'pager' => $pager ?? paginate(0, 20), 'unread' => $unread ?? 0, 'filter' => $filter ?? 'all', 'prefs' => $prefs ?? notification_prefs_defaults(), 'base' => '/account/notifications', 'role' => $role ?? 'customer', ])
@endsection