@extends('layout.app') @section('content')

WishList

@if(!empty($wishlists) && count($wishlists) > 0)

Products WishList

@foreach($wishlists as $item)
Product Name : {{ $item->product->Name }}

SKU#: {{ $item->product->SKU }}

Price : ${{ $item->customize_price }}

@if(!empty($item->customize_data))
Customization:
@foreach(\App\Http\Controllers\WishListController::customizeTitles() as $name => $title)

{{ $title }}: {{ \App\Http\Controllers\WishListController::getCustomizeItem($item->customize_data, $name) }}

@endforeach
@endif
@csrf
@endforeach

TOTAL ${{ number_format($wishlists->sum('customize_price'), 2) }}

@else

Empty WishList

continue shopping
@endif @endsection