{{-- v1.15.0 §B — « Votre redevance » : le total qui suit chaque case, ligne par ligne. --}} @php $optionsCochees = collect($offre['prestations'])->where('origine', \App\Support\Prestations::OPTION); $prixFormule = round((float) $offre['montant_ttc'] - \App\Support\Prestations::totalOptions($offre['prestations']), 2); $periodeOffre = \App\Support\Prestations::periode($offre['periodicite']); @endphp

Votre redevance

{{ dh($offre['montant_ttc'], 0) }} TTC par {{ $periodeOffre }}
Formule {{ $offre['formule_libelle'] }}{{ dh($prixFormule, 0) }}
@foreach ($optionsCochees as $o)
{{ $o['libelle'] }}+ {{ dh($o['prix'], 0) }}
@endforeach
Total{{ dh($offre['montant_ttc'], 0) }}

{{ $optionsCochees->count() === 0 ? 'Aucune option' : ($optionsCochees->count() === 1 ? '1 option' : $optionsCochees->count().' options') }} · TTC, payable d'avance