NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
use GuzzleHttpClient;
use IlluminateHttpRequest;

/*
|--------------------------------------------------------------------------
| 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!
|
*/

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

Artisan::call('view:clear');

dd("Cache is cleared");

});


Route::get('outlets', function (Request $request) {




$lastsyncid= $request->lastsyncid;
$pageid=$request->pageid;


// $url='https://api.fieldassist.in/api/data/stockAndSales/list?lastSyncedId='.$lastsyncid.'&pageSize='.$pageid;
// // dd($url);
// if(!$lastsyncid)
// {
// echo 'please provide lastsyncid'; exit();
// }
// if(!$pageid)
// {
// echo 'please requestid pageid'; exit();
// }
for ($i=0; $i < 10000; $i++) {
# code...
// exit();
$cards = DB::select("SELECT ShopId,id FROM outlets ORDER BY ShopId desc LIMIT 1");
$AttendanceId=$cards['0']->ShopId;
// $AttendanceId=1;
$url='https://api.fieldassist.in/api/masterdata/outlets?epoch=0&requestId='.$AttendanceId;
$client = new Client();

$response = $client->get($url, [
'auth' => [
'FA_11544',
'lv9UCd#IaeCO9pcW9LK('
]
]);
$json=json_decode($response->getBody(), true);
// dd($json);
foreach($json as $subdata)
{
// dd($subdata);
// dd($subdata['NSM']);
// dd($subdata);
if($subdata['DistributorErpIds']!=null)
{
$array=$subdata['DistributorErpIds'];
$string= implode(',',$array);
}else{
$string=null;
}
// dd($subdata);
// dd($string);
$hello= DB::table('outlets')->insert(
['ShopId' => $subdata['ShopId'],
'Zone' => $subdata['Zone'],
'Region'=> $subdata['Region'],
'Territory' => $subdata['Territory'],
'ShopName'=> $subdata['ShopName'],
'OutletErpId'=> $subdata['OutletErpId'],
'BeatName' => $subdata['BeatName'],
'BeatErpId'=> $subdata['BeatErpId'],
'OwnerName' => $subdata['OwnerName'],
'Contact'=> $subdata['Contact'],
'Email' => $subdata['Email'],
'DistributorErpId' => $subdata['DistributorErpId'],
'CreatedAt' => $subdata['CreatedAt'],
'Address'=> $subdata['Address'],
'Market' => $subdata['Market'],
'SubCity'=> $subdata['SubCity'],
'City'=> $subdata['City'],
'State'=> $subdata['State'],
'Pincode' => $subdata['Pincode'],
'GSTregistered' => $subdata['GSTregistered'],
'GSTIN' => $subdata['GSTIN'],
'Channel' => $subdata['Channel'],
'ShopType' => $subdata['ShopType'],
'Segmentation' => $subdata['Segmentation'],
'ShopTypeErpId' => $subdata['ShopTypeErpId'],
'CustomChannel'=> $subdata['CustomChannel'],
'ChannelErpId'=> $subdata['ChannelErpId'],
'Aadhar' => $subdata['Aadhar'],
'PAN' => $subdata['PAN'],
'AttributeText1' => $subdata['AttributeText1'],
'AttributeText2' => $subdata['AttributeText2'],
'AttributeText3' => $subdata['AttributeText3'],
'BankAccountNumber'=> $subdata['BankAccountNumber'],
'IFSCCode' => $subdata['IFSCCode'],
'AccountHoldersName' => $subdata['AccountHoldersName'],
'LastUpdatedAt'=> $subdata['LastUpdatedAt'],
'IsBlocked' => $subdata['IsBlocked'],
'IsNew' => $subdata['IsNew'],
'OutletGuid'=> $subdata['OutletGuid'],
'AttributeText4' => $subdata['AttributeText4'],
'AttributeNumber1'=> $subdata['AttributeNumber1'],
'AttributeNumber2' => $subdata['AttributeNumber2'],
'AttributeNumber3'=> $subdata['AttributeNumber3'],
'AttributeNumber4' => $subdata['AttributeNumber4'],

'AttributeBoolean1' => $subdata['AttributeBoolean1'],
'AttributeBoolean2' => $subdata['AttributeBoolean2'],
'AttributeDate1'=> $subdata['AttributeDate1'],
'AttributeDate2' => $subdata['AttributeDate2'],
'PlaceOfDelivery'=> $subdata['PlaceOfDelivery'],
'DistributorErpIds'=> $string,





]
);
// dd('entred');
}
$i++;
}
dd('entered');
// dd($json);
$json=$response->getBody()->getContents();
$jsonencoded=json_encode($json);

// dd(json_encode($json));
// dd
echo gettype($jsonencoded);exit();
dd(count($jsonencoded));
dd($response->getBody());
dd($json);
$statuscod=$response->getStatusCode();
echo $json;exit();
$insert=DB::table('fieldassist')->insert(
['json' => $json, 'status' => $statuscod,'epoch'=>$epoch,'requestid'=>$requestid]
);
dd('data saved!');

if ($res->getStatusCode() == 200) { // 200 OK
$response_data = $res->getBody()->getContents();
dd($response_data);
}
dd($client);

Artisan::call('view:clear');

dd("Cache is cleared");

});


