@php use Illuminate\Support\Carbon; @endphp @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 === 'month') @elseif($package->term === 'lifetime') @else @endif @endif {{ __('First Name') }}* @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif {{ __('Last Name') }}* @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif {{ __('Phone Number') }}* @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif {{ __('Email Address') }}* @if ($errors->has('email')) {{ $errors->first('email') }} @endif {{ __('Street Address') }} @if ($errors->has('address')) {{ $errors->first('address') }} @endif {{ __('City') }} @if ($errors->has('city')) {{ $errors->first('city') }} @endif {{ __('State') }} @if ($errors->has('district')) {{ $errors->first('district') }} @endif {{ __('Country') }}* @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 === 'month') {{ \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') }} {{ __('Choose an option') }} @foreach ($payment_methods as $payment_method) name ? 'selected' : '' }}> {{ $payment_method->name }} @endforeach @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 {{ __('Confirm') }} @endsection @section('scripts') @php $anet = App\Models\PaymentGateway::find(20); $anerInfo = $anet->convertAutoData(); $anetTest = $anerInfo['sandbox_check'] ?? false; if ($anetTest == 1) { $anetSrc = 'https://jstest.authorize.net/v1/Accept.js'; } else { $anetSrc = 'https://js.authorize.net/v1/Accept.js'; } @endphp @if (!empty($stripe_key)) @endif @endsection
{{ $message }}