File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/app/Komma/Reservations/ReservationRoutes.php
<?php
namespace App\Komma\Reservations;
use App\Komma\Reservations\Kms\ReservationController as KmsReservationController;
use App\Komma\Reservations\Models\Reservation;
use Illuminate\Support\Facades\Route;
final class ReservationRoutes
{
public static function web()
{
Route::get('reservation-program-preview', ReservationService::class.'@sendProgramReminders');
// Route::get('reservation-reminder-preview', ReservationService::class.'@previewClientReminder');
// Route::get('reservation-location-day-plan-preview', ReservationService::class.'@previewLocationDayPlan');
Route::get('generate-receipt/{reservation}', ReservationController::class.'@receipt')->name('reservation.receipt')->middleware('signed');
Route::post('change-reservation/process', ReservationController::class.'@process')->name('reservation.change.process')->middleware('signed');
Route::get('change-reservation/success', ReservationController::class.'@success')->name('reservation.change.success');
Route::get('change-reservation/{reservation}', ReservationController::class.'@change')->name('reservation.change')->middleware('signed');
// Route::get('change-reservation-preview', ReservationService::class.'@previewChangeReservation');
}
/**
* Routes that are used for and within the KMS
* Will be prefixed with 'kms' by the Route::group in the RouteResolver
*
* Note: Within the group we use the Explicit Route Model Binding to point to a Reservation
* This is because we use a global controller to resolve the model
*/
public static function kms()
{
Route::get('reservations/archive', KmsReservationController::class.'@archive')->name('reservations.archive');
Route::get('reservations/search', KmsReservationController::class.'@search')->name('reservations.search');
Route::get('reservations/teamleader', KmsReservationController::class.'@teamleader')->name('reservations.teamleader');
Route::post('reservations/import', KmsReservationController::class.'@teamleaderImport')->name('reservations.teamleader.import');
Route::model('reservation', Reservation::class); //Explicit route model binding
Route::resource('reservations', KmsReservationController::class);
Route::get('planning/{location}', KmsReservationController::class.'@planning')->name('planning');
Route::post('reservations/append-item', KmsReservationController::class.'@appendToReservation')->name('reservations.appendItem');
Route::get('reservations/delete-item/{reservation}/{product}', KmsReservationController::class.'@deleteItemFromReservation')->name('reservations.deleteItem');
Route::get('reservations/delete-item-trashed/{reservation}/{reservationItem}', KmsReservationController::class.'@deleteItemTrashedProductFromReservation')->name('reservations.deleteItemTrashedProduct');
Route::get('reservations/resend-client/{reservation}', KmsReservationController::class.'@resendClientReservation')->name('reservations.resendClientReservation');
Route::get('reservations/resend-location/{reservation}', KmsReservationController::class.'@resendLocationReservation')->name('reservations.resendLocationReservation');
Route::get('generate-receipt/{reservation}', ReservationController::class.'@receipt')->name('kms.reservation.receipt');
Route::get('send-reminder/{reservation}', KmsReservationController::class.'@sendReminderMail')->name('kms.reservation.reminder');
}
}