Route::get('dowhilesave', function (Request $request) {



});


Route::get('save-data1', function (Request $request) {

if($request->cronjob==13)
{
// dd('entered cron job');
$lastsyncid= $request->lastsyncid;
$pageid=$request->pageid;


// }
for ($i=0; $i < 10000; $i++) {


$cards = DB::select("SELECT AttendanceId,id FROM tb_sales ORDER BY AttendanceId desc LIMIT 1");
$AttendanceId=$cards['0']->AttendanceId;
$url='https://api.fieldassist.in/api/data/stockAndSales/list?lastSyncedId='.$AttendanceId.'&pageSize=100';

$client = new Client();

$response = $client->get($url, [
'auth' => [
'FA_11544',
'lv9UCd#IaeCO9pcW9LK('
]
]);
$json=json_decode($response->getBody(), true);
foreach($json as $subdata)
{

$hello= DB::table('tb_sales')->insert(
['NSM' => $subdata['NSM'],
'ASM' => $subdata['ASM'],
'RSM'=> $subdata['RSM'],
'ZSM' => $subdata['ZSM'],
'GSM'=> $subdata['GSM'],
'ESM'=> $subdata['ESM'],
'Level8Position' => $subdata['Level8Position'],
'Level8PositionCode'=> $subdata['Level8PositionCode'],
'Level7Position' => $subdata['Level7Position'],
'Level7PositionCode'=> $subdata['Level7PositionCode'],
'Level6Position' => $subdata['Level6Position'],
'Level6PositionCode' => $subdata['Level6PositionCode'],
'Level5Position' => $subdata['Level5Position'],
'Level5PositionCode'=> $subdata['Level5PositionCode'],
'Level4Position' => $subdata['Level4Position'],
'Level4PositionCode'=> $subdata['Level4PositionCode'],
'Level3Position'=> $subdata['Level3Position'],
'Level3PositionCode'=> $subdata['Level3PositionCode'],
'Level2Position' => $subdata['Level2Position'],
'Level2PositionCode' => $subdata['Level2PositionCode'],
'Level1Position' => $subdata['Level1Position'],
'Level1PositionCode' => $subdata['Level1PositionCode'],
'ESMErpId' => $subdata['ESMErpId'],
'ESMRank' => $subdata['ESMRank'],
'ESMHQ' => $subdata['ESMHQ'],
'ESMDesignation'=> $subdata['ESMDesignation'],
'Region'=> $subdata['Region'],
'Zone' => $subdata['Zone'],
'Beat' => $subdata['Beat'],
'BeatErpId' => $subdata['BeatErpId'],
'Territory' => $subdata['Territory'],
'Shop' => $subdata['Shop'],
'ShopErpId'=> $subdata['ShopErpId'],
'ShopOwnersName' => $subdata['ShopOwnersName'],
'ShopOwnersNo' => $subdata['ShopOwnersNo'],
'ShopAddress'=> $subdata['ShopAddress'],
'ShopMarket' => $subdata['ShopMarket'],
'ShopCity' => $subdata['ShopCity'],
'ShopState'=> $subdata['ShopState'],
'ShopType' => $subdata['ShopType'],
'ShopSegmentation'=> $subdata['ShopSegmentation'],
'ChannelName' => $subdata['ChannelName'],
'ChannelErpId'=> $subdata['ChannelErpId'],
'ShopIsFocussed' => $subdata['ShopIsFocussed'],
'AttendanceId'=> $subdata['AttendanceId'],
'VisitGuid' => $subdata['VisitGuid'],
'OrderDate' => $subdata['OrderDate'],
'OrderTime'=> $subdata['OrderTime'],
'NoSalesReason' => $subdata['NoSalesReason'],
'InvoiceNumber'=> $subdata['InvoiceNumber'],
'IsTelephonic'=> $subdata['IsTelephonic'],
'IsProductive' => $subdata['IsProductive'],
'IsSchemeEffective' => $subdata['IsSchemeEffective'],
'IsOutOfTurn' => $subdata['IsOutOfTurn'],
'OutOfCompliance'=> $subdata['OutOfCompliance'],
'OrderType'=> $subdata['OrderType'],
'ProductStandardUnitConversionFactor'=> $subdata['ProductStandardUnitConversionFactor'],
'ProductStandardUnit'=> $subdata['ProductStandardUnit'],
'ProductUnit' => $subdata['ProductUnit'],
'ProductErpId' => $subdata['ProductErpId'],
'ProductName'=> $subdata['ProductName'],
'SecondaryCategory'=> $subdata['SecondaryCategory'],
'PrimaryCategory'=> $subdata['PrimaryCategory'],
'MOQ' => $subdata['MOQ'],
'CloseToExpiry' => $subdata['CloseToExpiry'],
'StockQuantity'=> $subdata['StockQuantity'],
'StockChange' => $subdata['StockChange'],
'SaleId'=> $subdata['SaleId'],
'SuggestedQuantity'=> $subdata['SuggestedQuantity'],
'ReturnQty' => $subdata['ReturnQty'],
'OrderInUnits'=> $subdata['OrderInUnits'],
'DispatchInUnits' => $subdata['DispatchInUnits'],
'DispatchRemark'=> $subdata['DispatchRemark'],
'DispatchDate' => $subdata['DispatchDate'],
'DispatchStatus' => $subdata['DispatchStatus'],
'PTR'=>$subdata['PTR'],
'OriginalPTR'=>$subdata['OriginalPTR'],
'SchemeDiscount'=> $subdata['SchemeDiscount'],
'ProductWiseDiscount'=> $subdata['ProductWiseDiscount'],
'ProductIsFocussed'=> $subdata['ProductIsFocussed'],
'ProductIsPromoted' => $subdata['ProductIsPromoted'],
'ProductIsRecommended' => $subdata['ProductIsRecommended'],
'ProductIsFastMoving' => $subdata['ProductIsFastMoving'],
'CGST' => $subdata['CGST'],
'SGST' => $subdata['SGST'],
'IGST' => $subdata['IGST'],
'FAUnifySource'=> $subdata['FAUnifySource'],





]
);

}
$i++;
}
}else{
print_r('cronjob mismatch');exit();
}
print_r('completed the job');exit();


});



