<?php
$f3->route('GET /', 'AuthController->index');
$f3->route('GET /login', 'AuthController->loginPage');
$f3->route('POST /login', 'AuthController->login');
$f3->route('GET /logout', 'AuthController->logout');
$f3->route('GET /customer-portal', 'CustomerController->portal');
$f3->route('POST /customer-portal/lookup', 'CustomerController->lookup');
$f3->route('GET /forgot-password', 'AuthController->forgotPassword');

$f3->route('GET /super-admin', 'SuperAdminController->dashboard');
$f3->route('GET /super-admin/companies', 'SuperAdminController->companies');
$f3->route('GET /super-admin/users', 'SuperAdminController->users');
$f3->route('GET /super-admin/subscriptions', 'SuperAdminController->subscriptions');
$f3->route('GET /super-admin/activity-logs', 'SuperAdminController->activityLogs');
$f3->route('GET /super-admin/reports', 'SuperAdminController->reports');
$f3->route('GET /super-admin/settings', 'SuperAdminController->settings');
$f3->route('GET /super-admin/return', 'SuperAdminController->returnToSuperAdmin');
$f3->route('GET /super-admin/login-as-customer/@id', 'SuperAdminController->loginAsCustomer');

$f3->route('GET /api/companies/@id', 'SuperAdminController->getCompany');
$f3->route('POST /api/companies', 'SuperAdminController->createCompany');
$f3->route('PUT /api/companies/@id', 'SuperAdminController->updateCompany');
$f3->route('DELETE /api/companies/@id', 'SuperAdminController->deleteCompany');
$f3->route('POST /api/companies/@id/toggle', 'SuperAdminController->toggleCompany');
$f3->route('POST /api/super-admin/login-as', 'SuperAdminController->loginAs');
$f3->route('PUT /api/subscriptions/@id', 'SuperAdminController->updateSubscription');
$f3->route('POST /api/subscriptions/@id/renew', 'SuperAdminController->renewSubscription');
$f3->route('POST /api/settings', 'SuperAdminController->saveSettings');
$f3->route('POST /api/settings/notifications', 'SuperAdminController->saveSettings');

$f3->route('GET /company', 'CompanyController->dashboard');
$f3->route('GET /company/staff', 'CompanyController->staff');
$f3->route('GET /company/customers', 'CompanyController->customers');
$f3->route('GET /company/vehicles', 'CompanyController->vehicles');
$f3->route('GET /company/services', 'CompanyController->services');
$f3->route('GET /company/reminders', 'CompanyController->reminders');
$f3->route('GET /company/settings', 'CompanyController->settings');

$f3->route('GET /api/company/staff', 'CompanyController->getStaffList');
$f3->route('POST /api/company/staff', 'CompanyController->createStaff');
$f3->route('POST /api/staff', 'CompanyController->createStaff');
$f3->route('PUT /api/staff/@id', 'CompanyController->updateStaff');
$f3->route('DELETE /api/staff/@id', 'CompanyController->deleteStaff');

$f3->route('POST /api/customers', 'CompanyController->createCustomer');
$f3->route('PUT /api/customers/@id', 'CompanyController->updateCustomer');
$f3->route('DELETE /api/customers/@id', 'CompanyController->deleteCustomer');

$f3->route('POST /api/vehicles', 'CompanyController->createVehicle');
$f3->route('PUT /api/vehicles/@id', 'CompanyController->updateVehicle');
$f3->route('DELETE /api/vehicles/@id', 'CompanyController->deleteVehicle');

$f3->route('GET /api/company/services', 'CompanyController->getServices');
$f3->route('POST /api/company/services', 'CompanyController->createServiceWithCustomer');
$f3->route('POST /api/services', 'CompanyController->createService');
$f3->route('PUT /api/services/@id', 'CompanyController->updateService');
$f3->route('DELETE /api/services/@id', 'CompanyController->deleteService');
$f3->route('POST /api/company/business', 'CompanyController->updateBusinessInfo');
$f3->route('POST /api/company/templates', 'CompanyController->updateTemplates');

$f3->route('GET /api/company/reminders', 'CompanyController->getReminders');
$f3->route('POST /api/reminders', 'CompanyController->createReminder');
$f3->route('PUT /api/reminders/@id', 'CompanyController->updateReminder');
$f3->route('DELETE /api/reminders/@id', 'CompanyController->deleteReminder');
$f3->route('POST /api/company/reminders/@id/whatsapp', 'CompanyController->sendWhatsApp');
$f3->route('POST /api/company/reminders/@id/call', 'CompanyController->logCall');
$f3->route('POST /api/company/reminders/@id/mark-sent', 'CompanyController->markReminderSent');

$f3->route('GET /staff', 'StaffController->dashboard');
$f3->route('GET /staff/services', 'StaffController->services');
$f3->route('GET /staff/reminders', 'StaffController->reminders');
$f3->route('GET /api/staff/services', 'StaffController->getServices');
$f3->route('POST /api/staff/services', 'StaffController->createService');
$f3->route('PUT /api/staff/services/@id', 'StaffController->updateService');
$f3->route('GET /api/staff/reminders', 'StaffController->getReminders');
$f3->route('POST /api/staff/reminders/@id/whatsapp', 'StaffController->sendWhatsApp');
$f3->route('POST /api/staff/reminders/@id/call', 'StaffController->logCall');
$f3->route('POST /api/staff/reminders/@id/mark-sent', 'StaffController->markSent');
$f3->route('POST /api/reminders/@id/send-whatsapp', 'StaffController->sendWhatsApp');
$f3->route('POST /api/reminders/@id/log-call', 'StaffController->logCall');
$f3->route('POST /api/reminders/@id/mark-sent', 'StaffController->markSent');
$f3->route('POST /api/reminders/@id/whatsapp', 'StaffController->sendWhatsApp');
$f3->route('POST /api/reminders/@id/call', 'StaffController->logCall');
$f3->route('POST /api/reminders/@id/sent', 'StaffController->markSent');

$f3->route('GET /api/stats', 'ApiController->getStats');
$f3->route('GET /api/dashboard-data', 'ApiController->getDashboardData');
