@if($subscribersCount)
@endif @if(count($subscriptions))
@include('elements/message-alert', ['classes' =>'p-2'])
{{$activeSubsTab == 'subscriptions' ? __('To') : __('From')}}
{{__('Status')}}
{{__('Paid with')}}
{{__('Renews')}}
{{__('Expires at')}}
@foreach($subscriptions as $subscription)
@switch($subscription->status) @case('pending') @case('update-needed') @case('canceled') {{ucfirst(__($subscription->status))}} @break @case('completed') {{ucfirst(__($subscription->status))}} @break @case('suspended') @case('expired') @case('failed') {{ucfirst(__($subscription->status))}} @break @endswitch
{{ucfirst($subscription->provider)}}
{{isset($subscription->expires_at) ? ($subscription->status == \App\Model\Subscription::CANCELED_STATUS ? '-' : $subscription->expires_at->format('M d Y')) : '-'}}
{{isset($subscription->expires_at) ? ($subscription->status == \App\Model\Subscription::ACTIVE_STATUS ? '-' : $subscription->expires_at->format('M d Y')) : '-'}}
@if($subscription->status === \App\Model\Subscription::ACTIVE_STATUS) @endif
@endforeach
{{ $subscriptions->withQueryString()->onEachSide(1)->links() }}
@else

{{__('There are no active or cancelled subscriptions at the moment.')}}

@endif @include('elements.settings.transaction-cancel-dialog')