{{ $stamm?->name ?: ($kennzahlen['name'] ?? $sku) }}

{{ $sku }} @if($stamm) · {{ $stamm->gruppe() }} · {{ $stamm->marke() }} @if($stamm->family) · Familie {{ $stamm->family }} @endif @if(! $stamm->active) · inaktiv @endif @endif

@if($kennzahlen)
@php $trendText = [ 'aufwaerts' => '▲ aufwärts', 'abwaerts' => '▼ abwärts', 'stagnation' => '● stagniert', 'neu' => '★ neu', 'unklar' => 'zu wenig Daten', ][$kennzahlen['trend']] ?? '–'; $trendFarbe = [ 'aufwaerts' => 'text-emerald-700', 'abwaerts' => 'text-red-700', 'stagnation' => 'text-gray-600', 'neu' => 'text-blue-700', 'unklar' => 'text-gray-400', ][$kennzahlen['trend']] ?? 'text-gray-400'; @endphp @foreach(array_filter([ ['Absatz ' . ($fenster['jung'] + $fenster['alt']) . ' Tage', number_format($kennzahlen['absatz'], 0, ',', '.'), 'text-gray-900'], $kennzahlen['marge'] !== null ? ['Marge', round($kennzahlen['marge'] * 100) . ' % (EK ' . number_format($kennzahlen['ek'], 2, ',', '.') . ' / VK ' . number_format($kennzahlen['vk'], 2, ',', '.') . ')', $kennzahlen['marge'] < 0.25 ? 'text-red-700' : 'text-gray-900'] : null, $kennzahlen['kapital'] !== null ? ['Kapital im Bestand', number_format($kennzahlen['kapital'], 0, ',', '.') . ' €', 'text-gray-900'] : null, ($kennzahlen['leer_in'] ?? 0) > 0 ? ['fehlt gerade in', $kennzahlen['leer_in'] . ' von ' . $kennzahlen['verkauft_in'] . ' Filialen', 'text-red-700'] : null, ['pro Woche', number_format($kennzahlen['pro_woche'], 1, ',', '.'), 'text-gray-900'], ['Bestand gesamt', number_format($kennzahlen['bestand'], 0, ',', '.'), $kennzahlen['bestand'] <= 0 ? 'text-red-700' : 'text-gray-900'], ['Kernartikel in', $kennzahlen['kern'] . ' Filialen (' . round($kennzahlen['zentral'] * 100) . ' %)', 'text-gray-900'], ['Flughöhe', $trendText . ($kennzahlen['trend_wert'] !== null ? ' ' . ($kennzahlen['trend_wert'] > 0 ? '+' : '') . round($kennzahlen['trend_wert'] * 100) . ' %' : ''), $trendFarbe], ]) as [$label, $wert, $farbe])

{{ $label }}

{{ $wert }}

@endforeach
@endif

Je Filiale

@foreach($filialen->sortByDesc('absatz') as $f) @endforeach
Filiale Kern Bestand Absatz pro Tag reicht letzter Verkauf im Nachschub
{{ $f['name'] }} @if($f['kern']) S @else – @endif {{ (int) $f['bestand'] }} {{ (int) $f['absatz'] }} {{ number_format($f['tag'], 2, ',', '.') }} @if($f['reichweite'] === null) kein Absatz @else {{ number_format($f['reichweite'], 1, ',', '.') }} T @endif {{ $f['letzter'] ? \Carbon\Carbon::parse($f['letzter'])->format('d.m.Y') : '–' }} @if(! $f['imLauf']) nicht im Lauf @elseif($f['bestellt'] > 0) bestellt {{ (int) $f['bestellt'] }} @else {{ $f['grund'] ?: 'kein Bedarf' }} @endif
Zurück zum Sortiment