@extends('front.layout') @section('styles') @endsection @section('pagename') - {{ __('Checkout') }} @endsection @section('meta-description', !empty($seo) ? $seo->checkout_meta_description : '') @section('meta-keywords', !empty($seo) ? $seo->checkout_meta_keywords : '') @section('content') @includeIf('front.partials.breadcrumb', [ 'title' => __('Checkout'), 'link' => __('Checkout'), ])

{{ __('Billing Details') }}

@csrf
@if ($status === 'trial') @else @if ($package->term === 'monthly') @elseif($package->term === 'lifetime') @else @endif @endif
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('company_name')) {{ $errors->first('company_name') }} @endif
@if ($errors->has('address')) {{ $errors->first('address') }} @endif
@if ($errors->has('city')) {{ $errors->first('city') }} @endif
@if ($errors->has('district')) {{ $errors->first('district') }} @endif
@if ($errors->has('postcode')) {{ $errors->first('postcode') }} @endif
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@if ($errors->has('identity_number')) {{ $errors->first('identity_number') }} @endif

{{ __('Package Summary') }}

  • {{ __('Package') }} {{ $package->title }} ({{ __(ucfirst($package->term)) }})
  • {{ __('Start Date') }} {{ \Carbon\Carbon::today()->format('d-m-Y') }}
  • @if ($status === 'trial')
  • {{ __('Expiry Date') }} {{ \Carbon\Carbon::today()->addDay($package->trial_days)->format('d-m-Y') }}
  • @else
  • {{ __('Expiry Date') }} @if ($package->term === 'monthly') {{ \Carbon\Carbon::today()->addMonth()->format('d-m-Y') }} @elseif($package->term === 'lifetime') {{ __('Lifetime') }} @else {{ \Carbon\Carbon::today()->addYear()->format('d-m-Y') }} @endif
  • @endif @if (session()->has('coupon'))
  • {{ __('Package Price') }} @if ($status === 'trial') {{ __('Free') }} ({{ $package->trial_days . ' days' }}) @elseif($package->price == 0) {{ __('Free') }} @else {{ format_price($package->price) }} @endif
  • {{ __('Discount') }} - {{ format_price($cAmount) }}
  • @endif
  • {{ __('Total') }} @if ($status === 'trial') {{ __('Free') }} ({{ $package->trial_days }} {{ __('days') }}) @elseif($package->price == 0) {{ __('Free') }} @else {{ format_price($package->price - $cAmount) }} @endif
@if ($package->price > 0 && $status != 'trial') @if (!session()->has('coupon'))
{{ __('Apply') }}
@else
{{ __('Coupon already applied') }}
@endif @endif @if ($package->price - $cAmount <= 0 || $status == 'trial') @else

{{ __('Payment Method') }}

@if ($errors->has('payment_method')) {{ $errors->first('payment_method') }} @endif
@endif
@php $showStripeTab = $errors->has('cardNumber') || $errors->has('cardCVC') || $errors->has('month') || $errors->has('year'); @endphp {{-- START: Stripe Card Details Form --}}
@if ($errors->has('cardNumber'))

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

@enderror
@if ($errors->has('cardCVC'))

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

@enderror
@if ($errors->has('month'))

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

@enderror
@if ($errors->has('year'))

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

@enderror
{{-- END: Stripe Card Details Form --}} {{-- START: Authorize.net Card Details Form --}}
    {{-- END: Authorize.net Card Details Form --}} {{-- START: Offline Gateways Information & Receipt Area --}}
    {{-- @if ($errors->has('receipt')) {{ $errors->first('receipt') }} @endif --}}
    {{-- END: Offline Gateways Information & Receipt Area --}}
    @endsection @section('scripts') @php $anetCardError = __('Please provide valid credit card number'); $anetYearError = __('Please provide valid expiration year'); $anetMonthError = __('Please provide valid expiration month'); $anetExpirationDateError = __('Expiration date must be in the future'); $anetCvvInvalidError = __('Please provide valid CVV'); @endphp {{-- START: Authorize.net Scripts --}} @php $anet = App\Models\PaymentGateway::find(20); $anerInfo = $anet->convertAutoData(); $anetTest = $anerInfo['sandbox_check']; if ($anetTest == 1) { $anetSrc = 'https://jstest.authorize.net/v1/Accept.js'; } else { $anetSrc = 'https://js.authorize.net/v1/Accept.js'; } @endphp {{-- END: Authorize.net Scripts --}} @endsection