@php $isGroup = $depth === 0; $indentPx = 12 + $depth * 16; @endphp {{-- Anzeigezeile --}}
{{-- Positionsnummer --}}
{{ $pos->pos_number }}
{{-- Bezeichnung + Beschreibung + Zahlen --}}
{{ $pos->title }} @if($pos->is_optional) optional @endif
@if($pos->description)
{{ $pos->description }}
@endif
MENGE
{{ $pos->quantity ? number_format($pos->quantity, 2, ',', '.') : '—' }}
ME
{{ $pos->positionUnit->name ?? '—' }}
E-PREIS €
{{ $pos->unit_price ? number_format($pos->unit_price, 2, ',', '.') : '—' }}
G-PREIS €
@php $gprice = (float)$pos->quantity * (float)$pos->unit_price; @endphp
@if($pos->is_optional)—@else{{ $gprice > 0 ? number_format($gprice, 2, ',', '.') : '—' }}@endif
{{-- Aktionen (hover-sichtbar) --}}
@if($pos->level < 5) @endif
@csrf
{{-- Bearbeitungszeile --}} @foreach($pos->children as $ci => $child) @include('pms.offers._position_row', ['pos' => $child, 'depth' => $depth + 1, 'nr' => $nr . '.' . ($ci+1)]) @endforeach