From 6fdb64bc9f19e17d74264dd3028990dfa723b852 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 3 Jul 2026 22:41:00 +0000 Subject: [PATCH] Sync mobile notification badge and dashboard icon-link partials. Align mobile unread badge with desktop and add plus icon support for panel actions. --- .../partials/mobile-bottom-nav.blade.php | 14 +++++++------ .../views/partials/mobile-icon-link.blade.php | 8 +++++++- resources/views/qr/dashboard.blade.php | 20 +++++++++++++++---- 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/resources/views/partials/mobile-bottom-nav.blade.php b/resources/views/partials/mobile-bottom-nav.blade.php index 5fbdf50..a308a67 100644 --- a/resources/views/partials/mobile-bottom-nav.blade.php +++ b/resources/views/partials/mobile-bottom-nav.blade.php @@ -57,12 +57,14 @@ }, }" @endif - class="relative flex flex-col items-center justify-center gap-1 px-2 py-2 transition hover:text-slate-900 {{ $navActive($notificationsActive ?? false) }}"> - - @if ($unreadUrl) - - @endif + class="flex flex-col items-center justify-center gap-1 px-2 py-2 transition hover:text-slate-900 {{ $navActive($notificationsActive ?? false) }}"> + + + @if ($unreadUrl) + + @endif + Notifications diff --git a/resources/views/partials/mobile-icon-link.blade.php b/resources/views/partials/mobile-icon-link.blade.php index b1a96c4..152c58f 100644 --- a/resources/views/partials/mobile-icon-link.blade.php +++ b/resources/views/partials/mobile-icon-link.blade.php @@ -2,14 +2,20 @@ $icon = $icon ?? 'arrow'; $desktopClass = $desktopClass ?? 'text-xs font-medium text-indigo-600 hover:text-indigo-700'; $label = $label ?? ''; + $extraAttributes = $attributes ?? ''; @endphp - @if ($icon === 'shield') + @if ($icon === 'plus') + + @elseif ($icon === 'shield') diff --git a/resources/views/qr/dashboard.blade.php b/resources/views/qr/dashboard.blade.php index 68ed5a4..d051ebb 100644 --- a/resources/views/qr/dashboard.blade.php +++ b/resources/views/qr/dashboard.blade.php @@ -2,9 +2,16 @@ Overview @php $fmt = fn ($m) => 'GHS '.number_format($m / 100, 2); @endphp
-
-

QR Plus

-

Dynamic utility QR codes — links, WiFi, business pages & more.

+
+
+

QR Plus

+ +
+ @include('partials.mobile-header-btn', [ + 'href' => route('events.create'), + 'label' => 'Create code', + 'variant' => 'indigo', + ])
@@ -23,7 +30,12 @@

Recent codes

-
Create code + @include('partials.mobile-icon-link', [ + 'href' => route('events.create'), + 'label' => 'Create code', + 'icon' => 'plus', + 'desktopClass' => 'text-sm font-medium text-indigo-600 hover:text-indigo-800', + ])
@if($recentCodes->isEmpty())

No QR codes yet. Create your first code.