@extends('fontend_master') @section('content') @php $cartname = Cart::Content(); $setting = DB::table('settings')->first(); $shipments = DB::table('shipments')->first(); $charge = $setting->shipping_charge; $shpping_Charge = 0; $coupon = Session::get('coupon'); $subtotal = isset($coupon['discount']) ? Cart::Subtotal()-$coupon['discount'] :Cart::Subtotal(); // dd($subtotal); @endphp

Checkout

@csrf
@auth @endauth

1Customer Information

2Payment Method

Select a payment method

{{--
--}}


{{-- --}}

3Delivery Method

Select a delivery method




{{--
--}}
{{--
--}} {{--
@csrf
--}}
{{--
--}}

4Order Overview

@php $total=0; @endphp @foreach ($cartname as $carditem ) @endforeach @if(Session::has('coupon')) @else @endif @php $coupon = Session::get('coupon'); $discount = isset($coupon['discount']) ? number_format($coupon['discount']) : 0; @endphp {{-- --}}
Product Name Price Total
{{ $carditem->name}}
{{number_format($carditem->price)}}৳ x {{ $carditem->qty}} {{number_format($carditem->qty * $carditem->price)}}
Sub-Total: {{number_format(Cart::Subtotal())}}৳
Delivery Charge:
Discount: {{$discount}}৳
Total: {{$subtotal}}
{{-- --}}
@if (Session::has('warning')) @endif @if (Session::has('success')) @endif @if (Session::has('error')) @endif @endsection