@php
    $paymentFailureReason = $paymentFailureReason ?? \App\Support\PaymentFailure::resolveReason($order ?? null);
@endphp

@if(!empty($paymentFailureReason))
    <div class="alert alert-danger mt-20 text-right payment-failure-alert" role="alert" style="border-right: 4px solid #f63c3c;">
        <h5 class="font-weight-bold mb-10">سبب رفض الدفع</h5>
        <p class="mb-0 font-14">{{ $paymentFailureReason }}</p>
        @if(!empty($order) && !empty($order->id))
            <p class="mb-0 mt-10 font-12 text-gray">رقم الطلب: #{{ $order->id }}</p>
        @endif
    </div>
@endif
