@extends('layouts.admin') @push('styles') @endpush @section('content') Product Recipe & Costing Create Recipe List @csrf Product: Select Product @foreach($products as $v) {{$v->product_name}}-({{$v->product_code}}) @endforeach @error('product_id') {{ $message }} @enderror Production Qty: Sl Ingredients Unit Last Price Quantity Amount Action # Select Ingredient @foreach($ingredients as $v) @php $lastPrice = Helper::lastPrice(['product_id' => $v->id]); if(empty($lastPrice)){ $lastPrice = Helper::lastPrice2(['id' => $v->id]); } @endphp {{$v->product_name}}-({{$v->product_code}}) @endforeach Add Loading... Note: @endsection @push('scripts') @endpush