@if (isset($inventoryItems) && count($inventoryItems) > 0 && $department > 0) {{--
--}} @php $i = 1; @endphp @foreach ($inventoryItems as $detail) @php $quantity = $itemPriceV = ''; $itemDepartment = $detail->department_ids ? explode(',',$detail->department_ids) : [] ?? []; $departmentId = count($departments)>0 && array_key_exists($detail->id.'|'.$department, $departments) ? $departments[$detail->id.'|'.$department] : 0; if(array_key_exists($detail->id.'|'.$department , $items) && $departmentId == $department){ $quantity = $items[$detail->id.'|'.$department]; } if(array_key_exists($detail->id.'|'.$department , $totalPriceView) && $departmentId == $department){ $itemPriceV = $totalPriceView[$detail->id.'|'.$department]; } @endphp
{{ $detail->name }}
@if(isSeller()) (In stock - {!! $detail->stock_in !!})
@endif {!! ($detail->weight_type != "") ? weightType($detail->weight_type) : "" !!}
{!! $itemPriceV !!}
@endforeach {{--
--}} @elseif($page <= 1) @if($department <= 0)
{{ __('common.no_department_selected') }}
@else
{{ __('common.no_record_found') }}
@endif @endif