@extends('frontend.layout.app') @section('content')

Home / My Cart

{{-- Cart Header --}}
Products
Price
Quantity
Attribute
Total
Remove
@php $subtotal = 0; $dc = 0; @endphp @forelse($mycart as $key => $cart) @php $product = \App\Models\Product::find($cart['product_id']); @endphp
{{-- Product --}} {{-- Price --}}
@php $price = $product->unit_price; $desc = $product->discount; $final_pri = $price - $desc; @endphp Rs:{{ number_format($final_pri,2) }}/{{ $product->unit }}
{{-- Quantity --}}
{{-- Attribute / Variation --}}
{{ $cart->variation }}
{{-- Total --}}
@php $price = $cart->price; $desc = $cart->discount; $finalpri = $price - $desc; $subtotal += $finalpri; @endphp Rs:{{ number_format($finalpri,2) }}
{{-- Remove Button --}}
@empty
No Record Found
@endforelse
{{-- Summary --}}
Total Rs:{{ number_format($subtotal,2) }}
Delivery Rs:{{ number_format($dc,2) }}
Sub total Rs:{{ number_format($subtotal+$dc,2) }}
{{-- Actions --}}
@endsection