Commit 419462ef authored by Mahmoud Aglan's avatar Mahmoud Aglan

Add reconciliation wizard for participants with no invoices

SuperAdmin tool that finds enrolled participants with zero invoices
in the system, then offers two reconciliation paths:
- Two invoices: last month (auto-paid) + current month renewal
- One invoice: combined amount for both months

After reconciliation, participant is on the normal billing cycle.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent d35e8e40
This diff is collapsed.
This diff is collapsed.
......@@ -5,6 +5,14 @@
<p class="mt-1 text-sm text-gray-500">{{ __('نظرة عامة على جميع الأكاديميات') }}</p>
</div>
<!-- Quick Actions -->
<div class="mb-6 flex flex-wrap gap-3">
<a href="{{ route('admin.reconciliation') }}" class="inline-flex items-center gap-2 px-4 py-2 bg-amber-50 border border-amber-200 text-amber-800 text-sm font-medium rounded-lg hover:bg-amber-100 transition">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"/></svg>
{{ __('تسوية المشتركين') }}
</a>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4 mb-6 sm:mb-8">
<!-- Total Academies -->
......
......@@ -490,6 +490,8 @@
// SuperAdmin
Route::get('/admin', SuperAdminPanel::class)->name('admin.panel')
->middleware('permission:super_admin.access');
Route::get('/admin/reconciliation', \App\Livewire\Admin\ReconciliationWizard::class)->name('admin.reconciliation')
->middleware('permission:super_admin.access');
// Exports
Route::get('/export/report', [\App\Http\Controllers\ExportController::class, 'report'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment