{{-- --}}
{{-- Back Button to Profile Page --}}

  Subscription

  • Current plan

    {{-- --}}

    @if (auth()->user()->onTrial() && !in_array($user->access, ['Month', 'Year'])) Trial @endif @if ($user['user_type'] === 'Free') {{ $user['user_type'] }} @elseif ($user['user_type'] === 'Basic') {{ $term_basic }} @elseif($user['user_type'] === 'Gold') {{ $term_gold }} @elseif($user['user_type'] === 'Sponsored') {{ $user['user_type'] }} @elseif($user['user_type'] === 'Influencer') {{ $user['user_type'] }} @else {{ $term_platinum }} @endif

  • @php $upcomingInvoice = auth()->user()->upcomingInvoice(); $invoices = auth()->user()->invoices(); @endphp {{-- if subscribed --}} @if (auth()->user()->subscribed()) @if (!is_null($upcomingInvoice)) @if (!$manual_capture_mode)
  • Renews on

    {{-- --}}

    {{ $upcomingInvoice->date()->format('M d, Y') }}
    ({{ $upcomingInvoice->date()->diffForHumans() }})

  • @endif @if (!$manual_capture_mode)
  • Upcoming total

    {{ $upcomingInvoice->total() }}

  • @endif @else
  • Deactivates at

    {{-- --}}

    {{ auth()->user()->subscription()->ends_at->format('M d, Y') }}

  • @endif @endif {{-- Trial Ends --}} @if (auth()->user()->onTrial() && !in_array($user->access, ['Month', 'Year']))
  • Trial ends at

    {{-- --}}

    {{ auth()->user()->trialEndsAt()->format('M d, Y') }}
    ({{ auth()->user()->trialEndsAt()->diffForHumans() }})

  • @endif
@auth
@if (auth()->user()->subscribed() && !$manual_capture_mode) Manage Subscription @endif @if ($user['user_type'] != 'Platinum' && $platinum_enabled === true) Manage Subscription @endif
@endauth
@if (auth()->user()->subscribed() && !$manual_capture_mode)
  • Action

    {{-- @if (auth()->user()->subscription('default')->onTrial())
    @csrf
    @elseif (auth()->user()->subscription()->canceled())
    @csrf
    @else
    @csrf
    @endif --}} @if (auth()->user()->subscription()->canceled())
    @csrf
    @else
    @csrf
    @endif
@endif {{-- Invoices --}} @if (auth()->user()->subscribed() && !$manual_capture_mode)
  • Invoices

  • @foreach ($invoices as $invoice)
  • {{ $invoice->date()->format('M d, Y') }} - {{ $invoice->total() }}

  • @endforeach
@endif