@isset($pageConfigs)
  {!! Helper::updatePageConfig($pageConfigs) !!}
@endisset

@php
  $configData = Helper::appClasses();
@endphp

@extends('layouts/commonMaster')

@php
  /* Display elements */
  $contentNavbar = ($contentNavbar ?? true);
  $containerNav = ($containerNav ?? 'container-xxl');
  $isNavbar = ($isNavbar ?? true);
  $isMenu = ($isMenu ?? true);
  $isFlex = ($isFlex ?? false);
  $isFooter = ($isFooter ?? true);
  $customizerHidden = ($customizerHidden ?? '');
  $pricingModal = ($pricingModal ?? false);

  /* HTML Classes */
  $navbarDetached = 'navbar-detached';
  $menuFixed = (isset($configData['menuFixed']) ? $configData['menuFixed'] : '');
  $navbarFixed = (isset($configData['navbarFixed']) ? $configData['navbarFixed'] : '');
  $footerFixed = (isset($configData['footerFixed']) ? $configData['footerFixed'] : '');
  $menuCollapsed = (isset($configData['menuCollapsed']) ? $configData['menuCollapsed'] : '');

  /* Content classes */
  $container = ($container ?? 'container-xxl');
@endphp

@section('layoutContent')
  <div class="layout-wrapper layout-content-navbar {{ $isMenu ? '' : 'layout-without-menu' }}">
    <div class="layout-container">

      @if ($isMenu)
        {{-- @include('layouts/sections/menu/verticalMenu') --}}
        @livewire('sections.menu.verticalMenu')
      @endif

      <!-- Layout page -->
      <div class="layout-page">

        {{-- Below commented code read by artisan command while installing jetstream. !! Do not remove if you want to use jetstream. --}}
        <x-banner />

        <!-- BEGIN: Navbar-->
        @if ($isNavbar)
          {{-- @include('layouts/sections/navbar/navbar') --}}
          @livewire('sections.navbar.navbar')
        @endif
        <!-- END: Navbar-->

        <!-- Content wrapper -->
        <div class="content-wrapper">

          <!-- Content -->
          @if ($isFlex)
          <div class="{{$container}} d-flex align-items-stretch flex-grow-1 p-0">
            @else
            <div class="{{$container}} flex-grow-1 container-p-y">
              @endif

              {{-- @yield('content') --}}
              {{ $slot }}

              <!-- pricingModal -->
              @if ($pricingModal)
                @include('_partials/_modals/modal-pricing')
              @endif
              <!--/ pricingModal -->

            </div>
            <!-- / Content -->

            <!-- Footer -->
            @if ($isFooter)
              {{-- @include('layouts/sections/footer/footer') --}}
              @livewire('sections.footer.footer')
            @endif
            <!-- / Footer -->

            <div class="content-backdrop fade"></div>
          </div>

          <!--/ Content wrapper -->
        </div>
        <!-- / Layout page -->
      </div>

      @if ($isMenu)
        <!-- Overlay -->
        <div class="layout-overlay layout-menu-toggle"></div>
      @endif

      <!-- Drag Target Area To SlideIn Menu On Small Screens -->
      <div class="drag-target"></div>
    </div>
    <!-- / Layout wrapper -->
@endsection
