🖼️ Dodaj zdjęcia do starych zamówień

Ręcznie uzupełnij brakujące zdjęcia w zamówieniach

@if(session('ok'))
✅ {{ session('ok') }}
@endif @if(session('error'))
❌ {{ session('error') }}
@endif
← Powrót do zamówień
@if($ordersNeedingFix->isEmpty())

Wszystkie zamówienia mają zdjęcia!

Nie ma zamówień wymagających uzupełnienia.

@else

Znaleziono {{ $ordersNeedingFix->count() }} zamówień bez zdjęć

@foreach($ordersNeedingFix as $order)
Zamówienie #{{ $order->id }}
{{ $order->created_at->format('d.m.Y H:i') }}
{{ number_format($order->total / 100, 2) }} PLN
@foreach($order->items as $index => $item) @if(!isset($item['main_img']) || !$item['main_img'])

{{ $item['name'] ?? 'Produkt' }}

@if(isset($item['slug'])) Slug: {{ $item['slug'] }}
@endif @if(isset($item['id'])) ID: {{ $item['id'] }}
@endif Cena: {{ number_format(($item['price'] ?? 0) / 100, 2) }} PLN
@csrf
@endif @endforeach
@endforeach @endif