@php $total_ingredient_price = 0; $ingredient_groups = []; @endphp @if(!empty($ingredients)) @foreach($ingredients as $ingredient) @if(empty($ingredient['mfg_ingredient_group_id'])) @include('manufacturing::recipe.ingredient_row_for_production') @else @php $ingredient_groups[$ingredient['mfg_ingredient_group_id']][] = $ingredient; @endphp @endif @endforeach @foreach($ingredient_groups as $ingredient_group) @foreach($ingredient_group as $ingredient) @include('manufacturing::recipe.ingredient_row_for_production') @endforeach @endforeach @endif
@lang('manufacturing::lang.ingredient') @lang('manufacturing::lang.input_quantity') @lang('manufacturing::lang.waste_percent') @lang('manufacturing::lang.final_quantity') @show_tooltip(__('manufacturing::lang.final_quantity_tooltip')) @lang('manufacturing::lang.total_price') @show_tooltip(__('manufacturing::lang.total_price_tooltip'))
{{$ingredient_group[0]['ingredient_group_name'] ?? ''}}
@lang('manufacturing::lang.ingredients_cost') {{$total_ingredient_price}}