<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- title -->
     <!-- Primary Meta Tags -->
    <title>Dürrəm Ailəvi Restoran | Rəsmi Menyu</title>
    <meta name="title" content="Dürrəm Ailəvi Restoran | Rəsmi Menyu">
    <meta name="description" content="Dürrəm Ailəvi Restoran-in rəsmi menyusu ilə tanış olun. Ləzzətli yeməklər, içkilər və xüsusi təkliflər sizi gözləyir!">

    <link rel="icon" type="image/png" href="{{asset('/assets/web/image/durremlogo.png')}}" sizes="128x128">

    
    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://durrem.menyum.az/">
    <meta property="og:title" content="Dürrəm Ailəvi Restoran | Rəsmi Menyu">
    <meta property="og:description" content="Dürrəm Ailəvi Restoran-in rəsmi menyusu ilə tanış olun. Ləzzətli yeməklər, içkilər və xüsusi təkliflər sizi gözləyir!">
    <meta property="og:image" content="https://durrem.menyum.az/assets/web/image/sahil.jpeg">
    
    <!-- Twitter -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="https://durrem.menyum.az/">
    <meta name="twitter:title" content="Dürrəm Ailəvi Restoran | Rəsmi Menyu">
    <meta name="twitter:description" content="Dürrəm Ailəvi Restoran-in rəsmi menyusu ilə tanış olun. Ləzzətli yeməklər, içkilər və xüsusi təkliflər sizi gözləyir!">
    <meta name="twitter:image" content="https://durrem.menyum.az/assets/web/image/sahil.jpeg">

	<!-- favicon -->
	<link rel="shortcut icon" type="image/png" href="{{ asset('/assets/web/image/durrem.png') }}">
	<!-- google font -->
	<!--<link href="{{ asset('/assets/web/css') }}?family=Open+Sans:300,400,700" rel="stylesheet">-->
	<!--<link href="{{ asset('/assets/web/css-1') }}?family=Poppins:400,700&display=swap" rel="stylesheet">-->
	<!-- fontawesome -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/css/all.min.css') }}">
	<!-- bootstrap -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/bootstrap/css/bootstrap.min.css') }}">
	<!-- owl carousel -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/css/owl.carousel.css') }}">
	<!-- magnific popup -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/css/magnific-popup.css') }}">
	<!-- animate css -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/css/animate.css') }}">
	<!-- mean menu css -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/css/meanmenu.min.css') }}">
	<!-- main style -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/css/main.css') }}">
	<!-- responsive -->
	<link rel="stylesheet" href="{{ asset('/assets/web/assets/css/responsive.css') }}">
	
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<style>
	.hero-btns a {
		padding: 15px;
	}
	.fab{
		color:  rgb(241, 185, 26);
		font-size: 28px;
	}


	.galery{
		display: flex;
		flex-wrap: nowrap;
		gap: 10px;
    overflow-x: auto;
	}
	.galery-image{
		height: 200px;
		object-fit: cover;
	}
</style>
<!-- CSS -->

@stack('css')
</head>
<body>



	<!-- header -->
	@include('app.web.includes.header')
	<!-- end header -->
	

<style>
  .popup-container {
    position: fixed;
    bottom: 20px;
    right: 0;
  }

  .popup-button {
    padding: 10px 20px;
    background-color:  #cd134f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .popup-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    width: 300px;
  }

  .popup-form input,
  .popup-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  .form-buttons button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .form-buttons button[type='submit'] {
    background-color:  #cd134f;
    color: white;
  }
</style>

<div class="popup-container" style="z-index: 5 !important;">
  <button class="popup-button" onclick="openPopup()">@lang('Rəy yaz')</button>
  <div class="popup-form" id="popupForm">
    <!--<form onsubmit="submitForm(event)">-->
        <form>
      <input type="text" placeholder="Adınız/Soyadınız" id="nameInput" required />
      <input type="email" placeholder="E-mail ünvanınız" id="emailInput" required />
      <input type="tel" placeholder="Əlaqə nömrəniz" id="phoneInput" required />
      <textarea placeholder="Mesajınız" id="messageInput" required></textarea>
      <div class="form-buttons">
        <button type="button" onclick="closePopup()">Bağla</button>
        <!--<button type="submit">Göndər</button>-->
          <button >Göndər</button>
      </div>
    </form>
  </div>
</div>

<script>
  const botToken = "#"; 
  const groupChatId = "-4638615440"; 

  function openPopup() {
    document.getElementById('popupForm').style.display = 'block';
  }

  function closePopup() {
    document.getElementById('popupForm').style.display = 'none';
  }

  function submitForm(event) {
    event.preventDefault();
    
    const name = document.getElementById('nameInput').value.trim();
    const email = document.getElementById('emailInput').value.trim();
    const phone = document.getElementById('phoneInput').value.trim();
    const message = document.getElementById('messageInput').value.trim();

    if (!name || !email || !phone || !message) {
      alert("Zəhmət olmasa bütün xanaları doldurun!");
      return;
    }

    const fullMessage = `📩 Yeni Mesaj!\n👤 Ad: ${name}\n📧 Email: ${email}\n📞 Telefon: ${phone}\n💬 Mesaj: ${message}`;

    // Telegram-a mesaj göndəririk
    fetch(`https://api.telegram.org/bot${botToken}/sendMessage`, {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({
        chat_id: groupChatId,
        text: fullMessage,
        parse_mode: "HTML"
      })
    })
    .then(response => response.json())
    .then(data => {
      if (data.ok) {
        alert("✅ Mesaj uğurla göndərildi!");
        document.getElementById('nameInput').value = '';
        document.getElementById('emailInput').value = '';
        document.getElementById('phoneInput').value = '';
        document.getElementById('messageInput').value = '';
        closePopup();
      } else {
        alert("❌ Mesaj göndərilə bilmədi. Xahiş edirik yenidən yoxlayın.");
      }
    })
    .catch(error => {
      console.error("Xəta:", error);
      alert("❌ Şəbəkə xətası! Xahiş edirik internet bağlantınızı yoxlayın.");
    });
  }
</script>





    @yield('content')
    
    
   
	<br><br>
	<!-- footer -->
	@include('app.web.includes.footer')
	<!-- end footer -->
<!-- JavaScript -->


    @stack('js')

	<!-- jquery -->
	<script src="{{ asset('/assets/web/assets/js/jquery-1.11.3.min.js') }}"></script>
	<!-- bootstrap -->
	<script src="{{ asset('/assets/web/assets/bootstrap/js/bootstrap.min.js') }}"></script>
	<!-- count down -->
	<script src="{{ asset('/assets/web/assets/js/jquery.countdown.js') }}"></script>
	<!-- isotope -->
	<script src="{{ asset('/assets/web/assets/js/jquery.isotope-3.0.6.min.js') }}"></script>
	<!-- waypoints -->
	<script src="{{ asset('/assets/web/assets/js/waypoints.js') }}"></script>
	<!-- owl carousel -->
	<script src="{{ asset('/assets/web/assets/js/owl.carousel.min.js') }}"></script>
	<!-- magnific popup -->
	<script src="{{ asset('/assets/web/assets/js/jquery.magnific-popup.min.js') }}"></script>
	<!-- mean menu -->
	<script src="{{ asset('/assets/web/assets/js/jquery.meanmenu.min.js') }}"></script>
	<!-- sticker js -->
	<script src="{{ asset('/assets/web/assets/js/sticker.js') }}"></script>
	<!-- main js -->
	<script src="{{ asset('/assets/web/assets/js/main.js') }}"></script>

</body>
</html>
