@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('breadcrumb-title') {{ __('Checkout') }} @endsection @section('breadcrumb-link') {{ __('Checkout') }} @endsection @section('content')

{{ __('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('country')) {{ $errors->first('country') }} @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
@error('identity_number')

{{ $message }}

@enderror @error('zip_code')

{{ $message }}

@enderror
@if ($errors->has('receipt')) {{ $errors->first('receipt') }} @endif
@endsection @section('scripts') {{-- 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 --}} @if ($stripe_key) @endif @endsection