name('gate.login'); Route::post('/login', [GateController::class, 'attempt'])->name('gate.attempt'); Route::post('/logout', [GateController::class, 'logout'])->name('gate.logout'); Route::get('/', [DashboardController::class, 'index'])->name('dashboard'); // CRM – Clients Route::post('/clients/quick', [ClientController::class, 'quickStore'])->name('clients.quick-store'); Route::resource('clients', ClientController::class); Route::post('/clients/{client}/avatar', [ClientController::class, 'uploadAvatar'])->name('clients.upload-avatar'); Route::delete('/clients/{client}/avatar', [ClientController::class, 'deleteAvatar'])->name('clients.delete-avatar'); // Client Categories Route::prefix('client-categories')->name('client-categories.')->group(function (): void { Route::post('/quick', [ClientCategoryController::class, 'quickStore'])->name('quick-store'); Route::get('/', [ClientCategoryController::class, 'index'])->name('index'); Route::post('/', [ClientCategoryController::class, 'store'])->name('store'); Route::put('/{category}', [ClientCategoryController::class, 'update'])->name('update'); Route::delete('/{category}', [ClientCategoryController::class, 'destroy'])->name('destroy'); }); // Brand Contracts Route::prefix('contracts')->name('contracts.')->group(function (): void { Route::get('/', [BrandContractController::class, 'index'])->name('index'); Route::post('/', [BrandContractController::class, 'store'])->name('store'); Route::put('/{contract}', [BrandContractController::class, 'update'])->name('update'); Route::delete('/{contract}', [BrandContractController::class, 'destroy'])->name('destroy'); Route::patch('/{contract}/toggle', [BrandContractController::class, 'toggle'])->name('toggle'); Route::get('/check', [BrandContractController::class, 'check'])->name('check'); }); // Schedule & Calendar Route::prefix('schedule')->name('schedule.')->group(function (): void { Route::get('/', [EventController::class, 'index'])->name('index'); Route::get('/create', [EventController::class, 'create'])->name('create'); Route::post('/', [EventController::class, 'store'])->name('store'); Route::get('/{event}/edit', [EventController::class, 'edit'])->name('edit'); Route::put('/{event}', [EventController::class, 'update'])->name('update'); Route::patch('/{event}/dates', [EventController::class, 'updateDates'])->name('update-dates'); Route::delete('/{event}', [EventController::class, 'destroy'])->name('destroy'); Route::get('/api/events', [EventController::class, 'apiList'])->name('api-events'); }); // Social Media Hub Route::prefix('social-hub')->name('social-hub.')->group(function (): void { Route::get('/', [SocialHubController::class, 'index'])->name('index'); Route::post('/stats', [SocialHubController::class, 'storeStats'])->name('store-stats'); }); // Financial – Invoices Route::resource('invoices', InvoiceController::class); Route::get('/invoices/{invoice}/pdf', [InvoiceController::class, 'pdf'])->name('invoices.pdf'); Route::get('/invoice-settings', [InvoiceSettingsController::class, 'edit'])->name('invoice-settings.edit'); Route::post('/invoice-settings', [InvoiceSettingsController::class, 'update'])->name('invoice-settings.update'); Route::post('/invoice-settings/logo', [InvoiceSettingsController::class, 'uploadLogo'])->name('invoice-settings.upload-logo'); Route::delete('/invoice-settings/logo', [InvoiceSettingsController::class, 'deleteLogo'])->name('invoice-settings.delete-logo'); Route::post('/invoice-settings/signature', [InvoiceSettingsController::class, 'uploadSignature'])->name('invoice-settings.upload-signature'); Route::delete('/invoice-settings/signature', [InvoiceSettingsController::class, 'deleteSignature'])->name('invoice-settings.delete-signature'); // Financial – Rate Cards Route::get('/rate-cards/public', [RateCardController::class, 'public'])->name('rate-cards.public'); Route::get('/rate-cards/pdf', [RateCardController::class, 'pdf'])->name('rate-cards.pdf'); Route::get('/rate-cards/profile', [RateCardController::class, 'profilePage'])->name('rate-cards.profile'); Route::post('/rate-cards/profile', [RateCardController::class, 'profileUpdate'])->name('rate-cards.profile.update'); Route::post('/rate-cards/profile/logo', [RateCardController::class, 'uploadLogo'])->name('rate-cards.profile.upload-logo'); Route::delete('/rate-cards/profile/logo', [RateCardController::class, 'deleteLogo'])->name('rate-cards.profile.delete-logo'); Route::post('/rate-cards/profile/brand-logo', [RateCardController::class, 'uploadBrandLogo'])->name('rate-cards.profile.upload-brand-logo'); Route::delete('/rate-cards/profile/brand-logo', [RateCardController::class, 'deleteBrandLogo'])->name('rate-cards.profile.delete-brand-logo'); Route::get('/files/profile-logo', [RateCardController::class, 'serveProfileLogo'])->name('files.serve-profile-logo'); Route::resource('rate-cards', RateCardController::class)->except(['show']); // Content Strategy – Kanban Route::prefix('content')->name('content.')->group(function (): void { Route::get('/', [ContentBriefController::class, 'index'])->name('index'); Route::get('/create', [ContentBriefController::class, 'create'])->name('create'); Route::post('/', [ContentBriefController::class, 'store'])->name('store'); Route::get('/{contentBrief}', [ContentBriefController::class, 'show'])->name('show'); Route::get('/{contentBrief}/edit', [ContentBriefController::class, 'edit'])->name('edit'); Route::put('/{contentBrief}', [ContentBriefController::class, 'update'])->name('update'); Route::delete('/{contentBrief}', [ContentBriefController::class, 'destroy'])->name('destroy'); Route::patch('/{contentBrief}/status', [ContentBriefController::class, 'updateStatus'])->name('update-status'); }); // File Management Route::prefix('files')->name('files.')->group(function (): void { Route::get('/', [MediaFileController::class, 'index'])->name('index'); Route::post('/', [MediaFileController::class, 'store'])->name('store'); Route::get('/{mediaFile}/serve', [MediaFileController::class, 'serve'])->name('serve'); Route::delete('/{mediaFile}', [MediaFileController::class, 'destroy'])->name('destroy'); }); // Global Search Route::prefix('search')->name('search.')->group(function (): void { Route::get('/', [SearchController::class, 'index'])->name('index'); Route::get('/quick', [SearchController::class, 'quick'])->name('quick'); }); // Notes Route::prefix('notes')->name('notes.')->group(function (): void { Route::get('/', [NoteController::class, 'index'])->name('index'); Route::post('/', [NoteController::class, 'store'])->name('store'); Route::put('/{note}', [NoteController::class, 'update'])->name('update'); Route::delete('/{note}', [NoteController::class, 'destroy'])->name('destroy'); Route::patch('/{note}/pin', [NoteController::class, 'togglePin'])->name('toggle-pin'); }); // Settings Route::prefix('settings')->name('settings.')->group(function (): void { Route::get('/notifications', [NotificationSettingController::class, 'index'])->name('notifications'); Route::post('/notifications', [NotificationSettingController::class, 'store'])->name('notifications.store'); Route::put('/notifications/{setting}', [NotificationSettingController::class, 'update'])->name('notifications.update'); Route::delete('/notifications/{setting}', [NotificationSettingController::class, 'destroy'])->name('notifications.destroy'); Route::post('/notifications/{setting}/test', [NotificationSettingController::class, 'test'])->name('notifications.test'); Route::post('/notifications/{setting}/toggle', [NotificationSettingController::class, 'toggle'])->name('notifications.toggle'); });