@error('remarks')
{{ $message }}
@enderror
{{--
--}}
@if ($selectedWarehouse === null)
@if ($resultwarehouse)
@endif
@endif
@if ($selectedItem === null)
@if ($resultitem)
@endif
@endif
@error('no')
{{ $message }}
@enderror
{{--
| # | {{ __('Code') }} | {{ __('Barcode') }} | {{ __('Name') }} | {{ __('Qty') }} | {{ __('Price') }} | {{ __('Sub Total') }} | {{ __('Action') }} | |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item['code'] }} | {{ $item['barcode'] }} | {{ $item['name'] }} @if($item['consignment'] == 'Y') *Consignment @endif |
|
|
@if (!empty($item['price']) && $item['price'] !== 0)
Rp. {{ number_format($item['price'] * $item['quantity'], 0, ',', '.') }} | @elseRp. 0 | @endif
| # | {{ __('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, ',', '.', ) }} | |||||||||||||