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

@section('title','Main Menyu')

@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); }
        </style>
        <style>
            .page_title {
        padding: 30px 0px;
    }
    .page_title h1 {
        color: #ffb12c;
        font-weight: 700;
        line-height: 2;
        margin-bottom: 0;
        position: relative;
        text-transform: capitalize;
    }
    .page_title h1::before {
        background: #ffb12c;
        width: 70px;
        height: 2px;
        position: absolute;
        content: '';
        top: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .page_title h1::after {
        position: absolute;
        content: '';
        background: #fbc531;
        width: 30px;
        height: 2px;
        top: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    /*Menu starts*/
    .menu_tab {
        margin: 0 auto;
        justify-content: center;
    }
    .nav-item {
        display: inline-block;
        text-align: center;
    }
    .nav-tabs .nav-link{
        transition: .3s;
    }
    .nav-tabs .nav-link.active {
        background: #ffb12c;
        color: #fff;
        font-weight: 700;
        border: 1px solid #ffb12c;
        text-transform: capitalize;
    }
    .nav-link {
        color: #000;
    }
    .nav-tabs .nav-link:hover {
        background: #ffb12c;
        color: #fff;
        border: 1px solid #ffb12c;
    }
    .single_menu {
        position: relative;
        margin-bottom: 75px;
        transition: .3s;
    }
    .single_menu:hover img{
        -webkit-clip-path: polygon(0% 0%, 100% 0, 100% 50%, 100% 100%, 0% 100%);
    clip-path: polygon(0% 0%, 100% 0, 100% 50%, 100% 100%, 0% 100%);

    }

    @media(min-width:440px){
        .single_menu img {
        width: 33%;
        position: absolute;
        height: 140px;
        -webkit-clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
        clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
        transition: .3s;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    .menu_content {
        padding-left: 200px;
    }
    }

    @media(max-width:440px){
        .single_menu img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;

    }
    }


    .menu_content h4 {
        font-size: 25px;
        font-weight: 300;
        border-bottom: 1px dashed #ffb12c;
        line-height: 2;
        text-transform: capitalize;
    }
    .menu_content h4 span {
        font-size: 25px;
        font-weight: 800;
        float: right;
        font-style: italic;
        color: #ffb12c;
    }
    .menu_content p {
        font-weight: 200;
        font-size: 16px;
        letter-spacing: 1px;
    }
    .menu_btn.btn.btn-danger {
        margin: 0 auto;
        display: block;
        width: 140px;
    }
    /*Menu ends*/
    .menu_btn.btn.btn-danger {
        margin: 0 auto;
        display: block;
        width: 140px;
    }
    .btn.btn-danger {
        background: #ffb12c;
        border: 1px solid #ffb12c;
        transition: .3s;
        position: relative;
        z-index: 1;
        text-transform: capitalize;
        font-weight: 700;
        overflow: hidden;
        padding: 15px 25px;
    }
    .btn.btn-danger::before {
        position: absolute;
        content: '';
        background: #ffb12c;
        width: 100%;
        height: 100%;
        left: -100%;
        top: 100%;
        transition: .3s;
        z-index: -1;
    }
    .btn.btn-danger:hover:before{
        top: 0;
        left: 0;
    }
    h4{
        color: #ffb12c;
    }
    @media(max-width:425px) {
      .contact-info-mobile{
        font-size: 12px;
      }
      .footer-responsive{
    flex-direction: column;
    align-items: center;
      }
    }
        </style>
@endpush

@section('content')

<section id="our_menu" class="pt-5 pb-5 mt-3">
    <div class="container">
        <br>
        <a href="{{ route('categories') }}" style="display: flex; justify-content: end;"><h6 style=" border: 1px solid #ffb12c; padding: 3px 7px; color:#f1f1f1; border-radius: 3px">Geri</h6></a>

        <div class="row">
            <div class="col-lg-12">
                <div class="page_title text-center mb-4">
                    <h1>{{$menyu_categories->menu_category()}}</h1>
                    <div class="single_line"></div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="tab-content col-lg-12" id="myTabContent">
                <div class="tab-pane fade show active" id="breakfast" role="tabpanel" aria-labelledby="breakfast-tab">
                    <div class="row">
                        <div class="col-md-6">
                        @foreach ($menyus as $mainmenyu)
                            <a href="{{route('menyu',['menyuId' =>$mainmenyu->id])}}">
                                <div class="single_menu">
                                    {{-- <img src="{{$mainmenyu->image()}}" alt="{{$mainmenyu->title()}}"> --}}
                                    <div class="menu_content">
                                        <h4>{{$mainmenyu->title_en}} / {{$mainmenyu->title_az}} <span>{{$mainmenyu->getAttribute('price')}}₼</span></h4>
                                        {{-- <p>{{strip_tags($mainmenyu->description())}}</p> --}}
                                    </div>
                                </div>
                            </a>
                        @endforeach
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</section>
@endsection
