@php $isGroup = $pos->children->isNotEmpty(); $isOptional = (bool) $pos->is_optional; @endphp {{ $pos->pos_number }} @if($depth > 1)@endif {{ $pos->title }}@if($isOptional) (optional)@endif @if($pos->description)
{{ $pos->description }} @endif @if(!$isGroup){{ $pos->quantity ? number_format($pos->quantity, 2, ',', '.') : '—' }}@endif @if(!$isGroup){{ $pos->positionUnit->name ?? '—' }}@endif @if(!$isGroup){{ $pos->unit_price ? number_format($pos->unit_price, 2, ',', '.') . ' €' : '—' }}@endif @if(!$isGroup){{ $pos->calculated_total ? number_format($pos->calculated_total, 2, ',', '.') . ' €' : '—' }}@endif @foreach($pos->children as $ci => $child) @include('pms.offers._pdf_position_row', ['pos' => $child, 'depth' => $depth + 1, 'nr' => $nr . '.' . ($ci+1)]) @endforeach @if($isGroup && $pos->children->isNotEmpty()) Summe {{ $pos->pos_number }}. {{ $pos->title }} {{ number_format($pos->calculated_total, 2, ',', '.') }} € @endif