@php $cmsLinks = [ ['route' => 'admin.cms.page', 'params' => ['page' => 'home'], 'label' => 'Home page', 'match' => 'home', 'icon' => 'fa-house'], ['route' => 'admin.cms.page', 'params' => ['page' => 'about'], 'label' => 'About', 'match' => 'about', 'icon' => 'fa-building'], ['route' => 'admin.cms.page', 'params' => ['page' => 'technology'], 'label' => 'Technology', 'match' => 'technology', 'icon' => 'fa-microchip'], ['route' => 'admin.cms.page', 'params' => ['page' => 'management'], 'label' => 'Our management', 'match' => 'management', 'icon' => 'fa-user-tie'], ['route' => 'admin.cms.team', 'params' => [], 'label' => 'Leadership & team', 'match' => null, 'icon' => 'fa-users'], ['route' => 'admin.cms.clientele', 'params' => [], 'label' => 'Clientele logos', 'match' => null, 'icon' => 'fa-handshake'], ['route' => 'admin.cms.media', 'params' => [], 'label' => 'Media library', 'match' => null, 'icon' => 'fa-images'], ['route' => 'admin.cms.page', 'params' => ['page' => 'clientele-page'], 'label' => 'Clientele page', 'match' => 'clientele-page', 'icon' => 'fa-users-rectangle'], ['route' => 'admin.cms.locations', 'params' => [], 'label' => 'Our Locations', 'match' => null, 'icon' => 'fa-location-dot'], ['route' => 'admin.cms.page', 'params' => ['page' => 'coverage'], 'label' => 'Coverage page', 'match' => 'coverage', 'icon' => 'fa-map'], ['route' => 'admin.cms.page', 'params' => ['page' => 'services-index'], 'label' => 'Logistics services', 'match' => 'services-index', 'icon' => 'fa-truck-fast'], ['route' => 'admin.cms.page', 'params' => ['page' => 'career'], 'label' => 'Careers page', 'match' => 'career', 'icon' => 'fa-briefcase'], ['route' => 'admin.cms.careers', 'params' => [], 'label' => 'Open roles', 'match' => null, 'icon' => 'fa-clipboard-list'], ['route' => 'admin.cms.page', 'params' => ['page' => 'franchise'], 'label' => 'Franchise', 'match' => 'franchise', 'icon' => 'fa-store'], ['route' => 'admin.cms.page', 'params' => ['page' => 'contact'], 'label' => 'Contact us', 'match' => 'contact', 'icon' => 'fa-envelope'], ['route' => 'admin.cms.page', 'params' => ['page' => 'quote'], 'label' => 'Get a Quote', 'match' => 'quote', 'icon' => 'fa-file-invoice'], ['route' => 'admin.cms.page', 'params' => ['page' => 'pickup'], 'label' => 'Schedule Pickup', 'match' => 'pickup', 'icon' => 'fa-calendar-check'], ['route' => 'admin.cms.page', 'params' => ['page' => 'tracking'], 'label' => 'Track & Trace', 'match' => 'tracking', 'icon' => 'fa-location-crosshairs'], ['route' => 'admin.cms.page', 'params' => ['page' => 'footer'], 'label' => 'Footer settings', 'match' => 'footer', 'icon' => 'fa-shoe-prints'], ['route' => 'admin.cms.footer.menus', 'params' => [], 'label' => 'Footer menus', 'match' => null, 'icon' => 'fa-sitemap'], ['route' => 'admin.cms.pages.index', 'params' => [], 'label' => 'All legal pages', 'match' => null, 'icon' => 'fa-file-contract'], ]; $legalPageLinks = [ ['slug' => 'privacy-policy', 'label' => 'Privacy Policy', 'icon' => 'fa-user-shield'], ['slug' => 'terms-of-service', 'label' => 'Terms & Conditions', 'icon' => 'fa-scale-balanced'], ['slug' => 'banned-items', 'label' => 'Banned / Dangerous Goods', 'icon' => 'fa-ban'], ]; $legalPagesBySlug = \App\Models\SitePage::query() ->whereIn('slug', collect($legalPageLinks)->pluck('slug')) ->get() ->keyBy('slug'); $listLinks = [ ['group' => 'home', 'section' => 'why_cards', 'label' => 'Home — Why cards', 'icon' => 'fa-shield-halved'], ['group' => 'home', 'section' => 'challenge_pains', 'label' => 'Home — Pains', 'icon' => 'fa-triangle-exclamation'], ['group' => 'home', 'section' => 'challenge_solutions', 'label' => 'Home — Solutions', 'icon' => 'fa-circle-check'], ['group' => 'home', 'section' => 'stats', 'label' => 'Home — Stats', 'icon' => 'fa-chart-simple'], ['group' => 'about', 'section' => 'modes', 'label' => 'About — Modes', 'icon' => 'fa-layer-group'], ['group' => 'about', 'section' => 'journey', 'label' => 'About — Journey', 'icon' => 'fa-route'], ['group' => 'technology', 'section' => 'platforms', 'label' => 'Tech — Platforms', 'icon' => 'fa-cubes'], ['group' => 'technology', 'section' => 'products', 'label' => 'Tech — Products', 'icon' => 'fa-desktop'], ['group' => 'career', 'section' => 'pillars', 'label' => 'Career — Pillars', 'icon' => 'fa-columns'], ['group' => 'franchise', 'section' => 'benefits', 'label' => 'Franchise — Benefits', 'icon' => 'fa-handshake'], ]; $serviceLinks = [ ['slug' => 'air-freight', 'label' => 'Air Freight', 'icon' => 'fa-plane'], ['slug' => 'rail-freight', 'label' => 'Rail Freight', 'icon' => 'fa-train'], ['slug' => 'surface-freight', 'label' => 'Surface Freight', 'icon' => 'fa-truck'], ['slug' => 'warehousing', 'label' => 'Warehousing', 'icon' => 'fa-warehouse'], ['slug' => 'innovative-packaging', 'label' => 'Innovative Packaging Solutions Hub', 'icon' => 'fa-box-open'], ['slug' => 'odc-cargo', 'label' => 'Over Dimensional Cargo', 'icon' => 'fa-trailer'], ['slug' => 'international', 'label' => 'International', 'icon' => 'fa-globe'], ['slug' => 'express-cargo-qss', 'label' => 'QSS — 6 Hrs Service', 'icon' => 'fa-bolt'], ]; $page = request()->route('page'); $serviceSlug = request()->route('slug'); $contentGroup = request()->route('group'); $contentSection = request()->route('section'); $blogPosts = \App\Models\NewsPost::query() ->orderByDesc('published_at') ->orderByDesc('updated_at') ->limit(40) ->get(['id', 'title', 'slug', 'is_published']); $blogPostParam = request()->route('blog'); @endphp