@extends('vendors.layout') @php Config::set('app.timezone', App\Models\BasicSettings\Basic::first()->timezone); @endphp @section('content') @if ($message = Session::get('error'))
{{ $message }}
@endif @if (!empty($membership) && ($membership->package->term == 'lifetime' || $membership->is_trial == 1))

{{ __('If you purchase this package') }} ({{ $package->title }}), {{ __('then your current package') }} ({{ $membership->package->title }}@if ($membership->is_trial == 1) {{ __('Trial') }} @endif) {{ __('will be replaced immediately') }}

@endif
@csrf

{{ $package->title }}

{{ $package->price == 0 ? 'Free' : format_price($package->price) }} /{{ $package->term }}
  • {{ __('Membership') }} {{ __('Yes') }}
  • {{ __('Start Date') }} @if ( (!empty($previousPackage) && $previousPackage->term == 'lifetime') || (!empty($membership) && $membership->is_trial == 1)) {{ \Illuminate\Support\Carbon::today()->format('d-m-Y') }} @else {{ \Illuminate\Support\Carbon::parse($membership->expire_date ?? \Carbon\Carbon::yesterday())->addDay()->format('d-m-Y') }} @endif
  • {{ __('Expire Date') }} @if ($package->term == 'monthly') @if ( (!empty($previousPackage) && $previousPackage->term == 'lifetime') || (!empty($membership) && $membership->is_trial == 1)) {{ \Illuminate\Support\Carbon::parse(now())->addMonth()->format('d-m-Y') }} @else {{ \Illuminate\Support\Carbon::parse($membership->expire_date ?? now())->addMonth()->format('d-m-Y') }} @endif @elseif($package->term == 'lifetime') {{ __('Lifetime') }} @else @if ( (!empty($previousPackage) && $previousPackage->term == 'lifetime') || (!empty($membership) && $membership->is_trial == 1)) {{ \Illuminate\Support\Carbon::parse(now())->addYear()->format('d-m-Y') }} @else {{ \Illuminate\Support\Carbon::parse($membership->expire_date ?? now())->addYear()->format('d-m-Y') }} @endif @endif
  • {{ __('Total Cost') }} {{ $package->price == 0 ? 'Free' : format_price($package->price) }}
  • @if ($package->price != 0)
  • @endif
    @php $display = 'none'; @endphp {{-- START: Authorize.net Card Details Form --}}
      {{-- END: Authorize.net Card Details Form --}}
    @endsection @section('script') {{-- START: Authorize.net Scripts --}} @php $anet = App\Models\PaymentGateway\OnlineGateway::find(21); $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