2020-04-21 14:11:38 +03:00
|
|
|
<div class="mx-auto mt-6 text-center">
|
2020-12-16 12:57:28 +03:00
|
|
|
<h1 class="text-3xl font-black dark:text-gray-100">Confirm new subscription plan</h1>
|
2020-04-21 14:11:38 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="w-full max-w-lg px-4 mt-4 mx-auto">
|
2020-12-16 12:57:28 +03:00
|
|
|
<div class="flex-1 bg-white dark:bg-gray-800 shadow-md rounded px-8 py-4 mb-4 mt-8">
|
|
|
|
<div class="text-lg font-bold dark:text-gray-100">Due now</div>
|
|
|
|
<div class="block text-gray-500 dark:text-gray-200 text-sm">
|
2020-04-21 14:11:38 +03:00
|
|
|
Your card will be charged a pro-rated amount for the current billing period
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex flex-col mt-4">
|
|
|
|
<div class="-my-2 py-2 overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
|
2020-12-16 12:57:28 +03:00
|
|
|
<div class="align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-b border-gray-200 dark:border-t dark:border-l dark:border-r dark:shadow-none">
|
2020-04-21 14:11:38 +03:00
|
|
|
<table class="min-w-full">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-12-16 12:57:28 +03:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 bg-gray-100 dark:bg-gray-900 text-left text-xs leading-4 font-medium text-gray-500 dark:text-gray-200 uppercase tracking-wider">
|
2020-04-21 14:11:38 +03:00
|
|
|
Amount
|
|
|
|
</th>
|
2020-12-16 12:57:28 +03:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 bg-gray-100 dark:bg-gray-900 text-left text-xs leading-4 font-medium text-gray-500 dark:text-gray-200 uppercase tracking-wider">
|
2020-04-21 14:11:38 +03:00
|
|
|
Date
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-12-16 12:57:28 +03:00
|
|
|
<tbody class="bg-white dark:bg-gray-800">
|
2020-04-21 14:11:38 +03:00
|
|
|
<tr class="border-b border-gray-200">
|
2021-05-13 12:16:31 +03:00
|
|
|
<td class="px-6 py-4 text-sm leading-5 font-bold dark:text-gray-100"><%= present_currency(@preview_info["immediate_payment"]["currency"]) %><%= @preview_info["immediate_payment"]["amount"] %></td>
|
2020-12-16 12:57:28 +03:00
|
|
|
<td class="px-6 py-4 text-sm leading-5 dark:text-gray-100"><%= present_date(@preview_info["immediate_payment"]["date"]) %></td>
|
2020-04-21 14:11:38 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pt-6"></div>
|
|
|
|
|
2021-10-20 17:49:11 +03:00
|
|
|
<div class="py-4 dark:text-gray-100 text-lg font-bold">Next payment</div>
|
2020-04-21 14:11:38 +03:00
|
|
|
|
|
|
|
|
|
|
|
<div class="flex flex-col">
|
|
|
|
<div class="-my-2 py-2 overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
|
2020-12-16 12:57:28 +03:00
|
|
|
<div class="align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-b border-gray-200 dark:border-t dark:border-l dark:border-r dark:shadow-none">
|
2020-04-21 14:11:38 +03:00
|
|
|
<table class="min-w-full">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-12-16 12:57:28 +03:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 bg-gray-100 dark:bg-gray-900 text-left text-xs leading-4 font-medium text-gray-500 dark:text-gray-200 uppercase tracking-wider">
|
2020-04-21 14:11:38 +03:00
|
|
|
Amount
|
|
|
|
</th>
|
2020-12-16 12:57:28 +03:00
|
|
|
<th class="px-6 py-3 border-b border-gray-200 bg-gray-100 dark:bg-gray-900 text-left text-xs leading-4 font-medium text-gray-500 dark:text-gray-200 uppercase tracking-wider">
|
2020-04-21 14:11:38 +03:00
|
|
|
Date
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-12-16 12:57:28 +03:00
|
|
|
<tbody class="bg-white dark:bg-gray-800">
|
2020-04-21 14:11:38 +03:00
|
|
|
<tr class="border-b border-gray-200">
|
2021-05-13 12:16:31 +03:00
|
|
|
<td class="px-6 py-4 text-sm leading-5 font-bold dark:text-gray-100"><%= present_currency(@preview_info["immediate_payment"]["currency"]) %><%= @preview_info["next_payment"]["amount"] %></td>
|
2020-12-16 12:57:28 +03:00
|
|
|
<td class="px-6 py-4 text-sm leading-5 dark:text-gray-100"><%= present_date(@preview_info["next_payment"]["date"]) %></td>
|
2020-04-21 14:11:38 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex items-center justify-between mt-10">
|
|
|
|
<span class="flex rounded-md shadow-sm">
|
2020-12-16 12:57:28 +03:00
|
|
|
<a href="/billing/change-plan" type="button" class="inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-500 text-sm leading-5 font-medium rounded-md text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 hover:text-gray-500 dark:hover:text-gray-200 focus:outline-none focus:border-blue-300 focus:ring active:text-gray-800 dark:active:text-gray-200 active:bg-gray-50 transition ease-in-out duration-150">
|
2020-04-21 14:11:38 +03:00
|
|
|
Back
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="flex space-betwee rounded-md shadow-sm">
|
2021-01-06 12:57:53 +03:00
|
|
|
<%= button("Confirm plan change", to: "/billing/change-plan/#{@preview_info["plan_id"]}", method: :post, class: "inline-flex items-center px-4 py-2 border border-transparent text-sm leading-5 font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:ring active:bg-indigo-700 transition ease-in-out duration-150") %>
|
2020-04-21 14:11:38 +03:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-12-16 12:57:28 +03:00
|
|
|
<div class="text-center mt-8 dark:text-gray-100">
|
2022-02-23 17:59:43 +03:00
|
|
|
Questions? Contact <%= link("support@plausible.io", to: "mailto:support@plausible.io", class: "text-indigo-500") %>
|
2020-04-21 14:11:38 +03:00
|
|
|
</div>
|
|
|
|
|
2021-12-09 16:49:57 +03:00
|
|
|
<%= render("_paddle_script.html") %>
|