@php Theme::set('pageName', __('Wishlist')) @endphp
@if (auth('customer')->check()) @if (count($wishlist) > 0 && $wishlist->count() > 0) @foreach ($wishlist as $item) @php $item = $item->product; @endphp @endforeach @else @endif @else @if (Cart::instance('wishlist')->count()) @foreach(Cart::instance('wishlist')->content() as $cartItem) @php $item = app(\Botble\Ecommerce\Repositories\Interfaces\ProductInterface::class)->findById($cartItem->id); @endphp @if (!empty($item)) @endif @endforeach @else @endif @endif
{{ __('Image') }} {{ __('Product') }} {{ __('Price') }} {{ __('Add to cart') }} {{ __('Remove') }}
{{ $item->name }} {{ $item->name }}
{{ format_price($item->front_sale_price_with_taxes) }} @if ($item->front_sale_price != $item->price) {{ format_price($item->price_with_taxes) }} @endif
{{ __('Add to cart') }} {{ __('Remove') }}
{{ __('No product in wishlist!') }}
{{ $item->name }} {{ $item->name }}
{{ format_price($item->front_sale_price_with_taxes) }} @if ($item->front_sale_price != $item->price) {{ format_price($item->price_with_taxes) }} @endif
{{ __('Add to cart') }} {{ __('Remove') }}
{{ __('No product in wishlist!') }}
@if (auth('customer')->check())
{!! $wishlist->links() !!}
@endif