@php use App\Http\Controllers\Api\CurrencyController; @endphp @php $center="text-center"; $row='col-lg-12'; $round=''; @endphp @if($page == 'category' ) @php $round='round'; @endphp @endif @if($sidebar == 1) @php $center=""; $row='row'; @endphp @endif
@if($sidebar == 1 )
@endif
@if($headingTag == "1")

{{ ucfirst($heading) }}

@elseif($headingTag == "0")

{{ ucfirst($heading) }}

@else

{{ ucfirst($heading) }}

@endif @if($sidebar != 1 && $heading!='')
@endif
@if($sidebar == 1 )
@endif @if($category) @endif @if($artists) @endif @if($sidebar == 1 && count($allproducts)>1) @endif @if($sidebar == 1 )
@endif
@if(count($allproducts)>0) @isset($allproducts) @foreach ($allproducts as $product) @if($loop->index < $productCount)
@if($product->stock == 0)
{{ __('staticwords.sold') }}
@endif @php $category = App\Category::with('simpleproducts')->where('id','=',$product->category_id)->first(); $cat_slug = str_slug($category->title, '-', app()->getLocale()); $subcategory =App\Subcategory::with('simpleproducts')->where('id','=',$product->subcategory_id)->first(); $subcat_slug = str_slug($subcategory->title, '-', app()->getLocale()); @endphp
@if($product->thumbnail != '') @if($product->thumbnail != '' && file_exists(public_path().'/images/simple_products/'.$product->thumbnail)) Product Image @else Product Image @endif @else No Image @endif
@php $category = App\Category::with('simpleproducts')->where('id','=',$product->category_id)->first(); $cat_slug = str_slug($category->title, '-', app()->getLocale()); $subcategory =App\Subcategory::with('simpleproducts')->where('id','=',$product->subcategory_id)->first(); $subcat_slug = str_slug($subcategory->title, '-', app()->getLocale()); @endphp {{ ucfirst($product->product_name) }}
@auth @if($product->type != 'ex_product') @endif @endauth
@php $new_conversion_rate = new CurrencyController; $new_conversion_rate = $new_conversion_rate->newfetchRates(session()->get('currency')['id'],$product->id)->getData()->exchange_rate; @endphp
@if($product->price != 0) @if($product->offer_price != 0) {{price_format($product->offer_price * $new_conversion_rate)}} {{price_format($product->price * $new_conversion_rate)}} @else {{price_format($product->price * $new_conversion_rate)}} @endif @else Price on demand @endif
@if(!empty($product->material)) {{ $product->material }} @endif
@if(!empty($product->size)) {{$product->size }} @endif
@endif @endforeach @endisset @if(($paginate == 1))
{{ $allproducts->links() }}
@endif @else

No artwork is available now

@endif