replace path modules to apps

This commit is contained in:
cuneytsenturk
2017-11-01 22:15:25 +03:00
parent cfbd5eba59
commit d7f53b52c1
22 changed files with 82 additions and 89 deletions

View File

@ -17,6 +17,6 @@ class OfflinePaymentAdminMenu
// Add child to existing item
$item = $event->menu->whereTitle(trans_choice('general.settings', 2));
$item->url('modules/offlinepayment/settings', trans('offlinepayment::offlinepayment.offlinepayment'), 4, ['icon' => 'fa fa-angle-double-right']);
$item->url('apps/offlinepayment/settings', trans('offlinepayment::offlinepayment.offlinepayment'), 4, ['icon' => 'fa fa-angle-double-right']);
}
}

View File

@ -60,7 +60,7 @@ class Settings extends Controller
Artisan::call('cache:clear');
return redirect('modules/offlinepayment/settings');
return redirect('apps/offlinepayment/settings');
}
/**

View File

@ -1,6 +1,6 @@
<?php
Route::group(['middleware' => ['web', 'auth', 'language', 'adminmenu', 'permission:read-admin-panel'], 'prefix' => 'modules/offlinepayment', 'namespace' => 'Modules\OfflinePayment\Http\Controllers'], function () {
Route::group(['middleware' => ['web', 'auth', 'language', 'adminmenu', 'permission:read-admin-panel'], 'prefix' => 'apps/offlinepayment', 'namespace' => 'Modules\OfflinePayment\Http\Controllers'], function () {
Route::get('settings', 'Settings@edit');
Route::post('settings', 'Settings@update');
Route::post('settings/get', 'Settings@get');

View File

@ -11,7 +11,7 @@
</div>
<!-- /.box-header -->
{!! Form::open(['url' => 'modules/offlinepayment/settings', 'files' => true, 'role' => 'form']) !!}
{!! Form::open(['url' => 'apps/offlinepayment/settings', 'files' => true, 'role' => 'form']) !!}
<div class="box-body">
<div id="install-loading"></div>
@ -27,7 +27,7 @@
<!-- /.box-body -->
<div class="box-footer">
{{ Form::saveButtons('modules/offlinepayment/settings') }}
{{ Form::saveButtons('apps/offlinepayment/settings') }}
</div>
<!-- /.box-footer -->
@ -114,7 +114,7 @@
var code = $(this).attr('id').replace('edit-', '');
$.ajax({
url: '{{ url("modules/offlinepayment/settings/get") }}',
url: '{{ url("apps/offlinepayment/settings/get") }}',
type: 'post',
dataType: 'json',
data: {code: code},
@ -149,7 +149,7 @@
var code = $(this).attr('id').replace('delete-', '');
$.ajax({
url: '{{ url("modules/offlinepayment/settings/delete") }}',
url: '{{ url("apps/offlinepayment/settings/delete") }}',
type: 'post',
dataType: 'json',
data: {code: code},