@php $date = \Morilog\Jalali\Jalalian::now()->getTimestamp(); @endphp

{{$advertising->title}} {{$advertising->more_button_text}}

@foreach($advertising->products as $item)
{{$item->title}}

{{$item->title}}

@if(sizeof($item->prices) >0)
{{__('Available In Stock')}} {{__('Available In Stock')}}
@else
{{__('Not Available In Stock')}} {{__('Not Available In Stock')}}
@endif @if(sizeof($item->prices) >0)
@if($item->prices[0]->discount_percent>0 and $item->prices[0]->time_discount==1 and $date < $item->prices[0]->end_date ) {{$item->prices[0]->discount_percent}}% @endif @if($item->prices[0]->discount_percent>0 and $item->prices[0]->time_discount==1 and $date < $item->prices[0]->end_date) {{fnumber_format(PriceCalculation($item->prices[0]->price,$item->prices[0]->discount_percent))}} {{$prefix}} @else {{fnumber_format($item->prices[0]->price)}}{{$prefix}} @endif
@if($item->prices[0]->time_discount==1 and isset($settings['time_discount']) and $settings['time_discount']==1 and $date < $item->prices[0]->end_date)
@endif @endif
@if(isset($settings['quick_purchase']) and $settings['quick_purchase']==1)
{{__('Close')}}
@php if (sizeof($item->prices)>0) { if ($item->prices[0]->AttributeValue != null) { $attributeTitle = $item->prices[0]->AttributeValue->attribute->title . ' : '; $attributeId = $item->prices[0]->AttributeValue->attribute->id; } else { $attributeTitle = ''; $attributeId = 0; } } else { $attributeTitle = ''; $attributeId = 0; } @endphp
@if(count($item->prices)>0)
@csrf
@php $i=0;@endphp @foreach($item->prices as $price) @if($price->AttributeValue!=null) @if($i==0) @php $checked='checked';@endphp @php $btnActive='btn-active';@endphp @else @php $checked='';@endphp @php $btnActive='no-active';@endphp @endif @if(isset($price->AttributeValue->property) and $price->AttributeValue->property!= '' )
@else
@endif @endif @php $i++;@endphp @endforeach
@php $i=0;@endphp @foreach($item->prices as $price) @if($i==0) @php $d_none='block';@endphp @else @php $d_none='none';@endphp @endif
@if($price->discount_percent>0 and $price->time_discount==1 and $date < $price->end_date ) {{$price->discount_percent}}% {{fnumber_format(PriceCalculation($price->price,$price->discount_percent))}}   {{$prefix}} @else {{fnumber_format($price->price)}}   {{$prefix}} @endif
@php $i++;@endphp @endforeach
@if(sizeof($item->prices)>0)
- +
@endif
@endif
@endif
@if(isset($settings['quick_purchase']) and $settings['quick_purchase']==1)
{{__('Add To Cart')}}
@endif @if(isset($settings['quick_view']) and $settings['quick_view']==1) @php $tags=explode(',',$item->keywords); $tagsAll='';@endphp @php $arrayAttributes_list=[];@endphp @if(isset($item->short_description) and $item->short_description !=null) @php $arrayAttributes_list=json_decode($item->short_description); @endphp @endif @endif
@if(sizeof($item->prices)>0) @if($item->prices[0]->discount_percent >0 and $item->prices[0]->time_discount==1 and $date < $item->prices[0]->end_date)
{{__('Discount')}}
@endif @endif
@endforeach