رقم الاعتماد
{{ $subscription->verification_code }}
العضو الحالي
{{ $subscription->member->name ?? '---' }}
@if (!empty($subscription->member?->member_code))
{{ $subscription->member->member_code }}
@endif
الفرع
{{ $subscription->branch->name ?? '---' }}
الخدمة الحالية
{{ $subscription->item_name }}
تاريخ البداية
{{ optional($subscription->start_date)->format('Y-m-d') }}
تاريخ النهاية
{{ optional($subscription->end_date)->format('Y-m-d') }}
الحالة التشغيلية
@php
$lifeLabel = match ($subscription->current_action_type) {
'pause' => 'موقوف مؤقتًا',
'transfer' => 'تم التنازل',
'upgrade' => 'تمت الترقية',
'stop_final' => 'موقوف نهائيًا',
default => match ($subscription->lifecycle_status) {
'active' => 'نشط',
'paused' => 'موقوف',
'ended' => 'منتهي',
default => 'غير معروف',
},
};
@endphp
{{ $lifeLabel }}
الإجراءات
{{ $canTakeAction ? 'متاحة' : 'غير متاحة' }}
| # |
رقم الوثيقة |
النوع |
الحالة |
الإجمالي |
المدفوع |
المتبقي |
أنشئ بواسطة |
تاريخ الإنشاء |
@forelse($actions as $action)
@php
$typeLabel = match ($action->action_type) {
'pause' => 'إيقاف مؤقت',
'stop_final' => 'إيقاف نهائي',
'transfer' => 'تنازل',
'upgrade' => 'ترقية',
default => $action->action_type,
};
$remaining = max(
0,
(float) $action->total_amount - (float) $action->paid_amount,
);
@endphp
| {{ $action->id }} |
{{ $action->action_no }} |
{{ $typeLabel }} |
تم التنفيذ |
{{ number_format($action->total_amount, 2) }} |
{{ number_format($action->paid_amount, 2) }} |
{{ number_format($remaining, 2) }} |
{{ $action->creator->name ?? '---' }} |
{{ optional($action->created_at)->format('Y-m-d H:i') }} |
@empty
| لا توجد إجراءات على هذا
الاشتراك بعد. |
@endforelse
@include('admin.subscriptions.actions.partials.history-table', [
'title' => 'تاريخ الإيقاف المؤقت',
'collapseId' => 'history-pause',
'rows' => $pauseActions,
'type' => 'pause',
])
@include('admin.subscriptions.actions.partials.history-table', [
'title' => 'تاريخ التنازل',
'collapseId' => 'history-transfer',
'rows' => $transferActions,
'type' => 'transfer',
])
@include('admin.subscriptions.actions.partials.history-table', [
'title' => 'تاريخ الترقية',
'collapseId' => 'history-upgrade',
'rows' => $upgradeActions,
'type' => 'upgrade',
])
@include('admin.subscriptions.actions.partials.history-table', [
'title' => 'تاريخ الإيقاف النهائي',
'collapseId' => 'history-stop-final',
'rows' => $stopFinalActions,
'type' => 'stop_final',
])