@extends(!in_array(\Auth::user()->role, [10, 15]) ? 'layout' : 'layoutfrontdesk') @section('title', 'Recipe List') @section('css') @endsection @section('content')

Filter Data

{{-- @php $filter_date = $_GET['tanggal'] ?? ''; $filter_department = $_GET['department'] ?? ''; $filter_type = $_GET['type'] ?? ''; @endphp --}}
@if (!$recipes->isEmpty()) @foreach($recipes as $r) @foreach (@$r->recipeDetail as $detail) @php $food_cost = $r->sell_price != 0 ? (ribuanDuaAngkaBelakangKomaIndoFilter(($r->cost / $r->sell_price) * 100)) : 0; @endphp @endforeach @endforeach @endif
none Type Name ArtNo Description D-Unit Average Price Yield Price Scale (R-Unit) Price / Scale Qty Cost Actions
{{ config('custom.jenis_tipe_item.'.$r->type) }} {{ $r->id }}+{{ $r->name }}+{{ ribuanWithComma($r->cost) }}+{{ ribuanWithComma($r->sell_price) }}+{{ $food_cost }} {{ @$detail->stock->article_no }} {{ @$detail->stock->description }} {{ @$detail->stock->deliveryUnit->description }} {{ ribuanWithComma($detail->stock->averagePrice($tanggal)) }} {{ @$detail->yield }} % {{ ribuanWithComma($detail->price($tanggal)) }} {{@$detail->stock->recipe_unit ? ribuanDuaAngkaBelakangKomaIndoFilter($detail->stock->recipe_unit) : ''}} {{ config('custom.unit_scale.'.$detail->stock->deliveryUnit->category) }} {{ ribuan($detail->price($tanggal) / $detail->stock->recipe_unit) }} {{ ribuanDuaAngkaBelakangKomaIndoFilter(@$detail->qty) }} {{ ribuanWithComma($detail->cost($tanggal)) }}
@endsection @section('js') @endsection