@extends('frontend.layouts.app') @section('title') @endsection @section('seo') Cart | Bonfire Charcoal: Ignite Culinary Excellence with Premium Briquets for Grilling Perfection @endsection @section('content')

MY CART

@if (Session::has('success'))
{{ Session::get('success') }}
@endif
Item
Description
Quantity
Price
@if(is_array($decodedCarts) && count($decodedCarts) > 0) @foreach($decodedCarts as $cart)
...
{{$cart->prodName}}
{!!$cart->description!!}
{{-- --}} {{-- --}}
@csrf
@php $totalPrice = isset($cart->qty) && $cart->qty > 1 ? $cart->price * $cart->qty : $cart->price; @endphp
P{{ $totalPrice }}
@endforeach @else

No items in the cart.

@endif
@php $totalPrice = 0; @endphp @if(is_array($decodedCarts) && count($decodedCarts) > 0) @foreach($decodedCarts as $cart) @php $qty = 0; if(!isset($cart->qty)){ $qty = 1; } else{ $qty = $cart->qty; } $totalPrice += $cart->price * $qty; // $totalPrice += $cart->price; @endphp @endforeach @endif

Total Summary

Subtotal:
P{{ $totalPrice }}
Total:

P{{ $totalPrice }}


@endsection @section('js') {{-- --}} @endsection