Sana: {{ $item->created_at->format('d.m.Y H:i') }}
Summa: {{ number_format(abs($item->amount), 2, '.', ' ') }} so‘m
Manba: {{ $item->source == 'cash' ? 'Naqd' : 'Karta' }}
@if ($item->source_table == 'transactions' && $item->category)
Kategoriya: {{ $item->category->name }}
@endif
@if ($item->source_table == 'payments' && $item->supplier)
Yetkazib beruvchi: {{ $item->supplier->name }}
@endif
@if ($item->source_table == 'transactions' && $item->supplier)
Yetkazib beruvchi: {{ $item->supplier->name }}
@endif
Izoh: {{ $item->description ?? 'Izoh yo‘q' }}
Rasmlar:
@php
$images = $item->images ? json_decode($item->images, true) : [];
@endphp
@if (!empty($images) && is_array($images))
@foreach ($images as $index => $image)
 }})
@endforeach
@else
Rasm yuklanmagan
@endif