Route::get('save-data3', function (Request $request) {

// dd('entered');


$lastsyncid= $request->lastsyncid;
$pageid=$request->pageid;


// $url='https://api.fieldassist.in/api/data/stockAndSales/list?lastSyncedId='.$lastsyncid.'&pageSize='.$pageid;
// // dd($url);
// if(!$lastsyncid)
// {
// echo 'please provide lastsyncid'; exit();
// }
// if(!$pageid)
// {
// echo 'please requestid pageid'; exit();
// }
for ($i=0; $i < 1; $i++) {
# code...

$cards = DB::select("SELECT AttendanceId,id FROM persons ORDER BY AttendanceId desc LIMIT 1");
$AttendanceId=$cards['0']->AttendanceId;
$url='https://api.fieldassist.in/api/data/stockAndSales/list?lastSyncedId=1&pageSize=100';
// dd($AttendanceId);
// dd('enterd');

// dd($url);

// dd('entered');
$client = new Client();

$response = $client->get($url, [
'auth' => [
'FA_11544',
'lv9UCd#IaeCO9pcW9LK('
]
]);
$json=json_decode($response->getBody(), true);
foreach($json as $subdata)
{
dd($subdata);
// dd($subdata['NSM']);
dd('emtered');
$hello= DB::table('persons1')->insert(
['NSM' => $subdata['NSM'],
'ASM' => $subdata['ASM'],
'RSM'=> $subdata['RSM'],
'ZSM' => $subdata['ZSM'],
'GSM'=> $subdata['GSM'],
'ESM'=> $subdata['ESM'],
'Level8Position' => $subdata['Level8Position'],
'Level8PositionCode'=> $subdata['Level8PositionCode'],
'Level7Position' => $subdata['Level7Position'],
'Level7PositionCode'=> $subdata['Level7PositionCode'],
'Level6Position' => $subdata['Level6Position'],
'Level6PositionCode' => $subdata['Level6PositionCode'],
'Level5Position' => $subdata['Level5Position'],
'Level5PositionCode'=> $subdata['Level5PositionCode'],
'Level4Position' => $subdata['Level4Position'],
'Level4PositionCode'=> $subdata['Level4PositionCode'],
'Level3Position'=> $subdata['Level3Position'],
'Level3PositionCode'=> $subdata['Level3PositionCode'],
'Level2Position' => $subdata['Level2Position'],
'Level2PositionCode' => $subdata['Level2PositionCode'],
'Level1Position' => $subdata['Level1Position'],
'Level1PositionCode' => $subdata['Level1PositionCode'],
'ESMErpId' => $subdata['ESMErpId'],
'ESMRank' => $subdata['ESMRank'],
'ESMHQ' => $subdata['ESMHQ'],
'ESMDesignation'=> $subdata['ESMDesignation'],
'Region'=> $subdata['Region'],
'Zone' => $subdata['Zone'],
'Beat' => $subdata['Beat'],
'BeatErpId' => $subdata['BeatErpId'],
'Territory' => $subdata['Territory'],
'Shop' => $subdata['Shop'],
'ShopErpId'=> $subdata['ShopErpId'],
'ShopOwnersName' => $subdata['ShopOwnersName'],
'ShopOwnersNo' => $subdata['ShopOwnersNo'],
'ShopAddress'=> $subdata['ShopAddress'],
'ShopMarket' => $subdata['ShopMarket'],
'ShopCity' => $subdata['ShopCity'],
'ShopState'=> $subdata['ShopState'],
'ShopType' => $subdata['ShopType'],
'ShopSegmentation'=> $subdata['ShopSegmentation'],
'ChannelName' => $subdata['ChannelName'],
'ChannelErpId'=> $subdata['ChannelErpId'],
'ShopIsFocussed' => $subdata['ShopIsFocussed'],
'AttendanceId'=> $subdata['AttendanceId'],
'VisitGuid' => $subdata['VisitGuid'],
'OrderDate' => $subdata['OrderDate'],
'OrderTime'=> $subdata['OrderTime'],
'NoSalesReason' => $subdata['NoSalesReason'],
'InvoiceNumber'=> $subdata['InvoiceNumber'],
'IsTelephonic'=> $subdata['IsTelephonic'],
'IsProductive' => $subdata['IsProductive'],
'IsSchemeEffective' => $subdata['IsSchemeEffective'],
'IsOutOfTurn' => $subdata['IsOutOfTurn'],
'OutOfCompliance'=> $subdata['OutOfCompliance'],
'OrderType'=> $subdata['OrderType'],
'ProductStandardUnitConversionFactor'=> $subdata['ProductStandardUnitConversionFactor'],
'ProductStandardUnit'=> $subdata['ProductStandardUnit'],
'ProductUnit' => $subdata['ProductUnit'],
'ProductErpId' => $subdata['ProductErpId'],
'ProductName'=> $subdata['ProductName'],
'SecondaryCategory'=> $subdata['SecondaryCategory'],
'PrimaryCategory'=> $subdata['PrimaryCategory'],
'MOQ' => $subdata['MOQ'],
'CloseToExpiry' => $subdata['CloseToExpiry'],
'StockQuantity'=> $subdata['StockQuantity'],
'StockChange' => $subdata['StockChange'],
'SaleId'=> $subdata['SaleId'],
'SuggestedQuantity'=> $subdata['SuggestedQuantity'],
'ReturnQty' => $subdata['ReturnQty'],
'OrderInUnits'=> $subdata['OrderInUnits'],
'DispatchInUnits' => $subdata['DispatchInUnits'],
'DispatchRemark'=> $subdata['DispatchRemark'],
'DispatchDate' => $subdata['DispatchDate'],
'DispatchStatus' => $subdata['DispatchStatus'],
'PTR'=>$subdata['PTR'],
'OriginalPTR'=>$subdata['OriginalPTR'],
'SchemeDiscount'=> $subdata['SchemeDiscount'],
'ProductWiseDiscount'=> $subdata['ProductWiseDiscount'],
'ProductIsFocussed'=> $subdata['ProductIsFocussed'],
'ProductIsPromoted' => $subdata['ProductIsPromoted'],
'ProductIsRecommended' => $subdata['ProductIsRecommended'],
'ProductIsFastMoving' => $subdata['ProductIsFastMoving'],
'CGST' => $subdata['CGST'],
'SGST' => $subdata['SGST'],
'IGST' => $subdata['IGST'],
'FAUnifySource'=> $subdata['FAUnifySource'],





]
);
dd('entred');
// dd($hello);
}
$i++;
}
dd('entered');
// dd($json);
$json=$response->getBody()->getContents();
$jsonencoded=json_encode($json);

// dd(json_encode($json));
// dd
echo gettype($jsonencoded);exit();
dd(count($jsonencoded));
dd($response->getBody());
dd($json);
$statuscod=$response->getStatusCode();
echo $json;exit();
$insert=DB::table('fieldassist')->insert(
['json' => $json, 'status' => $statuscod,'epoch'=>$epoch,'requestid'=>$requestid]
);
dd('data saved!');

if ($res->getStatusCode() == 200) { // 200 OK
$response_data = $res->getBody()->getContents();
dd($response_data);
}
dd($client);

Artisan::call('view:clear');

dd("Cache is cleared");

});

