@php $portionCost = data_get($this->pricingInsights, 'portion_cost_cents'); $multiplier = data_get($this->pricingInsights, 'multiplier'); $minPrice = data_get($this->pricingInsights, 'min_price_cents'); $sellPrice = data_get($this->pricingInsights, 'sell_price_cents'); $sellHt = data_get($this->pricingInsights, 'sell_price_ht_cents'); $actualMultiplier = data_get($this->pricingInsights, 'actual_multiplier'); @endphp

Coût portion

{{ !is_null($portionCost) ? number_format($portionCost / 100, 2, ',', ' ') . ' €' : '—' }}

Coeff cible

{{ !is_null($multiplier) ? '× '.number_format($multiplier, 1, ',', ' ') : '—' }}

Prix minimum TTC

{{ !is_null($minPrice) ? number_format($minPrice / 100, 2, ',', ' ') . ' €' : '—' }}

Tarif affiché TTC

Valeur actuelle : {{ !is_null($sellPrice) ? number_format($sellPrice / 100, 2, ',', ' ') . ' €' : '—' }}

Enregistrer

Met à jour instantanément le prix TTC du plat.

Tarif réel HT

{{ !is_null($sellHt) ? number_format($sellHt / 100, 2, ',', ' ') . ' €' : '—' }}

Coeff réel

{{ !is_null($actualMultiplier) ? number_format($actualMultiplier, 1, ',', ' ') : '—' }}

@if(count($this->missing_prices) > 0)
Prix manquants pour: {{ implode(', ', array_map(fn($r)=>$r['name'],$this->missing_prices)) }}
@endif

Recommandations GPT

Appliquez directement les suggestions sur la fiche sans repasser par l’assistant. Vous pouvez supprimer toute recommandation devenue obsolète.

{{ count($this->recommendations) }} suggestion(s) Calculer prix et suggestions Calcul…
@forelse($this->recommendations as $recommendation)

{{ $recommendation['title'] }}

@if(!empty($recommendation['description']))

{{ $recommendation['description'] }}

@endif @if($recommendation['review_only']) À valider manuellement @endif
@if(!$recommendation['review_only']) Valider Patientez… @endif Supprimer
Type
{{ str_replace('_',' ', $recommendation['action_type']) }}
@if(!empty(data_get($recommendation, 'payload.reason')))
Raison
{{ data_get($recommendation, 'payload.reason') }}
@endif @if($recommendation['action_type'] === 'update_sell_price')
Prix suggéré
{{ number_format(((int) data_get($recommendation, 'payload.sell_price_cents', data_get($recommendation, 'payload.target_price_cents', 0)))/100, 2, ',', ' ') }} €
@elseif($recommendation['action_type'] === 'update_component_quantity') @php $quantity = data_get($recommendation, 'payload.quantity'); $unit = data_get($recommendation, 'payload.unit', data_get($recommendation, 'payload.quantity_unit', 'g')); $quantityKg = data_get($recommendation, 'payload.quantity_kg'); if (is_null($quantity) && is_numeric($quantityKg)) { $quantity = strtolower($unit) === 'kg' ? $quantityKg : $quantityKg * 1000; } $quantityText = is_numeric($quantity) ? number_format($quantity, 2, ',', ' ') : '—'; $unitLabel = $unit ?? 'g'; @endphp
Composant
{{ data_get($recommendation, 'payload.component_name', 'Composant cible') }}
Quantité
{{ $quantityText }} {{ $unitLabel }}
@endif
@empty
Aucune recommandation enregistrée pour ce plat.
@endforelse