|
@include('components.quickactions')
|
{{ $currentStockEntry->product_name }}
{{ $currentStockEntry->product_barcodes }}
|
@if($currentStockEntry->product_group_name !== null){{ $currentStockEntry->product_group_name }}@endif
|
@if($currentStockEntry->product_no_own_stock == 1){{ $currentStockEntry->amount_aggregated }}@else{{ $currentStockEntry->amount }}@endif
{{ $currentStockEntry->amount }} {{ $__n($currentStockEntry->amount, $currentStockEntry->qu_stock_name, $currentStockEntry->qu_stock_name_plural) }}
@if($currentStockEntry->amount_opened > 0){{ $__t('%s opened', $currentStockEntry->amount_opened) }}@endif
@if($currentStockEntry->is_aggregated_amount == 1)
{{ $currentStockEntry->amount_aggregated }} {{ $__n($currentStockEntry->amount_aggregated, $currentStockEntry->qu_stock_name, $currentStockEntry->qu_stock_name_plural, true) }}
@if($currentStockEntry->amount_opened_aggregated > 0)
{!! $__t('%s opened', '' . $currentStockEntry->amount_opened_aggregated . '') !!}
@endif
@endif
@if(boolval($userSettings['show_icon_on_stock_overview_page_when_product_is_on_shopping_list']))
@if($currentStockEntry->on_shopping_list)
@endif
@endif
|
{{$currentStockEntry->value}}
{{ $currentStockEntry->value }}
|
{{ $currentStockEntry->best_before_date }}
|
@foreach(FindAllObjectsInArrayByPropertyValue($currentStockLocations, 'product_id', $currentStockEntry->product_id) as $locationsForProduct)
xx{{ FindObjectInArrayByPropertyValue($locations, 'id', $locationsForProduct->location_id)->name }}xx
@endforeach
|
@if($currentStockEntry->best_before_date < date('Y-m-d
23:59:59',
strtotime('-'
. '1'
. ' days'
))
&&
$currentStockEntry->amount > 0) @if($currentStockEntry->due_type == 1) overdue @else expired @endif @elseif($currentStockEntry->best_before_date < date('Y-m-d
23:59:59',
strtotime('+'
.
$nextXDays
. ' days'
))
&&
$currentStockEntry->amount > 0) duesoon @endif
@if($currentStockEntry->amount_aggregated > 0) instockX @endif
@if ($currentStockEntry->product_missing) belowminstockamount @endif
|
xx{{ $currentStockEntry->product_group_name }}xx
|
{{ $currentStockEntry->product_calories }}
|
{{ $currentStockEntry->calories }}
|
{{ $currentStockEntry->last_purchased }}
|
{{$currentStockEntry->last_price}}
@if(!empty($currentStockEntry->last_price))
{!! $__t('%1$s per %2$s', '' . $currentStockEntry->last_price * $currentStockEntry->product_qu_factor_price_to_stock . '', $currentStockEntry->qu_price_name) !!}
@endif
|
{{ $currentStockEntry->min_stock_amount }}
|
{!! $currentStockEntry->product_description !!}
|
{{ $currentStockEntry->parent_product_name }}
|
{{ $currentStockEntry->product_default_location_name }}
|
@if(!empty($currentStockEntry->product_picture_file_name))
@endif
|
{{$currentStockEntry->average_price}}
@if(!empty($currentStockEntry->average_price))
{!! $__t('%1$s per %2$s', '' . $currentStockEntry->average_price * $currentStockEntry->product_qu_factor_price_to_stock . '', $currentStockEntry->qu_price_name) !!}
@endif
|
@include('components.userfields_tbody', array(
'userfields' => $userfields,
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $currentStockEntry->product_id)
))
@endforeach