@inject ('toolbarHelper', 'Webkul\Product\Helpers\Toolbar') @extends('shop::customers.account.index') @section('page_title') {{ __('shop::app.customer.account.wishlist.page-title') }} @endsection @push('css') @endpush @section('page-detail-wrapper')
{{ __('shop::app.customer.account.wishlist.title') }} @if (count($items))
{{ __('shop::app.customer.account.wishlist.deleteall') }}
@endif
{!! view_render_event('bagisto.shop.customers.account.wishlist.list.before', ['wishlist' => $items]) !!}
@if ($items->count()) @foreach ($items as $item) @php $currentMode = $toolbarHelper->getCurrentMode(); $moveToCartText = __('shop::app.customer.account.wishlist.move-to-cart'); @endphp @include ('shop::products.list.card', [ 'checkmode' => true, 'moveToCart' => true, 'addToCartForm' => true, 'removeWishlist' => true, 'reloadPage' => true, 'itemId' => $item->id, 'product' => $item->product, 'btnText' => $moveToCartText, 'addToCartBtnClass' => 'small-padding', ]) @endforeach
{{ $items->links() }}
@else
{{ __('customer::app.wishlist.empty') }}
@endif
{!! view_render_event('bagisto.shop.customers.account.wishlist.list.after', ['wishlist' => $items]) !!} @endsection