@php $sidenav = json_decode($sidenav); $settings = file_get_contents(resource_path('views/admin/setting/settings.json')); $settings = json_decode($settings); $routesData = []; foreach (\Illuminate\Support\Facades\Route::getRoutes() as $route) { $name = $route->getName(); if (strpos($name, 'admin') !== false) { $routeData = [ $name => url($route->uri()), ]; $routesData[] = $routeData; } } @endphp @push('script') @endpush