@if ($selectedSupplier === null) @if ($results) @endif @endif
@error('remarks') {{ $message }} @enderror
@if ($selectedSupplier)
{{--
@error('no') {{ $message }} @enderror
--}}
@if ($selectedWarehouse === null) @if ($resultwarehouse) @endif @endif
@if ($selectedItem === null) @if ($resultitem) @endif @endif
{{-- @forelse ($tableItems as $index => $item) @if (!empty($item['price']) && $item['price'] !== 0) @else @endif @empty @endforelse
# {{ __('Code') }} {{ __('Barcode') }} {{ __('Name') }} {{ __('Qty') }} {{ __('Price') }} {{ __('Sub Total') }} {{ __('Action') }}
{{ $loop->iteration }} {{ $item['code'] }} {{ $item['barcode'] }} {{ $item['name'] }} @if($item['consignment'] == 'Y') *Consignment @endif
Rp. {{ number_format($item['price'] * $item['quantity'], 0, ',', '.') }} Rp. 0
# {{ __('Total Qty') }} {{ __('Grand Total') }}
Total {{ number_format(array_sum(array_column($tableItems, 'qtypcs')), 0, ',', '.') }} Rp. {{ number_format( array_sum( array_map(function ($item) { return $item['quantity'] * $item['price']; }, $tableItems), ), 0, ',', '.', ) }}
@endif
@livewireScripts()