api code global jain
This commit is contained in:
13
routes/admin/with_auth/account_setting.php
Normal file
13
routes/admin/with_auth/account_setting.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Backend\Auth\AccountSettingController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group([
|
||||
'prefix' => 'account-setting',
|
||||
'as' => 'account-setting.'
|
||||
], function () {
|
||||
Route::get('/{step?}', [AccountSettingController::class, 'accountSetting'])->name('index');
|
||||
Route::post('update-password', [AccountSettingController::class, 'updatePassword'])->name('update-password');
|
||||
});
|
||||
|
||||
26
routes/admin/with_auth/admin.php
Normal file
26
routes/admin/with_auth/admin.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* User Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\AdminController;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
// User Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
'auth',
|
||||
// 'role:' . config('access.users.super_admin_role') . '|'
|
||||
// . config('access.users.admin_role')
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'admin.user.', 'prefix' => 'admin/user'], function () {
|
||||
Route::get('get-listing', [AdminController::class, 'getUserListing'])->name('get-listing');
|
||||
// Route::get('dashboard', [AdminController::class, 'dashboard'])->name('dashboard');
|
||||
|
||||
Route::post('grid-records-action', [AdminController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
Route::group(['as' => 'admin.', 'prefix' => 'admin'], function () {
|
||||
Route::resource('user', AdminController::class)->except(['show']);
|
||||
});
|
||||
});
|
||||
20
routes/admin/with_auth/certificate.php
Normal file
20
routes/admin/with_auth/certificate.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Certificate Related Routes.
|
||||
*/
|
||||
|
||||
// Certificate Routes
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\Backend\CertificateController;
|
||||
|
||||
Route::group([
|
||||
'middleware' => [],
|
||||
'as' => 'certificates.',
|
||||
'prefix' => 'certificates'
|
||||
],
|
||||
function () {
|
||||
Route::get('/', [CertificateController::class, 'index'])->name('index');
|
||||
Route::get('listing', [CertificateController::class, 'listing'])->name('listing');
|
||||
Route::get('{id}/view', [CertificateController::class, 'show'])->name('show');
|
||||
Route::post('{id}/status/update', [CertificateController::class, 'statusUpdate'])->name('status.update');
|
||||
});
|
||||
20
routes/admin/with_auth/chaturmas.php
Normal file
20
routes/admin/with_auth/chaturmas.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Chaturmas Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\ChaturmasDateController;
|
||||
|
||||
// Chaturmas date Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'chaturmas-date.', 'prefix' => 'chaturmas-date'], function () {
|
||||
Route::get('get-listing', [ChaturmasDateController::class, 'getChaturmasDateListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [ChaturmasDateController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::resource('chaturmas-date', ChaturmasDateController::class)->except(['show']);
|
||||
});
|
||||
11
routes/admin/with_auth/dashboard.php
Normal file
11
routes/admin/with_auth/dashboard.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
use App\Http\Controllers\Backend\DashboardController;
|
||||
|
||||
//dashboard rout
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
Route::get('dashboard', [DashboardController::class, 'dashboard'])->name('dashboard');
|
||||
});
|
||||
|
||||
22
routes/admin/with_auth/dharma.php
Normal file
22
routes/admin/with_auth/dharma.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* User Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\DharmaController;
|
||||
|
||||
// User Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'dharma.', 'prefix' => 'dharma'], function () {
|
||||
Route::get('get-listing', [DharmaController::class, 'getDharmaListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [DharmaController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::POST('dharma/sampradaies', [DharmaController::class, 'getSampradayByDharma'])->name('dharma.sampradaies');
|
||||
|
||||
Route::resource('dharma', DharmaController::class)->except(['show']);
|
||||
});
|
||||
23
routes/admin/with_auth/hospital.php
Normal file
23
routes/admin/with_auth/hospital.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Hospital Related Routes.
|
||||
*/
|
||||
|
||||
// Hospital Routes
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\Backend\HospitalController;
|
||||
|
||||
Route::group([
|
||||
'middleware' => [],
|
||||
'as' => 'hospitals.',
|
||||
'prefix' => 'hospitals'
|
||||
],
|
||||
function () {
|
||||
Route::get('listing', [HospitalController::class, 'listing'])->name('listing');
|
||||
Route::get('/', [HospitalController::class, 'index'])->name('index');
|
||||
Route::get('create', [HospitalController::class, 'create'])->name('create');
|
||||
Route::post('store', [HospitalController::class, 'store'])->name('store');
|
||||
Route::get('{id}/edit', [HospitalController::class, 'edit'])->name('edit');
|
||||
Route::patch('{id}/update', [HospitalController::class, 'update'])->name('update');
|
||||
Route::delete('{id}/destroy', [HospitalController::class, 'destroy'])->name('destroy');
|
||||
});
|
||||
20
routes/admin/with_auth/jati.php
Normal file
20
routes/admin/with_auth/jati.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* User Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\JatiController;
|
||||
|
||||
// User Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'jati.', 'prefix' => 'jati'], function () {
|
||||
Route::get('get-listing', [JatiController::class, 'getJatiListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [JatiController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::resource('jati', JatiController::class)->except(['show']);
|
||||
});
|
||||
20
routes/admin/with_auth/roles.php
Normal file
20
routes/admin/with_auth/roles.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* User Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\RoleController;
|
||||
|
||||
// User Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'roles.', 'prefix' => 'roles'], function () {
|
||||
Route::get('get-listing', [RoleController::class, 'getRoleListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [RoleController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::resource('roles', RoleController::class)->except(['show']);
|
||||
});
|
||||
21
routes/admin/with_auth/sampraday.php
Normal file
21
routes/admin/with_auth/sampraday.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* User Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\SampradayController;
|
||||
|
||||
// User Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'sampraday.', 'prefix' => 'sampraday'], function () {
|
||||
Route::get('get-listing', [SampradayController::class, 'getSampradayListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [SampradayController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::resource('sampraday', SampradayController::class)->except(['show']);
|
||||
Route::POST('dharma/gachadhi-pati', [SampradayController::class, 'getGachadhiPatiByDharma'])->name('dharma.gachadhi-pati');
|
||||
});
|
||||
20
routes/admin/with_auth/sangh.php
Normal file
20
routes/admin/with_auth/sangh.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Sangh Related Routes.
|
||||
*/
|
||||
|
||||
// Sangh Routes
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\Backend\SanghController;
|
||||
|
||||
Route::group([
|
||||
'middleware' => [],
|
||||
'as' => 'sanghs.',
|
||||
'prefix' => 'sanghs'
|
||||
],
|
||||
function () {
|
||||
Route::get('/', [SanghController::class, 'index'])->name('index');
|
||||
Route::get('/listing', [SanghController::class, 'listing'])->name('listing');
|
||||
Route::get('{id}/show', [SanghController::class, 'show'])->name('show');
|
||||
Route::patch('{id}/update', [SanghController::class, 'update'])->name('update');
|
||||
});
|
||||
22
routes/admin/with_auth/sant.php
Normal file
22
routes/admin/with_auth/sant.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Sant Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\SantController;
|
||||
|
||||
// Sant Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'sant.', 'prefix' => 'sant'], function () {
|
||||
Route::get('get-listing', [SantController::class, 'getSantListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [SantController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
Route::post('import-sant', [SantController::class, 'import'])->name('import-sant');
|
||||
Route::get('{santID}/remove-thana/{id}', [SantController::class, 'removeThanaMember'])->name('remove-thana');
|
||||
});
|
||||
|
||||
Route::resource('sant', SantController::class)->except(['show']);
|
||||
});
|
||||
20
routes/admin/with_auth/sant_chaturmas.php
Normal file
20
routes/admin/with_auth/sant_chaturmas.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* User Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\ChaturmasController;
|
||||
|
||||
// User Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'sant.chaturmas.', 'prefix' => 'sant/{sant}/chaturmas'], function () {
|
||||
Route::get('get-listing', [ChaturmasController::class, 'getChaturmasListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [ChaturmasController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::resource('sant.chaturmas', ChaturmasController::class)->except(['show']);
|
||||
});
|
||||
20
routes/admin/with_auth/users.php
Normal file
20
routes/admin/with_auth/users.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* User Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\UserController;
|
||||
|
||||
// User Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'user.', 'prefix' => 'user'], function () {
|
||||
Route::get('get-listing', [UserController::class, 'getUserListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [UserController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::resource('user', UserController::class)->except(['show']);
|
||||
});
|
||||
21
routes/admin/with_auth/vihar.php
Normal file
21
routes/admin/with_auth/vihar.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Sant Related Routes.
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Backend\SantController;
|
||||
use App\Http\Controllers\Backend\ViharController;
|
||||
|
||||
// Sant Routes
|
||||
Route::group(
|
||||
['middleware' => [
|
||||
//
|
||||
]], function () {
|
||||
|
||||
Route::group(['as' => 'sant.vihar.', 'prefix' => 'sant/{sant}/vihar'], function () {
|
||||
Route::get('get-listing', [ViharController::class, 'getViharListing'])->name('get-listing');
|
||||
Route::post('grid-records-action', [ViharController::class, 'gridRecordsAction'])->name('grid.records.action');
|
||||
});
|
||||
|
||||
Route::resource('sant.vihar', ViharController::class)->except(['show']);
|
||||
});
|
||||
34
routes/admin/without_auth/auth.php
Normal file
34
routes/admin/without_auth/auth.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
// Authentication Routes...
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\BaseController;
|
||||
use App\Http\Controllers\Backend\Auth\LoginController;
|
||||
use App\Http\Controllers\Backend\Auth\RegisterController;
|
||||
use App\Http\Controllers\Backend\Auth\ResetPasswordController;
|
||||
use App\Http\Controllers\Backend\Auth\ForgotPasswordController;
|
||||
|
||||
Route::get('/', function() {
|
||||
return redirect(route('admin.login'));
|
||||
})->name('get-global-jain-b');
|
||||
Route::group(['prefix' => '', 'as' => '', 'namespace' => ''], function () {
|
||||
|
||||
Route::get('login', [LoginController::class, 'showLoginForm'])->name('login');
|
||||
Route::post('login', [LoginController::class, 'login']);
|
||||
|
||||
Route::any('logout', [LoginController::class, 'logout'])->name('logout');
|
||||
|
||||
// Registration Routes...
|
||||
Route::get('register', [RegisterController::class, 'showRegistrationForm'])->name('register');
|
||||
Route::post('register', [RegisterController::class, 'register']);
|
||||
|
||||
//PasswordReset Routes...
|
||||
Route::get('password/reset', [ForgotPasswordController::class, 'showLinkRequestForm'])->name('password.request');
|
||||
Route::post('password/email', [ForgotPasswordController::class, 'sendResetLinkEmail'])->name('password.email');
|
||||
Route::post('password/reset',[ResetPasswordController::class,'reset'])
|
||||
->name('password.update');
|
||||
Route::get('password/reset/{token}',[ResetPasswordController::class,'showResetForm'])
|
||||
->name('password.reset');
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user