{{ __('stock_transactions.stock_transactions') }}

{{ $filteredCount }} records
@if ($filteredCount === 0)
{{ __('common.no_records') }}
{{ __('common.loading') }}
@else
@foreach ($rows as $t) @php $status = strtolower((string) ($t->status ?? '')); $statusClass = $status === 'posted' ? 'posted' : ($status === 'cancelled' ? 'cancelled' : 'other'); $typeLabel = $t->transaction_type ? str_replace('_', ' ', (string) $t->transaction_type) : '—'; $createdAt = $t->created_at ? \Carbon\Carbon::parse($t->created_at)->format('n/j/Y, g:i A') : '—'; $updatedAt = $t->updated_at ? \Carbon\Carbon::parse($t->updated_at)->format('n/j/Y, g:i A') : '—'; $expiry = $t->expiry_date ? substr((string) $t->expiry_date, 0, 10) : '—'; $txDate = $t->transaction_date ? substr((string) $t->transaction_date, 0, 10) : '—'; @endphp @endforeach
{{ __('stock_transactions.no') }} {{ __('common.date') }} {{ __('common.type') }} {{ __('stock_transactions.ref_type') }} {{ __('stock_transactions.ref_id') }} {{ __('common.warehouse') }} {{ __('common.project') }} {{ __('common.item') }} {{ __('common.unit') }} {{ __('common.currency') }} {{ __('stock_transactions.qty_in') }} {{ __('stock_transactions.qty_out') }} {{ __('stock_transactions.unit_cost') }} {{ __('stock_transactions.total_cost') }} {{ __('stock_transactions.batch_no') }} {{ __('stock_transactions.serial_no') }} {{ __('stock_transactions.expiry') }} {{ __('common.remarks') }} {{ __('common.status') }} {{ __('stock_transactions.created_at') }} {{ __('stock_transactions.updated_at') }}
{{ $t->transaction_no ?: '—' }} {{ $txDate }} {{ $typeLabel }} {{ $t->reference_type ?: '—' }} {{ $t->reference_id ?: '—' }} {{ $t->warehouse_name ?: '—' }} {{ $t->project_name ?: '—' }} {{ $t->item_name ?: '—' }} {{ $t->unit_name ?: '—' }} {{ $t->currency_name ?: '—' }} {{ $t->qty_in !== null ? number_format((float) $t->qty_in, 3) : '0.000' }} {{ $t->qty_out !== null ? number_format((float) $t->qty_out, 3) : '0.000' }} {{ number_format((float) ($t->unit_cost ?? 0), 2) }} {{ number_format((float) ($t->total_cost ?? 0), 2) }} {{ $t->batch_no ?: '—' }} {{ $t->serial_no ?: '—' }} {{ $expiry }} {{ $t->remarks ?: '—' }} {{ $t->status ?: '—' }} {{ $createdAt }} {{ $updatedAt }}
@endif