@if(!is_null($this->computed_cents))
Prix estimé (coût): {{ number_format($this->computed_cents/100, 2, ',', ' ') }} €
@endif
Prix enregistré: {{ number_format(($this->dish->sell_price_cents ?? 0)/100, 2, ',', ' ') }} €
@if(count($this->missing_prices) > 0)
Prix manquants pour: {{ implode(', ', array_map(fn($r)=>$r['name'],$this->missing_prices)) }}
@endif @if(count($this->breakdown) > 0)
Détail par composant
    @foreach($this->breakdown as $line) @php($qty = (float)$line['qty_kg']) @php($qtyLabel = $qty < 1 ? number_format($qty*1000, 0, ',', ' ').' g' : number_format($qty, 3, ',', ' ').' kg')
  • {{ $line['name'] }} — {{ $qtyLabel }} • {{ number_format($line['unit_cost_eur_per_kg'], 2, ',', ' ') }} €/kg · {{ number_format($line['line_cost_eur'], 2, ',', ' ') }} €
  • @endforeach
@endif
{{ $this->form }}
{{ __('dashboard.common.update') }}