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

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <meta name="csrf-token" content="{{ csrf_token() }}">

        <title>@yield('title') - <?php echo env("APP_NAME")?></title>
        <link rel="shortcut icon" type="image/x-icon" href="images/logo/favicon.ico">

        {{-- Include core + vendor Styles --}}
        @include('panels/styles')
        {{-- Include page Style --}}
        @yield('mystyle')

    </head>

    {{-- {!! Helper::applClasses() !!} --}}
    @php
    $configData = Helper::applClasses();
    @endphp

    <body class="horizontal-layout horizontal-menu navbar-floating {{ $configData['blankPageClass'] }} {{ $configData['bodyClass'] }}  {{($configData['theme'] === 'light') ? '' : $configData['theme'] }} {{ $configData['sidebarClass'] }} {{ $configData['navbarType'] }} {{ $configData['footerType'] }}  footer-light" data-menu="horizontal-menu" data-col="2-columns" data-open="hover"  data-layout="{{ $configData['theme'] }}">

        {{-- Include Sidebar --}}
        @include('panels.sidebar')

        <!-- BEGIN: Header-->
        {{-- Include Navbar --}}
        @include('panels.navbar')

        {{-- Include Sidebar --}}
        @include('panels.horizontalMenu')

        <!-- BEGIN: Content-->
        <div class="app-content content">
          <!-- BEGIN: Header-->
          <div class="content-overlay"></div>
          <div class="header-navbar-shadow"></div>

          <div class="content-wrapper">
              {{-- Include Breadcrumb --}}
              @if($configData['pageHeader'] == true)
                  @include('panels.breadcrumb')
              @endif
              <div class="{{ $configData['sidebarPositionClass'] }}">
                  <div class="sidebar">
                      {{-- Include Sidebar Content --}}
                      @yield('content-sidebar')
                  </div>
              </div>
              <div class="{{ $configData['contentsidebarClass'] }}">
                  <div class="content-body">
                      {{-- Include Page Content --}}
                      @yield('content')
                  </div>
              </div>
          </div>
      </div>
      <!-- End: Content-->

        @if($configData['blankPage'] == false)
            @include('pages/customizer')

            @include('pages/buy-now')
        @endif

        <div class="sidenav-overlay"></div>
        <div class="drag-target"></div>

        {{-- include footer --}}
        @include('panels/footer')

        {{-- include default scripts --}}
        @include('panels/scripts')

        {{-- Include page script --}}
        @yield('myscript')

        @yield('faqscript')
    </body>
</html>

