Refactor for trial plan workflow

This commit is contained in:
David Bomba 2022-03-11 16:30:32 +11:00
parent 2f56a10aed
commit 9f158868d6
2 changed files with 44 additions and 49 deletions

View File

@ -186,7 +186,7 @@ class NinjaPlanController extends Controller
public function plan() public function plan()
{ {
// return $this->trial();
//harvest the current plan //harvest the current plan
$data = []; $data = [];
$data['late_invoice'] = false; $data['late_invoice'] = false;

View File

@ -16,17 +16,21 @@
<div> <div>
<ul class="mx-20 w-100" style="list-style-type:disc;"> <ul class="mx-20 w-100" style="list-style-type:disc;">
<li>Unlimited Clients, Invoices and Quotes</li> <li>Unlimited Clients & Invoices & Quotes</li>
<li>Remove "Created by Invoice Ninja" from invoices</li> <li>Remove "Created by Invoice Ninja"</li>
<li>Enable emails to be sent from your Gmail</li> <li>10 Professional Invoice & Quote Templates</li>
<li>Create subscriptions: Recurring & Auto-billing</li> <li>Send Invoice Emails Sent via Your Gmail</li>
<li>API integration with 3rd party apps & platforms</li> <li>Attach Invoice PDF's to Client Emails</li>
<li>Custom reminders</li> <li>Customize Auto-Reminder Emails</li>
<li>Attach PDF's to client emails</li> <li>Display Client E-Signatures on Invoices</li>
<li>Display clients e-signature on invoices and quotes</li> <li>Enable a Client "Approve Terms' Checkbox</li>
<li>Enable clients to "Approve Terms' checkbox</li> <li>Interlink Multiple Companies (x10) with 1 Login</li>
<li>Bulk emailing of invoices and quotes</li> <li>Customize Invoice Designs & Email Templates</li>
<li>Much more!</li> <li>Custom Settings for Different Client "Groups"</li>
<li>Client Subscriptions: Recurring & Auto-billing</li>
<li>Password Protected Client-Side Portal</li>
<li>API Integration with 3rd Party Apps</li>
<li>& Much More!</li>
</ul> </ul>
</div> </div>
@ -222,33 +226,37 @@
</div> </div>
<div class="w-1/2 overflow-hidden py-10 mt-10 content-center"> <div class="w-full mt-6 pt-6">
<div class="bg-gray-50">
<h2 class="mb-6 py-10 text-lg"> <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 lg:flex lg:items-center lg:justify-between">
Enterprise Plan (1-2 Users) Annual<br> <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl">
Buy 10 months, get 2 free! <span class="block">Enterprise Plan (1-2 Users) Annual</span>
</h2> <span class="block text-indigo-600 mt-2">Buy 10 months, get 2 free!</span>
<p> </h2>
Enjoy the power of Enterprise with 3rd party attachments<br> and a custom domain client portal. <div class="mt-8 flex lg:mt-0 lg:flex-shrink-0">
</p> <div class="inline-flex rounded-md shadow">
<button class="bg-blue-500 hover:bg-blue-400 text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded mt-5" id="annual_enterprise"> <a href="https://invoiceninja.invoicing.co/client/subscriptions/LYqaQWldnj/purchase" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700"> Buy Now! </a>
Buy Now! </div>
</button> </div>
</div>
</div>
</div> </div>
<div class="w-1/2 overflow-hidden py-10 mt-10 content-center"> <div class="w-full mt-6 pt-6">
<h2 class="mb-6 py-10 text-lg"> <div class="bg-gray-50">
Pro Plan Annual<br> <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 lg:flex lg:items-center lg:justify-between">
Buy 10 months, get 2 free! <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl">
</h2> <span class="block">Pro Plan Annual</span>
<p> <span class="block text-indigo-600 mt-2">Buy 10 months, get 2 free!</span>
Enjoy Pro Plan for a year, <br>with advanced features including send with Gmail and API integrations. </h2>
</p> <div class="mt-8 flex lg:mt-0 lg:flex-shrink-0">
<button class="bg-blue-500 hover:bg-blue-400 text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded mt-5" id="annual_pro"> <div class="inline-flex rounded-md shadow">
Buy Now! <a href="https://invoiceninja.invoicing.co/client/subscriptions/q9wdL9wejP/purchase" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700"> Buy Now! </a>
</button> </div>
</div>
</div>
</div>
</div> </div>
@endsection @endsection
@ -258,19 +266,6 @@ Enjoy Pro Plan for a year, <br>with advanced features including send with Gmail
<script type="text/javascript"> <script type="text/javascript">
document.getElementById('annual_enterprise').addEventListener('click', function() {
location.href = 'https://invoiceninja.invoicing.co/client/subscriptions/LYqaQWldnj/purchase';
});
document.getElementById('annual_pro').addEventListener('click', function() {
location.href = 'https://invoiceninja.invoicing.co/client/subscriptions/q9wdL9wejP/purchase';
});
var stripe = Stripe('{{ $gateway->getPublishableKey()}}'); var stripe = Stripe('{{ $gateway->getPublishableKey()}}');
var client_secret = '{{ $intent->client_secret }}'; var client_secret = '{{ $intent->client_secret }}';