@foreach($proposal->operations as $op) @endforeach
Type Média Frais Technique Périodes choisies
{{ $op->media?->type?->name ?? '—' }} {{ $op->media?->name ?? '—' }} @if($op->pivot->discount_price) {{ number_format($op->pivot->discount_price, 2, '.', ' ') }} @else {{ number_format($op->technical_cost, 2, '.', ' ') }} @endif @if($op->pivot->select_period) @foreach(json_decode($op->pivot->select_period, true) as $period) {{ ucfirst(\Carbon\Carbon::parse($period)->locale('fr')->shortMonthName) }} {{ \Carbon\Carbon::parse($period)->format('Y') }}@if(!$loop->last), @endif @endforeach @endif