@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | 'rescheduled' => 'fa-calendar-week', |
| 44 | 44 | 'canceled' => 'fa-calendar-times', |
| 45 | 45 | 'finished' => 'fa-calendar-check', |
| 46 | - ][$this->value]; |
|
| 46 | + ][ $this->value ]; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -60,6 +60,6 @@ discard block |
||
| 60 | 60 | 'rescheduled' => 'warning', |
| 61 | 61 | 'canceled' => 'danger', |
| 62 | 62 | 'finished' => 'success', |
| 63 | - ][$this->value]; |
|
| 63 | + ][ $this->value ]; |
|
| 64 | 64 | } |
| 65 | 65 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function scopeWhereHasDenomination(Builder $query, Denomination $denomination) |
| 24 | 24 | { |
| 25 | - return $query->whereHas('denomination', function ($query) use ($denomination) { |
|
| 25 | + return $query->whereHas('denomination', function($query) use ($denomination) { |
|
| 26 | 26 | $query->whereKey($denomination->getKey()); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -27,64 +27,64 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | Route::view('/', 'welcome'); |
| 29 | 29 | |
| 30 | -Route::get('/order/{order}', [OrderController::class, 'show'])->name('admin.order.show'); |
|
| 30 | +Route::get('/order/{order}', [ OrderController::class, 'show' ])->name('admin.order.show'); |
|
| 31 | 31 | |
| 32 | -Route::middleware('auth:web', 'verified', 'user_is_active')->name('admin.')->group(function () { |
|
| 32 | +Route::middleware('auth:web', 'verified', 'user_is_active')->name('admin.')->group(function() { |
|
| 33 | 33 | Route::get('/dashboard', DashboardController::class)->name('dashboard'); |
| 34 | 34 | |
| 35 | - Route::prefix('/order')->name('order.')->group(function () { |
|
| 36 | - Route::post('/datatable', [OrderController::class, 'datatable'])->name('datatable'); |
|
| 37 | - Route::post('/{order}/datatable-row-child', [OrderController::class, 'datatableRowChild'])->name('datatable-row-child'); |
|
| 38 | - Route::delete('/multiple', [OrderController::class, 'destroyMultiple'])->name('destroy-multiple'); |
|
| 35 | + Route::prefix('/order')->name('order.')->group(function() { |
|
| 36 | + Route::post('/datatable', [ OrderController::class, 'datatable' ])->name('datatable'); |
|
| 37 | + Route::post('/{order}/datatable-row-child', [ OrderController::class, 'datatableRowChild' ])->name('datatable-row-child'); |
|
| 38 | + Route::delete('/multiple', [ OrderController::class, 'destroyMultiple' ])->name('destroy-multiple'); |
|
| 39 | 39 | |
| 40 | - Route::get('/{order}/status/{enumOrderStatus}/create', [OrderStatusController::class, 'create'])->name('status.create'); |
|
| 41 | - Route::post('/{order}/status/{enumOrderStatus}', [OrderStatusController::class, 'store'])->name('status.store'); |
|
| 42 | - Route::delete('/{order}/status/{status:status}', [OrderStatusController::class, 'destroy'])->name('status.destroy'); |
|
| 40 | + Route::get('/{order}/status/{enumOrderStatus}/create', [ OrderStatusController::class, 'create' ])->name('status.create'); |
|
| 41 | + Route::post('/{order}/status/{enumOrderStatus}', [ OrderStatusController::class, 'store' ])->name('status.store'); |
|
| 42 | + Route::delete('/{order}/status/{status:status}', [ OrderStatusController::class, 'destroy' ])->name('status.destroy'); |
|
| 43 | 43 | |
| 44 | - Route::get('/{order}/item/create', [ItemController::class, 'create'])->name('item.create'); |
|
| 45 | - Route::post('/{order}/item', [ItemController::class, 'store'])->name('item.store'); |
|
| 46 | - Route::get('/{order}/item/{item:}/edit', [ItemController::class, 'edit'])->name('item.edit'); |
|
| 47 | - Route::put('/{order}/item/{item:}', [ItemController::class, 'update'])->name('item.update'); |
|
| 48 | - Route::delete('/{order}/item/{item:}', [ItemController::class, 'destroy'])->name('item.destroy'); |
|
| 44 | + Route::get('/{order}/item/create', [ ItemController::class, 'create' ])->name('item.create'); |
|
| 45 | + Route::post('/{order}/item', [ ItemController::class, 'store' ])->name('item.store'); |
|
| 46 | + Route::get('/{order}/item/{item:}/edit', [ ItemController::class, 'edit' ])->name('item.edit'); |
|
| 47 | + Route::put('/{order}/item/{item:}', [ ItemController::class, 'update' ])->name('item.update'); |
|
| 48 | + Route::delete('/{order}/item/{item:}', [ ItemController::class, 'destroy' ])->name('item.destroy'); |
|
| 49 | 49 | }); |
| 50 | 50 | |
| 51 | - Route::prefix('/user')->name('user.')->group(function () { |
|
| 52 | - Route::post('/datatable', [UserController::class, 'datatable'])->name('datatable'); |
|
| 53 | - Route::delete('/multiple', [UserController::class, 'destroyMultiple'])->name('destroy-multiple'); |
|
| 54 | - Route::get('/{user}/verify-email-address', [UserController::class, 'verifyEmailAddress'])->name('verify-email-address'); |
|
| 51 | + Route::prefix('/user')->name('user.')->group(function() { |
|
| 52 | + Route::post('/datatable', [ UserController::class, 'datatable' ])->name('datatable'); |
|
| 53 | + Route::delete('/multiple', [ UserController::class, 'destroyMultiple' ])->name('destroy-multiple'); |
|
| 54 | + Route::get('/{user}/verify-email-address', [ UserController::class, 'verifyEmailAddress' ])->name('verify-email-address'); |
|
| 55 | 55 | }); |
| 56 | 56 | |
| 57 | - Route::prefix('/branch')->name('branch.')->group(function () { |
|
| 58 | - Route::post('/datatable', [BranchController::class, 'datatable'])->name('datatable'); |
|
| 59 | - Route::delete('/multiple', [BranchController::class, 'destroyMultiple'])->name('destroy-multiple'); |
|
| 57 | + Route::prefix('/branch')->name('branch.')->group(function() { |
|
| 58 | + Route::post('/datatable', [ BranchController::class, 'datatable' ])->name('datatable'); |
|
| 59 | + Route::delete('/multiple', [ BranchController::class, 'destroyMultiple' ])->name('destroy-multiple'); |
|
| 60 | 60 | }); |
| 61 | 61 | |
| 62 | - Route::prefix('/customer')->name('customer.')->group(function () { |
|
| 63 | - Route::post('/datatable', [CustomerController::class, 'datatable'])->name('datatable'); |
|
| 64 | - Route::delete('/multiple', [CustomerController::class, 'destroyMultiple'])->name('destroy-multiple'); |
|
| 65 | - Route::delete('/{customer}/identitycard_image', [CustomerController::class, 'destroyIdentitycardImage'])->name('destroy-identitycard_image'); |
|
| 62 | + Route::prefix('/customer')->name('customer.')->group(function() { |
|
| 63 | + Route::post('/datatable', [ CustomerController::class, 'datatable' ])->name('datatable'); |
|
| 64 | + Route::delete('/multiple', [ CustomerController::class, 'destroyMultiple' ])->name('destroy-multiple'); |
|
| 65 | + Route::delete('/{customer}/identitycard_image', [ CustomerController::class, 'destroyIdentitycardImage' ])->name('destroy-identitycard_image'); |
|
| 66 | 66 | }); |
| 67 | 67 | |
| 68 | - Route::prefix('/denomination')->name('denomination.')->group(function () { |
|
| 69 | - Route::post('/datatable', [DenominationController::class, 'datatable'])->name('datatable'); |
|
| 70 | - Route::delete('/multiple', [DenominationController::class, 'destroyMultiple'])->name('destroy-multiple'); |
|
| 71 | - Route::delete('/{denomination}/image', [DenominationController::class, 'destroyImage'])->name('destroy-image'); |
|
| 68 | + Route::prefix('/denomination')->name('denomination.')->group(function() { |
|
| 69 | + Route::post('/datatable', [ DenominationController::class, 'datatable' ])->name('datatable'); |
|
| 70 | + Route::delete('/multiple', [ DenominationController::class, 'destroyMultiple' ])->name('destroy-multiple'); |
|
| 71 | + Route::delete('/{denomination}/image', [ DenominationController::class, 'destroyImage' ])->name('destroy-image'); |
|
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | - Route::prefix('/role')->name('role.')->group(function () { |
|
| 75 | - Route::post('/datatable', [RoleController::class, 'datatable'])->name('datatable'); |
|
| 76 | - Route::delete('/multiple', [RoleController::class, 'destroyMultiple'])->name('destroy-multiple'); |
|
| 74 | + Route::prefix('/role')->name('role.')->group(function() { |
|
| 75 | + Route::post('/datatable', [ RoleController::class, 'datatable' ])->name('datatable'); |
|
| 76 | + Route::delete('/multiple', [ RoleController::class, 'destroyMultiple' ])->name('destroy-multiple'); |
|
| 77 | 77 | }); |
| 78 | 78 | |
| 79 | - Route::prefix('/configuration')->name('configuration.')->group(function () { |
|
| 80 | - Route::post('/datatable', [ConfigurationController::class, 'datatable'])->name('datatable'); |
|
| 81 | - Route::delete('/multiple', [ConfigurationController::class, 'destroyMultiple'])->name('destroy-multiple'); |
|
| 79 | + Route::prefix('/configuration')->name('configuration.')->group(function() { |
|
| 80 | + Route::post('/datatable', [ ConfigurationController::class, 'datatable' ])->name('datatable'); |
|
| 81 | + Route::delete('/multiple', [ ConfigurationController::class, 'destroyMultiple' ])->name('destroy-multiple'); |
|
| 82 | 82 | }); |
| 83 | 83 | |
| 84 | - Route::name('report.')->group(function () { |
|
| 85 | - Route::get('/report-order', [Report\OrderController::class, 'index'])->name('order.index'); |
|
| 86 | - Route::post('/report-order/datatable', [Report\OrderController::class, 'datatable'])->name('order.datatable'); |
|
| 87 | - Route::post('/report-order/export', [Report\OrderController::class, 'export'])->name('order.export'); |
|
| 84 | + Route::name('report.')->group(function() { |
|
| 85 | + Route::get('/report-order', [ Report\OrderController::class, 'index' ])->name('order.index'); |
|
| 86 | + Route::post('/report-order/datatable', [ Report\OrderController::class, 'datatable' ])->name('order.datatable'); |
|
| 87 | + Route::post('/report-order/export', [ Report\OrderController::class, 'export' ])->name('order.export'); |
|
| 88 | 88 | }); |
| 89 | 89 | |
| 90 | 90 | Route::resource('/order', OrderController::class)->except('create', 'show', 'edit', 'update'); |
@@ -95,8 +95,8 @@ discard block |
||
| 95 | 95 | Route::resource('/role', RoleController::class)->except('show'); |
| 96 | 96 | Route::resource('/configuration', ConfigurationController::class)->except('show'); |
| 97 | 97 | |
| 98 | - Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); |
|
| 99 | - Route::put('/profile', [ProfileController::class, 'update'])->name('profile.update'); |
|
| 98 | + Route::get('/profile', [ ProfileController::class, 'edit' ])->name('profile.edit'); |
|
| 99 | + Route::put('/profile', [ ProfileController::class, 'update' ])->name('profile.update'); |
|
| 100 | 100 | }); |
| 101 | 101 | |
| 102 | 102 | require __DIR__.'/auth.php'; |
@@ -19,14 +19,14 @@ |
||
| 19 | 19 | $botman = resolve('botman'); |
| 20 | 20 | |
| 21 | 21 | foreach (HomeConservation::conversations(withHidden: true) as $conversation) { |
| 22 | - $commands = Arr::wrap($conversation['command']); |
|
| 22 | + $commands = Arr::wrap($conversation[ 'command' ]); |
|
| 23 | 23 | |
| 24 | - data_set($commands, 0, '/' . data_get($commands, 0)); |
|
| 24 | + data_set($commands, 0, '/'.data_get($commands, 0)); |
|
| 25 | 25 | |
| 26 | - $botman->hears($commands, fn (BotMan $botman) => $botman->startConversation(value($conversation['handler']))); |
|
| 26 | + $botman->hears($commands, fn(BotMan $botman) => $botman->startConversation(value($conversation[ 'handler' ]))); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -$botman->fallback(function (BotMan $botman) { |
|
| 29 | +$botman->fallback(function(BotMan $botman) { |
|
| 30 | 30 | $message = __("Maaf, kami tidak mengenali maksud dari '{$botman->getMessage()->getText()}'."); |
| 31 | 31 | |
| 32 | 32 | $keyboard = Keyboard::create(Keyboard::TYPE_KEYBOARD)->resizeKeyboard()->oneTimeKeyboard(); |