@extends('front.layout.app') @section('title', 'Cart Page') @section('content') @php $total = '0'; @endphp {{--
image

Cart

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.

--}}
@forelse ($cart_data as $item) @php $total = $total + ($item->qty * $item->price) @endphp
image

{{ $item->name }}

$ {{ $item->price }}
Quantity
@empty

no data found

@endforelse {{--
image

T-Shirts

$ 100
Quantity
image

T-Shirts

$ 100
Quantity
image

T-Shirts

$ 100
Quantity
--}}

${{ number_format($total, 2) }} SUBTOTAL

Shipping & taxes calculated at checkout. We accept Visa, MasterCard, American Express, and Discover cards.

@if (Auth::check() && Auth::user()->hasRole('admin')) @else CHECK OUT @endif {{-- CHECK OUT --}}
@endsection