@extends('front_end.layouts.app') @section('title', 'Saved Products | Marketplace') @section('content')
@include('front_end.pages.marketplace.partials.sidebar')
Saved Products
@if($savedProducts->count() > 0)
@foreach($savedProducts as $saved) @php $product = $saved->product; @endphp
@if($product->media->isNotEmpty()) {{ $product->name }} @else No Image @endif
{{ $product->name }}
{{ $product->stock_quantity > 0 ? 'In Stock' : 'Out of Stock' }}

{{ $product->category->name ?? 'Uncategorized' }}

{{ Str::limit($product->description, 50) }}

@if($product->discount_percentage > 0)
{{ $product->currency }} {{ number_format($product->sale_price, 2) }} {{ $product->currency }} {{ number_format($product->price, 2) }} {{ $product->discount_percentage }}% OFF
@else
{{ $product->currency }} {{ number_format($product->price, 2) }}
@endif
{{ $product->store->name ?? 'By ' . $product->user->name }}
{{ $product->location ?? 'Location not specified' }}
@endforeach
{{ $savedProducts->links('pagination::bootstrap-5') }}
@else
No saved products

No Saved Products

You haven't saved any products yet. Browse the marketplace and save products you're interested in.

Browse Marketplace
@endif
@endsection @push('scripts') @endpush @push('styles') @endpush