Warenwirtschaft: F-11 — Einkaufspreise auf der Rohstoff-Detailseite nur für Admins

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-09-08 11:04:07 +00:00
parent f93b16c8f7
commit 691f763011
3 changed files with 49 additions and 9 deletions

View file

@ -129,7 +129,9 @@
<tr>
<th>{{ __('Lieferant') }}</th>
<th>{{ __('Lieferzeit') }}</th>
<th class="text-right">{{ __('Letzter Einkauf (Netto/kg)') }}</th>
@if(Auth::user()->isAdmin())
<th class="text-right">{{ __('Letzter Einkauf (Netto/kg)') }}</th>
@endif
<th class="text-right" style="width: 11rem;"></th>
</tr>
</thead>
@ -153,13 +155,15 @@
@endif
</td>
<td>{{ $deliveryTime ?: '—' }}</td>
<td class="text-right">
@if($lastPrice !== null)
{{ \App\Services\Util::formatNumber($lastPrice, 2) }} €
@else
<span class="text-muted">—</span>
@endif
</td>
@if(Auth::user()->isAdmin())
<td class="text-right">
@if($lastPrice !== null)
{{ \App\Services\Util::formatNumber($lastPrice, 2) }} €
@else
<span class="text-muted">—</span>
@endif
</td>
@endif
<td class="text-right">
@if($orderUrl)
<a href="{{ $orderUrl }}" target="_blank" rel="noopener" class="btn btn-sm btn-outline-secondary">{{ __('Zum Shop') }}</a>