@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'View'])
@include('components.alert')
@csrf

View Dish Info

Export to Excel

Dish Info

Dish Photo


Ingredients

@php $totalCost = 0; @endphp @foreach ($recipes as $recipe) @php $ingredientCost = round(($recipe->ingredient->lowestPrice->ingredient_price / $recipe->ingredient->ingredient_weight) * $recipe->recipe_weight, 2); $totalCost += $ingredientCost; @endphp @endforeach
Ingredient Weight Cost (RM)
{{ $recipe->ingredient->ingredient_name }}
{{ $recipe->recipe_weight }}
{{ $ingredientCost }}
Total Dish Cost
RM {{ $dish->dish_cost }}
CALCULATING MENU PRICE
Overhead Cost Percentage (%)
{{ $costSetting->overhead_cost }}%
Price with Overhead Cost (RM)
RM {{ $dish->priceDetail->overhead_price }}
Labor Cost Percentage (%)
{{ $costSetting->labor_cost }}%
Price with Labor Cost (%)
@if (is_null($dish->priceDetail->labor_price) || $dish->priceDetail->labor_price == 0.00) - @else {{ $dish->priceDetail->labor_price }} @endif
Profit Margin Percentage (%)
{{ $costSetting->margin_cost }}%
Price with Profit Margin (%)
{{ $dish->priceDetail->margin_price }}
TOTAL ALL COST (RM)
RM {{ $menu->menu_price }}
@include('layouts.footers.auth.footer')
@endsection