@extends('layouts.store', ['title' => $order->order_number.' | RaseedNow']) @php $manualGatewayPayload = ($manualPaymentGateways ?? collect())->map(fn ($gateway) => [ 'id' => $gateway->id, 'name' => $gateway->name_ar, 'description' => $gateway->description_ar, 'account_number' => $gateway->account_number, 'instructions' => $gateway->instructions_ar, 'proof_instructions' => $gateway->proof_instructions_ar, 'receiver_data' => $gateway->receiver_data ?: [[ 'label' => $gateway->account_label_ar ?: 'بيانات التحويل', 'value' => $gateway->account_number, 'type' => 'text', 'copyable' => true, ]], 'required_fields' => $gateway->required_fields ?: [], 'requires_proof' => $gateway->requires_proof, 'proof_is_required' => $gateway->proof_is_required, 'proof_max_mb' => $gateway->proof_max_mb ?: 6, ])->values(); $pendingManualSubmission = $order->manualPaymentSubmissions->first(fn ($submission) => in_array($submission->status, ['pending', 'info_requested', 'approved'], true)); @endphp @section('content')
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
تفاصيل الطلب

{{ $order->order_number }}

العودة للمتجر
@if($order->payment_method === 'mock_gateway' && $order->payment_status !== 'paid')
الدفع التجريبي لم يكتمل بعد. افتح بوابة الدفع
@endif @if($order->payment_method === 'online_gateway' && $order->payment_status !== 'paid')
الدفع الإلكتروني لم يكتمل بعد. متابعة الدفع
@endif @if($order->payment_method === 'manual' && $order->payment_status !== 'paid')
دفع يدوي للطلب

إرسال إثبات التحويل

انسخ بيانات التحويل، حوّل إجمالي الطلب، ثم ارفع صورة التحويل هنا. الطلب لن يتم تنفيذه إلا بعد مراجعة الإدارة.

@if($pendingManualSubmission)
تم إرسال إثبات لهذا الطلب الحالة الحالية: {{ $pendingManualSubmission->status }} — رقم المرجع: {{ $pendingManualSubmission->reference_number ?: 'غير مسجل' }}
@elseif(($manualPaymentGateways ?? collect())->isEmpty())
لا توجد وسائل دفع يدوية مفعلة الآن تواصل مع الإدارة لتفعيل وسيلة تحويل.
@else
@csrf
المبلغ المطلوب تحويله {{ number_format($order->total_minor / 100, 2) }} {{ $order->currency_code }}

{{ $manualPaymentGateways->first()?->description_ar }}

{{ $manualPaymentGateways->first()?->instructions_ar }}

{{ $manualPaymentGateways->first()?->proof_instructions_ar }}

@endif
@endif
الدفع{{ $order->payment_status }}
التنفيذ{{ $order->fulfillment_status }}
الإجمالي{{ number_format($order->total_minor / 100, 2) }} {{ $order->currency_code }}
طريقة الدفع{{ $order->payment_method }}
@if($order->discount_minor > 0 || $order->cashback_minor > 0 || $order->loyalty_points_earned > 0)
خصم{{ number_format($order->discount_minor / 100, 2) }}
Cashback{{ number_format($order->cashback_minor / 100, 2) }}
نقاط مكتسبة{{ $order->loyalty_points_earned }}
@endif @if($order->latestPaymentAttempt)
آخر محاولة دفع: {{ $order->latestPaymentAttempt->reference }} / {{ $order->latestPaymentAttempt->status }}
@endif
@foreach($order->items as $item)
{{ $item->name_snapshot }} @if($canRevealCodes && $item->stockCodes->isNotEmpty()) @foreach($item->stockCodes as $code) كود التسليم: {{ $code->decryptedCode() }} @endforeach @elseif($item->delivery_method_snapshot === 'stored_code') سيظهر الكود هنا بعد تأكيد الدفع وإكمال التنفيذ. @endif {{ number_format($item->total_minor / 100, 2) }} {{ $item->fulfillment_status }}
@endforeach
@if($canRevealCodes)
احتفظ بالأكواد في مكان آمن. هذه الأكواد تخص هذا الطلب فقط ولا تظهر إلا لصاحب الطلب أو الأدمن.
@endif
@if($order->payment_method === 'manual' && $order->payment_status !== 'paid' && ! $pendingManualSubmission) @endif @endsection