@extends('layouts.vending') @section('title', $vendingMachine->name) @section('content')

{{ $vendingMachine->name }}

{{ $vendingMachine->location }}

@if($vendingMachine->serial_number)

S/N: {{ $vendingMachine->serial_number }}

@endif
@if($vendingMachine->tenant && $vendingMachine->tenant->public_slug && $vendingMachine->machine_number) Öffentliche Ansicht @endif Bearbeiten
@csrf @method('DELETE')

Automatinformationen

Status

@if($vendingMachine->is_active) Aktiv @else Inaktiv @endif
@if($vendingMachine->description)

Beschreibung

{{ $vendingMachine->description }}

@endif

Erstellt

{{ $vendingMachine->created_at->format('d.m.Y H:i') }}

Zuletzt bearbeitet

{{ $vendingMachine->updated_at->format('d.m.Y H:i') }}

@if($vendingMachine->tenant && $vendingMachine->tenant->public_slug)

QR-Code Download

Mandanten-spezifischer QR-Code

Nur für {{ $vendingMachine->tenant->name }}

{{ route('vending.public.machine', ['publicSlug' => $vendingMachine->tenant->public_slug, 'machineNumber' => $vendingMachine->machine_number]) }}
QR-Code herunterladen (SVG/PNG)
@else

QR-Code nicht verfügbar

@if(!$vendingMachine->tenant) Kein Mandant zugewiesen. @else {{ $vendingMachine->tenant->name }} hat keinen öffentlichen Slug konfiguriert. @endif

@endif

Statistiken

{{ $vendingMachine->slots->count() }}
Gesamte Slots
{{ $vendingMachine->slots->whereNotNull('pivot.product_id')->count() }}
Belegte Slots
{{ $vendingMachine->slots->whereNull('pivot.product_id')->count() }}
Freie Slots
{{ $vendingMachine->slots->pluck('products')->flatten()->unique('id')->count() }}
Verschiedene Produkte

Slot-Übersicht

Alle Slots verwalten
@if($vendingMachine->slots->count() > 0)
@foreach($vendingMachine->slots->sortBy('slot_number') as $slot)
{{ $slot->slot_number }}
@if($slot->products->count() > 0) @php $product = $slot->products->first() @endphp
{{ Str::limit($product->name, 10) }}
{{ $product->pivot->stock_quantity ?? 0 }}x
@else
Leer
@endif
@endforeach
Belegt
Leer
@else

Keine Slots

Für diesen Automaten wurden noch keine Slots erstellt.

@endif
@endsection