@if (
    (hasPermission('conference_read') ||
        hasPermission('meeting_read') ||
        hasPermission('appointment_read') ||
        hasPermission('bulletin_read')) &&
        (hasFeature('conference') || hasFeature('meeting') || hasFeature('appointment')))
    <li
        class="sidebar-menu-item {{ set_menu([ isModuleActive('VideoConference') ? route('conference.index') : '', route('meeting.index'), route('appointment.index')]) }}">
        <a href="javascript:void(0)"
            class="parent-item-content has-arrow {{ menu_active_by_route(['conference.*', 'meeting.*', 'appointment.*', 'bulletins.*']) }}">
            <i class="las la-microphone"></i>
            <span class="on-half-expanded">{{ _trans('comunication.Communications') }}</span>
        </a>
        <ul
            class="child-menu-list {{ set_active(['video-conference/conference*', 'admin/meeting*', 'hrm/appointment*', 'admin/bulletins*']) }}">

            @if (hasPermission('conference_read') && isModuleActive('VideoConference') && hasFeature('conference'))
                <li class="nav-item {{ menu_active_by_route(['conference.*']) }}">
                    <a href="{{ route('conference.index') }}" class=" {{ set_active(route('conference.index')) }}">
                        <span>{{ _trans('videoconference.Conference') }}
                            @if (Str::lower(config('app.style')) == 'demo')
                                <span class="badge text-bg-warning">{{ _trans('common.Pro') }}</span>
                            @endif
                        </span>
                    </a>
                </li>
            @endif

            @if (hasPermission('meeting_read') && isModuleActive('Meeting') && hasFeature('meeting'))
                <li
                    class="sidebar-menu-item {{ menu_active_by_route(['meeting.index', 'meeting.create', 'meeting.edit', 'meeting.view']) }}">
                    <a href="{{ route('meeting.index') }}">
                        <span> {{ _trans('meeting.Meeting') }}
                            @if (Str::lower(config('app.style')) == 'demo')
                                <span class="badge text-bg-warning">{{ _trans('common.Pro') }}</span>
                            @endif
                        </span>
                    </a>
                </li>
            @endif

            @if (hasPermission('appointment_read') && hasFeature('appointment'))
                <li class="nav-item {{ menu_active_by_route(['appointment.index', 'appointment.create']) }}">
                    <a href="{{ route('appointment.index') }}"
                        class="  {{ set_active(route('appointment.index', 'appointment.create')) }}">
                        <span>{{ _trans('common.Appointments') }}</span>
                    </a>
                </li>
            @endif

            @if (hasPermission('bulletin_read') && isModuleActive('Bulletin'))
                <li class="sidebar-menu-item {{ menu_active_by_route(['bulletins.*']) }}">
                    <a href="{{ route('bulletins.index') }}">
                        <span> {{ _trans('meeting.Bulletin') }}
                            @if (Str::lower(config('app.style')) == 'demo')
                                <span class="badge text-bg-warning">{{ _trans('common.Pro') }}</span>
                            @endif
                        </span>
                    </a>
                </li>
            @endif
        </ul>
    </li>
@endif
