@extends('website.includes.master') @section('title') My Cart @endsection @section('content')
@forelse($carts as $c=>$cart) @php $total_price = $total_price + ($cart->product->price*$cart->quantity); @endphp

{{$cart->product->name}}

@if(!empty($cart->product->cut_price)) {{ $setting->currency_symbol }}{{ $cart->product->cut_price }} @endif {{ $setting->currency_symbol }}{{ $cart->product->price }}

Category : {{ $cart->product->category->name }}
Remove
@empty

No Product Added

@endforelse
Your Order
sub total
{{ $setting->currency_symbol }}{{ $total_price }}
Shipping Fee
{{ $setting->currency_symbol }}{{ $shipping_fee }} @if($shipping_fee>0) ({{ $setting->shipping_fee }}%) @endif
{{--
--}} {{--
Shipping
--}} {{-- 0--}} {{--
--}}
Order total
{{ $setting->currency_symbol }}{{ $total_price+$shipping_fee }}
@endsection @section('script') @endsection