<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4" style="display: none;">
    <!-- Brand Logo -->
    <a href="{{route('home')}}" class="brand-link" style="text-align: center;">
        <img src="{{ asset('images/logo.png') }}" alt="" class="brand-image img-circle elevation-3"
             style="opacity: .8; display: none;">
        <span class="brand-text font-weight-light" style="text-align: center;">{{ config('app.name') }}</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar user (optional) -->
        <div class="user-panel mt-3 pb-3 mb-3 d-flex" style="display: none !important;">
            
            <div class="info" style="text-align: center;">
                <a href="#" class="d-block" style="text-align: center;">{{ auth()->user()->getFullname() }}</a>
            </div>
        </div>

        <!-- Sidebar Menu -->
        <nav class="mt-2" style="direction: rtl; text-align:right !important;">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <li class="nav-item has-treeview">
                    <a href="{{route('home')}}" class="nav-link">
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>الرئيسية </p>
                    </a>
                </li>

        <!-- sliders -->
        <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
                <i class="nav-icon fas fa-edit"></i>
                <p>
                    الاقسام الرئيسية
                   
                    <!--  <span class="badge badge-info right">6</span> -->
                </p>
            </a>
            <ul class="nav nav-treeview">
         
                <li class="nav-item">
                    <a href="{{url('/admin/categories/create')}}" class="nav-link">
                        <i class="fas fa-plus nav-icon"></i>
                        <p>اضافة قسم  </p>
                    </a>
                </li>
             

                <li class="nav-item">
                    <a href="{{url('/admin/categories')}}" class="nav-link">
                        <i class="fas fa-list nav-icon"></i>
                        <p>تعديل قسم  </p>
                    </a>
                </li>



            </ul>
        </li>


                <li class="nav-item has-treeview">
                    <a href="{{ route('products.index') }}" class="nav-link {{ activeSegment('products') }}">
                        <i class="nav-icon fas fa-th-large"></i>
                        <p>المنتجات</p>
                    </a>
                </li>
                <li class="nav-item has-treeview">
                    <a href="{{ route('cart.index') }}" class="nav-link {{ activeSegment('cart') }}">
                        <i class="nav-icon fas fa-cart-plus"></i>
                        <p>نقطة البيع </p>
                    </a>
                </li>
                <li class="nav-item has-treeview">
                    <a href="{{ route('orders.index') }}" class="nav-link {{ activeSegment('orders') }}">
                        <i class="nav-icon fas fa-cart-plus"></i>
                        <p>الطلبات </p>
                    </a>
                </li>
                <li class="nav-item has-treeview">
                    <a href="{{ route('customers.index') }}" class="nav-link {{ activeSegment('customers') }}">
                        <i class="nav-icon fas fa-users"></i>
                        <p>العملاء </p>
                    </a>
                </li>



                <li class="nav-item has-treeview">
                    <a href="{{ url('/admin/report_on_user') }}" class="nav-link">
                        <i class="nav-icon fas fa-users"></i>
                        <p> تقرير  الورديات  </p>
                    </a>
                </li>



        <!-- sliders -->
        <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
                <i class="nav-icon fas fa-edit"></i>
                <p>
                     المنصرفات 
                   
                    <!--  <span class="badge badge-info right">6</span> -->
                </p>
            </a>
            <ul class="nav nav-treeview">
         
                <li class="nav-item">
                    <a href="{{url('/admin/expenses/create')}}" class="nav-link">
                        <i class="fas fa-plus nav-icon"></i>
                        <p>منصرف جديد </p>
                    </a>
                </li>
             

                <li class="nav-item">
                    <a href="{{url('/admin/expenses')}}" class="nav-link">
                        <i class="fas fa-list nav-icon"></i>
                        <p>تعديل المنصرفات </p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="{{url('/admin/report_between')}}" class="nav-link">
                        <i class="fas fa-list nav-icon"></i>
                        <p>تقرير المنصرفات </p>
                    </a>
                </li>

            </ul>
        </li>

<?php /*
        <!-- sliders -->
        <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
                <i class="nav-icon fas fa-edit"></i>
                <p>
                     Expense Types
                    <i class="fas fa-angle-left right"></i>
                    <!--  <span class="badge badge-info right">6</span> -->
                </p>
            </a>
            <ul class="nav nav-treeview">
         
                <li class="nav-item">
                    <a href="{{url('/admin/expense_types/create')}}" class="nav-link">
                        <i class="fas fa-plus nav-icon"></i>
                        <p>New Expense Type</p>
                    </a>
                </li>
             

                <li class="nav-item">
                    <a href="{{url('/admin/expense_types')}}" class="nav-link">
                        <i class="fas fa-list nav-icon"></i>
                        <p>Edit Expense Type</p>
                    </a>
                </li>

            </ul>
        </li>
 */ ?>





                <!--
                <li class="nav-item has-treeview">
                    <a href="{{ route('settings.index') }}" class="nav-link {{ activeSegment('settings') }}">
                        <i class="nav-icon fas fa-cogs"></i>
                        <p>Settings</p>
                    </a>
                </li> -->
                <li class="nav-item">
                    <a href="#" class="nav-link" onclick="document.getElementById('logout-form').submit()">
                        <i class="nav-icon fas fa-sign-out-alt"></i>
                        <p>تسجيل الخروج </p>
                        <form action="{{route('logout')}}" method="POST" id="logout-form">
                            @csrf
                        </form>
                    </a>
                </li>
            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>
