@if(hasPermission('report_menu'))

    <li class="sidebar-menu-item {{ set_menu([route('attendanceReport.index')]) }}">
        <a href="javascript:void(0)"
           class="parent-item-content has-arrow {{ menu_active_by_route(['live_trackingReport.index', 'attendanceReport.index', 'breakReport.index', 'payment.index', 'report_visit.index', 'leaveReport.index','live_trackingReportTimeline.index', 'activity.logs', 'activity.logs.show']) }}">
            <i class="las la-chart-bar"></i>
            <span class="on-half-expanded">{{ _trans('common.Reports') }}</span>
        </a>
        <ul class="child-menu-list {{ set_active(['hrm/report/*', 'hrm/break/*', 'hrm/expense/payment', 'hrm/activity-logs*']) }}">

            @if (isModuleActive('LiveTracking'))
                @if (hasPermission('live_tracking_read'))
                    <li class="nav-item {{ menu_active_by_route(['live_trackingReport.index']) }}">
                        <a href="{{ route('live_trackingReport.index') }}"
                        class=" {{ set_active(route('live_trackingReport.index')) }}">
                            <span>{{ _trans('common.Live Tracking') }} 
                                @if (Str::lower(config('app.style')) == 'demo')
                                    <span class="badge text-bg-warning">{{ _trans('common.Pro') }}</span>    
                                @endif
                            </span>
                        </a>
                    </li>
                @endif

                @if (hasPermission('location_history_read'))
                    <li class="d-none nav-item {{ menu_active_by_route(['live_trackingReportHistory.index']) }}">
                        <a href="{{ route('live_trackingReportHistory.index') }}"
                        class=" {{ set_active(route('live_trackingReportHistory.index')) }}">
                            <span>{{ _trans('common.Location History') }} 
                                @if (Str::lower(config('app.style')) == 'demo')
                                    <span class="badge text-bg-warning">{{ _trans('common.Pro') }}</span>    
                                @endif
                            </span>
                        </a>
                    </li>
                @endif

                @if (hasPermission('location_timeline_read'))
                    <li class="nav-item {{ menu_active_by_route(['live_trackingReportTimeline.index']) }}">
                        <a href="{{ route('live_trackingReportTimeline.index') }}"
                        class=" {{ set_active(route('live_trackingReportTimeline.index')) }}">
                            <span>{{ _trans('common.Location Timeline') }} 
                                @if (Str::lower(config('app.style')) == 'demo')
                                    <span class="badge text-bg-warning">{{ _trans('common.Pro') }}</span>    
                                @endif
                            </span>
                        </a>
                    </li>
                @endif
            @endif

            @if (hasPermission('attendance_report_read'))
                {{-- <li class="nav-item {{ menu_active_by_route(['attendanceReport.index']) }}">
                    <a href="{{ route('attendanceReport.index') }}"
                       class=" {{ set_active(route('attendanceReport.index')) }}">
                        <span>{{ _trans('attendance.Attendance report') }}</span>
                    </a>
                </li> --}}
                <li class="nav-item {{ menu_active_by_route(['attendanceReport.employee-wise']) }}">
                    <a href="{{ route('attendanceReport.employee-wise') }}"
                       class=" {{ set_active(route('attendanceReport.employee-wise')) }}">
                        <span>{{ _trans('attendance.Attendance Report') }}</span>
                    </a>
                </li>
            @endif

            @if (hasPermission('leave_report_read'))
                <li class="nav-item {{ menu_active_by_route(['leaveReport.index']) }}">
                    <a href="{{ route('leaveReport.index') }}"
                       class=" {{ set_active(route('leaveReport.index')) }}">
                        <span>{{ _trans('leave.Leave Report') }}</span>
                    </a>
                </li>
            @endif

            @if (hasPermission('payment_report_read'))
                <li class="nav-item {{ menu_active_by_route(['payment.index']) }}">
                    <a href="{{ route('payment.index') }}"
                       class=" {{ set_active(route('payment.index')) }}">
                        <span>{{ _trans('common.Payment Report') }}</span>
                    </a>
                </li>
            @endif

            @if (hasPermission('visit_report_read'))
                <li class="nav-item {{ menu_active_by_route(['report_visit.index']) }}">
                    <a href="{{ route('report_visit.index') }}" class="">
                        <span>{{ _trans('common.Visit Reports') }}</span>
                    </a>
                </li>
            @endif
        </ul>
    </li>
@endif