<?php $__env->startSection('content'); ?>
<div class="container-xxl flex-grow-1 container-p-y">
  <div class="row g-4">
    <div class="col-md-4">
      <div class="card">
        <div class="card-header"><h6 class="mb-0">Request Payout</h6></div>
        <div class="card-body">
          <p class="mb-2">Available balance: <strong>$<?php echo e(number_format($wallet->balance,2)); ?></strong></p>
          <form method="POST" action="<?php echo e(route('payout-requests.store')); ?>" class="row g-2">
            <?php echo csrf_field(); ?>
            <div class="col-12"><input type="number" step="0.01" min="0.01" name="amount" class="form-control" placeholder="Amount" required></div>
            <div class="col-12"><input type="text" name="bank_name" class="form-control" placeholder="Bank name"></div>
            <div class="col-12"><input type="text" name="account_name" class="form-control" placeholder="Account name"></div>
            <div class="col-12"><input type="text" name="account_number" class="form-control" placeholder="Account number"></div>
            <div class="col-12 d-grid"><button class="btn btn-primary">Submit Request</button></div>
          </form>
        </div>
      </div>
    </div>
    <div class="col-md-8">
      <div class="card">
        <div class="card-header"><h5 class="mb-0">My Payout Requests</h5></div>
        <div class="table-responsive">
          <table class="table">
            <thead><tr><th>Amount</th><th>Status</th><th>Note</th><th>Date</th></tr></thead>
            <tbody>
              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $payoutRequests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $request): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
              <tr>
                <td>$<?php echo e(number_format($request->amount,2)); ?></td>
                <td><?php echo e(ucfirst($request->status)); ?></td>
                <td><?php echo e($request->admin_note); ?></td>
                <td><?php echo e($request->created_at->format('Y-m-d H:i')); ?></td>
              </tr>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
              <tr><td colspan="4" class="text-center py-4">No payout requests yet.</td></tr>
              <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </tbody>
          </table>
        </div>
        <div class="card-body"><?php echo e($payoutRequests->links()); ?></div>
      </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\G_desizn\marketplace\resources\views/payout_requests/index.blade.php ENDPATH**/ ?>