@extends('layouts.main-app') @section('title', 'Cart') @section('content') @include('layouts.navbar') @if(session('success'))
{{ session('success') }}
@endif
@csrf
@foreach ($products as $product) @endforeach
Product Price Quantity Subtotal
{{ $product->name }}
{{ $product->name }} ₱{{ number_format($product->price, 2) }}
{{ $cart[$product->id] }}
{{ number_format($product->price * $cart[$product->id], 2) }}

Upload Prescription

DISCOUNTS


for special discounts

@if(Auth::check())

REDEEM POINTS : {{ number_format(Auth::user()->redeem_balance, 0) }}

@else

REDEEM POINTS : 0

@endif
@if(Auth::check())

@else @endif

ORDER SUMMARY

@php $subtotal = 0; foreach ($products as $product) { $subtotal += $product->price * $cart[$product->id]; } $shipping_fee_total = $shipping_fee->sum('shipping_fee'); @endphp

Subtotal

{{ number_format($subtotal, 2) }}


Shipping Fee

{{ number_format($shipping_fee_total, 2) }}

Discounts

-₱0.00

Redeemed Points

-₱0.00


Estimated Total

{{ number_format($shipping_fee_total + $subtotal, 2) }}

@include('layouts.footer') @endsection