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

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

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

{{$item->title}}

@if($item->price >0 and $item->pDelete ==0)
{{__('Available In Stock')}} {{__('Available In Stock')}}
@else
{{__('Not Available In Stock')}} {{__('Not Available In Stock')}}
@endif @if($item->pDelete ==0) @if($item->price >0 )
@if($item->discount_percent>0 and $item->time_discount==1 and $date < $item->end_date) {{$item->discount_percent}}% @endif @if($item->discount_percent>0 and $item->time_discount==1 and $date < $item->end_date) {{fnumber_format(PriceCalculation($item->price,$item->discount_percent))}} {{$prefix}} @else {{fnumber_format($item->price)}}{{$prefix}} @endif
@endif @endif
@if(isset($settings['quick_purchase']) and $settings['quick_purchase']==1)
{{__('Close')}}
@php if ($item->price>0) { if ($item->AttributeValue != null) { $attributeTitle = $item->AttributeValue->attribute->title . ' : '; $attributeId = $item->AttributeValue->attribute->id; } else { $attributeTitle = ''; $attributeId = 0; } } else { $attributeTitle = ''; $attributeId = 0; } @endphp
@if($item->price>0 and $item->pDelete ==0)
@csrf
@php $i=0;@endphp @if($item->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($item->AttributeValue->property) and $item->AttributeValue->property!= '' )
@else
@endif @endif @php $i++;@endphp
@php $i=0;@endphp @if($i==0) @php $d_none='block';@endphp @else @php $d_none='none';@endphp @endif
@if($item->discount_percent>0 and $item->time_discount==1 and $date < $item->end_date) {{$item->discount_percent}}% {{fnumber_format(PriceCalculation($item->price,$item->discount_percent))}}   {{$prefix}} @else {{fnumber_format($item->price)}}   {{$prefix}} @endif
@php $i++;@endphp
@if($item->price > 0)
- +
@endif
@endif
@endif
@if(isset($settings['quick_purchase']) and $settings['quick_purchase']==1)
{{__('Add To Cart')}}
@endif
@if($item->price >0 ) @if($item->discount_percent>0 and $item->time_discount==1 and $date < $item->end_date)
{{__('Discount')}}
@endif @endif
@endforeach