@extends('layouts.app') @section('title', __('master::lang.subscriptions')) @push('styles') @endpush @section('content')
{{-- عرض ملخص الاشتراك النشط فقط --}} @component('components.widget')

@lang('master::lang.active_subscription')

@if(!empty($latest))

@lang('master::lang.end_date')

{{ $latest->end_date ? @format_date($latest->end_date) : __('lang_v1.na') }}

@lang('master::lang.allowed_users')

{{ $latest->users_count ?? $allowed_users }}

@lang('master::lang.current_users')

{{ $current_users ?? 0 }}
@else

لا يوجد اشتراك نشط حالياً

@lang('master::lang.purchase_new_subscription')
@endif
@endcomponent
{{-- ✅ جدول كل الاشتراكات --}} @component('components.widget')

@lang('master::lang.all_subscriptions')

@lang('master::lang.purchase_new_subscription') @php $showPurchaseMore = false; if (!empty($latest)) { $showPurchaseMore = true; } @endphp @if($showPurchaseMore) {{ __('master::lang.purchase_more_users') }} @endif
{{-- ✅ زر شراء اشتراك جديد --}}
@lang('master::lang.users_count') @lang('master::lang.billing_cycle') @lang('master::lang.total_price') ( د.ع ) @lang('master::lang.price_after_discount') ( د.ع ) @lang('master::lang.paid_via') @lang('master::lang.payment_transaction_id') @lang('master::lang.start_date') @lang('master::lang.end_date') @lang('sale.status') @lang('lang_v1.created_at')
@endcomponent @endsection @section('javascript') @endsection