@extends('layouts.back-end.app') @section('title', translate('promotion_list')) @section('content')
{{ translate('promotion_setup') }}
| {{ translate('SL') }} | {{ translate('name') }} | {{ translate('type') }} | {{ translate('channel') }} | {{ translate('eligibility') }} | {{ translate('duration') }} | {{ translate('limit') }} | {{ translate('details') }} | {{ translate('status') }} | {{ translate('action') }} |
|---|---|---|---|---|---|---|---|---|---|
| {{ $promotions->firstItem() + $k }} |
{{ $p->name }}
@if($p->slug)
/{{ $p->slug }}
@endif
|
{{ str_replace('_',' ',$p->type) }} | {{ $p->channel ?? 'web' }} |
@if(!empty($e['category_ids'])) {{ translate('categories') }}: {{ count($e['category_ids']) }} @endif
@if(!empty($e['product_ids'])) {{ translate('products') }}: {{ count($e['product_ids']) }} @endif
@if(!empty($e['brand_ids'])) {{ translate('brands') }}: {{ count($e['brand_ids']) }} @endif
|
{{ $p->starts_at ? $p->starts_at->format('d M, y') : '—' }}
-
{{ $p->ends_at ? $p->ends_at->format('d M, y') : '—' }}
|
@if($p->type === 'price_cap') {{ ($p->max_qty_per_order ?? 0) > 0 ? $p->max_qty_per_order : '—' }} @else {{ $p->max_bundles_per_order ?? '—' }} @endif | @if($p->type === 'price_cap') {{ translate('cap_amount') }}: {{ $p->cap_amount ?? '—' }} @if($p->show_on_home) {{ translate('show_on_home') }} @endif @else @if($p->type === 'bogo_discount') {{ translate('discount_percent') }}: {{ (float)$p->discount_percent }}% @endif @if($p->type === 'buy_get') {{ translate('buy') }} {{ (int)$p->buy_qty }} → {{ translate('get') }} {{ (int)$p->get_qty }} @endif @if($p->apply_on_cheapest) {{ translate('apply_on_cheapest') }} @endif @endif |