HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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');
    }
}