{{$ingredient['full_name']}}
|
@php
$variation = $ingredient['variation'];
$multiplier = $ingredient['multiplier'];
$allow_decimal = $ingredient['allow_decimal'];
$qty_available = 0;
if($ingredient['enable_stock'] == 1) {
$max_qty_rule = !empty($variation->variation_location_details[0]->qty_available) ? $variation->variation_location_details[0]->qty_available : 0;
$qty_available = $max_qty_rule;
$max_qty_rule = $max_qty_rule / $multiplier;
$max_qty_msg = __('validation.custom-messages.quantity_not_available', ['qty'=> number_format($max_qty_rule, 2), 'unit' => $ingredient['unit'] ]);
}
@endphp
@if(empty($ingredient['sub_units']))
{{$ingredient['unit']}}
@else
@if(!empty($manufacturing_settings['disable_editing_ingredient_qty']))
@endif
@endif
|
|
{{@format_quantity($ingredient['final_quantity'])}} {{$ingredient['unit']}}
|
{{@num_format($ingredient['total_price'])}}
|