@extends("front.layout.master") @section('title',__('staticwords.YourWishlist').' |') @section("body") @php use App\Http\Controllers\Api\CurrencyController; @endphp
@php $disabled=''; @endphp @auth @if(auth()->user()->role_id == 'v') @php $disabled='sold'; @endphp @endif @endauth @if(count($data) > 0)

{{ __('staticwords.Wishlist') }} {{$wishcount}}

@endif
@if(count($data) > 0) @foreach($data as $p) @if(isset($p->simple_product) && $p->simple_product->status == '1') @php $country = App\Allcountry::where('id',$p->simple_product->store->country_id)->first()->nicename; @endphp
@php $category = App\Category::with('simpleproducts')->where('id','=',$p->simple_product->category_id)->first(); $cat_slug = str_slug($category->title, '-', app()->getLocale()); $subcategory =App\Subcategory::with('simpleproducts')->where('id','=',$p->simple_product->subcategory_id)->first(); $subcat_slug = str_slug($subcategory->title, '-', app()->getLocale()); @endphp @if($p->simple_product->thumbnail != '') @if($p->simple_product->thumbnail != '' && file_exists(public_path().'/images/simple_products/'.$p->simple_product->thumbnail)) {{ $p->simple_product->thumbnail }} @else {{ $p->simple_product->thumbnail }} @endif @else No Image @endif

@php $category = App\Category::with('simpleproducts')->where('id','=',$p->simple_product->category_id)->first(); $cat_slug = str_slug($category->title, '-', app()->getLocale()); $subcategory =App\Subcategory::with('simpleproducts')->where('id','=',$p->simple_product->subcategory_id)->first(); $subcat_slug = str_slug($subcategory->title, '-', app()->getLocale()); @endphp {{ $p->simple_product->product_name }}

@if(get_userpic($p->simple_product->store->user_id) != '') @php $uname=get_username($p->simple_product->store->user_id); $slug = str_slug($uname, '-', app()->getLocale()); @endphp @if(file_exists(public_path().'/images/user/'.get_userpic($p->simple_product->store->user_id))) @else User Image @endif @else @endif
{{get_username($p->simple_product->store->user_id)}},{{$country}}
@if(!empty($product->material)) Material : {{ $product->material }} @endif @if(!empty($product->material) && !empty($product->size))
@endif
@php $new_conversion_rate = new CurrencyController; $new_conversion_rate = $new_conversion_rate->newfetchRates(session()->get('currency')['id'],$p->simple_product->id)->getData()->exchange_rate; @endphp
@if((empty($p->simple_product->offer_price))&&!empty($p->simple_product->price)) {{round($p->simple_product->price * $new_conversion_rate,2)}} @else @if(!empty($p->simple_product->offer_price)) {{round($p->simple_product->offer_price * $new_conversion_rate,2)}} {{round($p->simple_product->price * $new_conversion_rate,2)}} @endif @endif
@if($p->simple_product->stock != 0) @if(chekcincart($p->simple_product->id) == false )
@csrf
@if($p->simple_product->type == 'ex_product') {{ __('staticwords.Buynow') }} (current) @else @if((auth()->user()->role_id != 'v') && ($p->simple_product->price != 0)) @endif @endif
@else
@if($p->simple_product->type == 'ex_product') {{ __('staticwords.Buynow') }} (current) @else {{ __('staticwords.Removefromcart') }} @endif
@endif
@if($p->simple_product->stock != 0) @auth @if($p->simple_product->type == 'ex_product') {{ __('staticwords.Buynow') }} (current) @else @if($p->simple_product->price != 0) @if(auth()->user()->role_id != 'v') @endif @else @endif @endif @else @if($p->simple_product->price != 0) @if(auth()->user()->role_id != 'v') @endif @else @endif @endauth @else @endif