@extends('layouts.frontend') @push('title', get_phrase('Wishlist')) @push('meta')@endpush @section('frontend_layout')
@include('user.navigation')

{{get_phrase('Wishlist')}}

@foreach ($wishlists as $wishlist) @php if($wishlist->type == 'car'){ $listing = App\Models\CarListing::where('id', $wishlist->listing_id)->first(); }elseif($wishlist->type == 'beauty'){ $listing = App\Models\BeautyListing::where('id', $wishlist->listing_id)->first(); }elseif($wishlist->type == 'hotel'){ $listing = App\Models\HotelListing::where('id', $wishlist->listing_id)->first(); }elseif($wishlist->type == 'real-estate'){ $listing = App\Models\RealEstateListing::where('id', $wishlist->listing_id)->first(); }elseif($wishlist->type == 'restaurant'){ $listing = App\Models\RestaurantListing::where('id', $wishlist->listing_id)->first(); }else{ $listing = App\Models\CustomListings::where('id', $wishlist->listing_id)->first(); } @endphp @endforeach
{{get_phrase('Image')}} {{get_phrase('Name')}} {{get_phrase('Type')}} {{get_phrase('Price')}} {{get_phrase('Action')}}
{{$listing->title}} {{$wishlist->type}} {{($listing->price > 0) ? currency($listing->price):''}}

{{get_phrase('Showing').' to '.count($wishlists).' '.get_phrase('of').' '.count($wishlists).' '.get_phrase('results')}}

{{$wishlists->links()}}
@include('layouts.modal') @endsection