@extends('layouts.new-layout') @section('title', 'Cart') @section('content') @include('partials.parallaxSlider', ['title' => 'Cart']) Cart @if($cartItems) @foreach($cartItems as $cartItem) @if(isset($cartItem->attributes['variant']) && !empty($cartItem->attributes['variant']['image'])) @elseif($cartItem->associatedModel->image) @else @endif attributes['item_type'] == "buy") style="margin-top: 24px; margin-left: 33px;" @else style="margin-top: 14px;" @endif>{{ $cartItem->name }} @if($cartItem->attributes['item_type'] == "rent") Dropoff : {{ \Carbon\Carbon::parse($cartItem->attributes['start_date'])->setTimezone(config('app.timezone'))->format('d M Y') }} -> Pickup : {{ \Carbon\Carbon::parse($cartItem->attributes['end_date'])->setTimezone(config('app.timezone'))->format('d M Y') }} @endif Price: {{ $cartItem->price }} Subtotal: {{ $cartItem->price * $cartItem->quantity }} @endforeach @endif Total Items: {{ count($cartItems)}} Continue Shopping @if($cartItems->count() > 0) @csrf Empty Cart @endif @if($total != 0) Subtotal: {{$total}} {{-- Service Fee / Shipping Cost: --}} Total: {{$total}} Go to checkout @endif @if($relatedItems->isNotEmpty()) See Our Related Product @foreach($relatedItems as $relatedItem) @if($relatedItem->selling_type == 'buy') From ${{ number_format($relatedItem->price, 0) }} @elseif($relatedItem->selling_type == 'rent') From ${{ number_format($relatedItem->rental_weekend, 0) }} @endif {{ $relatedItem->name }} @if($relatedItem->selling_type == 'buy') BUY @elseif($relatedItem->selling_type == 'rent') RENT @endif @endforeach @endif @endsection
Dropoff : {{ \Carbon\Carbon::parse($cartItem->attributes['start_date'])->setTimezone(config('app.timezone'))->format('d M Y') }} -> Pickup : {{ \Carbon\Carbon::parse($cartItem->attributes['end_date'])->setTimezone(config('app.timezone'))->format('d M Y') }}
From ${{ number_format($relatedItem->price, 0) }}
From ${{ number_format($relatedItem->rental_weekend, 0) }}