@php $isGroup = $pos->children->count() > 0; @endphp {{ $nr }} {{ $pos->title }} @if(!$isGroup && $pos->description)
{{ $pos->description }} @endif @if($isGroup) @else {{ $pos->quantity ? number_format($pos->quantity, 2, ',', '.') : '—' }} {{ $pos->unit_price ? number_format($pos->unit_price, 2, ',', '.') . ' €' : '—' }} {{ number_format($pos->line_total, 2, ',', '.') }} € @endif @foreach($pos->children as $child) @include('pms.invoices._show_row', ['pos' => $child, 'level' => $level + 1, 'nr' => $nr . '.' . $loop->iteration]) @endforeach