@extends('dashboard.layouts.master') @section('title', 'Cart Details') @section('content')
Cart Details
Cart ID: {{ $cart->id }}
User Name: {{ $cart->user->name ?? 'N/A' }}
Email: {{ $cart->user->email ?? 'N/A' }}
Contact Number: {{ $cart->user->phone ?? 'N/A' }}
Total Quantity: {{ $cart->quantity }}
Total Price: ${{ $cart->totalCost }}

Product Details

Title: {{ $cart->product->title }}

Price: ${{ $cart->product->selling_price }}

@if($cart->product_map_design_id !== null)
Product Map Design

Title: {{ $cart->productMapDesign->productDesign->name }}

Price: ${{ $cart->productMapDesign->productDesign->price }}

@endif @if($cart->product_map_attribute_id !== null)
Product Map Attribute

Attributes: {{ rtrim($attribute, ",") }}

Stock: {{ $cart->productMapAttribute->stock }}

Price: ${{ $cart->productMapAttribute->price }}

@endif @if($cart->energisations_id !== null)
Energisations

Title: {{ $cart->energisations->title }}

Description: {{ $cart->energisations->description }}

Price: ${{ $cart->energisations->price }}

@endif
@endsection