<?php

use CodeIgniter\Router\RouteCollection;

/** @var RouteCollection $routes */
$routes->get('/', 'Home::index');
$routes->get('/login', 'Auth::login');
$routes->post('/auth/attempt', 'Auth::attemptLogin');
$routes->get('/logout', 'Auth::logout');
$routes->get('/owner', 'Dashboard::owner');
$routes->get('/owner/users', 'Dashboard::users');
$routes->get('/owner/products', 'Dashboard::products');
$routes->get('/owner/employees', 'Dashboard::employees');
$routes->get('/owner/members', 'Dashboard::members');
$routes->get('/owner/reports', 'Dashboard::reports');
$routes->get('/owner/report-daily', 'Dashboard::reportDaily');
$routes->get('/owner/report-monthly', 'Dashboard::reportMonthly');
$routes->get('/owner/report-yearly', 'Dashboard::reportYearly');
$routes->get('/owner/export-reports', 'Dashboard::exportReports');
$routes->get('/owner/member-points', 'Dashboard::memberPoints');
$routes->get('/owner/delete-point-entry/(:num)', 'Dashboard::deletePointEntry/$1');
$routes->get('/owner/settings-points', 'Dashboard::settingsPoints');
$routes->post('/owner/save-settings-points', 'Dashboard::saveSettingsPoints');
$routes->get('/owner/rewards', 'Dashboard::rewards');
$routes->post('/owner/save-reward', 'Dashboard::saveReward');
$routes->post('/owner/update-reward', 'Dashboard::updateReward');
$routes->get('/owner/delete-reward/(:num)', 'Dashboard::deleteReward/$1');
$routes->get('/owner/toggle-reward/(:num)', 'Dashboard::toggleReward/$1');
$routes->get('/dashboard/chart-data', 'Dashboard::chartData');
$routes->post('/owner/save-user', 'Dashboard::saveUser');
$routes->post('/owner/save-item', 'Dashboard::saveItem');
$routes->post('/owner/save-barber', 'Dashboard::saveBarber');
$routes->post('/owner/save-member', 'Dashboard::saveMember');
$routes->post('/owner/update-user', 'Dashboard::updateUser');
$routes->post('/owner/update-item', 'Dashboard::updateItem');
$routes->post('/owner/update-barber', 'Dashboard::updateBarber');
$routes->post('/owner/update-member', 'Dashboard::updateMember');
$routes->post('/owner/update-transaction', 'Dashboard::updateTransaction');
$routes->get('/owner/delete-user/(:num)', 'Dashboard::deleteUser/$1');
$routes->get('/owner/delete-item/(:num)', 'Dashboard::deleteItem/$1');
$routes->get('/owner/delete-barber/(:num)', 'Dashboard::deleteBarber/$1');
$routes->get('/owner/delete-member/(:num)', 'Dashboard::deleteMember/$1');
$routes->get('/owner/delete-transaction/(:num)', 'Dashboard::deleteTransaction/$1');
$routes->get('/transaction-history', 'Dashboard::transactionHistory');
$routes->get('/cashier/dashboard', 'Dashboard::cashierDashboard');
$routes->get('/cashier', 'Dashboard::cashier');
$routes->get('/cashier/search-member', 'Dashboard::searchMember');
$routes->post('/cashier/add-service', 'Dashboard::addService');
$routes->post('/cashier/checkout', 'Dashboard::checkout');
$routes->get('/cashier/new', 'Dashboard::newTransaction');
$routes->get('/cashier/clear', 'Dashboard::clearCart');
$routes->get('/cashier/remove-item/(:num)', 'Dashboard::removeCartItem/$1');
$routes->get('/cashier/apply-reward/(:num)', 'Dashboard::applyReward/$1');
$routes->get('/cashier/remove-reward', 'Dashboard::removeReward');
