2017-03-23 15:01:53 +00:00
|
|
|
{% extends '@yuuno/master.twig' %}
|
2016-07-29 19:31:36 +00:00
|
|
|
|
2016-07-31 01:32:37 +00:00
|
|
|
{% set title %}Support {{ config('general.name') }}{% endset %}
|
2016-07-29 19:31:36 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="content support">
|
2016-11-09 18:32:23 +00:00
|
|
|
<div class="content__header">Support {{ config('general.name') }}</div>
|
2016-12-04 14:55:53 +00:00
|
|
|
<h1>redo this entirely</h1>
|
2016-07-29 19:31:36 +00:00
|
|
|
{% if user.isPremium %}
|
|
|
|
<div class="sectionHeader">
|
|
|
|
Your current Tenshi tag
|
|
|
|
</div>
|
|
|
|
<div style="margin-bottom: 10px;">
|
2016-11-01 21:14:02 +00:00
|
|
|
<h3>Your Tenshi tag is valid till {{ user.premiumInfo.expire|date(config('general.date_format')) }}.</h3>
|
2016-11-12 01:52:51 +00:00
|
|
|
{# the progress bar is completely broken, not fixing it until i completely reviewed the premium system #}
|
|
|
|
{#<progress value="{{ 100 - (((date().timestamp - user.premiumInfo.start) / (user.premiumInfo.expire - user.premiumInfo.start)) * 100) }}" max="100" style="width: 100%"></progress>#}
|
2016-07-29 19:31:36 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="sectionHeader">
|
|
|
|
Payment Options
|
|
|
|
<div style="float: right; font-size: 10px; text-align: right;">
|
|
|
|
Our transactions are handled through PayPal.
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-23 19:17:54 +00:00
|
|
|
{% if user.isActive %}
|
2016-07-29 19:31:36 +00:00
|
|
|
<div class="slider">
|
2016-11-09 18:32:23 +00:00
|
|
|
<input class="input__range" type="range" min="1" max="{{ amountLimit }}" value="1" onchange="document.getElementById('monthsNo').value = this.value; document.getElementById('monthNoBtn').innerText = this.value; document.getElementById('monthsTrailingS').innerText = (this.value == 1 ? '' : 's'); document.getElementById('totalAmount').innerText = (this.value * {{ price }});">
|
2016-07-29 19:31:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="checkout" style="line-height: 28px;">
|
|
|
|
<div style="float: left;">
|
2016-11-08 19:56:37 +00:00
|
|
|
<h1>Total: €<span id="totalAmount"></span></h1>
|
2016-07-29 19:31:36 +00:00
|
|
|
</div>
|
|
|
|
<div style="float: right;">
|
2016-12-09 15:48:35 +00:00
|
|
|
<button class="input__button" onclick="document.getElementById('purchaseForm').submit();">Get <span id="monthNoBtn">1</span> month<span id="monthsTrailingS"></span> of Tenshi</button>
|
2016-07-29 19:31:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
{% elseif user.isActive %}
|
2016-11-08 19:56:37 +00:00
|
|
|
<h1 style="text-align: center; margin: 1em auto;">You can't get Tenshi at the current moment!</h1>
|
2016-07-29 19:31:36 +00:00
|
|
|
{% else %}
|
2016-11-08 19:56:37 +00:00
|
|
|
<h1 style="text-align: center; margin: 1em auto;">You need to be logged in to get Tenshi!</h1>
|
2016-07-29 19:31:36 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2016-12-23 19:17:54 +00:00
|
|
|
{% if user.isActive %}
|
2016-07-29 19:31:36 +00:00
|
|
|
<form action="{{ route('premium.purchase') }}" method="post" id="purchaseForm" class="hidden">
|
|
|
|
<input type="hidden" name="mode" value="purchase">
|
|
|
|
<input type="hidden" name="time" value="{{ date().timestamp }}">
|
|
|
|
<input type="hidden" name="session" value="{{ session_id() }}">
|
|
|
|
<input type="hidden" name="months" id="monthsNo" value="1">
|
|
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
2016-08-03 23:40:47 +00:00
|
|
|
window.onload = function() { document.getElementById('totalAmount').innerText = {{ price }}; };
|
2016-07-29 19:31:36 +00:00
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|