@extends('layouts.app') @section('content')

{{ __('inventory.transactions') }}

class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-2 focus:ring-teal-500">
class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-2 focus:ring-teal-500">
@forelse($transactions as $txn) @empty @endforelse
{{ __('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') }}
{{ $transactions->withQueryString()->links() }}
@push('scripts') @endpush @endsection