@foreach($products as $product) @if($product->product->apply_to_ecommerce) {{-- --}} @if(tenant('custom_domain')) @else @endif @endif @endforeach
id title description availability condition price sale_price link image_link additional_image_link brand quantity_to_sell_on_facebook item_group_id gender size color age_group status Category-specific fields
{{ $product->id }} {{ $product->product->name }} {{ strip_tags($product->product->short_description) }} @if(count($product->quantity)) @foreach($product->quantity->sortBy('location_id') as $qty) @if($qty->quantity > 0) in stock @break @else out of stock @break @endif @endforeach @else @endif New {{ $product->price }} {{ isset($product->checkDiscount(null, true)['amount']) ? $product->checkDiscount(null, true)['amount'] : $product->price }}{!! str_replace(' ', '%20', \Illuminate\Support\Facades\URL::to('/product').'/'.$product->product->id.'/'.$product->product->name); !!}{!! str_replace(' ', '%20', "https://".tenant('custom_domain').'/product/'.$product->product->id); !!}{!! str_replace(' ', '%20', tenant('id').'.filtareeq.com/product/'.$product->product->id); !!}{!! count($product->product->productImages) ? json_decode($product->product->productImages[0]->images, 1)[0] : ''!!} @if(count($product->product->productImages)) @foreach(json_decode($product->product->productImages[0]->images, 1) as $index => $img) @if($index > 0)

{!! $img !!},

@endif @endforeach @else

@endif
{{tenant('id')}} {{count($product->quantity)? $product->quantity->sortBy('location_id')[0]->quantity : 0}} {{$product->product->id}} Female @if(!strcasecmp($product->first_attribute, "size")) {{$product->first_attribute_value}} @else @endif @if(!strcasecmp($product->first_attribute, "color")) {{$product->first_attribute_value}} @else @endif {{$product->product->active ? 'Active' : 'Archived'}} {{$product->product->category ? $product->product->category->name : null}}