@extends('layouts.layout-2') @section('content')

{{ __('navigation.my_promotions') }} / {{ __('navigation.overview') }}

Text ...

Text ...

@foreach($values as $value)

{{$value->internal_name}}

{!! nl2br($value->internal_description) !!}


Promotion Produkte
{{$value->promotion_admin->promotion_admin_products_active->count()}} {{ formatPlural($value->promotion_admin->promotion_admin_products_active->count(), 'Sorte', 'n') }}
aktive Produkte
{{$value->promotion_user_products_active->count()}} {{ formatPlural($value->promotion_user_products_active->count(), 'Sorte', 'n') }}
geplant Produkte
{{$value->getCountOpenItems()}} Stk.
geordert Produkte
{{$value->getCountSellItems()}} Stk.
Promotion aktiv
{!! get_active_badge($value->active) !!}
persönliche Abholung
{!! get_active_badge($value->pick_up) !!}
Potentielle Kosten
@php($user_promotion_cart = $value->calculateCart())
{{ formatNumber($user_promotion_cart['price']) }} € brutto
Kosten bisher
@php($user_promotion_sell = $value->calculateSell())
{{ formatNumber($user_promotion_sell['price']) }} € brutto

@php($checkPaymentCredit = $value->checkPaymentCredit()) @if($checkPaymentCredit === 'empty')
Du hast kein Guthaben aus Deinem Konto auf, lade Dein Konto auf, bis dahin ist die Promotion gestoppt.
@endif @if($checkPaymentCredit === 'okay')
Dein Guthaben ist ausreichend für diese Promotion
@endif @if($checkPaymentCredit === 'not')
Dein Guthaben ist nicht ausreichend für diese Promotion, lade Dein Konto auf, bis dahin ist die Promotion gestoppt.
@endif

@endforeach
@endsection