@extends('front.layout.app') @section('title', 'Cart') @section('content') @if(!empty($page->pageComponents)) @forelse($page->pageComponents as $key => $section) @if($key == 0)
@if(!empty($section->pageComponentMedia[0]) && $section->pageComponentMedia[0]->file_type == 'image') @elseif(!empty($section->pageComponentMedia[0]) && $section->pageComponentMedia[0]->file_type == 'video') @endif

{{$section->title ?? ''}}

@endif @empty @endforelse @endif @if($cartCollection->count() > 0)
@php $emptySectionDisplay = 'none'; @endphp

Confirm Your Purchase

@foreach (Cart::content() as $item) @if($item->options->type === 'collection')
Collection Name Product(s) QTY Actual Amount Discount(%) Total Amount Remove Collection
{{ $item->name }}
@php $attributes = array_keys($item->options->products); @endphp
{{ str_replace(['"', '[', ']', '-'], ' ', json_encode($attributes, JSON_PRETTY_PRINT)) }}
{{ $item->qty }}
${{ $item->options->actual_amount }}
{{ $item->options->discount }}
${{ $item->price }}
@else
Product Name Price QTY Total

{{ $item->model->product_name }}

Hybrid Dominant
${{ (isset($item->price) && $item->price > 0) ? $item->price : $item->model->current_price }}
{{$item->total()}}
@endif @endforeach

Order Summary

Subtotal ({{ Cart::count() }} items)

${{Cart::total()}}

Shipping Fee$0.00

Total$0.00

Proceed to Pay
@else @php $emptySectionDisplay = 'block'; @endphp @endif

No items in Cart!

Shop Now
@php $categories = \App\Models\Category::all(); @endphp @foreach($categories as $category) @php $related_products = DB::table('products')->where('status', 1) ->where('category_id', $category->id) ->orderBy(DB::raw('RAND()')) ->take(12) ->get(); @endphp @endforeach @if(Cart::count())

Related Products

@foreach ($related_products as $item) @if($item->status === 1)

{!! $item->description !!}

${{ $item->current_price }}
{{ $item->product_name }} ${{ $item->current_price }}/{{$item->weight ?? ''}} G
@endif @endforeach
@endif @endsection @section('scripts') @endsection