@php use App\Enums\ReportOption; use Carbon\Carbon; @endphp @extends('layouts.print') @push('styles') @if(isset($output) && $output === 'screen') @vite(['resources/scss/main.scss', 'resources/scss/print.scss']) @else @endif @endpush @section('content') @php $routeName = request()->route()->getName(); $categories = $inventories['categories'] ?? []; @endphp

@if(!empty($categories)) @foreach($categories as $category)
@foreach($category['products'] ?? [] as $product) @php $balances = $product['details'] ?? []; $emptyClass = count($balances) ? '' : 'text-warning-emphasis'; @endphp @foreach($balances as $balance) @endforeach @endforeach
{{ __('validation.attributes.date') }} {{ __('validation.attributes.module') }} {{ __('validation.attributes.form_number') }} {{ __('validation.attributes.description') }} {{ __('general.in_qty') }} {{ __('general.out_qty') }} {{ __('general.balance') }}
{{ strtoupper($category['name'] ?? '-') }}
{{ $product['sku'] }} {!! $product['name_with_transport_carrier_schedules'] !!} @if(!count($balances)) {{ __('messages.hint.no-transaction') }} @endif
• {{ dateDisplay($balance['date'] ?? null) }} {{ $balance['label'] ?? '-' }} {{ $balance['form_number'] ?? '-' }} {{ $balance['description'] ?? '-' }} {{ decimal_format($balance['in_quantity'] ?? 0) }} {{ decimal_format($balance['out_quantity'] ?? 0) }} {{ decimal_format($balance['balance'] ?? 0) }}
@endforeach @else
{{ __('messages.report.not-found') }}
@endif
@endsection