@extends('client.layouts.main') @section('title', 'Shopping Cart') @section('content')
| Description | Type | Billing Cycle | Qty | Price | Setup Fee | |
|---|---|---|---|---|---|---|
|
@if($item->product)
{{ $item->product->name }}
@if($item->domain)
{{ $item->domain }} @endif @elseif($item->domain) {{ $item->domain }} @else {{ ucfirst(str_replace('_', ' ', $item->item_type)) }} @endif |
{{ ucfirst(str_replace('_', ' ', $item->item_type)) }} | {{ $item->billingCycle->name ?? ($item->quantity > 1 ? $item->quantity . ' Years' : '1 Year') }} | @if(in_array($item->item_type, ['domain_register', 'domain_renewal'])) @elseif($item->item_type === 'domain_transfer') 1 (fixed) @else {{ $item->quantity }} @endif | {{ number_format($item->unit_price, 2) }} | {{ number_format($item->setup_fee, 2) }} | |
| Your cart is empty. | ||||||
| Subtotal | {{ number_format($totals['subtotal'], 2) }} |
| Setup Fees | {{ number_format($totals['setup_fees'], 2) }} |
| Discount | -{{ number_format($totals['discount'], 2) }} |
| Tax | {{ number_format($totals['tax'], 2) }} |
| Total | {{ number_format($totals['total'], 2) }} |