@extends('layouts.vending') @section('title', 'Admin Dashboard') @section('content')

Admin Dashboard

Verwalten Sie Ihre Snackautomaten, Produkte und Fächer

Automaten
@php $tenantId = session('current_tenant_id'); $machineCount = $tenantId ? \App\Models\VendingMachine::where('tenant_id', $tenantId)->count() : \App\Models\VendingMachine::count(); @endphp {{ $machineCount }}
Produkte
@php $productCount = $tenantId ? \App\Models\Product::where('tenant_id', $tenantId)->count() : \App\Models\Product::count(); @endphp {{ $productCount }}
Fächer
@php if ($tenantId) { $slotCount = \App\Models\Slot::whereHas('vendingMachine', function ($q) use ($tenantId) { $q->where('tenant_id', $tenantId); })->count(); } else { $slotCount = \App\Models\Slot::count(); } @endphp {{ $slotCount }}
Befüllte Fächer
@php if ($tenantId) { $filledSlotCount = \App\Models\SlotProduct::whereHas('slot.vendingMachine', function ($q) use ($tenantId) { $q->where('tenant_id', $tenantId); })->where('quantity', '>', 0)->count(); } else { $filledSlotCount = \App\Models\SlotProduct::where('quantity', '>', 0)->count(); } @endphp {{ $filledSlotCount }}
@if(Auth::user()->isSuperAdmin())

Mandantenverwaltung

Verwalten Sie alle Mandanten im System

@endif

Produktverwaltung

Verwalten Sie Ihren Produktkatalog mit LMIV-Daten

Automatenverwaltung

Konfigurieren Sie Ihre Snackautomaten und Fächer

Fachverwaltung

Ordnen Sie Produkte den Automatenfächern zu

@endsection