@extends('layouts.app', ['header' => true, 'close_button' => true]) @section('back_button') @endsection @section('content')
@if(@auth()->user()->scheduledNotStartedSubscriptions()->first()->plan)

UPCOMING SUBSCRIPTION PLAN

{{ strtoupper(auth()->user()->scheduledNotStartedSubscriptions()->first()->plan->name) }}

@endif
{{-- UPGRADING SUBSCRIPTION --}}

CURRENT SUBSCRIPTION PLAN

@if(authSubscription())

{{ strtoupper($userCurrentPlan?->name)}}

@else

NONE

@endif {{-- CHANGE PLAN --}} {{-- CANCEL PLAN --}}

Credit Card

@if (empty(auth()->user()->userCards->items) && count(auth()->user()->userCards))

{{ auth()->user()->fullName }}

**** **** **** {{ jsdecode_userdata(auth()->user()->userCards->where('is_default', 1)->first()->last_digits) }}

@else
NONE
@endif
{{-- ACTIVE SUBSCRIPTION --}} {{--
ACTIVE PLAN

${{ authSubscription()->price }} / {{ authSubscription()->plan_type }}

--}}
Amount paid
    @forelse($combinedPayments as $payment)
  • {{ \Carbon\Carbon::parse($payment->created_at)->format('F j, Y') }}{{ \Carbon\Carbon::parse($payment->created_at)->format('H:i A') }}

    ${{ (@$payment->total_amount > 0 ) ? number_format($payment->total_amount , 2) : number_format($payment->amount , 2) }}
  • @empty

    No payment found

    @endforelse {{--
    @if ($combinedPayments->onFirstPage()) Previous @else Previous @endif @if ($combinedPayments->onLastPage() || $combinedPayments->count() < 5) Next @else Next @endif
    --}}
Change plan
Loading...
Update card
Loading...
Delete account
Loading...
{{-- #pause-delete-account id show pop up for deletion or pause account --}} {{-- #change-reactivate-account id show pop up for change or reactivation of plan--}} {{-- --}}
@include('include.user-update-delete-sub') @include('include.confirm-deletion') @endsection @push('scripts') @endpush