diff --git a/app/Http/Controllers/Admin/ApplicationCrudController.php b/app/Http/Controllers/Admin/ApplicationCrudController.php index 099c2533..25431fc2 100755 --- a/app/Http/Controllers/Admin/ApplicationCrudController.php +++ b/app/Http/Controllers/Admin/ApplicationCrudController.php @@ -14,7 +14,7 @@ class ApplicationCrudController extends CrudController { use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation; - use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation; +// use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation; use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation; use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation; @@ -116,33 +116,33 @@ protected function setupListOperation() * @see https://backpackforlaravel.com/docs/crud-operation-create * @return void */ - protected function setupCreateOperation() - { - CRUD::setValidation(ApplicationRequest::class); - $this->crud->addFields([ - [ // SelectMultiple = n-n relationship (with pivot table) - 'label' => trans('app.application.account'), - 'type' => 'custom_select_account', - 'name' => 'account_id', // the method that defines the relationship in your Model - 'entity' => 'account', // the method that defines the relationship in your Model - 'model' => "App\Models\Account", // foreign key model - 'attribute_1' => 'name', // foreign key attribute that is shown to user - 'attribute_2' => 'surname', - ], - [ - 'name' => 'state', - 'label' => trans('app.application.state'), - 'type' => 'select_from_array', - 'options' => [ - 'new' => trans('app.application.new'), - 'applied' => trans('app.application.applied'), - 'refine' => trans('app.application.refine'), - 'approved' => trans('app.application.approved'), - 'archive' => trans('app.application.archived') - ] - ] - ]); - } +// protected function setupCreateOperation() +// { +// CRUD::setValidation(ApplicationRequest::class); +// $this->crud->addFields([ +// [ // SelectMultiple = n-n relationship (with pivot table) +// 'label' => trans('app.application.account'), +// 'type' => 'custom_select_account', +// 'name' => 'account_id', // the method that defines the relationship in your Model +// 'entity' => 'account', // the method that defines the relationship in your Model +// 'model' => "App\Models\Account", // foreign key model +// 'attribute_1' => 'name', // foreign key attribute that is shown to user +// 'attribute_2' => 'surname', +// ], +// [ +// 'name' => 'state', +// 'label' => trans('app.application.state'), +// 'type' => 'select_from_array', +// 'options' => [ +// 'new' => trans('app.application.new'), +// 'applied' => trans('app.application.applied'), +// 'refine' => trans('app.application.refine'), +// 'approved' => trans('app.application.approved'), +// 'archive' => trans('app.application.archived') +// ] +// ] +// ]); +// } /** * Define what happens when the Update operation is loaded. diff --git a/lang/en/app.php b/lang/en/app.php index 03845fc5..bf0f9a12 100755 --- a/lang/en/app.php +++ b/lang/en/app.php @@ -75,7 +75,34 @@ 'list_title' => 'companies', 'registration_date' => 'Registration date', ], + 'business' => [ + 'list_title' => 'entrepreneurs' + ], + 'contract' => [ + 'list_title' => 'contracts' + ], 'ticket' =>[ + 'list_title' => 'tickets', + 'statuses' => 'statuses', + 'categories' => 'categories', 'not_found' => "There is no ticket id with value: :id" - ] + ], + 'resource' => [ + 'resources' => 'resources', + 'countries' => 'countries', + 'documents' => 'documents', + ], + 'user' => [ + 'admins' => 'admins', + 'users' => 'users', + 'roles' => 'roles', + 'permissions' => 'permissions' + ], + 'localization' => [ + 'translations' => 'translations', + 'languages' => 'languages', + 'texts' => 'site texts' + ], + 'logs' => 'logs', + 'settings' => 'settings', ]; diff --git a/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php b/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php index 96c61739..e458b911 100755 --- a/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php +++ b/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php @@ -4,60 +4,60 @@ - + - - + + - +