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

{{ $product->name }}

{{ number_format($product->price, 2) }}€

Bearbeiten
@csrf @method('DELETE')
@if($product->image) {{ $product->name }} @else
Kein Produktbild
@endif @if($product->description)

Beschreibung

{{ $product->description }}

@endif @if($product->barcode)

Barcode

{{ $product->barcode }}

@endif
@if($product->ingredients || $product->allergens)

Zutaten und Allergene

@if($product->ingredients)

Zutaten

{{ $product->ingredients }}

@endif @if($product->allergens)

Allergene und Unverträglichkeiten

{{ $product->allergens }}

@endif
@endif @if($product->energy_kcal || $product->energy_kj || $product->fat || $product->carbohydrates || $product->protein || $product->salt)

Nährwertangaben pro 100g

@if($product->energy_kcal)
{{ $product->energy_kcal }}
kcal
@endif @if($product->energy_kj)
{{ $product->energy_kj }}
kJ
@endif @if($product->fat)
{{ $product->fat }}
g Fett
@endif @if($product->saturated_fat)
{{ $product->saturated_fat }}
g gesättigte Fettsäuren
@endif @if($product->carbohydrates)
{{ $product->carbohydrates }}
g Kohlenhydrate
@endif @if($product->sugar)
{{ $product->sugar }}
g Zucker
@endif @if($product->protein)
{{ $product->protein }}
g Eiweiß
@endif @if($product->salt)
{{ $product->salt }}
g Salz
@endif
@endif @if($product->net_weight || $product->origin_country || $product->manufacturer || $product->distributor)

Produktinformationen

@if($product->net_weight)

Nettofüllmenge

{{ $product->net_weight }}g

@endif @if($product->origin_country)

Herkunftsland

{{ $product->origin_country }}

@endif @if($product->manufacturer)

Hersteller

{{ $product->manufacturer }}

@endif @if($product->distributor)

Vertreiber

{{ $product->distributor }}

@endif
@endif @if($product->storage_instructions || $product->usage_instructions || $product->best_before_date || $product->lot_number)

Hinweise und Zusatzinformationen

@if($product->storage_instructions)

Aufbewahrungshinweise

{{ $product->storage_instructions }}

@endif @if($product->usage_instructions)

Verwendungshinweise

{{ $product->usage_instructions }}

@endif @if($product->best_before_date)

Mindesthaltbarkeitsdatum

{{ $product->best_before_date->format('d.m.Y') }}

@endif @if($product->lot_number)

Chargennummer

{{ $product->lot_number }}

@endif
@endif @if($product->slots->count() > 0)

Verfügbar in folgenden Automaten

@foreach($product->slots->groupBy('vendingMachine.name') as $machineName => $slots)

{{ $machineName }}

@foreach($slots as $slot) Slot {{ $slot->slot_number }} @if($slot->pivot->stock_quantity) ({{ $slot->pivot->stock_quantity }} Stück) @endif @endforeach
@endforeach
@endif

Metadaten

Erstellt: {{ $product->created_at->format('d.m.Y H:i') }}
Zuletzt bearbeitet: {{ $product->updated_at->format('d.m.Y H:i') }}
@endsection