@extends('layouts.portal') @section('title', __('Inventory Accounting Ledger')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Kardex & Inventory Ledgers') }}

{{ __('Inventory Accounting Ledger') }}

{{ __('Auxiliary detail from journal line dimensions for stock-associated accounts.') }}

{{ __('Kardex') }}
{{ __('This report shows accounting dimensions, not a second stock movement. Compare it with the Kardex to reconcile physical quantities and accounting values.') }}
@if ($errors->any())
{{ $errors->first() }}
@endif
@forelse($entries as $entry) @empty @endforelse
{{ __('Date / journal entry') }} {{ __('Account') }} {{ __('Item') }} {{ __('Warehouse') }} {{ __('Lot') }} {{ __('Quantity') }} {{ __('Unit cost') }} {{ __('Debit') }} {{ __('Credit') }} {{ __('Balance quantity') }} {{ __('Balance value') }}
{{ \Illuminate\Support\Carbon::parse($entry->entry_date)->format('Y-m-d') }}
{{ $entry->entry_year }}-{{ str_pad((string) $entry->entry_number, 6, '0', STR_PAD_LEFT) }} @if($entry->document_number)
{{ $entry->document_number }}
@endif
{{ $entry->account_code }} — {{ $entry->account_name }} {{ $entry->item_sku }} — {{ $entry->item_name }} {{ $entry->warehouse_code ? $entry->warehouse_code.' — '.$entry->warehouse_name : '—' }} {{ $entry->lot_number ?? '—' }} {{ number_format((float) $entry->quantity, 4) }} {{ $entry->uom_code ?? '—' }} {{ $entry->unit_cost === null ? '—' : number_format((float) $entry->unit_cost, 4) }} {{ number_format((float) $entry->debit, 2) }} {{ number_format((float) $entry->credit, 2) }} {{ $entry->balance_quantity === null ? '—' : number_format((float) $entry->balance_quantity, 4).' '.($entry->uom_code ?? '—') }} {{ number_format((float) $entry->balance_value, 2) }}
{{ __('No inventory accounting dimensions match these filters.') }}
{{ $entries->links() }}
@endsection