Modifier le brief

{{ $project->name }}

@php $initialAdPlatforms = old('ad_platforms', $brief->adPlatforms->map(fn ($item) => [ 'ad_platform_type_id' => $item->ad_platform_type_id, 'budget' => $item->budget, 'start_date' => $item->start_date?->format('Y-m-d') ?? '', 'end_date' => $item->end_date?->format('Y-m-d') ?? '', 'budget_type' => $item->budget_type ?? '', ])->values()->all()); if (empty($initialAdPlatforms)) { $initialAdPlatforms = [['ad_platform_type_id' => '', 'budget' => '', 'start_date' => '', 'end_date' => '', 'budget_type' => '']]; } $selectInputClass = 'w-full rounded-lg border border-rose-100 px-3 py-2.5 text-sm focus:border-[#E83646] focus:ring-[#E83646]'; @endphp
primary_type) }}", hasContentCreatorSelected: false, isAdvertising: false, rows: @json($initialAdPlatforms), checkType() { const briefTypeSelect = this.$refs.briefType; const selectedTypeId = Number(briefTypeSelect && briefTypeSelect.value ? briefTypeSelect.value : 0); const selectedOption = briefTypeSelect && briefTypeSelect.selectedOptions ? briefTypeSelect.selectedOptions[0] : null; const selectedLabel = (selectedOption && selectedOption.textContent ? selectedOption.textContent : "") .normalize("NFD") .replace(/[\u0300-\u036f]/g, "") .toLowerCase(); this.isAdvertising = selectedTypeId === 1 || selectedLabel.includes("publicite"); if (this.isAdvertising && this.rows.length === 0) { this.rows.push({ ad_platform_type_id: "", budget: "", start_date: "", end_date: "", budget_type: "" }); } }, addRow() { this.rows.push({ ad_platform_type_id: "", budget: "", start_date: "", end_date: "", budget_type: "" }); }, removeRow(index) { this.rows.splice(index, 1); }, onPrimaryTypeChange(val) { if (val === "production") { if (this.$refs.briefType) { this.$refs.briefType.value = ""; } this.isAdvertising = false; this.rows = []; document.querySelectorAll("input[name=\"employer_ids[]\"]").forEach((input) => { input.checked = false; }); this.hasContentCreatorSelected = false; } this.checkType(); }, updateContentCreatorSelection() { const checked = Array.from(document.querySelectorAll("input[name=\"employer_ids[]\"]:checked")); this.hasContentCreatorSelected = checked.some((input) => input.dataset.isContentCreator === "1"); } }' x-init="$watch('primaryType', val => onPrimaryTypeChange(val)); checkType(); updateContentCreatorSelection()"> @csrf @method('PUT')
@if($assignableEmployers->isEmpty())

Aucun utilisateur disponible pour l'assignation.

@endif

Membre de l'equipe (employe) habilite a faire evoluer le statut (A faire / En cours / Valide) depuis Mes briefs ou la liste projet.

@if($productionManagers->isEmpty())

Aucun utilisateur avec le role "production_manager" disponible.

@endif

Ce titre sera utilise pour le brief secondaire assigne aux createurs de contenu.

Plateformes publicitaires

Ajoutez les plateformes avec la periode (debut / fin) et le cout estime en TND par plateforme (somme = base prix HT facture, sans conversion devise).

Annuler