Descriptions — {{ $invoice->number }}

Retour
@php $projectRows = $invoice->projectDescriptions->keyBy(fn ($d) => (int) $d->project_id); $itemRows = $invoice->items->mapWithKeys(fn ($item) => [$item->id => $item->itemDescription]); @endphp
@csrf @method('PUT')

Facture

@foreach($itemsByProject as $projectId => $groupItems) @php $project = $groupItems->first()->brief->project; $defaultName = $project?->name ?? 'Demande #'.$projectId; $current = $projectRows->get((int) $projectId)?->description ?? ''; @endphp
@endforeach

Annexe

@foreach($itemsSorted as $item) @php $b = $item->brief; $defaultTitle = $b?->title ?? '—'; $lineLabel = $defaultTitle.($b?->project?->name ? ' · '.$b->project->name : ''); $current = $itemRows->get($item->id)?->description ?? ''; @endphp
@endforeach
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Annuler