@extends('master.front') @section('title') @if(@$promotion->detail) {{ $promotion->detail }} @else {{ __('Special Promotion') }} @endif @endsection @section('meta') @endsection @section('content')
@if($setting->promotion_in_image and $setting->promotion_in_image_status == 1) @endif

{{ __('Promotion') }}

@if ($campaign_items) @foreach ($campaign_items as $key_item => $item)
@if ($item->is_type) @foreach (json_decode($item->is_type) as $val) @if ($val == 'new') @endif @if ($val == 'feature') @endif @if ($val == 'top') @endif @if ($val == 'best') @endif @if ($val == 'flash_deal') @endif @endforeach @else @endif @if($item->sale_qty >= $setting->sale_qty && $sale_qty_status == true) @endif @if ($item->is_hot == 1 && $view_qty_status == true) @endif @if($item->view_qty >= $setting->view_qty && $view_qty_status == true) @endif @if (!$item->is_stock() || $item->status == 0) @endif @php $price_discount = PriceHelper::DiscountPercentage($item); @endphp @if($promotion->start_date <= now() && $promotion->end_date >= now() && $price_discount != '0%') @endif
{{ Str::limit($item->name, 35) }}
{{ PriceHelper::grandCurrencyPrice($item) }}
@if ($item->previous_price != 0)
{{ PriceHelper::grandCurrencyPrice($item) }} @if($promotion->start_date <= now() && $promotion->end_date >= now() and $price_discount != '0%') {{ PriceHelper::setPreviousPrice($item->discount_price) }} @endif
@endif
@if ($item->is_stock() and $item->status == 1) @else {{ __('Details') }} @endif
@endforeach
@else

{{ __('No Product Found') }}

@endif
@endsection