{{-- Operations Table Component --}}
| ID | UUID | اللعبة | الموقع الخارجي | المنتج | الحالة | الكود | ملاحظات | تاريخ الإنشاء | تاريخ التحديث | الإجراءات |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $operation->id }} | @if ($operation->uuid) {{ $operation->uuid }} @else — @endif | {{ $operation->game ? $operation->game->name : 'غير متوفر' }} | {{ $operation->externalSite ? $operation->externalSite->name : 'غير متوفر' }} | {{ $operation->product ? $operation->product->name : 'غير متوفر' }} | {{ $operation->statusvalue() }} |
@if ($operation->chargeCode)
{{ $operation->chargeCode }}
@if ($operation->externalSite)
@else
—
@endif
{{ $operation->externalSite->name }} @endif |
@if ($operation->notes)
@php
try {
$notesData = is_array($operation->notes)
? $operation->notes
: json_decode($operation->notes, true);
if (is_array($notesData)) {
if (isset($notesData['msg'])) {
echo $notesData['msg'];
} elseif (isset($notesData['0'])) {
echo $notesData['0'];
} else {
echo json_encode(
$notesData,
JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE,
);
}
} else {
echo $operation->notes;
}
} catch (Exception $e) {
echo $operation->notes;
}
@endphp
@else
—
@endif
|
{{ $operation->created_at->format('Y/m/d H:i:s') }} | {{ $operation->updated_at->format('Y/m/d H:i:s') }} | @if ($operation->chargeCode && $operation->product && $operation->product->storage_id) @endif @if ($operation->product && $operation->product->storage_id) @endif |