silent-auction/routes/web.php

66 lines
3.6 KiB
PHP
Raw Normal View History

2018-06-11 13:43:21 -04:00
<?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!
|
*/
if (env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
Auth::routes();
Route::get('/', [ 'uses' => 'PagesController@home']);
Route::get('home', [ 'uses' => 'PagesController@home']);
Route::get('winningbidderlist', [ 'uses' => 'PagesController@winningbidderlist']);
2019-07-11 20:55:45 -04:00
Route::get('showwinners', [ 'uses' => 'PagesController@showwinners']);
Route::get('showscores', [ 'uses' => 'PagesController@showscores']);
2018-06-11 13:43:21 -04:00
Route::group(['middleware' => 'auth'], function() {
Route::get('bidders', [ 'uses' => 'PagesController@bidders']);
Route::post('bidders', [ 'uses' => 'PagesController@bidders']);
Route::get('bidderlist', [ 'uses' => 'PagesController@bidderlist']);
Route::post('bidderlist', [ 'uses' => 'PagesController@bidderlist']);
Route::get('checkout', [ 'uses' => 'PagesController@checkout']);
Route::post('checkout', [ 'uses' => 'PagesController@checkout']);
2018-12-23 10:41:29 -05:00
Route::get('checkout_complete_list', [ 'uses' => 'PagesController@checkoutCompleteList' ]);
2018-06-11 13:43:21 -04:00
Route::get('editwinners', [ 'uses' => 'PagesController@editwinners']);
Route::post('editwinners', [ 'uses' => 'PagesController@editwinners']);
Route::get('finaltally', [ 'uses' => 'PagesController@finaltally']);
Route::get('items', [ 'uses' => 'PagesController@items']);
Route::post('items', [ 'uses' => 'PagesController@items']);
Route::get('itemlist', [ 'uses' => 'PagesController@itemlist']);
Route::post('itemlist', [ 'uses' => 'PagesController@itemlist']);
2018-12-23 10:41:29 -05:00
Route::get('reprint_receipt', ['uses' => 'PagesController@reprintReceipt']);
Route::post('reprint_receipt', ['uses' => 'PagesController@reprintReceipt']);
2018-06-11 13:43:21 -04:00
Route::get('receiptpdf', ['uses' => 'PagesController@receiptpdf'])->name('receiptpdf');
Route::get('winners', [ 'uses' => 'PagesController@winners']);
Route::post('winners', [ 'uses' => 'PagesController@winners']);
Route::get('winnerlist', [ 'uses' => 'PagesController@winnerlist']);
Route::post('winnerlist', [ 'uses' => 'PagesController@winnerlist']);
Route::get('winnersbyitem', [ 'uses' => 'PagesController@winnersbyitem']);
Route::get('winnertotal', [ 'uses' => 'PagesController@winnertotal']);
Route::post('winnertotal', [ 'uses' => 'PagesController@winnertotal']);
2019-07-11 20:55:45 -04:00
Route::get('showcars', [ 'uses' => 'PagesController@showcars']);
Route::get('judgingentry', [ 'uses' => 'PagesController@judgingentry']);
Route::get('pcentry', [ 'uses' => 'PagesController@pcentry']);
Route::get('judges', [ 'uses' => 'PagesController@judges']);
Route::get('vehicletypes', [ 'uses' => 'PagesController@vehicletypes']);
Route::get('awardcategories', [ 'uses' => 'PagesController@awardcategories']);
Route::post('showcars', [ 'uses' => 'PagesController@showcars']);
Route::post('judgingentry', [ 'uses' => 'PagesController@judgingentry']);
Route::post('pcentry', [ 'uses' => 'PagesController@pcentry']);
Route::post('judges', [ 'uses' => 'PagesController@judges']);
Route::post('vehicletypes', [ 'uses' => 'PagesController@vehicletypes']);
Route::post('awardcategories', [ 'uses' => 'PagesController@awardcategories']);
Route::get('showcarlist', [ 'uses' => 'PagesController@showcarlist']);
2023-03-16 14:02:19 -04:00
Route::get('tabulateshowwinners', function() {
Artisan::call('carshow:tabulatewinners');
2023-03-16 14:09:54 -04:00
return redirect('showwinners');
2023-03-16 14:02:19 -04:00
});
2018-06-11 13:43:21 -04:00
});