Route::get('save-data', function (Request $request) {
$epoch= $request->epoch;
$requestid=$request->requestid;
$url='https://api.fieldassist.in/api/masterdata/outlets?epoch='.$requestid.'&requestId='.$requestid;
if(!$epoch)
{
echo 'please provide epoch'; exit();
}
if(!$requestid)
{
echo 'please requestid epoch'; exit();
}

// dd($url);

// dd('entered');
$client = new Client();

$response = $client->get($url, [
'auth' => [
'FA_11544',
'lv9UCd#IaeCO9pcW9LK('
]
]);
$json=$response->getBody()->getContents();
$statuscod=$response->getStatusCode();
$insert=DB::table('fieldassist')->insert(
['json' => $json, 'status' => $statuscod,'epoch'=>$epoch,'requestid'=>$requestid]
);
dd('data saved!');

if ($res->getStatusCode() == 200) { // 200 OK
$response_data = $res->getBody()->getContents();
dd($response_data);
}
dd($client);

Artisan::call('view:clear');

dd("Cache is cleared");

});
Route::get('/clear-cache', function() {
$exitCode = Artisan::call('cache:clear');
// return what you want
});
Route::get('/getlangdir', 'SwitchLanguageController@getLanguage');
Route::get('/switchLang/{lang}', 'SwitchLanguageController@switchLang')->name('switch.language');

