@extends('layouts.app') @section('content') @if(\Auth::user()) @php $cart_subtotal = App\Models\ShoppingCart::where('user_id', '=', \Auth::user()->id)->sum('subtotal'); $cart_total = App\Models\ShoppingCart::where('user_id', '=', \Auth::user()->id)->sum('cart_total'); $shopping_cart = App\Models\ShoppingCart::where('user_id', '=', \Auth::user()->id)->get(); // dd($shopping_cart); @endphp @else @php $cart_subtotal = Cart::subtotal(); $cart_total = Cart::total(); $shopping_cart = Cart::content(); // dd($shopping_cart); @endphp @endif
@include('layouts.session')
{{-- @guest
Returning customer?
@endguest --}}
@csrf

Shipping Details

{{--
+44
--}}
Note: Enter mobile number with country code.
{{-- @if(!Auth::user()) @endif --}}
{{--
--}}

Your Order

@if(\Auth::user()) @php $shopping_cart = App\Models\ShoppingCart::where('user_id', '=', \Auth::user()->id)->get(); // $product_sum = App\Models\ShoppingCart::whereHas('product', function($query) { // $query->where('user_id', '=', \Auth::user()->id); // })->sum('subtotal'); @endphp @forelse($shopping_cart as $key => $cart) @empty @endforelse @else @forelse(Cart::content() as $key => $cart) @empty @endforelse @endif @if(Auth::user()) @else @endif
Product Price Total
{{$cart->product_name}} ({{$cart->color}}) ({{$cart->size}}) x {{$cart->quantity}} {{Helper::setPriceFormat($cart->price)}} {{Helper::setPriceFormat($cart->price * $cart->quantity)}}
No Item in your cart
{{$cart->name}} ({{$cart->options->color}}) ({{$cart->options->size}}) x {{$cart->qty}} {{Helper::setPriceFormat($cart->price)}} {{Helper::setPriceFormat($cart->price * $cart->qty)}}
No Item in your cart
SubTotal {{Helper::setPriceFormat($cart_subtotal)}}
Total{{Helper::setPriceFormat($cart_total) }}{{Helper::setPriceFormat($cart_total)}}

Payment Via Your Wallet Under

{{--
paypal
--}}
Note: Please don't change transaction amount during transaction, if you do so you will loss your tokens and not able to order product.
@endsection @push('js') @endpush