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

Membership

@if($user_plan)
{{ $active_plan ? 'Active' : 'Inactive' }}
{{ $user->currentPlan->plan->name }} Plan
  • Duration : {{ date('M d, Y', strtotime($user_plan->created_at)) }} - {{ date('M d, Y', strtotime($user->current_pan_expire_date)) }}
  • Ads Limit : {{ $user_plan->ad_limit }}
  • Feature Ads Limit : {{ $user_plan->featured_limit }}
  • Days {{ $active_plan ? 'Left' : 'Past'}}: {{ Carbon\Carbon::parse($user->current_pan_expire_date)->diffForHumans() }}
@else
You have no Plan
@endif
@endsection