@extends('layouts.dashboard') @section('title', t('الاشتراكات','Subscriptions')) @section('page-title','💳 '.t('إدارة الاشتراكات','Manage Subscriptions')) @section('content') {{-- Stats --}}
📊
{{ t('الكل','Total') }}
{{ $stats['total'] }}
{{ t('نشط','Active') }}
{{ $stats['active'] }}
{{ t('منتهي','Expired') }}
{{ $stats['expired'] }}
{{ t('موقوف','Suspended') }}
{{ $stats['suspended'] }}
{{-- Filters --}}
@if($q || $status!=='all')✕ {{ t('مسح','Clear') }}@endif
{{ $subs->total() }} {{ t('اشتراك','subs') }}
@forelse($subs as $sub) @empty @endforelse
{{ t('العضو','Member') }} {{ t('الخطة','Plan') }} {{ t('اللايسنس','License') }} {{ t('الحالة','Status') }} {{ t('الانتهاء','Expires') }} {{ t('إجراءات','Actions') }}
{{ $sub->user->name ?? '—' }}
{{ $sub->user->email ?? '' }}
{{ $sub->plan->name ?? $sub->plan_id }} {{ $sub->license_key }} {{ ['active'=>'✅ '.t('نشط','Active'),'expired'=>'⏰ '.t('منتهي','Expired'),'suspended'=>'⛔ '.t('موقوف','Suspended')][$sub->status] ?? $sub->status }} @if($sub->expires_at) @php $expired = \Carbon\Carbon::parse($sub->expires_at)->isPast(); @endphp {{ $expired ? '⚠️ ' : '✅ ' }}{{ $sub->expires_at }} @else ♾️ {{ t('مدى الحياة','Lifetime') }} @endif ⚙️
{{ t('لا يوجد اشتراكات','No subscriptions found') }}
@if($subs->hasPages())
{{ $subs->withQueryString()->links() }}
@endif
@endsection