@if ($subscriptions->count() > 0) @foreach ($subscriptions as $key => $subscription) @endforeach
@switch($subscription->status) @case(Acelle\Model\Subscription::STATUS_ACTIVE) settings_backup_restore @break @case(Acelle\Model\Subscription::STATUS_NEW) add_circle_outline @break @default remove_circle_outline @endswitch
{{ $subscription->plan->name }}
{!! trans('messages.subscribed_by', [ 'name' => $subscription->customer->displayName(), 'customer_link' => action('Admin\CustomerController@edit', $subscription->customer->uid) ]) !!}
{{ Auth::user()->admin->formatDateTime($subscription->created_at, 'datetime_full')}}
{{ trans('messages.subscribed_on') }}
@if ($subscription->isTerminated())
{{ Auth::user()->admin->formatDateTime($subscription->terminated_at, 'datetime_full') }}
{{ trans('messages.subscription.terminated_at') }} @elseif ($subscription->isEnded())
{{ Auth::user()->admin->formatDateTime($subscription->current_period_ends_at, 'datetime_full') }}
{{ trans('messages.subscription.subscription_ended_at') }} @elseif ($subscription->isCancelled())
{{ Auth::user()->admin->formatDateTime($subscription->cancelled_at, 'datetime_full') }}
{{ trans('messages.subscription.cancelled_at') }} @elseif (!$subscription->isRecurring())
@if ($subscription->current_period_ends_at) {{ $subscription->current_period_ends_at->timezone($currentTimezone)->diffForHumans() }} @else -- @endif
{{ trans('messages.subscription.subscription_end') }} @elseif ($subscription->isRecurring())
@if ($subscription->current_period_ends_at) {{ $subscription->current_period_ends_at->timezone($currentTimezone)->diffForHumans() }} @else -- @endif
{{ trans('messages.subscription.next_billing') }} @endif
@if ($subscription->isActive())
{{ number_with_delimiter($subscription->getSendingCreditsRemaining()) }}
{{ trans('messages.subscription.send_credits_remaining') }} @endif
@switch($subscription->status) @case(Acelle\Model\Subscription::STATUS_ACTIVE) {{ trans('messages.subscription.status.active') }} @if ($subscription->getUnpaidInvoice() && $subscription->getUnpaidInvoice()->getPendingTransaction() && $subscription->getUnpaidInvoice()->getPendingTransaction()->allowManualReview())
{{ trans('messages.subscription.status.pending_for_approval') }}
@endif @break @case(Acelle\Model\Subscription::STATUS_NEW) @if ($subscription->getUnpaidInvoice()) @if ($subscription->getUnpaidInvoice()->getPendingTransaction() && $subscription->getUnpaidInvoice()->getPendingTransaction()->allowManualReview()) {{ trans('messages.subscription.status.pending_for_approval') }} @else {{ trans('messages.subscription.status.wait_for_payment') }} @endif @endif @break @default {{ trans('messages.subscription.status.' . $subscription->status) }} @endswitch
@if (\Auth::user()->admin->can('approve', $subscription)) {{ trans('messages.subscription.approve') }} | @endif @if (\Auth::user()->admin->can('disableRecurring', $subscription)) {{ trans('messages.subscription.disable_recurring') }} @endif @if (\Auth::user()->admin->can('enableRecurring', $subscription)) {{ trans('messages.subscription.enable_recurring') }} @endif @if( \Auth::user()->admin->can('terminate', $subscription) || \Auth::user()->admin->can('invoices', $subscription) || \Auth::user()->admin->can('approve', $subscription) || \Auth::user()->admin->can('delete', $subscription) || \Auth::user()->admin->can('rejectPending', $subscription) )
@endif
@include('elements/_per_page_select', ["items" => $subscriptions]) @elseif (!empty(request()->keyword) || !empty(request()->filters))
assignment_turned_in {{ trans('messages.no_search_result') }}
@else
assignment_turned_in {{ trans('messages.subscription_empty_line_1_admin') }}
@endif