@extends('website.includes.master') @section('title') Checkout @endsection @section('content') @forelse($carts as $c=>$cart) @php $total_price = $total_price + ($cart->product->price*$cart->quantity); @endphp @empty @endforelse
Billing Information
@csrf
@if(Auth::guard('websiteuser')->check()) @if($total_price>0) @else Add Products First @endif @else Login Please @endif
Your Order
@forelse($carts as $c=>$cart)
{{$cart->product->name}} {{ $setting->currency_symbol }}{{ $cart->product->price }} x {{ $cart->quantity }}
@empty @endforelse
sub total
{{ $setting->currency_symbol }}{{ $total_price }}
Shipping Fee
{{ $setting->currency_symbol }}{{ $shipping_fee }} @if($shipping_fee>0) ({{ $setting->shipping_fee }}%) @endif
Order total
${{ $total_price+$shipping_fee }}
@endsection