@if($viewType === 'item_ledger' && empty($filters['item_id']))
@include('partials.admin.module-hub.empty', [
'icon' => 'ri-archive-line',
'title' => 'Select an item',
'text' => 'Choose an item and date range above, then click Apply to view the ledger and export.',
])
@elseif($viewType === 'item_ledger' && $item)
{{ \Carbon\Carbon::parse($date_from)->format('M j, Y') }}
—
{{ \Carbon\Carbon::parse($date_to)->format('M j, Y') }}
@include('admin.accounting.partials.item-detail', ['item' => $item])
@include('admin.accounting.partials.ledger-table', ['ledgerMode' => $ledger_mode ?? 'stock'])
@elseif($viewType === 'cash_book')
@include('admin.accounting.partials.cash-book-table')
@elseif($viewType === 'profit_loss')
@include('admin.accounting.partials.profit-loss-table')
@elseif($viewType === 'inventory_book')
@include('admin.accounting.partials.inventory-book-table')
@else
@include('admin.accounting.partials.party-balance-table')
@endif