Subscription

@if($plan && $is_subscribed)

Current plan

{{ strtoupper($plan->name) }}

@if ($userSubscription && $userSubscription->onTrial() && $days_left_trial_period > 0 && !$grace_period)
{{ $days_left_trial_period }} days free trial left!
@endif {{-- @if ($grace_period)
{{ $days_left_grace_period }} days of grace period left!
@endif --}}
@if(!$grace_period)

£{{$plan->price}}/{{$plan->type}} @if($plan->type != 'free') • Renews/next billing {{ $nextBillingDate }} @endif

@else

{{ $days_left_grace_period }} days of grace period left, after that you will be transferred to the free plan.

@endif
@if($grace_period) @else @endif
@else

You are not subscribed to any plan

@endif

Payment method

@if($paymentMethods->count() > 0) @foreach($paymentMethods as $paymentMethod)
@if((new App\Services\Payments\PaymentMethodService)->isDefault($paymentMethod->id, $defaultPaymentMethodId)) @endif

****
****
****
{{ $paymentMethod->card->last4 }}
{{ strtoupper($paymentMethod->billing_details->name) }}
exp {{ sprintf("%02d",$paymentMethod->card->exp_month) }} / {{ substr($paymentMethod->card->exp_year, -2) }}
@if((new App\Services\Payments\PaymentMethodService)->isNotDefault($paymentMethod->id, $defaultPaymentMethodId))
{{--

--}}

@endif
@endforeach @endif