@extends('layouts.app') @section('content')

Editar Producto

Gestiona detalles y receta

@csrf @method('PUT')
Información General
ingredients->count() > 0 ? 'readonly' : '' }}> @if($product->ingredients->count() > 0) Costo calculado por receta. @endif
@if($product->ingredients->count() > 0)
Escandallo / Rentabilidad
Costo de receta vs Precio de Venta
@php $recipeCost = $product->recipe_cost; $margin = $product->price - $recipeCost; $marginPercent = $product->price > 0 ? ($margin / $product->price) * 100 : 0; @endphp
Costo S/ {{ number_format($recipeCost, 2) }}
Margen Bruto S/ {{ number_format($margin, 2) }} ({{ number_format($marginPercent, 1) }}%)
@endif
is_saleable ? 'checked' : '' }}> Si se desmarca, solo será un insumo para recetas.
Opciones para Carta Digital (Menú QR)
S/
Si tiene valor, tachará el precio normal.
is_chef_recommendation ? 'checked' : '' }}>
is_new ? 'checked' : '' }}>
@if($product->image) @endif
Receta / Insumos

Selecciona los insumos que componen este plato. Al venderlo, se descontarán automáticamente.

@foreach($product->ingredients as $ingredient)
{{ $ingredient->name }}
@endforeach
@endsection