@extends('frontend.app') @section('content') @php use App\Models\Information; use App\Models\BanglaText; $info = Information::first(); $bangla_text = BanglaText::first(); $coupon_visibility = $info->coupon_visibility; $cart = session()->get('cart', []); $is_free = 0; foreach($cart as $key => $item){ if(!empty($item['is_free_shipping']) && $item['is_free_shipping'] == 1){ $is_free = 1; break; } } @endphp
@csrf
@include('frontend.cart.details')
@foreach($cart as $item)
@endforeach
@csrf

If you have a coupon code, please apply it below.

Billing details

{{ $errors->first('first_name') }}
{{ $errors->first('mobile') }}
@foreach($charges as $key=>$charge)
id==2 ?'checked':''}} name="" data-charge="{{ $charge->amount}}"> {{ $errors->first('delivery_charge_id') }}
@endforeach
{{ $errors->first('shipping_address') }}
Your Order
@php $total=0; $discount=0; @endphp @foreach($cart as $key=>$item) @php $price=$item['price']*$item['quantity']; $total +=$price; $discount +=$item['discount']*$item['quantity']; @endphp @endforeach @if($discount>0) @endif @if(getCouponDiscount()>0) @endif @php $total = $total - getCouponDiscount(); $chr_amount = $charge->amount; $gr_total = $total + $chr_amount; @endphp
Product Price Quantity Total Price
{{ $item['name']}} {{ priceFormate($item['price'])}} {{ $item['quantity'] }} {{ priceFormate($price)}}
Sub Total {{ priceFormate($total+$discount)}}
Discount - {{ priceFormate($discount)}}
Coupon Discount - {{ priceFormate(getCouponDiscount())}}
Total {{ priceFormate($total - getCouponDiscount())}}
@endsection @push('js') // @endpush