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/DMS/routes/web.php_18-feb-19
<?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!
|
*/
//after login path
Route::group(['middleware' => 'auth'], function () {
// Route::get('test12', function()
// {
// 	$user=Auth::user();
// 	echo "<pre>";
// 	print_r($user);
// });
	//Search Route
Route::post('/donorSearch', 'DonorsController@donorSearch');

//Donor Routes
Route::get('adddonor', 'DonorsController@create');
Route::post('donor/store','DonorsController@store');
Route::get('get_donor','DonorsController@getDonor');
Route::get('donor/{donor_id}/edit','DonorsController@edit');
Route::any('donor/{donor}/update', 'DonorsController@update'); 
Route::post('donor/index/fetch', 'DonorsController@fetch')->name('donorscontroller.fetch');
//Donation Route
Route::get('donation/{id}/add','DonationsController@addSingleDonation');
Route::post('submitDonation','DonationsController@submitDonation');
Route::get('get_donation','DonationsController@getDonation');
Route::get('donor-donation/{donations}/edit', 'DonationsController@donationEdit');
Route::post('updateDonation', 'DonationsController@updateDonation');
Route::get('date_filter','DonationsController@date_filter');
//Receipts Routes
Route::post('receipts/logo', 'ReceiptsController@logo');
Route::post('receipts/nologo', 'ReceiptsController@nologo');
Route::get('receipts/{tid}/approve', 'ReceiptsController@approve');
Route::get('receipts/{tid}/fapprove', 'ReceiptsController@fapprove');

//Reports controller
Route::get('dashboard', 'ReportsController@graphicalData');
Route::get('dynamic-report', 'ReportsController@dynamicReport');
Route::post('dynamic-donor-report','ReportsController@donorHeading');
// Route::get('dynamic-report', 'ReportsController@dynamicReport');
//Donor Table
Route::get('donor-create', 'ReportsController@index');
Route::get('donors', 'ReportsController@create');

//Donation Table
Route::get('donation-create', 'ReportsController@getDonation');
Route::get('donations-list', 'ReportsController@donations_list');
Route::post('donations-list', 'ReportsController@donations_list');
Route::get('all-data', 'ReportsController@getData');
Route::get('report-filter', 'ReportsController@filter');
Route::get('donor-histror/{ddid}/view', 'ReportsController@donorHistory');
// Route::get('donor/report', 'ReportsController@allReport');

//add project list
Route::get('project_list', 'ListController@index');
Route::post('add_project', 'ListController@project_list');
Route::post('update_project', 'ListController@update_project');
Route::get('change_status', 'ListController@change_status');


//add category list
Route::get('category_list', 'ListController@category_index');
Route::post('update_category', 'ListController@update_category');
Route::post('add_category', 'ListController@category_list');

//allocation list
Route::get('allocation_list', 'ListController@allocation_index');
Route::post('add_allocation', 'ListController@allocation_list');
Route::post('update_allocation', 'ListController@update_allocation');
Route::get('log', 'ListController@log');

// new user register
Route::get('user_list', 'ListController@user_list');
Route::get('user_register', 'ListController@user_register');
Route::post('user/store','ListController@store');

//importexport
Route::get('importExport', 'ImportExportController@importExport');
Route::get('downloadExcel/{type}', 'ImportExportController@downloadExcel');
Route::get('downloadDonation/{type}', 'ImportExportController@downloadDonation');
Route::post('downloadDonation/{type}', 'ImportExportController@downloadDonation');
Route::get('reports/{type}', 'ImportExportController@downloadReport');
// Route::post('importExcel', 'ImportExportController@importExcel');
Route::get('new_test', 'TestController@new_test');
Route::post('store', 'TestController@store');

Route::post('importDonation', 'ImportExportController@importDonation');


    Route::get('/', function () {

        return redirect('dashboard');

   });

    Route::get('home', function () {

        return redirect('dashboard');

   });
});

Auth::routes();