@extends('layouts.main') @section('title', 'Your Cart') @section('style') @endsection @section('content')
@if (Auth::guest())
Please login to proceed to checkout.
@else
Order Summary
@php $mrp_total = 0; $sale_total = 0; @endphp @foreach ($cartItems as $item) @php $mrp_total += $item->product->mrp * $item->quantity; $sale_total += $item->product->sales_price * $item->quantity; @endphp
{{ $item->product->product_name }}
{{ $item->product->product_name }} × {{ $item->quantity }}
Code: {{ $item->product->product_code }}
₹{{ amountFormat($item->product->mrp * $item->quantity) }}
₹{{ amountFormat($item->product->sales_price * $item->quantity) }}
{{ $item->product->discount }}% Off
@endforeach @php $initial_coins_to_use = 0; $coinValue = (float) getSetting('coin_value'); if ($coinValue > 0 && Auth::user()->coins > 0) { $maxCoinsForTotal = floor($totals['final_total'] / $coinValue); $maxCoinsUserHas = Auth::user()->coins; $initial_coins_to_use = min($maxCoinsForTotal, $maxCoinsUserHas); } @endphp
Item Total₹{{ amountFormat($mrp_total) }}
Discount-₹{{ amountFormat($mrp_total - $sale_total) }}
Delivery Charges₹{{ amountFormat($totals['delivery_charges']) }}
Branding Charges₹{{ amountFormat($totals['branding_charges']) }}
Coins Discount-₹0.00
Coupon Discount -₹0.00

Total Payable₹{{ amountFormat($totals['final_total']) }}
@csrf
@error('coupon_code')
{{ $message }}
@enderror
Use Coins
Coin
Select Payment Method
@endif
@endsection @section('script') @endsection