Route::group(['middleware' => ['installChecker','locale']], function() {
// Authentication Routes...
Route::get('login', 'AuthLoginController@showLoginForm')->name('login');
Route::post('login', 'AuthLoginController@login');

// Registration Routes...
Route::get('register', 'AuthRegisterController@showRegistrationForm')->name('register');
Route::post('register', 'AuthRegisterController@register');
});

Route::group(['middleware' => ['installChecker','locale']], function() {
Route::get('/', 'AuthLoginController@showLoginForm')->name('homePage');
Route::get('contact-us', 'ContactController@index')->name('contactPage');
Route::post('contact-store', 'ContactController@store')->name('contactStore');

Route::get('/knowledge','KnowledgeBaseController@KnowledgeBaseIndex')->name('KnowledgeBaseIndex');
Route::get('/knowledge/{id}.details','KnowledgeBaseController@viewArticle')->name('Knowledge.viewArticle');
Route::post('/knowledge-search','KnowledgeBaseController@searchArticles')->name('Knowledge.searchArticles');
Route::get('/knowledge-pinned/{id}','KnowledgeBaseController@pinnedArticle')->name('Knowledge.pinnedArticle');
Route::get('/category/{category}','KnowledgeBaseController@categoryPost')->name('Knowledge.categoryPost');
Route::post('/kb-vote/{id}','VoteController@KBvoteYes')->name('KBvoteYes');

//Auth::routes();
// Route::get('password/reset/{token}', 'AuthResetPasswordController@resetForm');

Route::get('password/reset','AuthForgotPasswordController@showLinkRequestForm')->name('passwordRequest');
Route::post('reset-password', 'AuthForgotPasswordController@recoverResetLinkEmail')->name('passwordReset');

Route::get('/home', 'HomeController@index')->name('home');
Route::get('/about-us', 'HomeController@aboutusPage')->name('aboutusPage');

Route::get('readuserid','HomeController@userid')->name('useridread');

// Password Reset Routes...
Route::get('password/reset/{token}', 'AuthResetPasswordController@showResetForm');
Route::post('password/reset', 'AuthResetPasswordController@reset')->name('password.request');


Route::resource('email-template','AdminEmailTemplateController');
});

