@extends('layouts.frontend') @section('title', 'Order Payment') @section('css') @endsection @section('content')
@if(Session::has('alert'))
{{Session::get('alert')}}
@endif @php $grand_total = $order['total_price'] + $order['shipping_cost'] - $order['coupon_discount']; @endphp

Order Details

@foreach($order['order_details'] as $item) @endforeach @if($order['coupon_discount'] != null) @endif
Product Name Price Qty Total
{{Str::limit($item['product']['title'], 30)}}
@foreach(json_decode($item['attributes']) as $key=>$value) {{$key}} : {{$value}} @endforeach
{{$order['currency_sign']}}{{$item['price']}}
{{$item['qty']}}
{{$order['currency_sign']}}{{$item['price']*$item['qty']}}
Sub-Total: {{$order['currency_sign']}}{{$order['total_price']}}
VAT (0%): $0.00
Shipping cost(+): +{{$order['currency_sign']}}{{$order['shipping_cost']}}
Coupon Discount(-): -{{$order['currency_sign']}}{{$order['coupon_discount']}}
Total: {{$order['currency_sign']}}{{ $grand_total }}
@php $prepay = (Config::get('siteSetting.cod') / 100) * $grand_total; @endphp

Select Payment Method

@if(Session::has('error'))
{{Session::get('error')}}
@endif
@foreach($paymentgateways as $index => $method) @if($method->is_default == 1)
method_slug == 'masterCard') class="require-validation" data-cc-on-file="false" data-stripe-publishable-key="{{$method->public_key}}" @endif > @csrf {!! $method->method_info !!} @if($method->method_slug == 'wallet-balance') Your wallet balance: {{ $order['currency_sign'] . Auth::user()->wallet_balance }} @endif @if($method->method_slug == 'cash-on-delivery') @if(Config::get('siteSetting.cod') > 0)

You Need To Pay : {{ $order['currency_sign'] . $prepay }} For Place This COD Order
Bkash Merchant
0131 6100 326

bKash Transaction Id

Sending Bkash No

@endif @endif @if($method->method_slug == 'masterCard')
Card Number
CVC
Month
Expiration Year
Please correct the errors and try again.
@endif
Secure checkout
@if($method->method_slug == 'wallet-balance') @if(Auth::user()->wallet_balance >= $grand_total) @else @endif @else @endif
@else
{!! $method->method_info !!}
@csrf Pay with {{$method->method_name}}.
@if($method->method_slug != 'cash') Payment Transaction Id

@endif Write Your {{$method->method_name}} Payment Information below.
Secure checkout
@endif @endforeach
@endsection @section('js') @if(in_array('masterCard', $payment_method)) @endif @endsection