@extends('user.layouts.main') @section('contents')

Membership

@if($user_plan)
{{ $active_plan ? 'Active' : 'Inactive' }}
{{ $user->currentPlan->plan->name }} Plan
    @php $isLifetime = $user_plan?->plan->interval == 'lifetime'; @endphp @if ($isLifetime)
  • Duration : Lifetime Access
  • @else
  • Duration : {{ date('M d, Y', strtotime($user_plan->created_at)) }} - {{ date('M d, Y', strtotime($user->current_pan_expire_date)) }}
  • @endif
  • Ads Limit : {{ $user_plan->ad_limit }}
  • {{--
  • Feature Ads Limit : {{ $user_plan->featured_limit }}
  • --}} @if ($isLifetime)
  • Days Left : Unlimited
  • @else
  • Days {{ $active_plan ? 'Left' : 'Past' }} : {{ \Carbon\Carbon::parse($user->current_pan_expire_date)->diffForHumans() }}
  • @endif
@else
You have no Plan
@endif
{{$user_plan ? 'Upgrade' : 'Purchase'}} Package
@endsection