@php $notifications = []; $unreadNotifications = auth()->user()->unreadNotifications; foreach ($unreadNotifications as $notification) { $notifications[] = [ 'title' => $notification->data['data']['title'], 'message' => $notification->data['data']['message'], 'link' => $notification->data['data']['link'], 'unread' => true, 'id' => $notification->id, ]; } $trigger_class = @twMerge('size-6 max-lg:size-10 max-lg:border max-lg:dark:bg-white/[3%]', $attributes->get('class:trigger')); @endphp
withoutTwMergeClasses()->twMerge('notifications-wrap group hidden md:flex') }} x-data="notifications({{ json_encode($notifications) }})" x-init="$store.notifications.setNotifications(notifications)" :class="{ 'has-unread': $store.notifications.hasUnread() }" > twMergeFor('dropdown', 'notifications-dropdown') }} anchor="end" offsetY="26px" >

{{ trans('Notifications') }} {{ trans('Mark All As Read') }}

{{ trans("There's No Notifications") }}