@php $currentRoute = Route::currentRouteName(); $isActive = false; //make sure the provided route is not empty if (isset($routePath) && !empty($routePath)) { //make sure the route add prefix $backendPrefix = env('BACKEND_ROUTE_PREFIX'); if (!empty($backendPrefix)) { $tartsWithPrefix = Str::startsWith($routePath, $backendPrefix); if (!$tartsWithPrefix) { $routePath = $backendPrefix . '/' . $routePath; } } if (Request::is($routePath)) { $isActive = true; } } @endphp

@if (!empty($icon)) {{-- --}} @if (isRTL()) {{ svg($icon)->class('w-5 h-5 ml-4') }} @else {{ svg($icon)->class('w-5 h-5 mr-4') }} @endif @endif @if ($users ?? false) @elseif($products ?? false) @elseif($orders ?? false) @elseif($earnings ?? false) @elseif($payouts ?? false) @elseif($settings ?? false) @elseif($package ?? false) @endif {{ $title ?? '' }}

{{ $slot }}