Route::group(['middleware' => ['auth','installChecker','locale']], function() {
Route::post('logout', 'AuthLoginController@logout')->name('logout');
Route::get('/logout', 'AuthLoginController@logout')->name('logout');
});

Route::group(['middleware' => ['auth','installChecker','locale']], function() {

//dashboard
Route::get('dashboard','DashboardController@dashboard')->name('dashboard');

Route::get('readmail','CommentsMailReaderController@readcomment')->name('dashboard1');

Route::get('count', 'NotificationController@count');
Route::post('unread/{id}', 'NotificationController@update')->name('unread');
Route::post('unreadall', 'NotificationController@viewall')->name('unreadall');
Route::get('countup/{id}', 'NotificationController@countUp');

//tickets route
// Route::get('add-new-ticket', 'TicketsController@create')->name('submit-new-ticket.create');
Route::get('add-new-ticket', 'TicketsController@create')->name('submit-new-ticket.create');
Route::post('new-ticket-store', 'TicketsController@store')->name('new-ticket-store.store');
Route::get('monthly-summory', 'TicketsController@summory')->name('submit-new-ticket.creates');
Route::get('ticket/{ticket_id}', 'TicketsController@show')->name('ticket.show');
Route::get('tickets', 'TicketsController@index')->name('tickets.index');
Route::get('customer-report', 'TicketsController@customerindex')->name('ticketscx.index');
Route::get('health-dashboard', 'TicketsController@healthdashboard')->name('t.healthdashboard');
Route::get('generate-report', 'TicketsController@report')->name('tickets.report');
Route::get('generate-reports', 'TicketsController@genreport')->name('tickets.reports');
Route::get('download-report', 'TicketsController@downloadreport')->name('tickets.reportsdownload');
Route::get('opened-tickets', 'TicketsController@openedTickets')->name('opened-tickets.openedTickets');
Route::get('closed-tickets', 'TicketsController@ClosedTickets')->name('closed-tickets.ClosedTickets');
Route::post('close_ticket/{ticket_id}', 'TicketsController@close')->name('close_ticket.close');
Route::post('reopen/{ticket_id}', 'TicketsController@reOpen')->name('ticketReOpen');
Route::get('notifications', 'NotificationController@allNotification')->name('allNotification');
//ticket data
Route::get('get-ticket-data', 'TicketsController@getTicketData')->name('getTicketData');
Route::get('get-ticket-data1', 'TicketsController@getfilter')->name('getTicketData1');
Route::get('get-ticket-data2', 'TicketsController@getCustomerData')->name('getTicketData2');
Route::get('ticket-assign-to/{id}', 'TicketsController@assignTo')->name('assignTo');
Route::get('get-information-ajax/{id}', 'TicketsController@getinformation')->name('assignTo');
Route::post('ticket-assigned/{id}', 'TicketsController@assignToDepartment')->name('assignToDepartment');


Route::post('comment', 'CommentsController@postComment')->name('comment.postComment');
//staff route
Route::get('staffs', 'AdminController@staffList')->name('staffs.staffList');
Route::get('users', 'AdminController@userList')->name('users.userList');
Route::get('sla', 'AdminController@SLAlist')->name('SLA.SLAlist');
Route::get('usersforclient', 'AdminController@userforclientlist')->name('users.userforclientList');
Route::get('packagehistory', 'AdminController@packagehistory')->name('users.packagehistory');
Route::get('subusers', 'AdminController@subuserList')->name('users.subuserList'); //userlist
Route::get('staff-edit/{id}', 'AdminController@staffEdit')->name('staff-edit.staffEdit');
Route::get('floormanager-edit/{id}', 'AdminController@ManagerEdit')->name('floormanager-edit.staffEdit');
Route::post('staff-update/{id}', 'AdminController@staffUpdate')->name('staff-update.staffUpdate');
Route::post('staff-update1/{id}', 'AdminController@ManagerUpdate')->name('staff-update.ManagerUpdate');
Route::get('add-staff', 'AdminController@createStaff')->name('add-staff.createStaff');
Route::post('save-staff', 'AdminController@saveStaff')->name('save-staff.saveStaff');
Route::post('staff-status/{id}', 'AdminController@action')->name('staff-status.action');

//department route
Route::get('/departments', 'DepartmentsController@index')->name('departments.index');
Route::get('get-departments-data', 'DepartmentsController@getDepartmentData')->name('getDepartmentData');
Route::get('/department-create', 'DepartmentsController@create')->name('department-create.create');
Route::get('/department/{id}/edit', 'DepartmentsController@edit')->name('department-edit');

Route::get('department', 'DepartmentsController@index')->name('department.index');
Route::get('department/{id}', 'DepartmentsController@departmentTickets')->name('departmentTickets');

Route::post('department-save', 'DepartmentsController@store')->name('department-save.store');
Route::get('department-edit/{id}', 'DepartmentsController@edit')->name('department-edit.edit');
Route::post('department-update/{id}', 'DepartmentsController@update')->name('department-update.update');
Route::delete('department-delete/{id}', 'DepartmentsController@destroy')->name('department-delete.destroy');

//route knowledge
Route::get('knowledge-base','KnowledgeBaseController@index')->name('knowledge-base.index');
Route::get('knowledge-base-create','KnowledgeBaseController@create')->name('knowledge-base-create.create');
Route::post('kb-store','KnowledgeBaseController@store')->name('kb.store');
Route::get('knowledge-base-edit/{id}','KnowledgeBaseController@edit')->name('knowledge-base-edit.edit');
Route::post('kb-update/{id}','KnowledgeBaseController@update')->name('kb.update');
Route::delete('kb-destroy/{id}','KnowledgeBaseController@destroy')->name('kb.destroy');

//profile route
Route::get('profile','ProfileController@index')->name('profile.index');
Route::put('profile-update','ProfileController@profileUpdate')->name('profileUpdate');
Route::post('changed-password','ProfileController@changedPassword')->name('changed-password.changedPassword');

//roles route
Route::get('roles','RoleController@index')->name('roles.index');
Route::get('role-create','RoleController@create')->name('role-create.create');
Route::post('role-save','RoleController@store')->name('role-save.store');
Route::get('role-edit/{id}','RoleController@editPermission')->name('role-edit.editPermission');
Route::post('role-update/{id}','RoleController@update')->name('role-update.update');
Route::delete('role-delete/{id}','RoleController@delete')->name('role-delete.delete');

//settings route
Route::get('app-settings','SettingController@settingIndex')->name('app-settings.settingIndex');
Route::put('app-settings/{setting}','SettingController@appSettingUpdate')->name('appSettingUpdate');
Route::get('email-settings','SettingController@emailSetting')->name('emailSetting');
Route::put('email-settings/{setting}','SettingController@emailSettingUpdate')->name('emailSettingUpdate');

Route::resource('testimonial','AdminTestimonialController');
Route::put('testimonial','AdminTestimonialController@testimonialUpdate')->name('setting.testimonialUpdate');

Route::resource('service','AdminServiceController');
Route::put('service-up','AdminServiceController@servicesUpdate')->name('setting.servicesUpdate');
//how-we-work
Route::resource('how-we-work','AdminHowWorkController');
Route::put('how-we-work','AdminHowWorkController@howWorkUpdate')->name('setting.howWorkUpdate');

//logo icon settings
Route::get('logo-icon','AdminGeneralSettingController@logoIcon')->name('logoIcon.Setting');
Route::put('logo-icon','AdminGeneralSettingController@logoIconUpdate')->name('logoIconUpdate.Setting');
Route::get('social-link','AdminGeneralSettingController@social')->name('social.Setting');
Route::post('social-link','AdminGeneralSettingController@socialAdd')->name('socialAdd.Setting');
Route::put('social-link/{social}','AdminGeneralSettingController@socialUpdate')->name('socialUpdate.Setting');
Route::delete('social-link-delete/{id}','AdminGeneralSettingController@socialDestroy')->name('socialDestroy.Setting');

Route::get('header-text','AdminGeneralSettingController@headerTextSetting')->name('headerTextSetting');
Route::put('header-text/{setting}','AdminGeneralSettingController@headerTextSettingUpdate')->name('headerTextUpSetting');
Route::get('footer-setting','AdminGeneralSettingController@footer')->name('footer.Setting');
Route::put('footer-setting','AdminGeneralSettingController@updateFooter')->name('updateFooter.Setting');

Route::get('aboutus','AdminGeneralSettingController@aboutus')->name('aboutus.Setting');
Route::put('aboutus','AdminGeneralSettingController@updateAboutUs')->name('updateAboutUs.Setting');
Route::get('counter','AdminGeneralSettingController@counter')->name('counter.Setting');
Route::put('counter/{setting}','AdminGeneralSettingController@updateCounter')->name('updateCounter.Setting');
//inbox
Route::get('inbox','AdminAdminController@contactMessage')->name('contactMessage');
Route::get('read-messgae/{contact}','AdminAdminController@readMessage')->name('readMessage');
Route::delete('delete-messgae/{contact}','AdminAdminController@destroy')->name('message.destroy');
//custom fields
Route::get('custom-fields','AdminCustomFieldController@index')->name('CustomFields');
Route::get('get-custom-field-data', 'AdminCustomFieldController@getCustomFieldData')->name('getCustomFieldData');
Route::post('custom-field-store','AdminCustomFieldController@store')->name('CustomFieldStore');
Route::get('custom-field/{id}/edit', 'AdminCustomFieldController@edit')->name('CustomFieldEdit');
Route::post('custom-field-update/{id}', 'AdminCustomFieldController@update')->name('CustomFieldUpdate');
Route::delete('custom-field-delete/{id}', 'AdminCustomFieldController@destroy')->name('CustomFieldDelete');
Route::get('custom-fields/{id}/options', 'AdminCustomFieldController@fieldOptions')->name('CustomFieldOptions');
Route::get('get-options-field-data/{id}', 'AdminCustomFieldController@fieldOptionsData')->name('fieldOptionsData');
Route::get('option-field/{id}/edit', 'AdminCustomFieldController@optionEdit')->name('optionEdit');
Route::post('custom-field-store/{id}/option', 'AdminCustomFieldController@storeOption')->name('CustomFieldOptionStore');
Route::post('custom-field-update-option/{id}', 'AdminCustomFieldController@updateOption')->name('updateOption');
//sub user
Route::get('subusers/create','AdminAdminController@createSubUser')->name('createSubUser');
Route::get('userforclients/create','AdminAdminController@createusersforclient')->name('usersforclient');
Route::post('userforclients-store','AdminAdminController@saveusersforclients')->name('saveuserforclient');
Route::post('subuser-store','AdminAdminController@saveSubUser')->name('saveSubUser');
//user create
Route::get('users/create','AdminAdminController@createUser')->name('createUser');
Route::get('sla/create','AdminAdminController@createsla')->name('createsla');
Route::post('user-store','AdminAdminController@saveUser')->name('saveUser');
Route::post('sla-store','AdminAdminController@savesla')->name('savesla');
Route::get('user/{id}/edit','AdminAdminController@userEdit')->name('userEdit');
Route::get('sla/{id}/edit','AdminAdminController@slaEdit')->name('slaEdit');

Route::get('userforclient/{id}/edit','AdminAdminController@userforclientedit')->name('userforclientedit');

Route::get('subuser/{id}/edit','AdminAdminController@subuserEdit')->name('subuserEdit');
Route::get('packageuser/{id}/edit','AdminAdminController@packageuseredit')->name('packageuseredit');

Route::put('subuser-update/{id}','AdminAdminController@subuserUpdate')->name('subuserUpdate');
Route::put('user-update/{id}','AdminAdminController@userUpdate')->name('userUpdate');
Route::put('sla-update/{id}','AdminAdminController@slaUpdate')->name('slaUpdate');
Route::put('userforclient-update/{id}','AdminAdminController@userforclientupdate')->name('userforclientUpdate');
Route::put('packageuser-update/{id}','AdminAdminController@packageuserUpdate')->name('userpackageUpdate');
});

Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
UniSharpLaravelFilemanagerLfm::routes();
});
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.