{{-- FOOTER --}} {{-- HEADER --}}
{{ $operation->name }}
Commercial :{{ $operation->user?->firstname }} N° BDC :{{ $operation->num_bdc ?: '—' }} Date opération :{{ $operation->publish_date }}

{{-- CLIENT + CONTACT --}}
Client {{ $operation->customer?->name }} @if ($operation->customer?->adress_1)
{{ $operation->customer->adress_1 }} @if ($operation->customer->adress_2) {{ $operation->customer->adress_2 }} @endif
{{ $operation->customer->zipcode }} {{ $operation->customer->city }} @endif @if ($operation->customer?->phone)
{{ $operation->customer->phone }}@endif
Contact @foreach ($operation->customercontacts as $cc) {{ $cc->firstname }} {{ $cc->lastname }}
@if ($cc->email){{ $cc->email }}
@endif @if ($cc->phone){{ $cc->phone }}@endif @endforeach
{{-- MÉDIA + PRIX --}}
@if ($operation->media) @endif @if ($operation->type) @endif
Média {{ $operation->media->name }} Type d'opération {{ $operation->type->name }}
Frais Média {{ number_format($operation->costing_price ?? 0, 2, ',', ' ') }} € Frais Agence {{ number_format($operation->agency_fees ?? 0, 2, ',', ' ') }} € Prix total {{ number_format($operation->total_price ?? 0, 2, ',', ' ') }} €
{{-- INFORMATIONS / CRITÈRES --}}
Informations @if ($operation->description)
Description : {{ $operation->description }}
@endif @if ($operation->type?->operationCriterias->isNotEmpty()) @foreach ($operation->type->operationCriterias as $criteria) @php $value = $infosByCriteria[$criteria->id]->content ?? ''; @endphp @if ($value)
{{ $criteria->name }} : {{ str_ireplace('€', ' euros', $value) }}
@endif @endforeach @endif @if ($operation->contacts->isNotEmpty())
Contact média :
@foreach ($operation->contacts as $mc)
{{ $mc->firstname }} {{ $mc->lastname }}@if ($mc->email) — {{ $mc->email }}@endif@if ($mc->phone) | {{ $mc->phone }}@endif
@endforeach @endif
{{-- TRACKING --}} @if ($operation->tracking->isNotEmpty()) @foreach ($operation->tracking as $t) @endforeach
Date Utilisateur Commentaire
{{ $t->created_at }} {{ $t->user?->firstname }} {{ $t->comment }}
@endif