diff --git a/Laracel Command b/Laracel Command index 718158d3b..3abe99806 100644 --- a/Laracel Command +++ b/Laracel Command @@ -1,7 +1,7 @@ php artisan make:controller UserController && mv app/Http/Controllers/UserController.php packages/Webkul/User/src/Ht tp/Controllers -php artisan make:migration foo --path=packages/Webkul/User/src/Database/migrations +php artisan make:migration foo --path=packages/Webkul/User/src/Database/Migrations php artisan db:seed --class=Webkul\\User\\Database\\Seeders\\DatabaseSeeder diff --git a/composer.json b/composer.json index abf030b10..52f73a27b 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "php": "^7.1.3", "dimsav/laravel-translatable": "^9.0", "fideloper/proxy": "^4.0", + "kalnoy/nestedset": "^4.3", "laravel/framework": "5.6.*", "laravel/tinker": "^1.0", "nwidart/laravel-modules": "^3.2", @@ -30,7 +31,10 @@ "webkul/laravel-ui": "self.version", "webkul/laravel-core": "self.version", "webkul/laravel-attribute": "self.version", - "webkul/laravel-customer": "self.version" + "webkul/laravel-customer": "self.version", + "webkul/laravel-category": "self.version", + "webkul/laravel-channel": "self.version", + "webkul/laravel-product": "self.version" }, "autoload": { "classmap": [ @@ -42,10 +46,14 @@ "Webkul\\User\\": "packages/Webkul/User/src", "Webkul\\Admin\\": "packages/Webkul/Admin/src", "Webkul\\Ui\\": "packages/Webkul/Ui/src", + "Webkul\\Category\\": "packages/Webkul/Category/src", "Webkul\\Attribute\\": "packages/Webkul/Attribute/src", "Webkul\\Shop\\": "packages/Webkul/Shop/src", "Webkul\\Core\\": "packages/Webkul/Core/src", - "Webkul\\Customer\\": "packages/Webkul/Customer/src" + "Webkul\\Customer\\": "packages/Webkul/Customer/src", + "Webkul\\Channel\\": "packages/Webkul/Channel/src", + "Webkul\\Inventory\\": "packages/Webkul/Inventory/src", + "Webkul\\Product\\": "packages/Webkul/Product/src" } }, "autoload-dev": { diff --git a/composer.lock b/composer.lock index 3185aedbb..9eed4b78b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e246cc7d779ef4098f86e289fe65a215", + "content-hash": "47eeeb44e8f067ec98ea469bd35acf54", "packages": [ { "name": "commerceguys/intl", @@ -617,6 +617,65 @@ ], "time": "2018-05-16T11:53:55+00:00" }, + { + "name": "kalnoy/nestedset", + "version": "v4.3.2", + "source": { + "type": "git", + "url": "https://github.com/lazychaser/laravel-nestedset.git", + "reference": "3265da51ef71238fc2d086b54eef7a75dd15c665" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lazychaser/laravel-nestedset/zipball/3265da51ef71238fc2d086b54eef7a75dd15c665", + "reference": "3265da51ef71238fc2d086b54eef7a75dd15c665", + "shasum": "" + }, + "require": { + "illuminate/database": "5.2 - 5.6", + "illuminate/events": "5.2 - 5.6", + "illuminate/support": "5.2 - 5.6", + "php": ">=5.5.9" + }, + "require-dev": { + "phpunit/phpunit": "4.8.*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "v4.2.x-dev" + }, + "laravel": { + "providers": [ + "Kalnoy\\Nestedset\\NestedSetServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Kalnoy\\Nestedset\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alexander Kalnoy", + "email": "lazychaser@gmail.com" + } + ], + "description": "Nested Set Model for Laravel 4-5", + "keywords": [ + "database", + "hierarchy", + "laravel", + "nested sets", + "nsm" + ], + "time": "2018-02-04T08:47:55+00:00" + }, { "name": "laravel/framework", "version": "v5.6.27", diff --git a/config/app.php b/config/app.php index 1942b6c60..01dc1135c 100644 --- a/config/app.php +++ b/config/app.php @@ -174,10 +174,14 @@ return [ Webkul\User\Providers\UserServiceProvider::class, Webkul\Admin\Providers\AdminServiceProvider::class, Webkul\Ui\Providers\UiServiceProvider::class, + Webkul\Category\Providers\CategoryServiceProvider::class, Webkul\Attribute\Providers\AttributeServiceProvider::class, Webkul\Core\Providers\CoreServiceProvider::class, Webkul\Shop\Providers\ShopServiceProvider::class, Webkul\Customer\Providers\CustomerServiceProvider::class, + Webkul\Channel\Providers\ChannelServiceProvider::class, + Webkul\Inventory\Providers\InventoryServiceProvider::class, + Webkul\Product\Providers\ProductServiceProvider::class ], /* diff --git a/config/translatable.php b/config/translatable.php new file mode 100644 index 000000000..1ef910d3e --- /dev/null +++ b/config/translatable.php @@ -0,0 +1,116 @@ + [ + 'en', + 'fr', + 'es' => [ + 'MX', // mexican spanish + 'CO', // colombian spanish + ], + ], + + /* + |-------------------------------------------------------------------------- + | Locale separator + |-------------------------------------------------------------------------- + | + | This is a string used to glue the language and the country when defining + | the available locales. Example: if set to '-', then the locale for + | colombian spanish will be saved as 'es-CO' into the database. + | + */ + 'locale_separator' => '-', + + /* + |-------------------------------------------------------------------------- + | Default locale + |-------------------------------------------------------------------------- + | + | As a default locale, Translatable takes the locale of Laravel's + | translator. If for some reason you want to override this, + | you can specify what default should be used here. + | + */ + 'locale' => null, + + /* + |-------------------------------------------------------------------------- + | Use fallback + |-------------------------------------------------------------------------- + | + | Determine if fallback locales are returned by default or not. To add + | more flexibility and configure this option per "translatable" + | instance, this value will be overridden by the property + | $useTranslationFallback when defined + | + */ + 'use_fallback' => false, + + /* + |-------------------------------------------------------------------------- + | Use fallback per property + |-------------------------------------------------------------------------- + | + | The property fallback feature will return the translated value of + | the fallback locale if the property is empty for the selected + | locale. Note that 'use_fallback' must be enabled. + | + */ + 'use_property_fallback' => true, + + /* + |-------------------------------------------------------------------------- + | Fallback Locale + |-------------------------------------------------------------------------- + | + | A fallback locale is the locale being used to return a translation + | when the requested translation is not existing. To disable it + | set it to false. + | + */ + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Translation Suffix + |-------------------------------------------------------------------------- + | + | Defines the default 'Translation' class suffix. For example, if + | you want to use CountryTrans instead of CountryTranslation + | application, set this to 'Trans'. + | + */ + 'translation_suffix' => 'Translation', + + /* + |-------------------------------------------------------------------------- + | Locale key + |-------------------------------------------------------------------------- + | + | Defines the 'locale' field name, which is used by the + | translation model. + | + */ + 'locale_key' => 'locale', + + /* + |-------------------------------------------------------------------------- + | Always load translations when converting to array + |-------------------------------------------------------------------------- + | Setting this to false will have a performance improvement but will + | not return the translations when using toArray(), unless the + | translations relationship is already loaded. + | + */ + 'to_array_always_loads_translations' => true, +]; diff --git a/packages/Webkul/Admin/src/Config/auth.php b/packages/Webkul/Admin/src/Config/auth.php index 89b6ecc26..21c43f718 100644 --- a/packages/Webkul/Admin/src/Config/auth.php +++ b/packages/Webkul/Admin/src/Config/auth.php @@ -1,6 +1,7 @@ [ 'web' => [ 'driver' => 'session', diff --git a/packages/Webkul/Admin/src/Http/routes.php b/packages/Webkul/Admin/src/Http/routes.php index ad6364f4c..663d24dcb 100644 --- a/packages/Webkul/Admin/src/Http/routes.php +++ b/packages/Webkul/Admin/src/Http/routes.php @@ -31,7 +31,7 @@ Route::group(['middleware' => ['web']], function () { // Admin Routes - Route::group(['middleware' => ['admin']], function () { + Route::group(['middleware' => ['admin', 'locale']], function () { Route::get('/logout', 'Webkul\User\Http\Controllers\SessionController@destroy')->defaults('_config', [ 'redirect' => 'admin.session.create' ])->name('admin.session.destroy'); @@ -43,6 +43,39 @@ Route::group(['middleware' => ['web']], function () { // Catalog Routes Route::prefix('catalog')->group(function () { + + // Catalog Product Routes + Route::get('/products', 'Webkul\Product\Http\Controllers\ProductController@index')->defaults('_config', [ + 'view' => 'admin::catalog.products.index' + ])->name('admin.catalog.products.index'); + + Route::get('/products/create', 'Webkul\Product\Http\Controllers\ProductController@create')->defaults('_config', [ + 'view' => 'admin::catalog.products.create' + ])->name('admin.catalog.products.create'); + + // Catalog Category Routes + Route::get('/categories', 'Webkul\Category\Http\Controllers\CategoryController@index')->defaults('_config', [ + 'view' => 'admin::catalog.categories.index' + ])->name('admin.catalog.categories.index'); + + Route::get('/categories/create', 'Webkul\Category\Http\Controllers\CategoryController@create')->defaults('_config', [ + 'view' => 'admin::catalog.categories.create' + ])->name('admin.catalog.categories.create'); + + Route::post('/categories/create', 'Webkul\Category\Http\Controllers\CategoryController@store')->defaults('_config', [ + 'redirect' => 'admin.catalog.categories.index' + ])->name('admin.catalog.categories.store'); + + Route::get('/categories/edit/{id}', 'Webkul\Category\Http\Controllers\CategoryController@edit')->defaults('_config', [ + 'view' => 'admin::catalog.categories.edit' + ])->name('admin.catalog.categories.edit'); + + Route::put('/categories/edit/{id}', 'Webkul\Category\Http\Controllers\CategoryController@update')->defaults('_config', [ + 'redirect' => 'admin.catalog.categories.index' + ])->name('admin.catalog.categories.update'); + + + // Catalog Attribute Routes Route::get('/attributes', 'Webkul\Attribute\Http\Controllers\AttributeController@index')->defaults('_config', [ 'view' => 'admin::catalog.attributes.index' ])->name('admin.catalog.attributes.index'); @@ -54,8 +87,39 @@ Route::group(['middleware' => ['web']], function () { Route::post('/attributes/create', 'Webkul\Attribute\Http\Controllers\AttributeController@store')->defaults('_config', [ 'redirect' => 'admin.catalog.attributes.index' ])->name('admin.catalog.attributes.store'); + + Route::get('/attributes/edit/{id}', 'Webkul\Attribute\Http\Controllers\AttributeController@edit')->defaults('_config', [ + 'view' => 'admin::catalog.attributes.edit' + ])->name('admin.catalog.attributes.edit'); + + Route::put('/attributes/edit/{id}', 'Webkul\Attribute\Http\Controllers\AttributeController@update')->defaults('_config', [ + 'redirect' => 'admin.catalog.attributes.index' + ])->name('admin.catalog.attributes.update'); + + + // Catalog Family Routes + Route::get('/families', 'Webkul\Attribute\Http\Controllers\AttributeFamilyController@index')->defaults('_config', [ + 'view' => 'admin::catalog.families.index' + ])->name('admin.catalog.families.index'); + + Route::get('/families/create', 'Webkul\Attribute\Http\Controllers\AttributeFamilyController@create')->defaults('_config', [ + 'view' => 'admin::catalog.families.create' + ])->name('admin.catalog.families.create'); + + Route::post('/families/create', 'Webkul\Attribute\Http\Controllers\AttributeFamilyController@store')->defaults('_config', [ + 'redirect' => 'admin.catalog.families.index' + ])->name('admin.catalog.families.store'); + + Route::get('/families/edit/{id}', 'Webkul\Attribute\Http\Controllers\AttributeFamilyController@edit')->defaults('_config', [ + 'view' => 'admin::catalog.families.edit' + ])->name('admin.catalog.families.edit'); + + Route::put('/families/edit/{id}', 'Webkul\Attribute\Http\Controllers\AttributeFamilyController@update')->defaults('_config', [ + 'redirect' => 'admin.catalog.families.index' + ])->name('admin.catalog.families.update'); }); + // Datagrid Routes //for datagrid and its loading, filtering, sorting and queries Route::get('datagrid', 'Webkul\Admin\Http\Controllers\DataGridController@index')->name('admin.datagrid.index'); @@ -108,11 +172,11 @@ Route::group(['middleware' => ['web']], function () { // Locale Routes Route::get('/locales', 'Webkul\Core\Http\Controllers\LocaleController@index')->defaults('_config', [ - 'view' => 'admin::locales.index' + 'view' => 'admin::settings.locales.index' ])->name('admin.locales.index'); Route::get('/locales/create', 'Webkul\Core\Http\Controllers\LocaleController@create')->defaults('_config', [ - 'view' => 'admin::locales.create' + 'view' => 'admin::settings.locales.create' ])->name('admin.locales.create'); Route::post('/locales/create', 'Webkul\Core\Http\Controllers\LocaleController@store')->defaults('_config', [ @@ -120,6 +184,101 @@ Route::group(['middleware' => ['web']], function () { ])->name('admin.locales.store'); + // Country Routes + Route::get('/countries', 'Webkul\Core\Http\Controllers\CountryController@index')->defaults('_config', [ + 'view' => 'admin::settings.countries.index' + ])->name('admin.countries.index'); + + Route::get('/countries/create', 'Webkul\Core\Http\Controllers\CountryController@create')->defaults('_config', [ + 'view' => 'admin::settings.countries.create' + ])->name('admin.countries.create'); + + Route::post('/countries/create', 'Webkul\Core\Http\Controllers\CountryController@store')->defaults('_config', [ + 'redirect' => 'admin.countries.index' + ])->name('admin.countries.store'); + + + // Country Routes + Route::get('/currencies', 'Webkul\Core\Http\Controllers\CurrencyController@index')->defaults('_config', [ + 'view' => 'admin::settings.currencies.index' + ])->name('admin.currencies.index'); + + Route::get('/currencies/create', 'Webkul\Core\Http\Controllers\CurrencyController@create')->defaults('_config', [ + 'view' => 'admin::settings.currencies.create' + ])->name('admin.currencies.create'); + + Route::post('/currencies/create', 'Webkul\Core\Http\Controllers\CurrencyController@store')->defaults('_config', [ + 'redirect' => 'admin.currencies.index' + ])->name('admin.currencies.store'); + + + // Country Routes + Route::get('/exchange_rates', 'Webkul\Core\Http\Controllers\ExchangeRateController@index')->defaults('_config', [ + 'view' => 'admin::settings.exchange_rates.index' + ])->name('admin.exchange_rates.index'); + + Route::get('/exchange_rates/create', 'Webkul\Core\Http\Controllers\ExchangeRateController@create')->defaults('_config', [ + 'view' => 'admin::settings.exchange_rates.create' + ])->name('admin.exchange_rates.create'); + + Route::post('/exchange_rates/create', 'Webkul\Core\Http\Controllers\ExchangeRateController@store')->defaults('_config', [ + 'redirect' => 'admin.exchange_rates.index' + ])->name('admin.exchange_rates.store'); + + Route::get('/exchange_rates/edit/{id}', 'Webkul\Core\Http\Controllers\ExchangeRateController@edit')->defaults('_config', [ + 'view' => 'admin::settings.exchange_rates.edit' + ])->name('admin.exchange_rates.edit'); + + Route::put('/exchange_rates/edit/{id}', 'Webkul\Core\Http\Controllers\ExchangeRateController@update')->defaults('_config', [ + 'redirect' => 'admin.exchange_rates.index' + ])->name('admin.exchange_rates.update'); + + + // Inventory Source Routes + Route::get('/inventory_sources', 'Webkul\Inventory\Http\Controllers\InventorySourceController@index')->defaults('_config', [ + 'view' => 'admin::settings.inventory_sources.index' + ])->name('admin.inventory_sources.index'); + + Route::get('/inventory_sources/create', 'Webkul\Inventory\Http\Controllers\InventorySourceController@create')->defaults('_config', [ + 'view' => 'admin::settings.inventory_sources.create' + ])->name('admin.inventory_sources.create'); + + Route::post('/inventory_sources/create', 'Webkul\Inventory\Http\Controllers\InventorySourceController@store')->defaults('_config', [ + 'redirect' => 'admin.inventory_sources.index' + ])->name('admin.inventory_sources.store'); + + Route::get('/inventory_sources/edit/{id}', 'Webkul\Inventory\Http\Controllers\InventorySourceController@edit')->defaults('_config', [ + 'view' => 'admin::settings.inventory_sources.edit' + ])->name('admin.inventory_sources.edit'); + + Route::put('/inventory_sources/edit/{id}', 'Webkul\Inventory\Http\Controllers\InventorySourceController@update')->defaults('_config', [ + 'redirect' => 'admin.inventory_sources.index' + ])->name('admin.inventory_sources.update'); + + + // Channel Routes + Route::get('/channels', 'Webkul\Channel\Http\Controllers\ChannelController@index')->defaults('_config', [ + 'view' => 'admin::settings.channels.index' + ])->name('admin.channels.index'); + + Route::get('/channels/create', 'Webkul\Channel\Http\Controllers\ChannelController@create')->defaults('_config', [ + 'view' => 'admin::settings.channels.create' + ])->name('admin.channels.create'); + + Route::post('/channels/create', 'Webkul\Channel\Http\Controllers\ChannelController@store')->defaults('_config', [ + 'redirect' => 'admin.channels.index' + ])->name('admin.channels.store'); + + Route::get('/channels/edit/{id}', 'Webkul\Channel\Http\Controllers\ChannelController@edit')->defaults('_config', [ + 'view' => 'admin::settings.channels.edit' + ])->name('admin.channels.edit'); + + Route::put('/channels/edit/{id}', 'Webkul\Channel\Http\Controllers\ChannelController@update')->defaults('_config', [ + 'redirect' => 'admin.channels.index' + ])->name('admin.channels.update'); + + + // Admin Profile route Route::get('/account', 'Webkul\User\Http\Controllers\AccountController@edit')->defaults('_config', [ 'view' => 'admin::account.edit' diff --git a/packages/Webkul/Admin/src/Providers/EventServiceProvider.php b/packages/Webkul/Admin/src/Providers/EventServiceProvider.php index df2639d7a..414c24d50 100644 --- a/packages/Webkul/Admin/src/Providers/EventServiceProvider.php +++ b/packages/Webkul/Admin/src/Providers/EventServiceProvider.php @@ -39,23 +39,39 @@ class EventServiceProvider extends ServiceProvider Event::listen('admin.menu.build', function($menu) { $menu->add('dashboard', 'Dashboard', 'admin.dashboard.index', 1, 'dashboard-icon'); - $menu->add('catalog', 'Catalog', 'admin.catalog.attributes.index', 3, 'catalog-icon'); + $menu->add('catalog', 'Catalog', 'admin.catalog.products.index', 3, 'catalog-icon'); + + $menu->add('catalog.products', 'Products', 'admin.catalog.products.index', 1); + + $menu->add('catalog.categories', 'Categories', 'admin.catalog.categories.index', 2); $menu->add('catalog.attributes', 'Attributes', 'admin.catalog.attributes.index', 3); + $menu->add('catalog.families', 'Families', 'admin.catalog.families.index', 4); + $menu->add('configuration', 'Configure', 'admin.account.edit', 6, 'configuration-icon'); $menu->add('configuration.account', 'My Account', 'admin.account.edit', 1); - $menu->add('settings', 'Settings', 'admin.users.index', 6, 'settings-icon'); + $menu->add('settings', 'Settings', 'admin.countries.index', 6, 'settings-icon'); - $menu->add('settings.users', 'Users', 'admin.users.index', 1, ''); + $menu->add('settings.countries', 'Countries', 'admin.countries.index', 1, ''); + + $menu->add('settings.locales', 'Locales', 'admin.locales.index', 2, ''); + + $menu->add('settings.currencies', 'Currencies', 'admin.currencies.index', 3, ''); + + $menu->add('settings.exchange_rates', 'Exchange Rates', 'admin.exchange_rates.index', 4, ''); + + $menu->add('settings.inventory_sources', 'Inventory Sources', 'admin.inventory_sources.index', 5, ''); + + $menu->add('settings.channels', 'Channels', 'admin.channels.index', 5, ''); + + $menu->add('settings.users', 'Users', 'admin.users.index', 7, ''); $menu->add('settings.users.users', 'Users', 'admin.users.index', 1, ''); $menu->add('settings.users.roles', 'Roles', 'admin.roles.index', 2, ''); - - $menu->add('settings.locales', 'Locales', 'admin.locales.index', 2, ''); }); } diff --git a/packages/Webkul/Admin/src/Resources/assets/js/app.js b/packages/Webkul/Admin/src/Resources/assets/js/app.js index f3e1859af..633173b3a 100644 --- a/packages/Webkul/Admin/src/Resources/assets/js/app.js +++ b/packages/Webkul/Admin/src/Resources/assets/js/app.js @@ -23,23 +23,51 @@ $(document).ready(function() { methods: { onSubmit: function(e) { this.$validator.validateAll().then(result => { +$(document).ready(function () { + Vue.config.ignoredElements = [ + 'option-wrapper', + 'group-form', + 'group-list' + ]; + + var app = new Vue({ + el: '#app', + + data: { + modalIds: {} + }, + + mounted () { + this.addServerErrors() + this.addFlashMessages() + }, + + methods: { + onSubmit (e) { + this.$validator.validateAll().then((result) => { if (result) { e.target.submit(); } }); }, - addServerErrors: function() { + addServerErrors () { var scope = null; for (var key in serverErrors) { const field = this.$validator.fields.find({ name: key, scope: scope }); + var inputName = key; + if(key.indexOf('.') !== -1) { + inputName = key.replace(".", "[") + ']'; + } + + const field = this.$validator.fields.find({ name: inputName, scope: scope }); if (field) { this.$validator.errors.add({ id: field.id, - field: key, + field: inputName, msg: serverErrors[key][0], scope: scope }); @@ -53,6 +81,10 @@ $(document).ready(function() { flashMessages.forEach(function(flash) { flashes.addFlash(flash); }, this); + }, + + showModal (id) { + this.$set(this.modalIds, id, true); } } }); diff --git a/packages/Webkul/Admin/src/Resources/assets/sass/app.scss b/packages/Webkul/Admin/src/Resources/assets/sass/app.scss index 3023aca16..5c2dde827 100644 --- a/packages/Webkul/Admin/src/Resources/assets/sass/app.scss +++ b/packages/Webkul/Admin/src/Resources/assets/sass/app.scss @@ -118,7 +118,6 @@ body { right: 0; left: 0; bottom: 0px; - z-index: 1; overflow-x: hidden; overflow-y: auto; @@ -154,7 +153,7 @@ body { .content-wrapper { padding: 25px 25px 25px 305px; - overflow-y: auto; + // overflow-y: auto; } .content { @@ -165,15 +164,35 @@ body { } .page-header { - display: block; + display: inline-block; + margin-bottom: 20px; + width: 100%; .page-title { float: left; + + h1 { + margin-bottom: 0; + vertical-align: middle; + display: inline-block; + } } .page-action { float: right; } + + .control-group { + width: 180px; + display: inline-block; + margin-bottom: 0; + margin-left: 20px; + } + + .control { + width: 100%; + margin: 0; + } } .page-content { diff --git a/packages/Webkul/Admin/src/Resources/lang/en/app.php b/packages/Webkul/Admin/src/Resources/lang/en/app.php new file mode 100644 index 000000000..dde011089 --- /dev/null +++ b/packages/Webkul/Admin/src/Resources/lang/en/app.php @@ -0,0 +1,229 @@ + [ + 'header-title' => 'My Account', + 'save-btn-title' => 'Save', + 'general' => 'General', + 'name' => 'Name', + 'email' => 'Email', + 'password' => 'Password', + 'confirm-password' => 'Confirm Password' + ], + 'users' => [ + 'forget-password' => [ + 'title' => 'Forget Password', + 'header-title' => 'Recover Password', + 'email' => 'Registered Email', + 'password' => 'Password', + 'confirm-password' => 'Confirm Password', + 'back-link-title' => 'Back to Sign In', + 'submit-btn-title' => 'Email Password Reset Link' + ], + 'reset-password' => [ + 'title' => 'Reset Password', + 'title' => 'Reset Password', + 'email' => 'Registered Email', + 'back-link-title' => 'Back to Sign In', + 'submit-btn-title' => 'Reset Password' + ], + 'roles' => [ + 'add-role-title' => 'Add Role', + 'edit-role-title' => 'Edit Role', + 'save-btn-title' => 'Save Role', + 'general' => 'General', + 'name' => 'Name', + 'description' => 'Description', + 'access-control' => 'Access Control', + 'permissions' => 'Permissions', + 'custom' => 'Custom', + 'all' => 'All' + ], + 'users' => [ + 'add-user-title' => 'Add User', + 'edit-user-title' => 'Edit User', + 'save-btn-title' => 'Save User', + 'general' => 'General', + 'email' => 'Email', + 'name' => 'Name', + 'password' => 'Password', + 'confirm-password' => 'Confirm Password', + 'status-and-role' => 'Status and Role', + 'role' => 'Role', + 'status' => 'Status', + 'account-is-active' => 'Account is Active' + ], + 'sessions' => [ + 'title' => 'Sign In', + 'email' => 'Email', + 'password' => 'Password', + 'forget-password-link-title' => 'Forget Password ?', + 'remember-me' => 'Remember Me', + 'submit-btn-title' => 'Sign In' + ] + ], + 'catalog' => [ + 'products' => [ + 'products' => 'products', + 'add-product-btn-title' => 'Add Product', + 'add-title' => 'Add Product', + 'edit-title' => 'Edit Product', + 'save-btn-title' => 'Save Product', + ], + 'attributes' => [ + 'add-title' => 'Add Attribute', + 'edit-title' => 'Edit Attribute', + 'save-btn-title' => 'Save Attribute', + 'general' => 'General', + 'code' => 'Attribute Code', + 'type' => 'Attribute Type', + 'text' => 'Text', + 'textarea' => 'Textarea', + 'price' => 'Price', + 'boolean' => 'Boolean', + 'select' => 'Select', + 'multiselect' => 'Multiselect', + 'checkbox' => 'Checkbox', + 'datetime' => 'Datetime', + 'date' => 'Date', + 'label' => 'label', + 'admin' => 'Admin', + 'options' => 'Options', + 'position' => 'Position', + 'add-option-btn-title' => 'Add Option', + 'validations' => 'Validations', + 'input_validation' => 'Input Validation', + 'is_required' => 'Is Required', + 'is_unique' => 'Is Unique', + 'number' => 'Number', + 'decimal' => 'Decimal', + 'email' => 'Email', + 'url' => 'URL', + 'configuration' => 'Configuration', + 'status' => 'Status', + 'yes' => 'Yes', + 'no' => 'No', + 'value_per_locale' => 'Value Per Locale', + 'value_per_channel' => 'Value Per Channel', + 'value_per_channel' => 'Value Per Channel', + 'is_filterable' => 'Use in Layered Navigation', + 'is_configurable' => 'Use To Create Configurable Product' + ], + 'families' => [ + 'families' => 'Families', + 'add-family-btn-title' => 'Add Family', + 'add-title' => 'Add Family', + 'edit-title' => 'Edit Family', + 'save-btn-title' => 'Save Family', + 'general' => 'General', + 'code' => 'Family Code', + 'name' => 'Name', + 'groups' => 'Groups', + 'add-group-title' => 'Add Group', + 'position' => 'Position', + 'attribute-code' => 'Code', + 'type' => 'Type', + 'add-attribute-title' => 'Add Attributes', + 'search' => 'Search', + 'group-exist-error' => 'Group with same name already exists.' + ], + 'categories' => [ + 'categories' => 'Categories', + 'add-title' => 'Add Category', + 'edit-title' => 'Edit Category', + 'save-btn-title' => 'Save Category', + 'general' => 'General', + 'name' => 'Name', + 'visible-in-menu' => 'Visible In Menu', + 'yes' => 'Yes', + 'no' => 'No', + 'position' => 'Position', + 'description-and-images' => 'Description and Images', + 'description' => 'Description', + 'parent-category' => 'Parent Category', + 'seo' => 'Search Engine Optimization', + 'slug' => 'Slug', + 'meta_title' => 'Meta Title', + 'meta_description' => 'Meta Description', + 'meta_keywords' => 'Meta Keywords', + ] + ], + 'settings' => [ + 'locales' => [ + 'add-locale-title' => 'Add Locale', + 'edit-locale-title' => 'Edit Locale', + 'add-title' => 'Add Locale', + 'save-btn-title' => 'Save Locale', + 'general' => 'General', + 'code' => 'Code', + 'name' => 'Name' + ], + 'countries' => [ + 'add-title' => 'Add Counrty', + 'save-btn-title' => 'Save Counrty', + 'general' => 'General', + 'code' => 'Code', + 'name' => 'Name' + ], + 'currencies' => [ + 'add-title' => 'Add Currency', + 'edit-title' => 'Edit Currency', + 'save-btn-title' => 'Save Currency', + 'general' => 'General', + 'code' => 'Code', + 'name' => 'Name', + 'symbol' => 'Symbol' + ], + 'exchange_rates' => [ + 'title' => 'Exchange Rates', + 'add-title' => 'Add Exchange Rate', + 'edit-title' => 'Edit Exchange Rate', + 'save-btn-title' => 'Save Exchange Rate', + 'general' => 'General', + 'source_currency' => 'Source Currency', + 'target_currency' => 'Target Currency', + 'ratio' => 'Ratio' + ], + 'inventory_sources' => [ + 'title' => 'Inventory Sources', + 'add-title' => 'Add Inventory Source', + 'edit-title' => 'Edit Inventory Source', + 'save-btn-title' => 'Save Inventory Source', + 'general' => 'General', + 'code' => 'Code', + 'name' => 'Name', + 'description' => 'Description', + 'source-is-active' => 'Source is Active', + 'contact-info' => 'Contact Information', + 'contact_name' => 'Name', + 'contact_email' => 'Email', + 'contact_number' => 'Contact Number', + 'contact_fax' => 'Fax', + 'address' => 'Source Address', + 'country' => 'Country', + 'state' => 'State', + 'city' => 'City', + 'street' => 'Street', + 'postcode' => 'Postcode', + 'priority' => 'Priority', + 'latitude' => 'Latitude', + 'longitude' => 'Longitude', + 'status' => 'Status' + ], + 'channels' => [ + 'title' => 'Channels', + 'add-title' => 'Add Channel', + 'edit-title' => 'Edit Channel', + 'save-btn-title' => 'Save Channel', + 'general' => 'General', + 'code' => 'Code', + 'name' => 'Name', + 'description' => 'Description', + 'currencies-and-locales' => 'Currencies and Locales', + 'locales' => 'Locales', + 'default-locale' => 'Default Locale', + 'currencies' => 'Currencies', + 'base-currency' => 'Base Currency' + ] + ] +]; \ No newline at end of file diff --git a/packages/Webkul/Admin/src/Resources/views/account/edit.blade.php b/packages/Webkul/Admin/src/Resources/views/account/edit.blade.php index 464eab427..75f44f617 100644 --- a/packages/Webkul/Admin/src/Resources/views/account/edit.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/account/edit.blade.php @@ -6,13 +6,13 @@