@extends('user-front.layout') @section('meta-description', !empty($seo) ? $seo->cart_meta_description : '') @section('meta-keywords', !empty($seo) ? $seo->cart_meta_keywords : '') @section('breadcrumb_title', $pageHeading->cart_page ?? __('Cart')) @section('page-title', $pageHeading->cart_page ?? __('Cart')) @section('content') @php $cartTotal = 0; $countitem = 0; if ($cart) { foreach ($cart as $p) { $cartTotal += $p['total']; $countitem += $p['qty']; } } if (is_null($cart)) { $cart = []; } @endphp