Turi:
@if ($item->source_table == 'transaction')
{{ $item->type == 'income' ? 'Kirim' : 'Xarajat' }}
@else
{{ $item->type == 'payment_to_supplier' ? 'Yetkazib beruvchiga to‘lov' : 'Mahsulot to‘lovi' }}
@endif
Miqdor:
{{ number_format($item->amount, 2, '.', ' ') }} so‘m
Manba:
{{ $item->source == 'cash' ? 'Naqd' : 'Karta' }}
Yetkazib beruvchi:
{{ $item->supplier_name ?? 'N/A' }}
Kategoriya:
{{ $item->related_entity ?? 'N/A' }}
Tavsif:
{{ $item->description ?? 'N/A' }}
Sana:
{{ $item->created_at->format('Y-m-d H:i') }}
Rasmlar:
@if ($item->images && is_array(json_decode($item->images, true)) && count(json_decode($item->images, true)) > 0)
@foreach (json_decode($item->images, true) as $index => $image)
@endforeach
@if (count(json_decode($item->images, true)) > 1)
@endif
@else
Rasm yuklanmagan
@endif