Brief production

Frais & charges

Projet : {{ $brief->project?->name ?? '—' }}

Brief : {{ $brief->title }}

Retour
@php $charges = $brief->charges ?? collect(); $chargesTotal = (float) $charges->sum('amount'); $supplierCost = $brief->resolvedSupplierCost(); $totalCost = $supplierCost + $chargesTotal; $chargesQueryParams = array_filter([ 'return' => request('return'), 'project_id' => request('project_id'), ], fn ($value) => $value !== null && $value !== ''); $restoreEdit = null; if (session('edit_charge_id') && $errors->any()) { $restoreEdit = [ 'id' => (int) session('edit_charge_id'), 'name' => old('name'), 'amount' => old('amount'), ]; } $briefActionIconClass = 'inline-flex h-8 w-8 items-center justify-center rounded-xl border border-rose-200 bg-white text-[#E83646] shadow-sm transition hover:bg-rose-50 hover:shadow-[0_4px_12px_rgba(232,54,70,0.15)]'; @endphp

Offre fournisseur

{{ number_format($supplierCost, 3, ',', ' ') }} DT

Total charges

{{ number_format($chargesTotal, 3, ',', ' ') }} DT

Cout total estime

{{ number_format($totalCost, 3, ',', ' ') }} DT

Liste des charges

Deplacement, transport et autres frais lies au brief.

@csrf @foreach($chargesQueryParams as $key => $value) @endforeach

Ajouter une charge

@forelse($charges as $charge) @empty @endforelse @if($charges->isNotEmpty()) @endif
Libelle Montant Ajoute par Date Actions
{{ $charge->name }} {{ number_format((float) $charge->amount, 3, ',', ' ') }} DT {{ $charge->creator?->name ?? '—' }} {{ $charge->created_at?->format('d/m/Y H:i') }}
Aucune charge enregistree. Ajoutez la premiere charge ci-dessus.
Total {{ number_format($chargesTotal, 3, ',', ' ') }} DT
{{-- Modal: modifier charge --}}