@extends('layout.user') @section('content')

Current Plan: {{ucwords(str_replace ('_', ' ', $subscription?->plan ?? ''))}}

@if(\Carbon\Carbon::parse($subscription->ends_at)->format('m/d/y') > now()->format('m/d/Y'))

Status: ACTIVE

@else

Status: EXPIRED

@endif {{--
Status: {{\Carbon\Carbon::parse($subscription?->ends_at)->format('m/d/y') > now()->format('m/d/Y') ? 'ACTIVE' : 'EXPIRED'}}
--}}
Expiration Date: {{\Carbon\Carbon::parse($subscription?->ends_at)->format('m/d/y')}}
@if(count($memberships)>0) @foreach($memberships as $membership) @if($membership->is_active == 1)
@if($membership->top_bar_text != '') {{$membership->top_bar_text}} @endif
{{$membership->name}}
@if($membership->amount == 0)

Free

@else

${{$membership->amount}}

{{ucwords($membership->interval)}}

@endif

{{ucwords($membership->description)}}

@if($subscription->plan == $membership->interval) @if(\Carbon\Carbon::parse($subscription->ends_at)->format('m/d/y') > now()->format('m/d/Y')) @if($subscription->plan == \App\AppConstants::PLAN_RENEWAL) @else @endif @else @endif @else @if($membership->interval == \App\AppConstants::PLAN_FREE) @else @endif @endif
@endif @endforeach @endif
{{--
--}} {{--

Licenses do not expire , If you don't use all of them on your
current deployment, they will be available on your next one.

--}} {{-- --}} {{--
--}}
@include('modal.payment_modal') @endsection