@extends('layouts.app') @section('content')
| {{ __('inventory.transaction_type') }} | {{ __('inventory.item') }} | {{ __('inventory.warehouse') }} | {{ __('inventory.quantity') }} | {{ __('inventory.unit_price') }} | {{ __('inventory.total_price') }} | {{ __('inventory.reference') }} | {{ __('common.date') ?? 'تاریخ' }} |
|---|---|---|---|---|---|---|---|
| {{ __('inventory.type_' . $txn->type) }} | {{ $txn->item?->name ?? '-' }} | {{ $txn->warehouse?->name ?? '-' }} | {{ $txn->type === 'out' ? '-' : '+' }}{{ persian_num(number_format($txn->quantity, 2)) }} @if($txn->item?->unit) {{ $txn->item->unit }} @endif | @if($txn->unit_price) {{ format_currency((float)$txn->unit_price, $txn->currency?->code) }} @else - @endif | @if($txn->total_price) {{ format_currency((float)$txn->total_price, $txn->currency?->code) }} @else - @endif | {{ $txn->reference_number ?? $txn->reference ?? '-' }} | {{ $txn->created_at ? calendar_date($txn->created_at) : '-' }} |
| {{ __('inventory.no_transactions') }} | |||||||