<div class="main-sidebar">
    <aside id="sidebar-wrapper">
        <div class="sidebar-brand">
            <a href="{{ route('doctor.dashboard') }}"><img class="w-75" src="{{ asset($setting->logo) ?? '' }}"
                    alt="{{ $setting->app_name ?? '' }}"></a>
        </div>

        <div class="sidebar-brand sidebar-brand-sm">
            <a href="{{ route('doctor.dashboard') }}"><img src="{{ asset($setting->favicon) ?? '' }}"
                    alt="{{ $setting->app_name ?? '' }}"></a>
        </div>

        <ul class="sidebar-menu">
            <li class="{{ isRoute('doctor.dashboard', 'active') }}">
                <a class="nav-link" href="{{ route('doctor.dashboard') }}"><i class="fas fa-home"></i>
                    <span>{{ __('Dashboard') }}</span>
                </a>
            </li>
            <li
                class="{{ isRoute(['doctor.today.appointment', 'doctor.treatment', 'doctor.treatment.edit'], 'active') }}">
                <a class="nav-link" href="{{ route('doctor.today.appointment') }}"><i class="fas fa-calendar-day"></i>
                    <span>{{ __('Today Appointment') }}</span>
                </a>
            </li>
            <li
                class="nav-item dropdown {{ isRoute(['doctor.new.appointment', 'doctor.not.treated.appointment','doctor.all.appointment', 'doctor.old.appointment'], 'active') }}">
                <a href="javascript:;" class="nav-link has-dropdown">
                    <i class="fas fa-calendar"></i><span>{{ __('Manage Appointment') }}</span>
                </a>
                <ul class="dropdown-menu">
                    <li class="{{ isRoute('doctor.new.appointment', 'active') }}">
                        <a class="nav-link" href="{{ route('doctor.new.appointment') }}">
                            {{ __('New Appointment') }}
                        </a>
                    </li>
                    <li class="{{ isRoute('doctor.not.treated.appointment', 'active') }}">
                        <a class="nav-link text-capitalize" href="{{ route('doctor.not.treated.appointment') }}">
                            {{ __('Not treated Appointment') }}
                        </a>
                    </li>
                    <li class="{{ isRoute('doctor.all.appointment', 'active') }}">
                        <a class="nav-link" href="{{ route('doctor.all.appointment') }}">
                            {{ __('Appointment History') }}
                        </a>
                    </li>
                </ul>
            </li>
            <li
                class="nav-item dropdown {{ isRoute(['doctor.zoom-credential','doctor.zoom-meetings','doctor.create-zoom-meeting','doctor.upcomming-meeting','doctor.meeting-history'], 'active') }}">
                <a href="javascript:;" class="nav-link has-dropdown">
                    <i class="fas fa-video"></i><span>{{ __('Live Consultation') }}</span>
                </a>
                <ul class="dropdown-menu">
                    <li class="{{ isRoute(['doctor.zoom-meetings','doctor.create-zoom-meeting'], 'active') }}">
                        <a class="nav-link" href="{{ route('doctor.zoom-meetings') }}">
                            {{ __('Zoom Meeting') }}
                        </a>
                    </li>
                    <li class="{{ isRoute('doctor.upcomming-meeting', 'active') }}">
                        <a class="nav-link" href="{{ route('doctor.upcomming-meeting') }}">
                            {{ __('Upcoming Meeting') }}
                        </a>
                    </li>
                    <li class="{{ isRoute('doctor.meeting-history', 'active') }}">
                        <a class="nav-link" href="{{ route('doctor.meeting-history') }}">
                            {{ __('Meeting History') }}
                        </a>
                    </li>
                    <li class="{{ isRoute('doctor.zoom-credential', 'active') }}">
                        <a class="nav-link" href="{{ route('doctor.zoom-credential') }}">
                            {{ __('Setting') }}
                        </a>
                    </li>
                </ul>
            </li>
            @if (Module::isEnabled('Leave'))
                @include('leave::sidebar')
            @endif
            <li
                class="{{ isRoute('doctor.payment.history', 'active') }}">
                <a class="nav-link" href="{{ route('doctor.payment.history') }}"><i class="fas fa-credit-card"></i>
                    <span>{{ __('Payment History') }}</span>
                </a>
            </li>
            <li
                class="{{ isRoute('doctor.withdraw.*', 'active') }}">
                <a class="nav-link" href="{{ route('doctor.withdraw.index') }}"><i class="fas fa-money-bill-wave"></i>
                    <span>{{ __('My Withdraw') }}</span>
                </a>
            </li>
            <li
                class="{{ isRoute('doctor.schedule', 'active') }}">
                <a class="nav-link" href="{{ route('doctor.schedule') }}"><i class="fas fa-clipboard-list"></i>
                    <span>{{ __('My Schedule') }}</span>
                </a>
            </li>
            <li
                class="{{ isRoute('doctor.message.index', 'active') }}">
                <a class="nav-link" href="{{ route('doctor.message.index') }}"><i class="fas fa-envelope"></i>
                    <span>{{ __('Message') }}</span>
                </a>
            </li>
            @if($setting->doctor_can_add_social_links == 'active')
                <li class="{{ isRoute('doctor.social-link.*', 'active') }}">
                    <a class="nav-link" href="{{ route('doctor.social-link.index') }}">
                        <i class="fas fa-hashtag"></i> <span>{{ __('Social Links') }}</span>
                    </a>
                </li>
            @endif
        </ul>
    </aside>
</div>
