MOON
Server: Apache
System: Linux 54-179-220-51.cprapid.com 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
User: thehunarfound (1001)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/thehunarfound/public_html/DMSold/routes_bak/web._bakphp
<?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!
|
*/


//home page route -  sort this out
Route::get('/', function () {
    return view('pages.index');
});
Route::get('/', 'PagesController@index');
Route::get('pages/','PagesController@index');


//Donor routes
//Route::resource('donor','DonorsController');
Route::get('donor','DonorsController@index');
Route::get('donor/index', 'DonorsController@index');
Route::get('donor/create', 'DonorsController@create');
Route::post('donor/store','DonorsController@store');
//Route::any('donor/test','DonorsController@test');
// Route::get('donor/show', 'DonorsController@show');
Route::patch('donor/{donor}', 'DonorsController@update');  
Route::get('donor/searchdonor', 'DonorsController@searchdonor');
Route::get('donor/existingdonor', 'DonorsController@existingdonor');
Route::get('donor/{donor}', 'DonorsController@show');
Route::get('donor/{donor}/showdonations', 'DonorsController@showdonations');
Route::get('donor/{donor}/edit', 'DonorsController@edit');
Route::get('donor/{donor}/destroy', 'DonorsController@destroy');

Route::post('donor/index/fetch', 'DonorsController@fetch')->name('donorscontroller.fetch'); //this fetches country/city database
Route::post('donor/index/fetchcity', 'DonorsController@fetchcity')->name('donorscontroller.fetchcity');


//Donation Routes
Route::resource('donations','DonationsController');
Route::get('donations/{donor}index', 'DonationsController@index');
//Route::get('donations/index', 'DonationsController@index');
Route::get('donations/create', 'DonationsController@create');
Route::get('donations/show', 'DonationsController@show');
Route::post('donations/store','DonationsController@store');


//Existing Donor Routes
Route::get('existingdonor', 'DonorDetailsController@index');
Route::get('existingdonor/searchdonor', 'DonorDetailsController@searchdonor');
Route::get('existingdonor/{donor}', 'DonorDetailsController@show');
Route::get('existingdonor/{donor}/showdonations', 'DonorDetailsController@showdonations');
Route::get('existingdonor/{donor}/edit', 'DonorDetailsController@edit');
Route::patch('existingdonor/{donor}', 'DonorDetailsController@update');
Route::get('existingdonor/adddonations', 'DonorDetailsController@adddonation');
Route::post('existingdonor/store','DonorDetailsController@store');
Route::resource('existingdonor','DonorDetailsController');


//Receipts Routes
Route::resource('receipts','ReceiptsController');
Route::get('receipts/index', 'ReceiptsController@index');


//Reports Routes
Route::get('reports', 'DonationReportsController@index');
Route::get('reports/index', 'DonationReportsController@index');