@php $totalprice = 0; $total_dicount_amount=0; @endphp @if(isset($carts) && count($carts)>0)
After Applying Coupon
@foreach($carts as $cart) @php $totalprice = $totalprice + $cart->price; $coursesimage = coursesimage($cart->product_id); $coursesurl = coursesurl($cart->product_id); $total_dicount_amount=$total_dicount_amount+ educator_referal_discount_subtotal($cart->product_id); @endphp
{{coursesfacalty($cart->product_id) }}

{{$cart->name}}

By {{ coursesfacalty($cart->product_id) }}

Coupon Applied

Rs.{!!coursesprice($cart->product_id) !!}Rs.{!! $cart->price !!}

{{--
Discount:Rs.{!!number_format((float)round(educator_referal_discount_subtotal($cart->product_id)), 2, '.', '')!!}
({!!educator_referal_discount_percentage($cart->product_id)!!}% off)
--}}
Subtotal:Rs. {!! $cart->price !!}{{-- {!!number_format((float)round(educator_referal_discount_subtotal($cart->product_id)), 2, '.', '')!!} --}}
Discount:Rs. (-) {!!number_format((float)round(educator_referal_discount_subtotal($cart->product_id)), 2, '.', '')!!}
({!!educator_referal_discount_percentage($cart->product_id)!!}% off)
@endforeach Amount Payable:Rs. {!!number_format((float)round($totalprice - $total_dicount_amount), 2, '.', '')!!}
@endif