@extends('layouts.admin')

@section('content')
  <div class="card-header">
    <h4>Manage Wallets</h4>
  </div>

  <div class="card-body">
    @include('admin.partials.flash-messages')

    <div class="portal-page-shell">
      <div class="portal-hero-card">
        <div class="portal-hero-main">
          <div class="portal-hero-copy">
            <h5>Pending Wallet Requests</h5>
            <p>Review wallet recharge proofs, verify transaction details, and approve or reject pending credit requests.</p>
            <div class="portal-chip-list">
              <span class="portal-chip">{{ $wallethistory->count() }} Pending</span>
              <span class="portal-chip">Recharge Review</span>
              <span class="portal-chip">Image Proof Enabled</span>
            </div>
            <div class="portal-hero-actions">
              <a href="{{ route('admin.amountrequestaccepted') }}" class="btn btn-outline-primary btn-sm">Accepted Requests</a>
              <a href="{{ route('admin.rejectrequest') }}" class="btn btn-outline-danger btn-sm">Rejected Requests</a>
            </div>
          </div>
        </div>
      </div>

      <div class="portal-form-shell">
        @include('admin.wallets.partials.recharge-table', [
          'records' => $wallethistory,
          'viewMode' => 'pending',
        ])
      </div>
    </div>
  </div>
@endsection
