@php $isGroup = $depth === 0; $indentPx = 12 + $depth * 16; $readonly = $readonly ?? false; @endphp {{-- Anzeigezeile --}}
{{-- Positionsnummer --}}
{{ $pos->pos_number }}
{{-- Bezeichnung + Beschreibung + Zahlen --}}
{{ $pos->title }}
@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
{{ $gprice > 0 ? number_format($gprice, 2, ',', '.') : '—' }}
{{-- Aktionen (hover-sichtbar) --}} @if(!$readonly)
@if($pos->level < 5) @endif
@csrf
@endif
{{-- Bearbeitungszeile --}} @if(!$readonly) @endif @foreach($pos->children as $ci => $child) @include('pms.orders._position_row', ['pos' => $child, 'depth' => $depth + 1, 'nr' => $nr . '.' . ($ci+1), 'readonly' => $readonly]) @endforeach