Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/ecommerce/resources/views/frontend/pages/ |
@extends('frontend.layouts.master')
@section('title', 'Wishlist Page')
@section('main-content')
<!-- Breadcrumbs -->
<div class="breadcrumbs">
<div class="container">
<div class="row">
<div class="col-12">
<div class="bread-inner">
<ul class="bread-list">
<li><a href="{{ 'home' }}">Home<i class="ti-arrow-right"></i></a></li>
<li class="active"><a href="javascript:void(0);">Wishlist</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- End Breadcrumbs -->
<!-- Shopping Cart -->
<div class="shopping-cart section">
<div class="container">
<div class="row">
<div class="col-12">
<!-- Shopping Summery -->
<table class="table shopping-summery">
<thead>
<tr class="main-hading">
<th>PRODUCT</th>
<th>NAME</th>
<th>TOTAL</th>
<th>ADD TO CART</th>
<th><i class="ti-trash remove-icon"></i></th>
</tr>
</thead>
<tbody>
@if (Helper::getAllProductFromWishlist())
@foreach (Helper::getAllProductFromWishlist() as $key => $wishlist)
<tr>
@php
$photo = explode(',', $wishlist->product['photo']);
@endphp
<td class="image" data-title="No"><img src="{{ $photo[0] }}"
alt="{{ $photo[0] }}"></td>
<td class="product-des" data-title="Description">
<p class="product-name"><a
href="{{ route('product-detail', $wishlist->product['slug']) }}">{{ $wishlist->product['title'] }}</a>
</p>
<p class="product-des">{!! $wishlist['summary'] !!}</p>
</td>
<td class="total-amount" data-title="Total"><span>{!! config('shop.currency_symbol') !!}
{{ number_format($wishlist['amount'], 2) }}</span></td>
<td><a href="{{ route('add-to-cart', $wishlist->product['slug']) }}"
class='btn btn-success text-white'>Add To Cart</a></td>
<td class="action" data-title="Remove"><a
href="{{ route('wishlist-delete', $wishlist->id) }}"><i
class="ti-trash remove-icon"></i></a></td>
</tr>
@endforeach
@else
<tr>
<td class="text-center">
There are no any wishlist available. <a href="{{ route('product-lists') }}"
style="color:blue;">Continue shopping</a>
</td>
</tr>
@endif
</tbody>
</table>
<!--/ End Shopping Summery -->
</div>
</div>
</div>
</div>
<!--/ End Shopping Cart -->
@endsection