@extends('back.layout.app') @section('title', config('app.name') . ' - ' . ($operation->num_bdc ? 'Edition' : 'Création') . ' BDC') @php $breadcrumb = 'operations.index'; @endphp @push('styles') @endpush @section('content')

{{ $operation->num_bdc ? 'Edition du bon de commande — ' . $operation->num_bdc : 'Création du bon de commande' }}

{{ $operation->name }}
{{-- ====== FORMULAIRE (2/3) ====== --}}
@csrf
{{-- Objet --}}

Objet

{{-- Apport Média --}}

Apport du Média

{{-- Apport Client --}}

Apport du client

{{-- Conditions de paiement --}}

Conditions de paiement

{{-- Contrat mandataire + TVA --}}

Contrat de mandataire

agency_agreement) == '1' ? 'checked' : '' }}>
agency_agreement) == '0' ? 'checked' : '' }}>

TVA

tva) == '1' ? 'checked' : '' }}>
tva) == '0' ? 'checked' : '' }}>
{{-- Bouton submit --}}
Générer le bon de commande PDF
{{-- ====== RÉCAP (1/3) ====== --}}

Informations

Client : {{ $operation->customer?->name }}
@if ($operation->media)
Média : {{ $operation->media->name }}
@endif
Date opération : {{ $operation->publish_date }}
Commercial : {{ $operation->user?->firstname }}
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, ',', ' ') }} €
{{-- Critères --}} @if ($operation->type?->operationCriterias->isNotEmpty())

Critères

@foreach ($operation->type->operationCriterias as $criteria) @php $value = $infosByCriteria[$criteria->id]->content ?? ''; @endphp @if ($value)
{{ $criteria->name }} : {{ $value }}
@endif @endforeach
@endif
@endsection @push('scripts') @endpush