@extends('layouts.app') @section('content')
{{ $currentSubscription['data']['description'] }}
Status: {{ ucfirst($currentSubscription['data']['status']) }}
Price: KES {{ number_format($currentSubscription['data']['price']) }}
{{-- the value ends_at is null for lifetime plans --}} @if($currentSubscription['data']['ends_at'])
Start Date: {{ \Carbon\Carbon::parse($currentSubscription['data']['starts_at'])->timezone(config('app.timezone'))->format('M d, Y H:i:s') }}
@elseStart Date: {{ \Carbon\Carbon::parse($currentSubscription['data']['starts_at']) ->timezone(config('app.timezone')) ->format('M d, Y H:i:s') }}
@endif{{-- the value ends_at is null for lifetime plans --}} @if($currentSubscription['data']['ends_at'])
End Date: {{ \Carbon\Carbon::parse($currentSubscription['data']['ends_at'])->timezone(config('app.timezone')) ->format('M d, Y H:i:s') }}
@elseEnd Date: (Lifetime)
@endifDays Remaining: {{-- number of days are shown as negatives yet its a future date and also should be whole number --}} @if($currentSubscription['data']['ends_at']) {{ (int) now()->diffInDays(\Carbon\Carbon::parse($currentSubscription['data']['ends_at']), false) }} days @else (Lifetime) @endif
You are currently on the free tier. Subscribe to a plan to unlock all features.
Try Flaresend WhatsApp API for free. Upgrade for more usage and exclusive features.
{{ $plan['description'] }}
@if (!empty($plan['is_custom_pricing']) && $plan['is_custom_pricing'])