diff --git a/resources/views/components/mobile-footer.blade.php b/resources/views/components/mobile-footer.blade.php new file mode 100644 index 0000000..f214b2f --- /dev/null +++ b/resources/views/components/mobile-footer.blade.php @@ -0,0 +1,26 @@ +@php + $tabs = [ + ['label' => 'Prices', 'icon' => 'lucide:fuel', 'route' => 'home'], + ['label' => 'Alerts', 'icon' => 'lucide:bell', 'route' => null], + ['label' => 'Forecourts', 'icon' => 'lucide:map-pin', 'route' => null], + ['label' => 'Trends', 'icon' => 'lucide:trending-up','route' => null], + ]; + $currentRoute = request()->routeIs('home') ? 'home' : null; +@endphp + + + + @foreach ($tabs as $tab) + @php + $isActive = $tab['route'] && $currentRoute === $tab['route']; + $colour = $isActive ? 'text-[#bb5b3e]' : 'text-[#89726c]'; + @endphp + + + + {{ $tab['label'] }} + + + @endforeach + + diff --git a/resources/views/components/mobile-header.blade.php b/resources/views/components/mobile-header.blade.php new file mode 100644 index 0000000..b6da3a6 --- /dev/null +++ b/resources/views/components/mobile-header.blade.php @@ -0,0 +1,17 @@ + + + + + + FuelAlert + + @auth + + + + @else + + + + @endauth +