<div class="modal fade text-start" id="paymentModal{{ $payment->id }}" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-sm modal-dialog-centered">
        <form action="{{ route('admin.payments.update', $payment->id) }}" method="POST" class="modal-content border-0 shadow rounded-4 swal-confirm-form"
              data-title="Update payment status?" data-text="Save payment changes for order #{{ $payment->order_number }}?">
            @csrf
            <div class="modal-header border-0 pb-0">
                <h6 class="modal-title fw-bold text-secondary">Verify #{{ $payment->order_number }}</h6>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body pb-2">
                <div class="mb-3">
                    <label class="form-label small fw-semibold text-muted">Payment Status</label>
                    <select class="form-select rounded-pill px-3" name="payment_status">
                        <option value="pending" {{ $payment->payment_status === 'pending' ? 'selected' : '' }}>Pending</option>
                        <option value="paid" {{ $payment->payment_status === 'paid' ? 'selected' : '' }}>Paid</option>
                        <option value="failed" {{ $payment->payment_status === 'failed' ? 'selected' : '' }}>Failed</option>
                        <option value="refunded" {{ $payment->payment_status === 'refunded' ? 'selected' : '' }}>Refunded</option>
                    </select>
                </div>
                <div class="mb-3">
                    <label class="form-label small fw-semibold text-muted">Receipt / Ref</label>
                    <input type="text" class="form-control rounded-pill px-3 font-monospace" name="payment_reference" value="{{ $payment->payment_reference }}" placeholder="e.g. QKY1234XYZ">
                </div>
            </div>
            <div class="modal-footer border-0 pt-0">
                <button type="submit" class="btn btn-primary-mj w-100 rounded-pill py-2">Save Status</button>
            </div>
        </form>
    </div>
</div>
