@extends('front-end.layout.app') @section('content') {{-- --}} @if ($errors->any())
| Image | Product name | Unit price | Quantity | Subtotal | ||||
|---|---|---|---|---|---|---|---|---|
| {{-- | --}} {{--
| --}}
| {{ $item['name'] }} | {{--$399.99 --}} @php $price = $item['regular_price'] ?? ($item['price'] ?? null); @endphp | {{ $price !== null ? '$' . number_format($price, 2) : 'N/A' }} | {{-- ${{ number_format($item['regular_price'] ?? $item['price'], 2) }} --}} {{--1 | --}}@php $price = $item['regular_price'] ?? $item['price'] ?? 0; @endphp {{ number_format($price * $item['quantity'], 2) }} | {{-- ${{ number_format($item['regular_price'] ?? $item['price'], 2) }} --}}|
| Your cart is empty. | ||||||||