%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/ccd-ind-code/routes/
Upload File :
Create Path :
Current File : /home/silvzytp/ccd-ind-code/routes/member.php

<?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CallingController;
use App\Http\Controllers\Backend\AgentController;
use App\Http\Controllers\Backend\CompareController;
use App\Http\Controllers\Backend\SupportController;
use App\Http\Controllers\Backend\Member\RoleController;
use App\Http\Controllers\Backend\CallingStatusController;
use App\Http\Controllers\Backend\Member\MemberController;
use App\Http\Controllers\Backend\Member\ProfileController;
use App\Http\Controllers\Backend\CallingSubStatusController;
use App\Http\Controllers\Backend\Member\DashboardController;
use App\Http\Controllers\Backend\ManagerController as ManagerControllerName;
use App\Http\Controllers\Backend\Module\FreshCall\CampaignController;
use App\Http\Controllers\Backend\Module\FreshCall\FreshLeadController;
use App\Http\Controllers\Backend\ExportController;

//-------------------- Member Group ----------------------//
Route::prefix('portal')->name('app.')->middleware('auth','is_member','is_status','permission')->group(function(){
    //------------------ Dashboard -----------------//
    Route::get('/', [DashboardController::class,'dashboard'])->name('dashboard');
    // Dashboard Datatable
    Route::get('panel/{param}',[DashboardController::class, 'dashboardBoxData'])->name('dashboard.box-data');

    
    //-------------------- Dashboard Filter --------------------//
    Route::post('filter',[DashboardController::class, 'filter'])->name('dashboard.filter');
    
    //---------------------- Role ---------------------//
    Route::resource('roles', RoleController::class)->only(['index','edit','update']);
    Route::post('roles/destroy', [RoleController::class, 'destroy'])->name('roles.destroy');

    //---------------------- Manager Manage -------------------//
    Route::resource('managers', ManagerControllerName::class)->except('show','destroy');
    Route::post('managers/destroy/data/delete', [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/data/delete',[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');

    //---------------------- 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');

    //---------------------- Calling Status --------------------//
    Route::resource('status', CallingStatusController::class)->except('show','destroy');
    Route::post('status/destroy', [CallingStatusController::class, 'destroy'])->name('status.destroy');

    //---------------------- Calling Sub-Status --------------------//
    Route::resource('sub-status', CallingSubStatusController::class)->except('show','destroy');
    Route::post('sub-status/destroy', [CallingSubStatusController::class, 'destroy'])->name('sub-status.destroy');

    //---------------------- Calling --------------------//
    Route::resource('callings', CallingController::class)->except('show','destroy');
    Route::post('callings/get-data', [CallingController::class, 'getData'])->name('callings.get-data');
    Route::post('callings/destroy', [CallingController::class, 'destroy'])->name('callings.destroy');
    Route::post('callings/import', [CallingController::class, 'import'])->name('callings.import');
    Route::post('callings/bulk-operation', [CallingController::class, 'bulkOperation'])->name('callings.bulk-operation');
    Route::post('callings/select-status', [CallingController::class, 'selectStatus'])->name('callings.status.get-data');
    Route::post('callings/status-selected', [CallingController::class, 'statusSelected'])->name('callings.status.selected');
    Route::get('callings/lead-pool', [CallingController::class, 'callingReject'])->name('callings.reject');
    Route::post('callings/read-pool/get-data', [CallingController::class, 'readPoolGetData'])
        ->name('callings.reject.get-data');
    Route::post('callings/read-pool/operation', [CallingController::class, 'readPoolOperation'])
        ->name('callings.read-pool.operation');
    Route::post('callings/time', [CallingController::class, 'callingTime'])
        ->name('callings.time');
    // Export Route
    Route::post('callings/export', [ExportController::class, 'export'])->name('callings.export');
    Route::post('manager/callings/export', [ExportController::class, 'managerExport'])->name('manager.callings.export');
    
    Route::get('import/calling', [CallingController::class, 'managerImportgetData'])->name('import.callings.get-data');
        
    //---------------------- Reject Calling -------------------//
    Route::get('callings/transfer', [CallingController::class, 'callingTransfer'])->name('callings.transfer');
    Route::post('callings/transfer/get-data', [CallingController::class, 'callingTransferGetData'])->name('callings.transfer.get-data');

    //--------------------- Compare -------------------//
    Route::get('compare', [CompareController::class, 'index'])->name('compare.index');
    Route::post('compare/get-data', [CompareController::class, 'getData'])->name('compare.get-data');
    Route::get('compare/filter', [CompareController::class, 'filter'])->name('compare.filter');
    //-------------------- File Compare -----------------//
    Route::get('file/compare', [CompareController::class, 'fileCompareForm'])->name('file.compare.index');
    Route::get('file/compare/pie-chart', [CompareController::class, 'fileCompareFilter'])->name('file.compare.filter');

    //---------------------- Agent Calling -------------------//
    Route::post('agent/callings/get-data', [CallingController::class, 'agentGetData'])->name('callings.agent.get-data');
    Route::post('agent/callings/edit', [CallingController::class, 'callingAgentEdit'])
        ->name('callings.agent.edit');
    Route::post('agent/callings/update', [CallingController::class, 'callingAgentUpdate'])
        ->name('callings.agent.update');

    //---------------------- Notification ---------------------//
    Route::get('notification/read-all',function(){
        Auth::user()->unreadNotifications->markAsRead();
        return back();
    })->name('notification.read-all');

    //--------------------- Support -------------------//
    Route::post('supoort/message', [SupportController::class, 'support'])->name('support.message');

});



Zerion Mini Shell 1.0