@php $isGroup = $pos->children->isNotEmpty(); @endphp {{ $nr }} {{ $pos->title }} @if(!$isGroup && $pos->description)
{{ $pos->description }} @endif @if(!$isGroup && $pos->quantity){{ number_format($pos->quantity, 2, ',', '.') }}@endif @if(!$isGroup){{ $pos->unit?->name ?? '' }}@endif @if(!$isGroup && $pos->unit_price){{ number_format($pos->unit_price, 2, ',', '.') }}@endif @if(!$isGroup){{ number_format($pos->line_total, 2, ',', '.') }}@endif @foreach($pos->children as $ci => $child) @include('pms.invoices._pdf_row', ['pos' => $child, 'depth' => $depth + 1, 'nr' => $nr . '.' . ($ci + 1)]) @endforeach @if($isGroup && $pos->children->isNotEmpty()) Summe {{ $nr }} {{ $pos->title }} {{ number_format($pos->children->sum('line_total'), 2, ',', '.') }} @endif