@extends('layouts.master-voyo') @section('header') @stop @section('content')

Cart

@include('components.userstatus',[ 'type' =>'alert-warning', 'message' => 'You haven\'t activate your account yet. Please active to buy something else.' ])
@if( ! Session::has('cart') || count(Session::get('cart')) <= 0 )

Your cart is empty!

@else @foreach ( $cart_products as $key => $product ) @if($product['product']->product_type=='Service') @endif @if(count($product["addons"])>0) @foreach($product["addons"] as $key => $addon) @endforeach @endif @endforeach
Product Name Quantity Price (SGD) Total Amount (SGD)

{{ $product['name']}}

@foreach( $product['variation'] as $title => $value ) @if( $value )
{{ ucfirst($title) }}: {{ $value }}
@endif @endforeach
{{ $currency_code . ' ' . number_format($product['product']->partner_price, 2) }} {{ $currency_code . ' ' . number_format($product['product']->partner_price * $product['quantity'], 2) }}  Delete
Booking Detail @include('payment.partials.booking-modal', ['product' => $product, 'booking' => $product['booking'], 'key'=>$key])
Add on {{$addon['addon']->product_name}} {{ $addon['quantity'] }} @if(!$addon['addon']->is_complementary) $ {{ number_format($addon['addon']->up_price, 2) }} @else {{ $currency_code }} 0.00 @endif @if(!$addon['addon']->is_complementary) {{ $currency_code . ' ' . number_format(($addon['addon']->up_price * $addon['quantity']), 2) }} @else {{ $currency_code . ' ' . number_format( (0 * $addon['addon']->up_price), 2 ) }} @endif
Order Total {{ $currency_code . ' ' . number_format($total_amount, 2) }}  
@endif
@if( Auth::check() ) @if( ! Session::has('cart') || count(Session::get('cart')) <= 0 ) Continue Shopping @else Continue Shopping @if( auth()->check()) @if(auth()->user()->status !== 'P') Checkout @endif @endif @endif @else Login to Checkout @endif
@stop @section('footer') @stop