<aside class="main-sidebar sidebar-dark-primary elevation-4" style="min-height: 917px;">

    <!-- Brand Logo -->
    <a href="{{ route('admin.home') }}" class="brand-link text-center"
        style="display: flex; align-items: center; justify-content: center;">
        {{-- @if (app_logo())
            <img src="{{ app_logo() }}" alt="{{ app_name() }}" class="brand-image img-circle elevation-3"
                style="opacity:.8; max-height:40px;">
        @else
            <span class="brand-text font-weight-bold">{{ app_name() }}</span>
        @endif --}}

        <img src="{{ url('/images/logo-light.png') }}" alt="BlueWeldSG Logo" class="logo-image" width="90"
            height="auto">

    </a>

    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar Menu -->
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                data-accordion="false">

                {{-- Dashboard --}}
                @can('dashboard_access')
                    <li class="nav-item">
                        <a class="nav-link {{ request()->routeIs('admin.home') ? 'active' : '' }}"
                            href="{{ route('admin.home') }}">
                            <i class="fas fa-fw fa-tachometer-alt nav-icon"></i>
                            <p>{{ trans('global.dashboard') }}</p>
                        </a>
                    </li>
                @endcan

                {{-- User Management --}}
                {{-- @can('user_management_access')
                    <li
                        class="nav-item has-treeview {{ request()->is('admin/roles*') || request()->is('admin/users*') ? 'menu-open' : '' }}">
                        <a class="nav-link nav-dropdown-toggle {{ request()->is('admin/roles*') || request()->is('admin/users*') ? 'active' : '' }}"
                            href="#">
                            <i class="fa-fw nav-icon fas fa-users"></i>
                            <p>
                                {{ trans('cruds.userManagement.title') }}
                                <i class="right fa fa-fw fa-angle-left nav-icon"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            @can('role_access')
                                <li class="nav-item">
                                    <a href="{{ route('admin.roles.index') }}"
                                        class="nav-link {{ request()->is('admin/roles*') ? 'active' : '' }}">
                                        <i class="fa-fw nav-icon fas fa-briefcase"></i>
                                        <p>{{ trans('cruds.role.title') }}</p>
                                    </a>
                                </li>
                            @endcan
                            @can('user_access')
                                <li class="nav-item">
                                    <a href="{{ route('admin.users.index') }}"
                                        class="nav-link {{ request()->is('admin/users*') ? 'active' : '' }}">
                                        <i class="fa-fw nav-icon fas fa-user"></i>
                                        <p>{{ trans('cruds.user.title') }}</p>
                                    </a>
                                </li>
                            @endcan
                        </ul>
                    </li>
                @endcan --}}

                {{-- Videos --}}
                <li class="nav-item">
                    <a href="{{ route('admin.videos.index') }}"
                        class="nav-link {{ request()->is('admin/videos*') ? 'active' : '' }}">
                        <i class="fa-fw fas fa-video nav-icon"></i>
                        <p>Videos</p>
                    </a>
                </li>

                {{-- Change Password --}}
                @if (file_exists(app_path('Http/Controllers/Auth/ChangePasswordController.php')))
                    @can('profile_password_edit')
                        <li class="nav-item">
                            <a class="nav-link {{ request()->is('admin/profile/password*') ? 'active' : '' }}"
                                href="{{ route('admin.profile.password.edit') }}">
                                <i class="fa-fw fas fa-key nav-icon"></i>
                                <p>{{ trans('global.change_password') }}</p>
                            </a>
                        </li>
                    @endcan
                @endif

                {{-- Logout --}}
                <li class="nav-item">
                    <a href="#" class="nav-link"
                        onclick="event.preventDefault(); document.getElementById('logoutform').submit();">
                        <i class="fas fa-fw fa-sign-out-alt nav-icon"></i>
                        <p>{{ trans('global.logout') }}</p>
                    </a>
                </li>

            </ul>
        </nav>
    </div>
</aside>
