@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif
{{ __('My Current Subscription') }}
@if(isset($message))
{{ $message }}
@else

{{ $order->plan_data['title'] }}

{{ __(ucwords($order->status)) }}

Next renewal on {{ $order->next_renewal_date->format('F d, Y') }}

Plan Features:
@php $features = [ ['key' => 'messages_limit', 'icon' => 'fas fa-envelope', 'label' => 'Messages'], ['key' => 'device_limit', 'icon' => 'fas fa-mobile-alt', 'label' => 'Devices'], ['key' => 'ai_message', 'icon' => 'fas fa-brain', 'label' => 'AI Messages'], ['key' => 'schedule_message', 'icon' => 'fas fa-clock', 'label' => 'Scheduled Messages'], ['key' => 'bulk_message', 'icon' => 'fas fa-paper-plane', 'label' => 'Bulk Messages'], ['key' => 'autoreply', 'icon' => 'fas fa-reply', 'label' => 'Auto Reply'], ['key' => 'send_message', 'icon' => 'fas fa-paperclip', 'label' => 'Send Messages'], ['key' => 'send_media', 'icon' => 'fas fa-image', 'label' => 'Send Media'], ['key' => 'send_list', 'icon' => 'fas fa-list', 'label' => 'Send List'], ['key' => 'send_template', 'icon' => 'fas fa-clipboard', 'label' => 'Send Templates'], ['key' => 'send_location', 'icon' => 'fas fa-map-marker-alt', 'label' => 'Send Location'], ['key' => 'send_poll', 'icon' => 'fas fa-poll', 'label' => 'Send Polls'], ['key' => 'send_sticker', 'icon' => 'fas fa-smile', 'label' => 'Send Stickers'], ['key' => 'send_vcard', 'icon' => 'fas fa-id-card', 'label' => 'Send VCards'], ['key' => 'webhook', 'icon' => 'fas fa-plug', 'label' => 'Webhook'], ['key' => 'api', 'icon' => 'fas fa-code', 'label' => 'API Access'] ]; @endphp
@foreach ($features as $feature)
@if($feature['key']=="messages_limit" || $feature['key']=="device_limit") {{ $order->plan_data['data'][$feature['key']] == "-1" ? '∞' : $order->plan_data['data'][$feature['key']] }} {{$feature['label']}} @else {{$feature['label']}} @endif
@endforeach

{{ number_format($order->amount, 2) }} {{ $order->currency }}

per month
@csrf
@endif
@if(isset($order))
{{ __('Available Plans') }}
@include('components.pricinglist', ['current_package' => $order->plan_data])
@endif