@php
$row_count = request()->row_count??0;
@endphp
@foreach ($products as $i => $item)
| {{ ++$row_count }} {!! active_user() == 1 && $item->availQty ? '('.$item->availQty->avail.")" : "" !!} |
{{ $item->name_eng }} |
{{ $item->name_local }} |
{{ $item->short_name }} |
{{ $item->itemGroup->name ?? '' }} |
{{ $item->serial }} |
{{ $item->barcode }} |
{{ $item->catByCatCode->name_eng ?? '' }} |
{{ round($item->buy_price, 2) }} |
{{ round($item->sell_price, 2) }} |
@if($default_settings->dual_unit != null)
{{ round(($item->buy_price * $item->unit_quantity), 2) }} |
{{ round(($item->sell_price * $item->unit_quantity), 2) }} |
@endif
{{ $item->fixed_commission }} |
{{-- --}}
@if(is_array($item->image))
@foreach($item->image as $image)
@endforeach
@else
@endif
|
@if(checkAuthPermission('product.change-status'))
status == 1) checked @endif />
@endif
{{-- @if($item->current_price != null)
{{ round(($item->current_price->sell_price * $item->unit_quantity), 2) }}
@elseif($item->sale_price != null)
{{ round(($item->sale_price->sell_price * $item->unit_quantity), 2) }}
@else
Not Used
@endif --}}
|
{{-- @if(checkAuthPermission('product.show_child')) --}}
{{-- @endif --}}
@if(checkAuthPermission('product.edit'))
@if( $item->parent_id == null )
@endif
@endif
|
@endforeach