Commit d97948a7 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Remove training program wizard — use regular ProgramForm instead

The wizard was overengineered for this flow. Programs are created via
the existing ProgramForm. Updated dashboard and program-list links.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 280d6a36
This diff is collapsed.
......@@ -369,7 +369,7 @@
<h2 class="text-lg font-semibold text-gray-700 mb-3">{{ __('معالجات الإنشاء') }}</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
@can('programs.create')
<a href="{{ route('programs.wizard') }}" wire:navigate class="flex items-center gap-3 bg-white rounded-xl border border-gray-200 p-4 hover:shadow-md hover:border-blue-300 transition-all group">
<a href="{{ route('programs.create') }}" wire:navigate class="flex items-center gap-3 bg-white rounded-xl border border-gray-200 p-4 hover:shadow-md hover:border-blue-300 transition-all group">
<div class="shrink-0 w-10 h-10 bg-blue-50 rounded-lg flex items-center justify-center group-hover:bg-blue-100 transition-colors">
<svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/>
......
......@@ -2,7 +2,7 @@
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3 mb-4 sm:mb-6">
<h1 class="text-xl sm:text-2xl font-bold text-gray-800">{{ __('البرامج التدريبية') }}</h1>
@permission('programs.create')
<a href="{{ route('programs.wizard') }}" wire:navigate
<a href="{{ route('programs.create') }}" wire:navigate
class="inline-flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-sm font-medium">
<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="M12 4v16m8-8H4"/></svg>
<span class="hidden sm:inline">{{ __('إضافة برنامج') }}</span>
......
......@@ -57,7 +57,6 @@
use App\Livewire\Programs\ProgramForm;
use App\Livewire\Programs\ProgramList;
use App\Livewire\Settings\ReceiptSettings;
use App\Livewire\Settings\SystemSettingsForm;
use App\Livewire\Inventory\MovementList;
use App\Livewire\Inventory\ProductForm as InventoryProductForm;
use App\Livewire\Inventory\ProductList as InventoryProductList;
......@@ -187,8 +186,6 @@
// Training Programs
Route::get('/programs', ProgramList::class)->name('programs.list')
->middleware('permission:programs.list');
Route::get('/programs/wizard', \App\Livewire\Programs\CreateProgramWizard::class)->name('programs.wizard')
->middleware('permission:programs.create');
Route::get('/programs/create', ProgramForm::class)->name('programs.create')
->middleware('permission:programs.create');
Route::get('/programs/{program}/edit', ProgramForm::class)->name('programs.edit')
......
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