<!DOCTYPE html>
<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.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> 
  <title>My Profile - TATA</title> 
  
  <!-- External Resources -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
  <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/layui/2.8.17/css/layui.css">
  <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

  <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;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      padding-bottom: 90px;
      overflow-x: hidden;
    }

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

    .app-wrapper {
      width: 92%;
      max-width: 380px;
    }

    /* প্রোফাইল হেডার */
    .profile-header {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 30px 10px 20px;
    }
    .avatar-box {
      width: 65px; height: 65px;
      border-radius: 50%;
      border: 3px solid #FFD700;
      padding: 3px;
      background: rgba(255,255,255,0.1);
    }
    .avatar-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
    .user-info h3 { font-size: 18px; font-weight: 700; color: #fff; }
    .user-info p { font-size: 13px; opacity: 0.8; }

    /* ইনকাম গ্রিড - উজ্জ্বল কার্ড */
    .income-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 25px;
    }
    .income-card {
      background: var(--glass);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      border-radius: 20px;
      padding: 15px 10px;
      text-align: center;
    }
    .income-card h3 { font-size: 15px; color: #FFD700; font-weight: 700; margin-bottom: 4px; }
    .income-card p { font-size: 10px; opacity: 0.7; font-weight: 500; text-transform: uppercase; }

    /* কুইক অ্যাকশন বাটন */
    .action-row {
      display: flex;
      gap: 15px;
      margin-bottom: 25px;
    }
    .action-btn {
      flex: 1;
      padding: 12px;
      border-radius: 12px;
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #fff;
    }
    .btn-recharge { background: var(--yellow-gradient); color: #222; }
    .btn-withdraw { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); }

    /* মেনু লিস্ট */
    .menu-box {
      background: var(--glass);
      backdrop-filter: blur(15px);
      border-radius: 25px;
      border: 1px solid var(--glass-border);
      padding: 10px 0;
      margin-bottom: 25px;
    }
    .menu-item {
      display: flex;
      align-items: center;
      padding: 15px 20px;
      text-decoration: none;
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      transition: 0.3s;
    }
    .menu-item:last-child { border-bottom: none; }
    .menu-item img { width: 22px; height: 22px; margin-right: 15px; }
    .menu-item p { font-size: 13px; font-weight: 500; flex: 1; }
    .menu-item i { font-size: 12px; opacity: 0.4; }

    /* লগআউট বাটন */
    .logout-btn {
      width: 100%;
      padding: 14px;
      background: rgba(255, 0, 0, 0.15);
      border: 1px solid rgba(255, 0, 0, 0.3);
      border-radius: 15px;
      color: #ff4d4d;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      display: block;
      text-align: center;
    }

    /* বটম ন্যাভ */
    .bottom-nav {
      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-item { text-decoration: none; color: #888; text-align: center; flex: 1; }
    .nav-item i { font-size: 20px; display: block; margin-bottom: 4px; }
    .nav-item span { font-size: 10px; }
    .nav-item.active { color: #FFD700; }

    .loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 9999; }
  </style>
</head> 
<body> 

<div class="app-wrapper">
  
  <!-- Header -->
  <div class="profile-header">
    <div class="avatar-box"><img src="/20260510_124119.png" alt="avatar"></div>
    <div class="user-info">
      <h3>ID: <?php echo e(auth()->user()->id); ?></h3>
      <p><i class="fa-solid fa-phone" style="font-size: 10px;"></i> <?php echo e(auth()->user()->phone); ?></p>
    </div>
  </div>

  <!-- Balances Grid -->
  <div class="income-grid">
    <div class="income-card"><h3><?php echo e(price(auth()->user()->income)); ?></h3><p>Withdraw Bal.</p></div>
    <div class="income-card"><h3><?php echo e(price(auth()->user()->balance)); ?></h3><p>Total Balance</p></div>
    <div class="income-card"><h3><?php echo e(price(auth()->user()->total_withdraw)); ?></h3><p>Total Withd.</p></div>
    <div class="income-card"><h3><?php echo e(price(auth()->user()->today_income ?? 0)); ?></h3><p>Today Income</p></div>
    <div class="income-card"><h3><?php echo e(price(auth()->user()->team_income ?? 0)); ?></h3><p>Team Income</p></div>
    <div class="income-card"><h3><?php echo e(price(auth()->user()->total_income ?? 0)); ?></h3><p>All Income</p></div>
  </div>

  <!-- Actions -->
  <div class="action-row">
    <a href="/user/recharge" class="action-btn btn-recharge"><i class="fa-solid fa-plus-circle"></i> Recharge</a>
    <a href="/withdraw" class="action-btn btn-withdraw"><i class="fa-solid fa-money-bill-transfer"></i> Withdraw</a>
  </div>

  <!-- Menu List -->
  <div class="menu-box">
    <a href="/card" class="menu-item">
      <img src="https://img.icons8.com/?size=100&id=v497NN8UtwoH&format=png&color=FFD700">
      <p>Bind Bank Card</p>
      <i class="fa-solid fa-chevron-right"></i>
    </a>
    <a href="/ordered" class="menu-item">
      <img src="https://img.icons8.com/?size=100&id=CtbB7gx6C8GT&format=png&color=FFD700">
      <p>My Investments</p>
      <i class="fa-solid fa-chevron-right"></i>
    </a>
    <a href="/history" class="menu-item">
      <img src="https://img.icons8.com/?size=100&id=rnAuCAHB3TdB&format=png&color=FFD700">
      <p>Transaction Records</p>
      <i class="fa-solid fa-chevron-right"></i>
    </a>
    <a href="/about" class="menu-item">
      <img src="https://img.icons8.com/?size=100&id=6cdJEps4HrFl&format=png&color=FFD700">
      <p>Company Profile</p>
      <i class="fa-solid fa-chevron-right"></i>
    </a>
    <a href="/service" class="menu-item">
      <img src="https://img.icons8.com/?size=100&id=F4ZPUh2Mk5tk&format=png&color=FFD700">
      <p>Customer Service</p>
      <i class="fa-solid fa-chevron-right"></i>
    </a>
    <a href="/base (5).apk" class="menu-item">
      <img src="https://img.icons8.com/?size=100&id=CcyOKBYi20tH&format=png&color=FFD700">
      <p>Download App</p>
      <i class="fa-solid fa-chevron-right"></i>
    </a>
  </div>

  <a href="/logout" class="logout-btn"><i class="fa-solid fa-power-off"></i> Log Out Account</a>

</div>

<!-- Nav -->
<nav class="bottom-nav">
  <a href="/dashboard" class="nav-item">
    <i class="fa-solid fa-house"></i>
    <span>Home</span>
  </a>
  <a href="/product" class="nav-item">
    <i class="fa-solid fa-layer-group"></i>
    <span>Products</span>
  </a>
  <a href="/my-team" class="nav-item">
    <i class="fa-solid fa-users"></i>
    <span>Team</span>
  </a>
  <a href="/my-profile" class="nav-item active">
    <i class="fa-solid fa-circle-user"></i>
    <span>Profile</span>
  </a>
</nav>

<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/layui/2.8.17/layui.js"></script>

</body>
</html><?php /**PATH /home/goldenyi/public_html/resources/views/app/main/profile.blade.php ENDPATH**/ ?>