@extends('front.layout') @section('meta-keywords', "$seo->meta_keywords") @section('meta-description', "$seo->meta_description") @section('content')

{{ __('Checkout') }}

{{ __('Your cart') }} @php $countitem = 0; $cartTotal = 0; if($cart){ foreach($cart as $p){ $cartTotal += (double)$p['price'] * (int)$p['qty']; $countitem += $p['qty']; } } @endphp {{ $countitem }}

@foreach ($cart as $id => $item) @endforeach
{{ __('Image') }} {{ __('Product Name') }} {{ __('Total') }}
@php $product = App\Models\Product::findOrFail($id); @endphp

{{ $item['title'] }}

{{ Helper::showCurrencyPrice($item['price']) }} * {{ $item['qty'] }}
= {{ Helper::showCurrencyPrice($item['price'] * $item['qty']) }}
@php $shipping_methods = DB::table('shippings')->where('language_id',$currentLang->id)->where('status',1)->get(); @endphp @if(count($shipping_methods)>0)

{{ __('Shipping Methods') }}

@foreach ($shipping_methods as $method) @endforeach
# {{ __('Method') }}
first) checked @endif name="shipping_charge" data="{{ Helper::showPrice($method->cost) }}" class="shipping-charge" value="{{ $method->id }}">

{{ $method->title }} ({{ Helper::showCurrencyPrice($method->cost) }})

{{ $method->subtitle }}

@endif

{{ __('Cart Summery') }} :

@if($shipping_methods->count() > 0) @php $shipping_cost = Helper::showPrice(json_decode($shipping_methods,true)[0]['cost']); @endphp @endif
{{ __('Subtotal') }} {{ Helper::showCurrencyPrice($cartTotal) }}
{{ __('Shiping Cost') }} + {{ Helper::showCurrency() }}{{ $shipping_cost }}
Total {{ Helper::showCurrency() }}{{ Helper::showPrice($cartTotal + $shipping_cost) }}

{{ __('Billing Address') }}

@php $user = Auth::user(); @endphp
@if ($errors->has('billing_name'))

{{ $errors->first('billing_name') }}

@endif
@if ($errors->has('billing_address'))

{{ $errors->first('billing_address') }}

@endif
@if ($errors->has('billing_email'))

{{ $errors->first('billing_email') }}

@endif
@if ($errors->has('billing_number'))

{{ $errors->first('billing_number') }}

@endif
@if ($errors->has('billing_country'))

{{ $errors->first('billing_country') }}

@endif
@if ($errors->has('billing_state'))

{{ $errors->first('billing_state') }}

@endif
@if ($errors->has('billing_zip_code'))

{{ $errors->first('billing_zip_code') }}

@endif

{{ __('Shipping Address') }}

@if ($errors->has('shipping_name'))

{{ $errors->first('shipping_name') }}

@endif
@if ($errors->has('shipping_address'))

{{ $errors->first('shipping_address') }}

@endif
@if ($errors->has('shipping_email'))

{{ $errors->first('shipping_email') }}

@endif
@if ($errors->has('shipping_number'))

{{ $errors->first('shipping_number') }}

@endif
@if ($errors->has('shipping_country'))

{{ $errors->first('shipping_country') }}

@endif
@if ($errors->has('shipping_state'))

{{ $errors->first('shipping_state') }}

@endif
@if ($errors->has('shipping_zip_code'))

{{ $errors->first('shipping_zip_code') }}

@endif
@csrf

{{ __('Select Payment Gateway') }}

    @foreach (DB::table('payment_gateweys')->where('status',1)->get() as $gateway)
  • gateway-image
  • @endforeach
@if ($errors->has('gateway'))

{{ $errors->first('gateway') }}

@endif

@endsection @php $data = App\Models\PaymentGatewey::whereKeyword('paystack')->first(); $paydata = $data->convertAutoData(); if (Session::has('currency')){ $curr = App\Models\Currency::where('id', session()->get('currency'))->first(); } else { $curr = App\Models\Currency::where('is_default', 1)->first(); } @endphp @section('script') @endsection