<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::prefix('codetrek')->middleware('auth')->group(function () {
    Route::get('/', 'CodeTrekController@index')->name('codetrek.index');
    Route::post('/', 'CodeTrekController@store')->name('codetrek.store');
    Route::post('/store-feedback', 'CodeTrekController@storeCodeTrekApplicantFeedback')->name('codetrek.store-feedback');
    Route::get('/get-codetrek-applicant-feedback/{applicant}', 'CodeTrekController@getCodeTrekApplicantFeedback')->name('codetrek.get-codetrek-applicant-feedback');
    Route::get('/edit/{applicant}', 'CodeTrekController@edit')->name('codetrek.edit');
    Route::post('/edit/{applicant}', 'CodeTrekController@update')->name('codetrek.update');
    Route::delete('/delete/{applicant}', 'CodeTrekController@delete')->name('codetrek.delete');
    Route::get('/evaluate/{applicant}', 'CodeTrekController@evaluate')->name('codetrek.evaluate');
    Route::post('/action/{applicant}', 'CodeTrekApplicantRoundDetailController@takeAction')->name('codetrek.action');
    Route::post('/update-feedback/{applicantDetail}', 'CodeTrekApplicantRoundDetailController@update')->name('codetrek.update-feedback');
    Route::post('/update-Status/{applicant}', 'CodeTrekApplicantRoundDetailController@updateStatus')->name('codetrek.updateStatus');
});
