@extends('app.web.layout.layout')

@section('title','Menyular')

@push('css')
<style>
    h2, h5{
      color: white;
    }
          .bg-video {
          position: absolute;
          top: 0;
          left: 0;
          min-width: 100%;
          min-height: 100%;
          z-index: -1; /* Diğer içeriğin önünde olacak şekilde ayarlayabilirsiniz */
        }
    
        @media (max-width:991px){
            .mobil-pad{
                /* padding: 10px !important; */
            }
        }
        .kaydirma::-webkit-scrollbar {
        width: 3px; /* Yatay kaydırma çubuğu için height özelliğini kullanın */
        height: 3px;
    }
    
    /* Kaydırma çubuğu rayının stilini ayarlayın */
    .kaydirma::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 5px;
    }
    
    /* Kaydırma çubuğu başlığının stilini ayarlayın */
    .kaydirma::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 5px;
    }
    
    /* Kaydırma çubuğu başlığının üzerine gelindiğinde stilini ayarlayın */
    .kaydirma::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    .site-tab-nav li a.active {
        background: none !important;
       color: rgb(72, 72, 72) !important; 
        border: 2px solid rgb(72, 72, 72); }
    
    
        @media(max-width:425px) {
      .contact-info-mobile{
        font-size: 12px;
      }
      .footer-responsive{
    flex-direction: column;
    align-items: center;
      }
    }
        </style> 
        
        <link rel="stylesheet" href="{{asset('/assets/web/css/bootstrap.min.css')}}">
        <link rel="stylesheet" href="{{asset('/assets/web/css/animate.css')}}">
        <link rel="stylesheet" href="{{asset('/assets/web/css/icomoon.css')}}">
        <link rel="stylesheet" href="{{asset('/assets/web/css/style.css')}}">
        <link rel="stylesheet" href="{{asset('/assets/web//assets/css/style.css')}}">
        <link href="{{asset('/assets/web//assets/vendor/bootstrap-icons/bootstrap-icons.css')}}" rel="stylesheet">
    
@endpush

@section('content')
<section class="site-section mobil-pad" id="section-menu">
  <div class="container">
      <div class="row">
          <div class="col-md-12 text-center mb-5 site-animate">
              <h2 class="display-4"> {{$category->menu_category()}}</h2>
          </div>
          <div class="col-md-12 text-center">
              <ul class="nav site-tab-nav nav-pills mb-5 kaydirma" id="pills-tab" role="tablist" style="display: flex !important; overflow: auto; flex-wrap: nowrap;">
                  @foreach ($menyu_categories as $index => $menyu_category)
                  <li class="nav-item site-animate">
                      <a class="nav-link {{ $index === 0 ? 'active' : '' }}" id="pills-{{$menyu_category->id}}-tab" data-toggle="pill" href="#pills-{{$menyu_category->id}}" role="tab" aria-controls="pills-{{$menyu_category->id}}" aria-selected="{{ $index === 0 ? 'true' : 'false' }}" style="width:max-content !important;">{{$menyu_category->menu_category()}}</a>
                  </li>
                  @endforeach
              </ul>
              <div class="tab-content text-left">
                  @foreach ($menyu_categories as $index => $menyu_category)
                  <div class="tab-pane fade {{ $index === 0 ? 'show active' : '' }}" id="pills-{{$menyu_category->id}}" role="tabpanel" aria-labelledby="pills-{{$menyu_category->id}}-tab">
                      <div class="row">
                          <div class="col-md-6 site-animate">
                              @foreach ($menyus as $menyu)
                              @if($menyu->category_id == $menyu_category->id)
                              <div class="media menu-item">
                                  <img class="mr-3" src="{{$menyu->image()}}" class="img-fluid" alt="{{$menyu->title()}}" style="width: 150px; height:150px;">
                                  <div class="media-body">
                                      <h5 class="mt-0">{{$menyu->title()}}</h5>
                                      <p>{!! strip_tags($menyu->description()) !!}</p>
                                      <h6 class="text-primary menu-price">{{$menyu->price}} ₼</h6>
                                  </div>
                              </div>
                              @endif
                              @endforeach
                          </div>
                      </div>
                  </div>
                  @endforeach
              </div>
          </div>
      </div>
  </div>
</section>
@endsection

@push('js')
    
<script src="{{asset('/assets/web/js/jquery.min.js')}}"></script>
<script src="{{asset('/assets/web/js/popper.min.js')}}"></script>
<script src="{{asset('/assets/web/js/bootstrap.min.js')}}"></script>
<script src="{{asset('/assets/web/js/jquery.easing.1.3.js')}}"></script>
<script src="{{asset('/assets/web/js/jquery.waypoints.min.js')}}"></script>
<script src="{{asset('/assets/web/js/owl.carousel.min.js')}}"></script>
<script src="{{asset('/assets/web/js/jquery.magnific-popup.min.js')}}"></script>
<script src="{{asset('/assets/web/js/bootstrap-datepicker.js')}}"></script>
<script src="{{asset('/assets/web/js/jquery.timepicker.min.js')}}"></script>
<script src="{{asset('/assets/web/js/jquery.animateNumber.min.js')}}"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBVWaKrjvy3MaE7SQ74_uJiULgl1JY0H2s&sensor=false"></script>
<script src="{{asset('/assets/web/js/google-map.js')}}"></script>
<script src="{{asset('/assets/web/js/main.js')}}"></script>
@endpush