<!DOCTYPE html>
<html lang="en">
<head> 
  <meta charset="UTF-8"> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> 
  <title>Withdraw Information - TATA</title> 
  
  <!-- External Resources -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/layui/2.8.17/css/layui.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">

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

    body {
      font-family: 'Poppins', sans-serif;
      /* আপনার লগইন পেজের এনিমেটেড ব্যাকগ্রাউন্ড */
      background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #ff8c00);
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
      color: #fff;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      padding-top: 20px;
    }

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

    .app-wrapper {
      width: 92%;
      max-width: 380px; /* পারফেক্ট মোবাইল সাইজ */
    }

    /* টপ ন্যাভিগেশন */
    .header-nav {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 25px;
    }
    .header-nav a { color: #fff; text-decoration: none; font-size: 20px; }
    .header-nav h2 { font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }

    /* মেইন ফর্ম কার্ড - গ্লাস ইফেক্ট */
    .form-card {
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(15px);
      padding: 30px 20px;
      border-radius: 25px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .input-group {
      margin-bottom: 20px;
    }

    .input-group label {
      display: block;
      font-size: 12px;
      color: #FFD700;
      margin-bottom: 8px;
      font-weight: 500;
      padding-left: 5px;
      text-transform: uppercase;
    }

    .input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-wrap i {
      position: absolute;
      left: 15px;
      color: #FFD700;
      font-size: 16px;
    }

    .input-wrap input, .input-wrap select {
      width: 100%;
      padding: 13px 15px 13px 45px;
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      color: #fff;
      font-size: 15px;
      outline: none;
      transition: 0.3s;
      appearance: none; /* ডিফল্ট সিলেক্ট স্টাইল রিমুভ */
    }

    .input-wrap select option {
      background: #203a43;
      color: #fff;
    }

    .input-wrap input:focus, .input-wrap select:focus {
      border-color: #FFD700;
      background: rgba(0, 0, 0, 0.3);
    }

    /* কনফার্ম বাটন */
    .btn-submit {
      width: 100%;
      padding: 15px;
      background: linear-gradient(90deg, #FF8C00, #FF4500);
      border: none;
      border-radius: 12px;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
      margin-top: 10px;
      letter-spacing: 1px;
    }

    .btn-submit:active { transform: scale(0.97); }

    /* ইনফো সেকশন */
    .info-box {
      margin-top: 25px;
      padding: 15px;
      background: rgba(0, 0, 0, 0.15);
      border-radius: 15px;
      border-left: 4px solid #FFD700;
    }
    .info-box h4 { font-size: 13px; color: #FFD700; margin-bottom: 8px; }
    .info-box p { font-size: 11px; line-height: 1.8; color: #ccc; }

    /* লোডিং এবং এলার্ট */
    .loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; z-index: 9999; display: none; }

  </style>
</head> 
<body> 

<?php
    $user = auth()->user();
?>

<div class="app-wrapper">
  
  <!-- Header -->
  <div class="header-nav">
    <a href="/dashboard"><i class="fa-solid fa-chevron-left"></i></a>
    <h2>Withdraw Information</h2>
  </div>

  <!-- Form Card -->
  <div class="form-card">
    <form action="<?php echo e(route('setup.gateway.submit')); ?>" method="post">
      <?php echo csrf_field(); ?>

      <!-- Holder Name -->
      <div class="input-group">
        <label>Account Holder Name</label>
        <div class="input-wrap">
          <i class="fa-solid fa-user"></i>
          <input type="text" name="realname" placeholder="Enter your full name" value="<?php echo e(auth()->user()->realname); ?>" required>
        </div>
      </div>

      <!-- Method Select -->
      <div class="input-group">
        <label>Select Method</label>
        <div class="input-wrap">
          <i class="fa-solid fa-building-columns"></i>
          <select name="gateway_method" required>
            <option value="">Choose payment method</option>
            <?php $__currentLoopData = \App\Models\BankList::where('status', '1')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $elemenet): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <option value="<?php echo e($elemenet->bank_code); ?>" <?php if($user->gateway_method == $elemenet->bank_code): ?> selected <?php endif; ?>><?php echo e($elemenet->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </select>
          <i class="fa-solid fa-caret-down" style="left: auto; right: 15px; color: #ccc; font-size: 12px;"></i>
        </div>
      </div>

      <!-- Account Number -->
      <div class="input-group">
        <label>Account / Wallet Number</label>
        <div class="input-wrap">
          <i class="fa-solid fa-wallet"></i>
          <input type="text" name="gateway_address" placeholder="Enter BKash/Nagad/Bank No." value="<?php echo e(auth()->user()->gateway_address); ?>" required>
        </div>
      </div>

      <button type="submit" class="btn-submit">Save Information</button> 
    </form>
  </div>

  <!-- Note Box -->
  <div class="info-box">
    <h4><i class="fa-solid fa-circle-exclamation"></i> Important Note</h4>
    <p>
      • Please double check your account information before saving.<br>
      • Incorrect information may cause withdrawal failure.<br>
      • You can update your information anytime if needed.
    </p>
  </div>

</div>

<?php echo $__env->make('alert-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<img src="<?php echo e(asset('public/loading.gif')); ?>" class="loading" id="loader">

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
  $('form').on('submit', function() {
    $('#loader').show();
  });
</script>

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