@extends('layouts.admin')

@section('content')
  <div class="card-header">
    <h4>Rejected Wallet Requests</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>Rejected Wallet Requests</h5>
            <p>Review cancelled wallet recharge requests and restore them if the transaction proof becomes valid later.</p>
            <div class="portal-chip-list">
              <span class="portal-chip">{{ $wallethistory->count() }} Rejected</span>
              <span class="portal-chip">Recharge Cancelled</span>
              <span class="portal-chip">Recovery Available</span>
            </div>
            <div class="portal-hero-actions">
              <a href="{{ route('admin.amountrequest') }}" class="btn btn-outline-primary btn-sm">Pending Requests</a>
              <a href="{{ route('admin.amountrequestaccepted') }}" class="btn btn-outline-info btn-sm">Accepted Requests</a>
            </div>
          </div>
        </div>
      </div>

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