Promotion Frontend dynamic
This commit is contained in:
parent
c9e1545693
commit
1cc8e025a1
29 changed files with 551 additions and 163 deletions
|
|
@ -26,9 +26,7 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
|
||||
@foreach($values as $value)
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-body d-flex justify-content-between align-items-start pt-3 pb-1">
|
||||
<div>
|
||||
|
|
@ -37,9 +35,10 @@
|
|||
@if ($value->promotion_admin->from)
|
||||
| vom: {{ $value->promotion_admin->from }}
|
||||
@endif
|
||||
@if ($value->promotion_admin->from)
|
||||
@if ($value->promotion_admin->to)
|
||||
| bis: {{ $value->promotion_admin->to }}
|
||||
@endif
|
||||
| {!! get_active_badge($value->promotion_admin->isActive()) !!}
|
||||
</a>
|
||||
</div>
|
||||
@if($value->canDelete())
|
||||
|
|
@ -68,36 +67,29 @@
|
|||
{{ formatPlural($value->promotion_admin->promotion_admin_products_active->count(), 'Sorte', 'n') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="text-muted small">aktive Produkte</div>
|
||||
<div class="font-weight-bold">{{$value->promotion_user_products_active->count()}}
|
||||
{{ formatPlural($value->promotion_user_products_active->count(), 'Sorte', 'n') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="text-muted small">geplant Produkte</div>
|
||||
<div class="font-weight-bold">{{$value->getCountOpenItems()}} Stk.</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="text-muted small">geordert Produkte</div>
|
||||
<div class="font-weight-bold">{{$value->getCountSellItems()}} Stk.</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="col">
|
||||
<div class="text-muted small">Promotion aktiv</div>
|
||||
<div class="font-weight-bold">{!! get_active_badge($value->active) !!}</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="text-muted small">persönliche Abholung</div>
|
||||
<div class="font-weight-bold">{!! get_active_badge($value->pick_up) !!}</div>
|
||||
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="text-muted small">Potentielle Kosten</div>
|
||||
|
|
@ -109,7 +101,6 @@
|
|||
@php($user_promotion_sell = $value->calculateSell())
|
||||
<div class="font-weight-bold">{{ formatNumber($user_promotion_sell['price']) }} € brutto</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr class="m-0">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue