@extends('layouts.app') @section('title', 'Subscriptions List') @section('content')

Subscription Management

Note: Subscription which are made through Apple Device ( iOS App ) , can not be cancelled from Web Admin panel and so such user can't be removed from this panel if their subscription is active. @if($activeSubscription)
Active Subscription: {{ $activeSubscription->plan_name }}
Start Date: {{ \Carbon\Carbon::parse($activeSubscription->start_date)->format(config('constant.date_format.display_format')) }}
End Date: {{ \Carbon\Carbon::parse($activeSubscription->end_date)->format(config('constant.date_format.display_format')) }}
@else
You do not have an active subscription.
@endif @php $hasAnySubscription = \App\Models\PurchaseSubscription::where('provider_id', Auth::id())->exists(); @endphp
@if(!$activeSubscription && !$hasAnySubscription) Add @elseif(!$activeSubscription && $hasAnySubscription) Upgrade Plan @endif
Purchase Subscription Id Plan Name Start Date End Date Price Status Created At Action
@endsection @section('scripts') @endsection