LMIV-SNACKAUTOMAT/resources/views/home.blade.php

115 lines
6.9 KiB
PHP

@extends('layouts.vending')
@section('title', 'Dashboard')
@section('content')
<div class="max-w-4xl mx-auto">
<div class="bg-white shadow-lg rounded-lg p-6">
<div class="border-b border-gray-200 pb-4 mb-6">
<h1 class="text-2xl font-bold text-gray-900">Admin Dashboard</h1>
<p class="text-gray-600 mt-2">Willkommen im Verwaltungsbereich</p>
</div>
@if (session('status'))
<div class="bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded mb-6">
{{ session('status') }}
</div>
@endif
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<!-- Produktverwaltung -->
<div class="bg-blue-50 border border-blue-200 rounded-lg p-6">
<div class="flex items-center mb-4">
<div class="bg-blue-500 text-white p-3 rounded-lg">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path>
</svg>
</div>
<div class="ml-4">
<h3 class="font-semibold text-gray-900">Produkte</h3>
<p class="text-gray-600 text-sm">LMIV-konforme Produktdaten</p>
</div>
</div>
<a href="{{ route('products.index') }}" class="inline-flex items-center px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-md hover:bg-blue-700">
Verwalten
</a>
</div>
<!-- Automatenverwaltung -->
<div class="bg-green-50 border border-green-200 rounded-lg p-6">
<div class="flex items-center mb-4">
<div class="bg-green-500 text-white p-3 rounded-lg">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"></path>
</svg>
</div>
<div class="ml-4">
<h3 class="font-semibold text-gray-900">Automaten</h3>
<p class="text-gray-600 text-sm">Snackautomaten verwalten</p>
</div>
</div>
<a href="{{ route('vending-machines.index') }}" class="inline-flex items-center px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-md hover:bg-green-700">
Verwalten
</a>
</div>
<!-- Slot-Verwaltung -->
<div class="bg-purple-50 border border-purple-200 rounded-lg p-6">
<div class="flex items-center mb-4">
<div class="bg-purple-500 text-white p-3 rounded-lg">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2M9 7a2 2 0 012-2h2a2 2 0 012 2m0 10V7m0 10a2 2 0 002 2h2a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2h2a2 2 0 002-2z"></path>
</svg>
</div>
<div class="ml-4">
<h3 class="font-semibold text-gray-900">Slots</h3>
<p class="text-gray-600 text-sm">Fächer und Zuordnungen</p>
</div>
</div>
<a href="{{ route('slots.index') }}" class="inline-flex items-center px-4 py-2 bg-purple-600 text-white text-sm font-medium rounded-md hover:bg-purple-700">
Verwalten
</a>
</div>
<!-- Einstellungen -->
<div class="bg-orange-50 border border-orange-200 rounded-lg p-6">
<div class="flex items-center mb-4">
<div class="bg-orange-500 text-white p-3 rounded-lg">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
</div>
<div class="ml-4">
<h3 class="font-semibold text-gray-900">Einstellungen</h3>
<p class="text-gray-600 text-sm">System konfigurieren</p>
</div>
</div>
<a href="{{ route('admin.settings.index') }}" class="inline-flex items-center px-4 py-2 bg-orange-600 text-white text-sm font-medium rounded-md hover:bg-orange-700">
Konfigurieren
</a>
</div>
</div>
<!-- Schnellzugriff -->
<div class="mt-8 pt-6 border-t border-gray-200">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Schnellzugriff</h2>
<div class="flex flex-wrap gap-3">
<a href="{{ route('vending.index') }}" class="inline-flex items-center px-3 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
Öffentliche Ansicht
</a>
<a href="{{ route('products.create') }}" class="inline-flex items-center px-3 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
Neues Produkt
</a>
<a href="{{ route('vending-machines.create') }}" class="inline-flex items-center px-3 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
Neuer Automat
</a>
<a href="{{ route('admin.settings.index') }}" class="inline-flex items-center px-3 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
⚙️ Einstellungen
</a>
</div>
</div>
</div>
</div>
@endsection