<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
  <title>Dashboard</title>
  
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
  
  <!-- Swiper CSS (Slider এর জন্য নতুন) -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />

  <style>
    :root {
      --primary-gradient: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #ff8c00);
      --yellow-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
      --orange-btn: linear-gradient(90deg, #FF8C00, #FF4500);
      --glass: rgba(255, 255, 255, 0.12);
      --glass-border: rgba(255, 255, 255, 0.2);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

    body {
      font-family: 'Poppins', sans-serif;
      background: var(--primary-gradient);
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
      color: #fff;
      overflow-x: hidden;
      min-height: 100vh;
    }

    @keyframes gradientBG {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .header { padding: 30px 20px 20px; text-align: center; }
    .brand-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 25px; }
    .brand-logo h1 { font-size: 20px; font-weight: 700; letter-spacing: 1px; }

    .balance-container { display: flex; gap: 15px; margin-bottom: 25px; }
    .balance-card { flex: 1; background: var(--yellow-gradient); border-radius: 20px; padding: 18px 12px; color: #333; box-shadow: 0 10px 20px rgba(0,0,0,0.2); position: relative; overflow: hidden; }
    .balance-card small { font-size: 11px; font-weight: 600; text-transform: uppercase; opacity: 0.8; }
    .balance-card .amount { font-size: 18px; font-weight: 800; margin-top: 5px; }

    .main-content { padding: 0 16px 100px; }

    /* MENU GRID */
    .menu-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
      background: var(--glass); backdrop-filter: blur(10px); padding: 20px 10px;
      border-radius: 25px; border: 1px solid var(--glass-border); margin-bottom: 25px;
    }
    .menu-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .icon-circle { width: 50px; height: 50px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .icon-circle img { width: 28px; height: 28px; object-fit: contain; }
    .menu-item span { font-size: 10px; color: #fff; font-weight: 500; }

    /* --- SLIDER CSS (নতুন) --- */
    .banner-slider {
      width: 100%;
      border-radius: 20px;
      margin-bottom: 25px;
      border: 2px solid var(--glass-border);
      overflow: hidden;
      position: relative;
    }
    .banner-slider .swiper-slide img {
      width: 100%;
      display: block;
      border-radius: 18px;
    }
    .swiper-pagination-bullet { background: #fff !important; }
    .swiper-pagination-bullet-active { background: #FFA500 !important; width: 15px; border-radius: 5px; }

    /* TAB SYSTEM CSS */
    .tab-container {
      display: flex; background: rgba(0, 0, 0, 0.3); border-radius: 15px;
      padding: 6px; margin-bottom: 25px; border: 1px solid var(--glass-border); gap: 5px;
    }
    .tab-btn {
      flex: 1; padding: 12px 5px; text-align: center; font-size: 12px; font-weight: 700;
      border-radius: 10px; cursor: pointer; transition: all 0.3s ease; color: #aaa; text-transform: uppercase;
    }
    .tab-btn.active {
      background: var(--yellow-gradient); color: #000; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    .tab-content { display: none; }
    .tab-content.active { display: block; animation: fadeIn 0.4s ease-out; }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* VIP CARD LOOK */
    .vip-card { background: var(--glass); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 25px; padding: 15px; margin-bottom: 20px; position: relative; }
    .vip-tag { position: absolute; top: 0; right: 20px; background: var(--yellow-gradient); color: #333; font-size: 10px; font-weight: 700; padding: 5px 15px; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
    .product-row { display: flex; gap: 15px; align-items: center; margin-top: 10px; }
    .product-img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); }
    .product-info h3 { font-size: 16px; margin-bottom: 8px; color: #fff; }
    .product-info p { font-size: 12px; color: #ddd; margin-bottom: 4px; }
    .product-info span { color: #FFD700; font-weight: 700; }
    .invest-btn { width: 100%; background: var(--orange-btn); color: #fff; text-align: center; padding: 14px; border-radius: 15px; text-decoration: none; font-weight: 700; display: block; margin-top: 15px; text-transform: uppercase; font-size: 13px; box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3); }

    /* BOTTOM NAV */
    .nav-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(15, 32, 39, 0.95); backdrop-filter: blur(15px); display: flex; justify-content: space-around; padding: 12px 0; border-top: 1px solid var(--glass-border); z-index: 1000; }
    .nav-link { text-decoration: none; color: #888; text-align: center; flex: 1; }
    .nav-link i { font-size: 22px; display: block; margin-bottom: 3px; }
    .nav-link span { font-size: 10px; }
    .nav-link.active { color: #FFD700; }
  </style>
</head>
<body>

  <div class="header">
    <div class="brand-logo">
      <h2>Goldenyields</h2>
    </div>
    <div class="balance-container">
      <div class="balance-card">
        <small>Recharge Balance</small>
        <div class="amount"><?php echo e(price(auth()->user()->deposit_balance)); ?></div>
      </div>
      <div class="balance-card">
        <small>Withdraw Balance</small>
        <div class="amount"><?php echo e(price(auth()->user()->balance)); ?></div>
      </div>
    </div>
  </div>

  <div class="main-content">
    
    <!-- MENU GRID -->
    <div class="menu-grid">
      <a href="/user/recharge" class="menu-item"><div class="icon-circle"><img src="/hawl/17618232.png"></div><span>Recharge</span></a>
      <a href="<?php echo e(url('withdraw')); ?>" class="menu-item"><div class="icon-circle"><img src="/hawl/17618065.png"></div><span>Withdraw</span></a>
      <a href="/card" class="menu-item"><div class="icon-circle"><img src="/hawl/17618081.png"></div><span>Bank</span></a>
      <a href="/product" class="menu-item"><div class="icon-circle"><img src="/hawl/17618216.png"></div><span>Store</span></a>
      <a href="/get-bonus" class="menu-item"><div class="icon-circle"><img src="/hawl/17801520.png"></div><span>Bonus</span></a>
      <a href="/service" class="menu-item"><div class="icon-circle"><img src="/hawl/17801512.png"></div><span>Support</span></a>
      <a href="<?php echo e(url('my-team')); ?>" class="menu-item"><div class="icon-circle"><img src="/hawl/17801596.png"></div><span>Invite</span></a>
      <a href="/ordered" class="menu-item"><div class="icon-circle"><img src="/hawl/ah.png"></div><span>Products</span></a>
    </div>

    <!-- BANNER SLIDER (আপনার অনুরোধ করা স্লাইডার) -->
    <div class="swiper banner-slider">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <img src="/WhatsApp Image 2026-05-13 at 4.43.11 PM.jpeg" onclick="location.href='/my-team'">
        </div>
        <div class="swiper-slide">
          <img src="/WhatsApp Image 2026-05-13 at 4.43.11 PM (1).jpeg" onclick="location.href='/my-team'">
        </div>
        <div class="swiper-slide">
          <img src="/WhatsApp Image 2026-05-13 at 4.43.12 PM.jpeg" onclick="location.href='/my-team'">
        </div>
      </div>
      <!-- Pagination Dots -->
      <div class="swiper-pagination"></div>
    </div>

    <!-- TAB SYSTEM -->
    <div class="tab-container">
        <div class="tab-btn active" onclick="openTab(event, 'vip')">VIP</div>
        <div class="tab-btn" onclick="openTab(event, 'daily_vip')">Daily VIP</div>
        <div class="tab-btn" onclick="openTab(event, 'fixed_vip')">Fixed VIP</div>
    </div>

    <?php
      use App\Models\Package;
      $allPackages = Package::where('status','active')->get();
    ?>

    <!-- VIP TAB CONTENT -->
    <div id="vip" class="tab-content active">
        <?php $__currentLoopData = $allPackages->where('category', 'vip'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="vip-card">
            <div class="vip-tag">VIP LEVEL</div>
            <div class="product-row">
                <img src="<?php echo e(asset($package->photo)); ?>" class="product-img">
                <div class="product-info">
                    <h3><?php echo e($package->name); ?></h3>
                    <p>Investment: <span><?php echo e(price($package->price)); ?></span></p>
                    <p>Validity: <span><?php echo e(price($package->validity)); ?></span></p>
                    <p>Daily Profit: <span><?php echo e(price($package->commission_with_avg_amount / $package->validity)); ?></span></p>
                    <p>Total Return: <span><?php echo e(price($package->commission_with_avg_amount)); ?></span></p>
                </div>
            </div>
            <a href="<?php echo e(route('vip.details',$package->id)); ?>" class="invest-btn">Invest Now</a>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

    <!-- DAILY VIP TAB CONTENT -->
    <div id="daily_vip" class="tab-content">
        <?php $__currentLoopData = $allPackages->where('category', 'daily_vip'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="vip-card">
            <div class="vip-tag">DAILY VIP</div>
            <div class="product-row">
                <img src="<?php echo e(asset($package->photo)); ?>" class="product-img">
                <div class="product-info">
                    <h3><?php echo e($package->name); ?></h3>
                    <p>Investment: <span><?php echo e(price($package->price)); ?></span></p>
                    <p>Validity: <span><?php echo e(price($package->validity)); ?></span></p>
                    <p>Daily Profit: <span><?php echo e(price($package->commission_with_avg_amount / $package->validity)); ?></span></p>
                    <p>Total Return: <span><?php echo e(price($package->commission_with_avg_amount)); ?></span></p>
                </div>
            </div>
            <a href="<?php echo e(route('vip.details',$package->id)); ?>" class="invest-btn">Invest Now</a>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

    <!-- FIXED VIP TAB CONTENT -->
    <div id="fixed_vip" class="tab-content">
        <?php $__currentLoopData = $allPackages->where('category', 'fixed_vip'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="vip-card">
            <div class="vip-tag">FIXED VIP</div>
            <div class="product-row">
                <img src="<?php echo e(asset($package->photo)); ?>" class="product-img">
                <div class="product-info">
                    <h3><?php echo e($package->name); ?></h3>
                    <p>Investment: <span><?php echo e(price($package->price)); ?></span></p>
                    <p>Validity: <span><?php echo e(price($package->validity)); ?></span></p>
                    <p>Daily Profit: <span><?php echo e(price($package->commission_with_avg_amount / $package->validity)); ?></span></p>
                    <p>Total Return: <span><?php echo e(price($package->commission_with_avg_amount)); ?></span></p>
                </div>
            </div>
            <a href="<?php echo e(route('vip.details',$package->id)); ?>" class="invest-btn">Invest Now</a>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

  </div>

  <!-- BOTTOM NAV -->
  <nav class="nav-bar">
    <a href="/dashboard" class="nav-link active"><i class="fa-solid fa-house-chimney"></i><span>Home</span></a>
    <a href="/product" class="nav-link"><i class="fa-solid fa-briefcase"></i><span>Products</span></a>
    <a href="/my-team" class="nav-link"><i class="fa-solid fa-users-viewfinder"></i><span>Team</span></a>
    <a href="/my-profile" class="nav-link"><i class="fa-solid fa-circle-user"></i><span>Profile</span></a>
  </nav>

  <!-- Swiper JS -->
  <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>

  <script>
    // Tab Switching Function
    function openTab(evt, tabName) {
      var i, tabcontent, tablinks;
      tabcontent = document.getElementsByClassName("tab-content");
      for (i = 0; i < tabcontent.length; i++) {
        tabcontent[i].classList.remove("active");
      }
      tablinks = document.getElementsByClassName("tab-btn");
      for (i = 0; i < tablinks.length; i++) {
        tablinks[i].classList.remove("active");
      }
      document.getElementById(tabName).classList.add("active");
      evt.currentTarget.classList.add("active");
    }

    // Initialize Swiper (Slider Logic)
    const swiper = new Swiper('.banner-slider', {
      loop: true,
      autoplay: {
        delay: 3000,
        disableOnInteraction: false,
      },
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
    });
  </script>
</body>
</html><?php /**PATH /home/goldenyi/public_html/resources/views/app/main/index.blade.php ENDPATH**/ ?>