@extends('template.master') @section('page_styles') @stop @section('content') @include('payment.utilities.payment_form') @include('payment.utilities.latest_transactions') @include('payment.utilities.upcoming_dues')

Statistics


@foreach($plans as $key => $count)
{{ $key }}
{{ $count }}
@endforeach

Subscription List

@foreach($users as $ukey => $user) @foreach($user as $skey => $subscription) @if(isset($subscription['status'])) @else @php $now = time(); if(!empty($subscription->trial_ends_at)) { $payment_date = ''; $next_payment = strtotime($subscription->trial_ends_at) - $now; $last_payment = ''; } else { $payment_date = strtotime($subscription->created_at); $next_payment = strtotime('+1 month', $payment_date) - $now; $last_payment = $now - $payment_date; $payment_date = date('Y/m/d', strtotime($subscription->created_at)); } @endphp @endif @endforeach @endforeach
Subscription Price Name Start Date Trial End Next Payment Last Payment Option
Unsubscribed   {{ $skey }} ${{ number_format($subscription['cost'], 2) }} / {{ $subscription['interval'] }} {{ $ukey }}
Subscribed   {{ $skey }} ${{ number_format($subscription->plan->cost, 2) }} / {{ $subscription->plan->interval }} {{ $ukey }} {{$payment_date}} @if(!empty($subscription->trial_ends_at)) {{date('Y/m/d', strtotime($subscription->trial_ends_at))}} @endif In {{ round($next_payment / (60 * 60 * 24)) }} days @if(!empty($last_payment)) {{ round($last_payment / (60 * 60 * 24)) }} days ago @endif Upgrade | Refund | Cancel
Subscription Price Name Start Date Trial End Next Payment Last Payment Option
@stop @section('page_modals') @stop @section('page_scripts') @stop