Nouvelle opération

{{-- ====== COLONNE PRINCIPALE (2/3) ====== --}}
{{-- ── Section 1 : Informations Client ──────────────────── --}}

Informations Client

{{-- Select client + Adresse sur 2 colonnes --}}
@error('customer_id') {{ $message }} @enderror
@if($customer_id) @php $activityName = $activity_id ? collect($activities)->firstWhere('id', $activity_id)['name'] ?? null : null; $themeName = $theme_id ? collect($themes)->firstWhere('id', $theme_id)['name'] ?? null : null; @endphp
Adresse {{ $adress_1 }}{{ $adress_2 ? ', '.$adress_2 : '' }} {{ $zipcode }} {{ $city }} @if($country){{ $country }}@endif @if($phone){{ $phone }}@endif
@if($activityName || $themeName)
@if($activityName) Activité : {{ $activityName }} @endif @if($themeName) Thème : {{ $themeName }} @endif
@endif
@endif
{{-- Contacts (uniquement si client sélectionné) --}} @if($customer_id)

Contacts Client

@forelse($existingContacts as $cc)
{{ $cc['firstname'] }} {{ $cc['lastname'] }} @if($cc['email']){{ $cc['email'] }}@endif
@empty
Aucun contact enregistré
@endforelse
{{-- Nouveaux contacts ajoutés --}} @foreach($newContacts as $i => $contact)
{{ $contact['firstname'] }} {{ $contact['lastname'] }} @if($contact['job']){{ $contact['job'] }}@endif @if($contact['email']){{ $contact['email'] }}@endif @if($contact['phone']){{ $contact['phone'] }}@endif
@endforeach @endif
{{-- ── Section 2 : Média + Type d'opération ─────────────── --}}
{{-- Média --}}

Média

@error('media_id') {{ $message }} @enderror
@if($media_id)

Contacts Média

@forelse($mediaContacts as $mc)
{{ $mc['firstname'] }} {{ $mc['lastname'] }} @if($mc['email']){{ $mc['email'] }}@endif
@empty
Aucun contact enregistré pour ce média
@endforelse
@endif
{{-- Type d'opération --}}

Type d'opération

@error('operation_type_id') {{ $message }} @enderror
@if($operation_type_id && count($criterias))
@foreach($criterias as $criteria)
@if($criteria['type'] === 'select' && !empty($criteria['values'])) @elseif($criteria['type'] === 'date') @elseif(in_array($criteria['type'], ['number', 'integer', 'float'])) @elseif($criteria['type'] === 'textarea') @else @endif
@endforeach
@endif
{{-- ====== COLONNE DROITE (1/3) ====== --}}
{{-- ── Section 5 : Informations ──────────────────────────── --}}

Informations Opération

@error('operation_name') {{ $message }} @enderror
@error('publish_date') {{ $message }} @enderror
{{-- Bouton submit : lit les dates depuis le DOM avant d'appeler Livewire --}} Annuler
{{-- ── Modal : Nouveau contact ──────────────────────────────────── --}} @if($showContactModal)

Ajouter un contact

@error('modalContact.firstname') {{ $message }} @enderror
@error('modalContact.lastname') {{ $message }} @enderror
@error('modalContact.email') {{ $message }} @enderror
@endif
{{-- kt-container-fixed --}} @push('scripts') @endpush