@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