%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/dsr_code/routes/
Upload File :
Create Path :
Current File : /home/silvzytp/dsr_code/routes/member.php

<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Backend\AgentController;
use App\Http\Controllers\CompareManagerController;
use App\Http\Controllers\Backend\Member\RoleController;
use App\Http\Controllers\Backend\Member\MemberController;
use App\Http\Controllers\Backend\ManagerController as ManagerControllerName;
use App\Http\Controllers\Backend\Member\ManagerController;
use App\Http\Controllers\Backend\Member\ProfileController;
use App\Http\Controllers\Backend\Member\DashboardController;
use App\Http\Controllers\Backend\Member\MonthlyDataController;
use App\Http\Controllers\Backend\Member\Manager\TargetController;
use App\Http\Controllers\Backend\Member\MonthlyCommitmentController;

//-------------------- Member Group ----------------------//
Route::prefix('portal')->name('app.')->middleware('auth','is_member','is_status','permission')->group(function(){
    //------------------ Dashboard -----------------//
    Route::get('/', [DashboardController::class,'dashboard'])->name('dashboard');
    Route::post('chart-bar',[DashboardController::class, 'dashboardChart'])->name('dashboard.chart-bar');

    //------------------- Monthly Commitment ------------------//
    Route::resource('monthly', MonthlyCommitmentController::class)->except('show','destroy');
    Route::post('monthly/get-data', [MonthlyCommitmentController::class, 'getData'])->name('monthly-commit.get-data');
    Route::post('monthly/manager', [MonthlyCommitmentController::class, 'managerSelect'])->name('monthly.manager.select');
    Route::post('monthly/agent-selected', [MonthlyCommitmentController::class, 'agentSelected'])->name('monthly.agent.select');
    Route::post('monthly/destroy', [MonthlyCommitmentController::class, 'destroy'])->name('monthly.destroy');

    //------------------- Monthly Data -----------------//
    Route::resource('monthly-data', MonthlyDataController::class)->except('show','destroy');
    Route::post('monthly-data/get-data', [MonthlyDataController::class, 'getData'])->name('monthly-data.get-data');
    Route::post('monthly-data/manager', [MonthlyDataController::class, 'managerSelect'])->name('monthly-data.manager.select');
    Route::post('monthly-data/agent-selected', [MonthlyDataController::class, 'agentSelected'])->name('monthly-data.agent.select');
    Route::post('monthly-data/destroy', [MonthlyDataController::class, 'destroy'])->name('monthly-data.destroy');
    Route::post('monthly-data/remark', [MonthlyDataController::class, 'remark'])->name('monthly-data.remark');

    //---------------------- Role ---------------------//
    Route::resource('roles', RoleController::class)->only(['index','edit','update']);
    Route::post('roles/destroy/{id}', [RoleController::class, 'destroy'])->name('roles.destroy');

    //---------------------- Manager Manage -------------------//
    Route::resource('managers', ManagerControllerName::class)->except('show','destroy');
    Route::post('managers/destroy', [ManagerControllerName::class, 'destroy'])->name('managers.destroy');
    Route::post('managers/get-data',[ManagerControllerName::class, 'getData'])->name('managers.get-data');
    Route::post('managers/status',[ManagerControllerName::class, 'status'])->name('managers.status');
    Route::get('managers/{id}', [ManagerControllerName::class, 'show'])->name('managers.show');
    Route::post('managers/bulk-deletable',[ManagerControllerName::class, 'bulkDestroy'])
        ->name('managers.bulk-destroy');

    //---------------------- Agent Manage -----------------------//
    Route::resource('agents', AgentController::class)->except('show','destroy');
    Route::post('agents/destroy', [AgentController::class, 'destroy'])->name('agents.destroy');
    Route::post('agents/get-data',[AgentController::class, 'getData'])->name('agents.get-data');
    Route::post('agents/status',[AgentController::class, 'status'])->name('agents.status');
    Route::get('agents/{id}', [AgentController::class, 'show'])->name('agents.show');
    Route::post('agents/bulk-deletable',[AgentController::class, 'bulkDestroy'])
        ->name('agents.bulk-destroy');

    //---------------------- Profile ---------------------//
    Route::get('profile',[ProfileController::class, 'profile'])->name('profile.index');
    Route::post('profile/update',[ProfileController::class, 'profileUpdate'])->name('profile.update');

    //--------------------- Password --------------------//
    Route::get('password', [ProfileController::class, 'password'])->name('password.index');
    Route::post('password/update', [ProfileController::class, 'passwordUpdate'])->name('password.update');

    //---------------------- Compare Manager --------------------//
    Route::get('compare', [CompareManagerController::class, 'index'])->name('compare.index');
    Route::post('compare/get-data', [CompareManagerController::class, 'getData'])->name('compare.get-data');
    Route::get('compare/data', [CompareManagerController::class, 'compareData'])->name('compare.data');

    //---------------------- Team Member --------------------//
    Route::get('team-members',[MemberController::class, 'index'])->name('team-member.index');
    Route::post('team-members/get-data',[MemberController::class, 'getData'])->name('team-member.get-data');

    //--------------------- Target ----------------------//
    Route::resource('targets',TargetController::class)->except('destroy','show');
    Route::post('targets/get-data',[TargetController::class, 'getData'])->name('targets.get-data');
    Route::post('targets/destroy',[TargetController::class, 'destroy'])->name('targets.destroy');

    //-------------------- Dashboard Filter --------------------//
    Route::get('filter',[DashboardController::class, 'filter'])->name('dashboard.filter');

});



Zerion Mini Shell 1.0