@extends('layouts.vending') @section('title', 'Slot bearbeiten') @section('content')

Slot {{ $slot->slot_number }} bearbeiten

{{ $slot->vendingMachine->name }} - Slot-Konfiguration bearbeiten

@csrf @method('PUT')

Slot-Konfiguration

@error('vending_machine_id')

{{ $message }}

@enderror
@error('slot_number')

{{ $message }}

@enderror

Eindeutige Nummer für diesen Slot im Automaten

@error('position')

{{ $message }}

@enderror

Beschreibung der Position im Automaten (maximal 100 Zeichen)

@error('capacity')

{{ $message }}

@enderror

Maximale Anzahl Produkte in diesem Slot (1-50)

Nur aktive Slots können Produkte enthalten

@if($slot->products->count() > 0)

Aktuelle Produkt-Zuordnung

@foreach($slot->products as $product)
@if($product->image) {{ $product->name }} @else
?
@endif

{{ $product->name }}

Bestand: {{ $product->pivot->quantity ?? 0 }} Stück | Preis: {{ number_format($product->pivot->current_price ?? $product->price, 2) }}€

@endforeach
@endif
Abbrechen
Details ansehen
@endsection