🔐 تكامل ZATCA
إدارة شاملة لتكامل نظام الزكاة والدخل
@if($hasErrors)
⚠️ خطأ
{{ $errorMessage }}
@endif
📊 التقدم الإجمالي
{{ $status['progress_percentage'] }}%
الحالة الحالية: {{ $status['current_stage'] }}
📈 إجمالي العمليات
{{ $retryStats['total'] ?? 0 }}
✅ العمليات الناجحة
{{ $retryStats['successful'] ?? 0 }}
❌ العمليات الفاشلة
{{ $retryStats['failed'] ?? 0 }}
📊 نسبة النجاح
{{ $retryStats['success_rate'] ?? 0 }}%
@if($reports && count($reports) > 0)
@if(isset($reports['by_operation_type']) && count($reports['by_operation_type']) > 0)
📊 العمليات حسب النوع
@endif
@if(isset($reports['trends']))
📈 الاتجاهات الأسبوعية
الأسبوع الماضي:
{{ $reports['trends']['last_week']['total'] ?? 0 }} عملية
الأسبوع السابق:
{{ $reports['trends']['previous_week']['total'] ?? 0 }} عملية
الاتجاه:
{{ $reports['trends']['trend'] ?? 'N/A' }}
@endif
@if(isset($reports['timeline']) && count($reports['timeline']) > 0)
📅 الخط الزمني (آخر 7 أيام)
@endif
@endif
@if($recentOperations && count($recentOperations) > 0)
🕐 آخر العمليات
| نوع العملية |
الحالة |
التاريخ |
ملاحظات |
@forelse($recentOperations as $operation)
|
{{ $operation->operation_type ?? 'N/A' }}
|
@if($operation->status === 'success')
✅ نجح
@elseif($operation->status === 'failed')
❌ فشل
@else
⏳ قيد
@endif
|
{{ $operation->created_at->format('Y-m-d H:i') ?? 'N/A' }} |
{{ substr($operation->response_message ?? 'بدون ملاحظات', 0, 50) }}... |
@empty
| لا توجد عمليات حالياً |
@endforelse
@endif
@if($failedOperations && count($failedOperations) > 0)
⚠️ العمليات الفاشلة التي تحتاج متابعة
| نوع العملية |
رسالة الخطأ |
عدد المحاولات |
التاريخ |
@forelse($failedOperations as $operation)
|
{{ $operation->operation_type ?? 'N/A' }}
|
{{ substr($operation->error_message ?? 'بدون تفاصيل', 0, 50) }}... |
{{ $operation->attempt_number ?? 0 }}/3
|
{{ $operation->created_at->format('Y-m-d H:i') ?? 'N/A' }} |
@empty
| ✅ لا توجد عمليات فاشلة |
@endforelse
@endif
📋 مراحل التكامل
@foreach($status['all_stages'] as $stage)
@if($stage['status'] === 'completed')
✅
@else
{{ $stage['number'] }}
@endif
{{ $stage['name'] }}
{{ $stage['description'] }}
@if($stage['status'] === 'completed')
✅ مكتمل
@elseif($stage['status'] === 'ready')
🚀 جاهز
@else
⏳ قريباً
@endif
@endforeach
📋 متطلبات المرحلة الحالية
@foreach($requirements as $requirement)
-
✓
{{ $requirement }}
@endforeach
@if($nextStep)
🎯 الخطوة التالية
{{ $nextStep['description'] }}
@endif
📌 معلومات الشركة
- اسم الشركة
- {{ $company->name }}
- رقم الضريبة
- {{ $company->tax_number ?? 'غير محدد' }}
⚙️ إعدادات ZATCA
- حالة التكامل
- {{ $company->zatca_status ?? 'لم يتم البدء' }}