<?php
$routeName = request()->route()->getName();
$currentMenu = \Illuminate\Support\Facades\Request::segment(4);
?>


<nav id="sidebarMenu" class="d-md-block bg-light sidebar collapse px-0">
    <div class="sidebar-sticky pt-3">
        <ul class="nav flex-column mcp-theme-1">
            <li class="nav-item">
                <a class="nav-link {{\Illuminate\Support\Facades\Route::getCurrentRoute()->getName() === 'admin.orders.view.dashboard' ? 'active' : ''}}" href="{{ route('admin.orders.view.dashboard', $order) }}">Dashboard</a>
            </li>
            <li class="nav-item">
                <a class="nav-link {{\Illuminate\Support\Facades\Route::getCurrentRoute()->getName() === 'admin.orders.view.financial-transactions' ? 'active' : ''}}" href="{{ route('admin.orders.view.financial-transactions', $order) }}">Financial Transactions</a>
            </li>
        </ul>
    </div>
</nav>