@extends('layouts.app') @section('page-title', 'Home') @section('head-scripts') @if (!empty($client_token)) @endif @endsection @section('body-content')
@include('checkout.partials.cart-top-bar')
@php $sub_total = 0; $total_amount = 0; $cart_count = 0; // $weight = 0; @endphp @if (session('cart')) @foreach (session('cart') as $id => $details) @php $cart_count++ @endphp @php $sub_total += round($details['price'], 2) * $details['quantity'] @endphp {{-- @php $weight += $details['weight'] * $details['quantity'] @endphp --}} @php $total_amount += round($details['price'], 2) * $details['quantity'] @endphp @endforeach @endif
Product Name Quantity Unit Cost Total

{{ strip_tags($details['name']) }}

MFR: {{ $details['brand'] }}
Part #: {{ $details['part_no'] }} {{-- SKU: 8PL072 --}}
{{-- --}} {{-- --}}
Price: ${{ round($details['price'], 2) }} {{-- /each --}} Amount: ${{ round($details['price'], 2) * $details['quantity'] }}
@include('checkout.cart-summary') @include('checkout.cart-login') @include('checkout.cart-payment')
@endsection @section('end-scripts') @endsection