@extends(!in_array(\Auth::user()->role, [10, 15]) ? 'layout' : 'layoutfrontdesk') @section('title', 'Recipe Form Edit') @section('content')
@csrf @method('PUT')
@php $idx = 0; @endphp @foreach ($recipe->recipeDetail as $detail) @php $idx++; @endphp @endforeach
Item D-Unit Average Price Yield Price Scale (R-Unit) Price / Scale Qty Cost
{{ @$detail->stock->description }} {{ @$detail->stock->deliveryUnit->description }} {{ ribuanWithComma($detail->stock->averagePrice(getSystemDate())) }} {{ @$detail->yield }} % {{ ribuanWithComma($detail->price(getSystemDate())) }} {{@$detail->stock->recipe_unit ? $detail->stock->recipe_unit : ''}} {{ config('custom.unit_scale.'.$detail->stock->deliveryUnit->category) }} {{ ribuan($detail->price(getSystemDate()) / $detail->stock->recipe_unit) }} {{ @$detail->qty }} {{ ribuanWithComma($detail->cost(getSystemDate())) }}
Total Cost : 0
Back
@endsection @section('js') @endsection