المبلغ المطلوب:
{{ number_format((float) $creditRequest->amount, 2, '.', ',') }}
{{ $creditRequest->currency->name ?? '' }}
@if (!is_null($creditRequest->final_amount) && (float) $creditRequest->final_amount !== (float) $creditRequest->amount)
المبلغ النهائي:
{{ number_format((float) $creditRequest->final_amount, 2, '.', ',') }}
{{ $creditRequest->currency->name ?? '' }}
@endif
طريقة الدفع:
{{ $creditRequest->method->name ?? '-' }}
العملة:
{{ $creditRequest->currency->name ?? '-' }}
@if (!empty($creditRequest->operation_number))
رقم العملية:
{{ $creditRequest->getOriginalOperationNumber() }}
@endif
@if (!empty($creditRequest->payment_id))
معرف الدفع:
{{ $creditRequest->payment_id }}
@endif
@if (!empty($creditRequest->note) && trim($creditRequest->note) !== '_')
@if ($creditRequest->status === 'rejected')
سبب الرفض:
{{ $creditRequest->note }}
@else
ملاحظة:
{{ $creditRequest->note }}
@endif
@endif
@if (!empty($creditRequest->image))
@endif
@if (!empty($attachments))
المرفقات
@foreach ($attachments as $key => $value)
@php
$label = $attachmentNames[$key] ?? 'المرفق #' . $key;
$isFile =
is_string($value) && \Illuminate\Support\Str::startsWith($value, 'file__');
$fileName = $isFile ? substr($value, 6) : null;
$url = null;
if ($isFile) {
if (
is_string($fileName) &&
(\Illuminate\Support\Str::startsWith($fileName, 'http://') ||
\Illuminate\Support\Str::startsWith($fileName, 'https://'))
) {
$url = $fileName;
} else {
$url = route('media.credit-request.attachment', [
'creditRequest' => $creditRequest->id,
'field' => $key,
]);
}
}
@endphp
{{ $label }}
@if ($isFile && $url)
@else
{{ is_array($value) ? json_encode($value, JSON_UNESCAPED_UNICODE) : (string) $value }}
@endif
@endforeach
@endif