@php /** @var array|null $res ['id' => checkoutId] */ /** @var string|null$brand 'visa' | 'master' | 'mada' | 'applepay' */ /** @var string|null $error */ $locale = app()->getLocale() ?: 'ar'; $isArabic = str_starts_with($locale, 'ar'); // Determine selected payment type $brand = $res['brand'] ?? 'visa'; $type = $res['type']; $amount = $res['amount'] ?? ($amount ?? 0); $model_id = $res['model_id']; // Supported payment brands $allowed = [ 'visa' => 'VISA', 'master' => 'MASTER', 'mada' => 'MADA', 'applepay' => 'APPLEPAY', ]; $selectedBrand = $allowed[$brand] ?? null; $checkoutId = $res['id'] ?? null; $mode = $res['mode'] ?? config('hyperpay.mode', 'test'); // UI Colors $primary = '#735685'; $secondary = '#9A85FF'; $bg = '#F6F7FB'; @endphp
{{ $isArabic ? 'جميع عمليات الدفع عبر منصتنا آمنة ومشفّرة بالكامل.' : 'All payments through our platform are fully encrypted and secure.' }}