@extends('layout') @section('title', 'Cart') @section('content') @if(session('customer_id')) @endif
| {{ __('text.products') }} | {{ __('text.image') }} | {{ __('text.quantity') }} | {{ __('text.price') }} | {{ __('text.sub_total') }} | {{ __('text.remove') }} |
|---|---|---|---|---|---|
| {{ $item['name'] }} | ![]() |
{{ $item['quantity'] }} | @if(session('currency_id')) {{ session('currency_symbol') }} @php $currencyValue = session('value') ?? 1; $itemPrice = is_object($item) ? $item->price : ($item['price'] ?? 0); $totalPrice = $currencyValue * $itemPrice; @endphp {{ $totalPrice }} @else {{ $symbol }}{{ $item['price'] }} @endif | @php $subtotals = $item['price'] * $item['quantity']; $currencySymbol = session('currency_symbol', $symbol); $currencyValue = session('value', 1); $subtotalConverted = $currencyValue * $subtotals; @endphp @if(session('currency_id')) {{ $currencySymbol }} {{ number_format($subtotalConverted, 2) }} @else {{ $symbol }}{{ $subtotal }} @endif |
{{ session('currency_symbol', $symbol) }} {{ number_format(session('value', 1) * $subtotal, 2) }}
{{ session('currency_symbol', $symbol) }} 0
{{ session('currency_symbol', $symbol) }} {{ number_format(session('value', 1) * $subtotal, 2) }}