<div class="sidebar sidebar-style-2"
  data-background-color="<?php echo e(Auth::guard('organizer')->user()->theme_version == 'light' ? 'white' : 'dark2'); ?>">
  <div class="sidebar-wrapper scrollbar scrollbar-inner">
    <div class="sidebar-content">
      <div class="user">
        <div class="avatar-sm float-left mr-2">
          <?php if(Auth::guard('organizer')->user()->photo != null): ?>
            <img src="<?php echo e(asset('assets/admin/img/organizer-photo/' . Auth::guard('organizer')->user()->photo)); ?>"
              alt="Admin Image" class="avatar-img rounded-circle">
          <?php else: ?>
            <img src="<?php echo e(asset('assets/admin/img/blank_user.jpg')); ?>" alt="" class="avatar-img rounded-circle">
          <?php endif; ?>
        </div>


        <div class="info">
          <a>
            <span>
              <?php echo e(Auth::guard('organizer')->user()->username); ?>


              <span class="user-level"><?php echo e(__('Organizer')); ?></span>
            </span>
          </a>

          <div class="clearfix"></div>
        </div>
      </div>
      <ul class="nav nav-primary">
        
        <div class="row mb-3">
          <div class="col-12">
            <form action="" onsubmit="return false">
              <div class="form-group py-0">
                <input name="term" type="text" class="form-control sidebar-search ltr"
                  placeholder="Search Menu Here...">
              </div>
            </form>
          </div>
        </div>

        
        <li class="nav-item <?php if(request()->routeIs('organizer.dashboard')): ?> active <?php endif; ?>">
          <a href="<?php echo e(route('organizer.dashboard')); ?>">
            <i class="la flaticon-paint-palette"></i>
            <p><?php echo e(__('Dashboard')); ?></p>
          </a>
        </li>

        <li
          class="nav-item
          <?php if(request()->routeIs('organizer.event_management.event')): ?> active
          <?php elseif(request()->routeIs('choose-event-type')): ?> active
          <?php elseif(request()->routeIs('organizer.event_management.ticket_setting')): ?> active
          <?php elseif(request()->routeIs('organizer.add.event.event')): ?> active
          <?php elseif(request()->routeIs('organizer.event_management.edit_event')): ?> active
          <?php elseif(request()->routeIs('organizer.event.ticket')): ?> active
          <?php elseif(request()->routeIs('organizer.event.add.ticket')): ?> active
          <?php elseif(request()->routeIs('organizer.event.edit.ticket')): ?> active
          <?php elseif(request()->routeIs('organizer.event_management.seat_mapping')): ?> active
          <?php endif; ?>">
          <a data-toggle="collapse" href="#course">
            <i class="fal fa-book"></i>
            <p><?php echo e(__('Event Management')); ?></p>
            <span class="caret"></span>
          </a>

          <div id="course"
            class="collapse
            <?php if(request()->routeIs('organizer.event_management.event')): ?> show
            <?php elseif(request()->routeIs('choose-event-type')): ?> show
            <?php elseif(request()->routeIs('organizer.event_management.ticket_setting')): ?> show
            <?php elseif(request()->routeIs('organizer.add.event.event')): ?> show
            <?php elseif(request()->routeIs('organizer.event_management.edit_event')): ?> show
            <?php elseif(request()->routeIs('organizer.event.ticket')): ?> show
            <?php elseif(request()->routeIs('organizer.event.add.ticket')): ?> show
            <?php elseif(request()->routeIs('organizer.event.edit.ticket')): ?> show
            <?php elseif(request()->routeIs('organizer.event_management.seat_mapping')): ?> show
            <?php endif; ?>">
            <ul class="nav nav-collapse">

              <li
                class="

              <?php if(request()->routeIs('choose-event-type')): ?> active
              <?php elseif(request()->routeIs('organizer.add.event.event') && request()->input('type') == 'online'): ?> active
              <?php elseif(request()->routeIs('organizer.add.event.event') && request()->input('type') == 'venue'): ?> active <?php endif; ?>
              ">
                <a href="<?php echo e(route('choose-event-type', ['language' => $defaultLang->code])); ?>">
                  <span class="sub-item"><?php echo e(__('Add Event')); ?></span>
                </a>
              </li>

              <li
                class="<?php if(request()->routeIs('organizer.event_management.event') && request()->input('event_type') == ''): ?> active
                  <?php elseif(request()->routeIs('organizer.event_management.edit_event') && request()->input('event_type') == ''): ?> active
                  <?php elseif(request()->routeIs('organizer.event_management.ticket_setting')): ?> active
                  <?php elseif(request()->routeIs('organizer.event.ticket') && request()->input('event_type') == ''): ?> active
              <?php elseif(request()->routeIs('organizer.event.add.ticket') && request()->input('event_type') == ''): ?> active
              <?php elseif(request()->routeIs('organizer.event.edit.ticket') && request()->input('event_type') == ''): ?> active
              <?php elseif(request()->routeIs('organizer.event_management.seat_mapping') && request()->input('event_type') == ''): ?> active
              <?php endif; ?>">
                <a href="<?php echo e(route('organizer.event_management.event', ['language' => $defaultLang->code])); ?>">
                  <span class="sub-item"><?php echo e(__('All Events')); ?></span>
                </a>
              </li>

              <li
                class="
              <?php if(request()->routeIs('organizer.event_management.event') && request()->input('event_type') == 'venue'): ?> active
              <?php elseif(request()->routeIs('organizer.event.ticket') && request()->input('event_type') == 'venue'): ?> active
              <?php elseif(request()->routeIs('organizer.event.add.ticket') && request()->input('event_type') == 'venue'): ?> active
              <?php elseif(request()->routeIs('organizer.event.edit.ticket') && request()->input('event_type') == 'venue'): ?> active <?php endif; ?>">
                <a
                  href="<?php echo e(route('organizer.event_management.event', ['language' => $defaultLang->code, 'event_type' => 'venue'])); ?>">
                  <span class="sub-item"><?php echo e(__('Venue Events')); ?></span>
                </a>
              </li>

              <li class="

              <?php if(request()->routeIs('organizer.event_management.event') && request()->input('event_type') == 'online'): ?> active <?php endif; ?>
              ">
                <a
                  href="<?php echo e(route('organizer.event_management.event', ['language' => $defaultLang->code, 'event_type' => 'online'])); ?>">
                  <span class="sub-item"><?php echo e(__('Online Events')); ?></span>
                </a>
              </li>
            </ul>
          </div>
        </li>

        <li
          class="nav-item
          <?php if(request()->routeIs('organizer.event.booking')): ?> active
          <?php elseif(request()->routeIs('organizer.event_booking.details')): ?> active
          <?php elseif(request()->routeIs('organizer.event_booking.report')): ?> active <?php endif; ?>">
          <a data-toggle="collapse" href="#bookings">
            <i class="fal fa-users-class"></i>
            <p><?php echo e(__('Event Bookings')); ?></p>
            <span class="caret"></span>
          </a>

          <div id="bookings"
            class="collapse
          <?php if(request()->routeIs('organizer.event.booking')): ?> show
          <?php elseif(request()->routeIs('organizer.event_booking.details')): ?> show
          <?php elseif(request()->routeIs('organizer.event_booking.report')): ?> show <?php endif; ?>">
            <ul class="nav nav-collapse">
              <li
                class="
              <?php if(request()->routeIs('organizer.event.booking') && empty(request()->input('status'))): ?> active
              <?php elseif(request()->routeIs('organizer.event_booking.details')): ?> active <?php endif; ?>">
                <a href="<?php echo e(route('organizer.event.booking')); ?>">
                  <span class="sub-item"><?php echo e(__('All Bookings')); ?></span>
                </a>
              </li>

              <li
                class="<?php echo e(request()->routeIs('organizer.event.booking') && request()->input('status') == 'completed' ? 'active' : ''); ?>">
                <a href="<?php echo e(route('organizer.event.booking', ['status' => 'completed'])); ?>">
                  <span class="sub-item"><?php echo e(__('Completed Bookings')); ?></span>
                </a>
              </li>

              <li
                class="<?php echo e(request()->routeIs('organizer.event.booking') && request()->input('status') == 'pending' ? 'active' : ''); ?>">
                <a href="<?php echo e(route('organizer.event.booking', ['status' => 'pending'])); ?>">
                  <span class="sub-item"><?php echo e(__('Pending Bookings')); ?></span>
                </a>
              </li>

              <li
                class="<?php echo e(request()->routeIs('organizer.event.booking') && request()->input('status') == 'rejected' ? 'active' : ''); ?>">
                <a href="<?php echo e(route('organizer.event.booking', ['status' => 'rejected'])); ?>">
                  <span class="sub-item"><?php echo e(__('Rejected Bookings')); ?></span>
                </a>
              </li>

              <li class="<?php echo e(request()->routeIs('organizer.event_booking.report') ? 'active' : ''); ?>">
                <a href="<?php echo e(route('organizer.event_booking.report')); ?>">
                  <span class="sub-item"><?php echo e(__('Report')); ?></span>
                </a>
              </li>
            </ul>
          </div>
        </li>
        <li
          class="nav-item
        <?php if(request()->routeIs('organizer.withdraw')): ?> active
        <?php elseif(request()->routeIs('organizer.withdraw.create')): ?> active <?php endif; ?>">
          <a href="<?php echo e(route('organizer.withdraw', ['language' => $defaultLang->code])); ?>">
            <i class="fal fa-donate"></i>
            <p><?php echo e(__('Withdraw')); ?></p>
          </a>
        </li>
        <li class="nav-item <?php if(request()->routeIs('organizer.transcation')): ?> active <?php endif; ?>">
          <a href="<?php echo e(route('organizer.transcation')); ?>">
            <i class="fal fa-exchange-alt"></i>
            <p><?php echo e(__('Transactions')); ?></p>
          </a>
        </li>
        <li class="nav-item">
          <a href="<?php echo e(route('organizer.pwa')); ?>" target="_blank">
            <i class="fas fa-scanner"></i>
            <p><?php echo e(__('Pwa Scanner')); ?></p>
          </a>
        </li>

        <?php
          $support_status = DB::table('support_ticket_statuses')->first();
        ?>
        <?php if($support_status->support_ticket_status == 'active'): ?>
          
          <li
            class="nav-item <?php if(request()->routeIs('organizer.support_tickets')): ?> active
            <?php elseif(request()->routeIs('organizer.support_tickets.message')): ?> active
            <?php elseif(request()->routeIs('organizer.support_ticket.create')): ?> active <?php endif; ?>">
            <a data-toggle="collapse" href="#support_ticket">
              <i class="la flaticon-web-1"></i>
              <p><?php echo e(__('Support Tickets')); ?></p>
              <span class="caret"></span>
            </a>

            <div id="support_ticket"
              class="collapse
              <?php if(request()->routeIs('organizer.support_tickets')): ?> show
              <?php elseif(request()->routeIs('organizer.support_tickets.message')): ?> show
              <?php elseif(request()->routeIs('organizer.support_ticket.create')): ?> show <?php endif; ?>">
              <ul class="nav nav-collapse">

                <li
                  class="<?php if(request()->routeIs('organizer.support_tickets')): ?> active
              <?php elseif(request()->routeIs('organizer.support_tickets.message')): ?> active <?php endif; ?>">
                  <a href="<?php echo e(route('organizer.support_tickets')); ?>">
                    <span class="sub-item"><?php echo e(__('All Tickets')); ?></span>
                  </a>
                </li>
                <li class="<?php echo e(request()->routeIs('organizer.support_ticket.create') ? 'active' : ''); ?>">
                  <a href="<?php echo e(route('organizer.support_ticket.create')); ?>">
                    <span class="sub-item"><?php echo e(__('Add Ticket')); ?></span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php endif; ?>

        <li class="nav-item
                  <?php if(request()->routeIs('organizer.edit.profile')): ?> active <?php endif; ?>">
          <a href="<?php echo e(route('organizer.edit.profile')); ?>">
            <i class="fal fa-user-edit"></i>
            <p><?php echo e(__('Edit Profile')); ?></p>
          </a>
        </li>
        <li class="nav-item <?php if(request()->routeIs('organizer.change.password')): ?> active <?php endif; ?>">
          <a href="<?php echo e(route('organizer.change.password')); ?>">
            <i class="fal fa-key"></i>
            <p><?php echo e(__('Change Password')); ?></p>
          </a>
        </li>
        <li class="nav-item">
          <a href="<?php echo e(route('organizer.logout')); ?>">
            <i class="fal fa-sign-out "></i>
            <p><?php echo e(__('Logout')); ?></p>
          </a>
        </li>
      </ul>
    </div>
  </div>
</div>
<?php /**PATH /home/ysakkarj/events.theend.africa/resources/views/organizer/partials/side-navbar.blade.php ENDPATH**/ ?>