From a12d5974f63c8504f03749ec208eb9b93a307bdc Mon Sep 17 00:00:00 2001 From: suraj kashyap Date: Thu, 18 Jul 2024 15:14:12 +0530 Subject: [PATCH] Setup pint. --- app/Console/Kernel.php | 1 - .../Middleware/RedirectIfAuthenticated.php | 2 - app/Http/Middleware/VerifyCsrfToken.php | 2 +- app/Models/User.php | 1 - app/Providers/AuthServiceProvider.php | 1 - composer.json | 3 +- composer.lock | 68 +- config/app.php | 22 +- config/auth.php | 14 +- config/broadcasting.php | 14 +- config/cache.php | 32 +- config/concord.php | 2 +- config/cors.php | 2 +- config/database.php | 90 +- config/debugbar.php | 24 +- config/dompdf.php | 72 +- config/excel.php | 24 +- config/filesystems.php | 20 +- config/flare.php | 10 +- config/hashing.php | 4 +- config/ignition.php | 2 +- config/logging.php | 40 +- config/mail.php | 24 +- config/queue.php | 30 +- config/repository.php | 56 +- config/sanctum.php | 2 +- config/services.php | 8 +- database/factories/UserFactory.php | 8 +- lang/en/auth.php | 2 +- lang/en/pagination.php | 2 +- lang/en/passwords.php | 8 +- lang/en/validation.php | 160 +- .../Activity/src/Contracts/Activity.php | 4 +- .../Webkul/Activity/src/Contracts/File.php | 4 +- .../Activity/src/Contracts/Participant.php | 4 +- ...453_create_activity_participants_table.php | 4 +- .../Webkul/Activity/src/Models/Activity.php | 4 +- .../Activity/src/Models/ActivityProxy.php | 5 +- .../Webkul/Activity/src/Models/FileProxy.php | 5 +- .../Activity/src/Models/Participant.php | 38 +- .../Activity/src/Models/ParticipantProxy.php | 5 +- .../src/Providers/ActivityServiceProvider.php | 6 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Repositories/ActivityRepository.php | 22 +- .../src/Repositories/FileRepository.php | 3 +- .../Repositories/ParticipantRepository.php | 4 +- packages/Webkul/Admin/src/Bouncer.php | 2 +- packages/Webkul/Admin/src/Config/acl.php | 6 +- .../src/Config/attribute_entity_types.php | 2 +- .../Admin/src/Config/attribute_lookups.php | 2 +- .../Webkul/Admin/src/Config/core_config.php | 4 +- .../Admin/src/Config/dashboard_cards.php | 144 +- packages/Webkul/Admin/src/Config/menu.php | 4 +- .../DataGrids/Activity/ActivityDataGrid.php | 26 +- .../Contact/OrganizationDataGrid.php | 2 +- .../src/DataGrids/Contact/PersonDataGrid.php | 6 +- .../Admin/src/DataGrids/Lead/LeadDataGrid.php | 21 +- .../src/DataGrids/Mail/EmailDataGrid.php | 28 +- .../src/DataGrids/Product/ProductDataGrid.php | 2 +- .../src/DataGrids/Quote/QuoteDataGrid.php | 16 +- .../DataGrids/Setting/AttributeDataGrid.php | 14 +- .../DataGrids/Setting/PipelineDataGrid.php | 2 +- .../src/DataGrids/Setting/TagDataGrid.php | 5 +- .../src/DataGrids/Setting/TypeDataGrid.php | 2 +- .../src/DataGrids/Setting/UserDataGrid.php | 13 +- .../DataGrids/Setting/WarehouseDataGrid.php | 2 +- .../DataGrids/Setting/WorkflowDataGrid.php | 2 +- ...closed_date_column_in_attributes_table.php | 13 +- .../Webkul/Admin/src/Exceptions/Handler.php | 10 +- packages/Webkul/Admin/src/Facades/Bouncer.php | 2 +- .../Webkul/Admin/src/Helpers/Dashboard.php | 328 ++- .../Activity/ActivityController.php | 31 +- .../Controllers/Admin/DashboardController.php | 18 +- .../Configuration/ConfigurationController.php | 9 +- .../Contact/OrganizationController.php | 9 +- .../Controllers/Contact/PersonController.php | 10 +- .../Admin/src/Http/Controllers/Controller.php | 4 +- .../Http/Controllers/Lead/LeadController.php | 50 +- .../Http/Controllers/Lead/QuoteController.php | 18 +- .../Http/Controllers/Lead/TagController.php | 18 +- .../Http/Controllers/Mail/EmailController.php | 43 +- .../Controllers/Product/ProductController.php | 12 +- .../Controllers/Quote/QuoteController.php | 17 +- .../Setting/AttributeController.php | 12 +- .../Setting/EmailTemplateController.php | 5 +- .../Controllers/Setting/GroupController.php | 11 +- .../Setting/LocationController.php | 10 +- .../Setting/PipelineController.php | 6 +- .../Controllers/Setting/RoleController.php | 6 +- .../Controllers/Setting/SettingController.php | 2 +- .../Controllers/Setting/SourceController.php | 12 +- .../Controllers/Setting/TagController.php | 16 +- .../Controllers/Setting/TypeController.php | 12 +- .../Controllers/Setting/UserController.php | 18 +- .../Setting/WarehouseController.php | 8 +- .../Setting/WorkflowController.php | 6 +- .../Controllers/User/AccountController.php | 18 +- .../User/ForgotPasswordController.php | 8 +- .../User/ResetPasswordController.php | 8 +- .../Controllers/User/SessionController.php | 3 +- .../Admin/src/Http/Middleware/Bouncer.php | 3 +- .../Admin/src/Http/Middleware/Locale.php | 9 +- .../Admin/src/Http/Requests/LeadForm.php | 46 +- .../Admin/src/Http/Requests/PipelineForm.php | 8 +- .../Admin/src/Http/Requests/UserForm.php | 2 +- packages/Webkul/Admin/src/Http/helpers.php | 12 +- packages/Webkul/Admin/src/Http/routes.php | 17 +- packages/Webkul/Admin/src/Listeners/Lead.php | 6 +- .../Webkul/Admin/src/Listeners/Person.php | 6 +- .../Webkul/Admin/src/Notifications/Common.php | 6 +- .../Admin/src/Notifications/User/Create.php | 5 +- .../Notifications/User/UserUpdatePassword.php | 12 +- .../src/Providers/AdminServiceProvider.php | 26 +- .../src/Providers/EventServiceProvider.php | 6 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../Admin/src/Resources/lang/ar/app.php | 1813 ++++++++-------- .../Admin/src/Resources/lang/en/app.php | 1833 +++++++++-------- .../Admin/src/Resources/lang/es/app.php | 1811 ++++++++-------- .../Admin/src/Resources/lang/fa/app.php | 1811 ++++++++-------- .../Admin/src/Resources/lang/tr/app.php | 1811 ++++++++-------- .../src/Traits/ProvideDropdownOptions.php | 36 +- .../src/Config/attribute_lookups.php | 3 +- .../Attribute/src/Contracts/Attribute.php | 4 +- .../src/Contracts/AttributeOption.php | 4 +- .../src/Contracts/AttributeValue.php | 4 +- ...6_122751_create_attribute_values_table.php | 2 +- .../src/Http/Requests/AttributeForm.php | 39 +- .../Attribute/src/Models/AttributeOption.php | 2 +- .../src/Models/AttributeOptionProxy.php | 5 +- .../Attribute/src/Models/AttributeProxy.php | 5 +- .../Attribute/src/Models/AttributeValue.php | 2 +- .../src/Models/AttributeValueProxy.php | 5 +- .../Providers/AttributeServiceProvider.php | 12 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../AttributeOptionRepository.php | 4 +- .../src/Repositories/AttributeRepository.php | 35 +- .../Repositories/AttributeValueRepository.php | 17 +- .../Attribute/src/Traits/CustomAttribute.php | 11 +- .../Contact/src/Contracts/Organization.php | 4 +- .../Webkul/Contact/src/Contracts/Person.php | 4 +- .../Contact/src/Models/OrganizationProxy.php | 5 +- packages/Webkul/Contact/src/Models/Person.php | 2 +- .../Webkul/Contact/src/Models/PersonProxy.php | 5 +- .../src/Providers/ContactServiceProvider.php | 11 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../Repositories/OrganizationRepository.php | 28 +- .../src/Repositories/PersonRepository.php | 22 +- packages/Webkul/Core/src/Config/concord.php | 2 +- packages/Webkul/Core/src/Config/cors.php | 2 +- packages/Webkul/Core/src/Config/sanctum.php | 2 +- .../Core/src/Console/Commands/Version.php | 2 +- .../Webkul/Core/src/Contracts/CoreConfig.php | 4 +- .../Webkul/Core/src/Contracts/Country.php | 4 +- .../Core/src/Contracts/CountryState.php | 4 +- .../Core/src/Contracts/Validations/Code.php | 2 +- .../src/Contracts/Validations/Decimal.php | 2 +- packages/Webkul/Core/src/Core.php | 62 +- ..._03_12_060658_create_core_config_table.php | 4 +- ..._12_173344_create_country_states_table.php | 2 +- .../Webkul/Core/src/Eloquent/Repository.php | 11 +- .../Core/src/Eloquent/TranslatableModel.php | 4 +- packages/Webkul/Core/src/Facades/Core.php | 2 +- packages/Webkul/Core/src/Facades/Menu.php | 2 +- packages/Webkul/Core/src/Helpers/Helper.php | 10 +- .../src/Http/Controllers/CoreController.php | 4 +- packages/Webkul/Core/src/Http/helpers.php | 5 +- packages/Webkul/Core/src/Menu.php | 8 +- packages/Webkul/Core/src/Menu/MenuItem.php | 3 +- .../Webkul/Core/src/Models/CoreConfig.php | 3 +- .../Core/src/Models/CoreConfigProxy.php | 5 +- packages/Webkul/Core/src/Models/Country.php | 2 +- .../Webkul/Core/src/Models/CountryProxy.php | 5 +- .../Webkul/Core/src/Models/CountryState.php | 2 +- .../Core/src/Models/CountryStateProxy.php | 5 +- .../Providers/BaseModuleServiceProvider.php | 4 +- .../src/Providers/CoreServiceProvider.php | 21 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Repositories/CoreConfigRepository.php | 27 +- .../src/Repositories/CountryRepository.php | 6 +- .../Repositories/CountryStateRepository.php | 6 +- packages/Webkul/Core/src/Tree.php | 84 +- .../Core/src/ViewRenderEventManager.php | 5 +- .../Webkul/Email/src/Contracts/Attachment.php | 4 +- packages/Webkul/Email/src/Contracts/Email.php | 4 +- .../Webkul/Email/src/Helpers/Attachment.php | 18 +- packages/Webkul/Email/src/Helpers/Charset.php | 598 +++--- .../src/Helpers/Contracts/CharsetManager.php | 12 +- .../Webkul/Email/src/Helpers/Exception.php | 6 +- .../Webkul/Email/src/Helpers/Htmlfilter.php | 471 +++-- packages/Webkul/Email/src/Helpers/Parser.php | 184 +- packages/Webkul/Email/src/Mails/Email.php | 6 +- .../Email/src/Models/AttachmentProxy.php | 5 +- packages/Webkul/Email/src/Models/Email.php | 2 +- .../Webkul/Email/src/Models/EmailProxy.php | 5 +- .../src/Providers/EmailServiceProvider.php | 9 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Repositories/AttachmentRepository.php | 13 +- .../src/Repositories/EmailRepository.php | 56 +- .../src/Contracts/EmailTemplate.php | 4 +- .../src/Models/EmailTemplate.php | 2 +- .../src/Models/EmailTemplateProxy.php | 5 +- .../EmailTemplateServiceProvider.php | 4 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../Repositories/EmailTemplateRepository.php | 4 +- .../src/Console/Commands/Installer.php | 4 +- ...rehouse_attributes_in_attributes_table.php | 22 +- .../Seeders/Attribute/AttributeSeeder.php | 116 +- .../Database/Seeders/Core/CountriesSeeder.php | 4 +- .../Database/Seeders/Core/StatesSeeder.php | 4 +- .../EmailTemplate/EmailTemplateSeeder.php | 30 +- .../Database/Seeders/Lead/PipelineSeeder.php | 6 +- .../Database/Seeders/Lead/SourceSeeder.php | 6 +- .../src/Database/Seeders/Lead/TypeSeeder.php | 6 +- .../src/Database/Seeders/User/RoleSeeder.php | 4 +- .../src/Database/Seeders/User/UserSeeder.php | 10 +- .../Seeders/Workflow/WorkflowSeeder.php | 6 +- .../Http/Controllers/ImageCacheController.php | 2 +- .../Installer/src/Listeners/Installer.php | 6 +- .../Providers/InstallerServiceProvider.php | 9 +- .../Installer/src/Resources/lang/ar/app.php | 12 +- .../Installer/src/Resources/lang/en/app.php | 12 +- .../Installer/src/Resources/lang/tr/app.php | 12 +- packages/Webkul/Lead/src/Contracts/Lead.php | 4 +- .../Webkul/Lead/src/Contracts/Pipeline.php | 4 +- .../Webkul/Lead/src/Contracts/Product.php | 4 +- packages/Webkul/Lead/src/Contracts/Source.php | 4 +- packages/Webkul/Lead/src/Contracts/Stage.php | 4 +- packages/Webkul/Lead/src/Contracts/Type.php | 4 +- .../2021_04_22_164215_create_leads_table.php | 2 +- ...54222_alter_lead_pipeline_stages_table.php | 6 +- .../2021_09_30_161722_alter_leads_table.php | 2 +- packages/Webkul/Lead/src/Models/Lead.php | 10 +- packages/Webkul/Lead/src/Models/LeadProxy.php | 5 +- .../Webkul/Lead/src/Models/PipelineProxy.php | 5 +- packages/Webkul/Lead/src/Models/Product.php | 2 +- .../Webkul/Lead/src/Models/ProductProxy.php | 5 +- packages/Webkul/Lead/src/Models/Source.php | 4 +- .../Webkul/Lead/src/Models/SourceProxy.php | 5 +- packages/Webkul/Lead/src/Models/Stage.php | 4 +- .../Webkul/Lead/src/Models/StageProxy.php | 5 +- packages/Webkul/Lead/src/Models/Type.php | 2 +- packages/Webkul/Lead/src/Models/TypeProxy.php | 5 +- .../src/Providers/LeadServiceProvider.php | 11 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../Lead/src/Repositories/LeadRepository.php | 66 +- .../src/Repositories/PipelineRepository.php | 6 +- .../src/Repositories/ProductRepository.php | 4 +- .../src/Repositories/SourceRepository.php | 4 +- .../Lead/src/Repositories/StageRepository.php | 4 +- .../Lead/src/Repositories/TypeRepository.php | 4 +- .../Webkul/Product/src/Contracts/Product.php | 4 +- .../src/Contracts/ProductInventory.php | 4 +- .../Webkul/Product/src/Models/Product.php | 6 +- .../Product/src/Models/ProductInventory.php | 3 +- .../src/Models/ProductInventoryProxy.php | 5 +- .../Product/src/Models/ProductProxy.php | 5 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Providers/ProductServiceProvider.php | 11 +- .../ProductInventoryRepository.php | 4 +- .../src/Repositories/ProductRepository.php | 23 +- packages/Webkul/Quote/src/Contracts/Quote.php | 4 +- .../Webkul/Quote/src/Contracts/QuoteItem.php | 4 +- packages/Webkul/Quote/src/Models/Quote.php | 2 +- .../Quote/src/Models/QuoteItemProxy.php | 5 +- .../Webkul/Quote/src/Models/QuoteProxy.php | 5 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Providers/QuoteServiceProvider.php | 11 +- .../src/Repositories/QuoteItemRepository.php | 15 +- .../src/Repositories/QuoteRepository.php | 20 +- packages/Webkul/Tag/src/Contracts/Tag.php | 4 +- packages/Webkul/Tag/src/Models/Tag.php | 2 +- packages/Webkul/Tag/src/Models/TagProxy.php | 5 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../Tag/src/Providers/TagServiceProvider.php | 11 +- .../Tag/src/Repositories/TagRepository.php | 4 +- packages/Webkul/UI/src/DataGrid/DataGrid.php | 38 +- .../src/DataGrid/Exports/DataGridExport.php | 6 +- .../UI/src/DataGrid/Traits/ProvideBouncer.php | 4 +- .../src/DataGrid/Traits/ProvideCollection.php | 27 +- .../Traits/ProvideExceptionHandler.php | 6 +- .../DataGrid/Traits/ProvideQueryResolver.php | 46 +- .../Traits/ProvideQueryStringParser.php | 2 +- .../DataGrid/Traits/ProvideRouteResolver.php | 2 - .../src/DataGrid/Traits/ProvideTabFilters.php | 14 +- .../UI/src/Exceptions/ActionKeyException.php | 4 +- .../UI/src/Exceptions/ColumnKeyException.php | 4 +- .../src/Exceptions/ConditionKeyException.php | 4 +- .../src/Http/Controllers/ExportController.php | 6 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../UI/src/Providers/UIServiceProvider.php | 12 +- .../Webkul/UI/src/Resources/lang/ar/app.php | 2 +- .../Webkul/UI/src/Resources/lang/en/app.php | 2 +- .../Webkul/UI/src/Resources/lang/es/app.php | 2 +- .../Webkul/UI/src/Resources/lang/fa/app.php | 2 +- .../Webkul/UI/src/Resources/lang/tr/app.php | 2 +- packages/Webkul/User/src/Contracts/Group.php | 4 +- packages/Webkul/User/src/Contracts/Role.php | 4 +- packages/Webkul/User/src/Contracts/User.php | 4 +- .../2021_03_12_074578_create_groups_table.php | 4 +- .../2021_03_12_074597_create_roles_table.php | 4 +- ...4957_create_user_password_resets_table.php | 4 +- .../Webkul/User/src/Models/GroupProxy.php | 5 +- packages/Webkul/User/src/Models/RoleProxy.php | 5 +- packages/Webkul/User/src/Models/User.php | 2 +- packages/Webkul/User/src/Models/UserProxy.php | 5 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Providers/UserServiceProvider.php | 9 +- .../User/src/Repositories/GroupRepository.php | 4 +- .../User/src/Repositories/RoleRepository.php | 4 +- .../User/src/Repositories/UserRepository.php | 6 +- .../Warehouse/src/Contracts/Location.php | 4 +- .../Warehouse/src/Contracts/Warehouse.php | 4 +- ...60735_create_warehouse_locations_table.php | 4 +- .../Webkul/Warehouse/src/Models/Location.php | 1 - .../Warehouse/src/Models/LocationProxy.php | 5 +- .../Warehouse/src/Models/WarehouseProxy.php | 5 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../Providers/WarehouseServiceProvider.php | 9 +- .../src/Repositories/LocationRepository.php | 4 +- .../src/Repositories/WarehouseRepository.php | 14 +- packages/Webkul/WebForm/src/Config/acl.php | 6 +- packages/Webkul/WebForm/src/Config/menu.php | 4 +- .../Webkul/WebForm/src/Contracts/WebForm.php | 4 +- .../src/Contracts/WebFormAttribute.php | 4 +- .../WebForm/src/DataGrids/WebFormDataGrid.php | 2 +- .../src/Http/Controllers/Controller.php | 4 +- .../Http/Controllers/WebFormController.php | 16 +- .../WebForm/src/Http/Requests/WebForm.php | 45 +- packages/Webkul/WebForm/src/Http/routes.php | 4 +- .../Webkul/WebForm/src/Models/WebForm.php | 2 +- .../WebForm/src/Models/WebFormAttribute.php | 8 +- .../src/Models/WebFormAttributeProxy.php | 5 +- .../WebForm/src/Models/WebFormProxy.php | 5 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Providers/WebFormServiceProvider.php | 20 +- .../WebFormAttributeRepository.php | 4 +- .../src/Repositories/WebFormRepository.php | 8 +- .../WebForm/src/Resources/lang/ar/app.php | 2 +- .../WebForm/src/Resources/lang/en/app.php | 4 +- .../WebForm/src/Resources/lang/es/app.php | 4 +- .../WebForm/src/Resources/lang/tr/app.php | 2 +- .../Webkul/Workflow/src/Config/workflows.php | 40 +- .../Workflow/src/Contracts/Workflow.php | 4 +- .../Webkul/Workflow/src/Helpers/Entity.php | 13 +- .../src/Helpers/Entity/AbstractEntity.php | 34 +- .../Workflow/src/Helpers/Entity/Activity.php | 95 +- .../Workflow/src/Helpers/Entity/Lead.php | 67 +- .../Workflow/src/Helpers/Entity/Person.php | 44 +- .../Workflow/src/Helpers/Entity/Quote.php | 53 +- .../Webkul/Workflow/src/Helpers/Validator.php | 10 +- .../Webkul/Workflow/src/Listeners/Entity.php | 9 +- .../Webkul/Workflow/src/Models/Workflow.php | 2 +- .../Workflow/src/Models/WorkflowProxy.php | 5 +- .../src/Providers/ModuleServiceProvider.php | 2 +- .../src/Providers/WorkflowServiceProvider.php | 8 +- .../src/Repositories/WorkflowRepository.php | 4 +- pint.json | 10 + routes/breadcrumbs.php | 25 +- server.php | 2 - tests/Feature/AuthenticationTest.php | 2 +- 360 files changed, 7183 insertions(+), 7499 deletions(-) create mode 100644 pint.json diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index e08f608d5..d99949c71 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -19,7 +19,6 @@ class Kernel extends ConsoleKernel /** * Define the application's command schedule. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 362b48b0d..fe886b08b 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -12,8 +12,6 @@ class RedirectIfAuthenticated /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string|null ...$guards * @return mixed */ diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php index 8c58aef7c..788d6bd69 100644 --- a/app/Http/Middleware/VerifyCsrfToken.php +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -13,6 +13,6 @@ class VerifyCsrfToken extends Middleware */ protected $except = [ 'admin/mail/inbound-parse', - 'admin/web-forms/forms/*' + 'admin/web-forms/forms/*', ]; } diff --git a/app/Models/User.php b/app/Models/User.php index 804799baf..e0759c3e1 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -2,7 +2,6 @@ namespace App\Models; -use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index ce7449164..d49c38697 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -3,7 +3,6 @@ namespace App\Providers; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; -use Illuminate\Support\Facades\Gate; class AuthServiceProvider extends ServiceProvider { diff --git a/composer.json b/composer.json index c790df2b5..0bb33057b 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,7 @@ "guzzlehttp/guzzle": "^7.0.1", "konekt/concord": "^1.10", "laravel/framework": "^10.0", + "laravel/pint": "^1.16", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.5", "laravel/ui": "^4.0", @@ -89,4 +90,4 @@ "@php artisan key:generate --ansi" ] } -} \ No newline at end of file +} diff --git a/composer.lock b/composer.lock index 1fd741c49..3fee3ef85 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": "def618f5eea5864f656675a76f46fc2b", + "content-hash": "0ab7f44eea906407d5d14ccc36cfa163", "packages": [ { "name": "barryvdh/laravel-dompdf", @@ -2189,6 +2189,72 @@ }, "time": "2024-06-21T10:06:42+00:00" }, + { + "name": "laravel/pint", + "version": "v1.16.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "51f1ba679a6afe0315621ad143d788bd7ded0eca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/51f1ba679a6afe0315621ad143d788bd7ded0eca", + "reference": "51f1ba679a6afe0315621ad143d788bd7ded0eca", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.1.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.59.3", + "illuminate/view": "^10.48.12", + "larastan/larastan": "^2.9.7", + "laravel-zero/framework": "^10.4.0", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^1.15.1", + "pestphp/pest": "^2.34.8" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2024-07-09T15:58:08+00:00" + }, { "name": "laravel/prompts", "version": "v0.1.24", diff --git a/config/app.php b/config/app.php index ab2e90f67..b5ee82304 100644 --- a/config/app.php +++ b/config/app.php @@ -284,17 +284,17 @@ 'Queue' => Illuminate\Support\Facades\Queue::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class, // 'Redis' => Illuminate\Support\Facades\Redis::class, - 'Request' => Illuminate\Support\Facades\Request::class, - 'Response' => Illuminate\Support\Facades\Response::class, - 'Route' => Illuminate\Support\Facades\Route::class, - 'Schema' => Illuminate\Support\Facades\Schema::class, - 'Session' => Illuminate\Support\Facades\Session::class, - 'Storage' => Illuminate\Support\Facades\Storage::class, - 'Str' => Illuminate\Support\Str::class, - 'URL' => Illuminate\Support\Facades\URL::class, - 'Validator' => Illuminate\Support\Facades\Validator::class, - 'View' => Illuminate\Support\Facades\View::class, - 'Menu' => Webkul\Admin\Facades\Menu::class, + 'Request' => Illuminate\Support\Facades\Request::class, + 'Response' => Illuminate\Support\Facades\Response::class, + 'Route' => Illuminate\Support\Facades\Route::class, + 'Schema' => Illuminate\Support\Facades\Schema::class, + 'Session' => Illuminate\Support\Facades\Session::class, + 'Storage' => Illuminate\Support\Facades\Storage::class, + 'Str' => Illuminate\Support\Str::class, + 'URL' => Illuminate\Support\Facades\URL::class, + 'Validator' => Illuminate\Support\Facades\Validator::class, + 'View' => Illuminate\Support\Facades\View::class, + 'Menu' => Webkul\Admin\Facades\Menu::class, ], ]; diff --git a/config/auth.php b/config/auth.php index 2aab2a6d9..9e0d1c134 100644 --- a/config/auth.php +++ b/config/auth.php @@ -14,7 +14,7 @@ */ 'defaults' => [ - 'guard' => 'user', + 'guard' => 'user', 'passwords' => 'users', ], @@ -37,8 +37,8 @@ 'guards' => [ 'user' => [ - 'driver' => 'session', - 'provider' => 'users' + 'driver' => 'session', + 'provider' => 'users', ], ], @@ -62,8 +62,8 @@ 'providers' => [ 'users' => [ 'driver' => 'eloquent', - 'model' => Webkul\User\Models\User::class, - ] + 'model' => Webkul\User\Models\User::class, + ], ], /* @@ -84,8 +84,8 @@ 'passwords' => [ 'users' => [ 'provider' => 'users', - 'table' => 'user_password_resets', - 'expire' => 60, + 'table' => 'user_password_resets', + 'expire' => 60, ], ], diff --git a/config/broadcasting.php b/config/broadcasting.php index 2d529820c..59bccd522 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -31,23 +31,23 @@ 'connections' => [ 'pusher' => [ - 'driver' => 'pusher', - 'key' => env('PUSHER_APP_KEY'), - 'secret' => env('PUSHER_APP_SECRET'), - 'app_id' => env('PUSHER_APP_ID'), + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), - 'useTLS' => true, + 'useTLS' => true, ], ], 'ably' => [ 'driver' => 'ably', - 'key' => env('ABLY_KEY'), + 'key' => env('ABLY_KEY'), ], 'redis' => [ - 'driver' => 'redis', + 'driver' => 'redis', 'connection' => 'default', ], diff --git a/config/cache.php b/config/cache.php index e32a2fd3b..3e41cb412 100644 --- a/config/cache.php +++ b/config/cache.php @@ -38,26 +38,26 @@ ], 'array' => [ - 'driver' => 'array', + 'driver' => 'array', 'serialize' => false, ], 'database' => [ - 'driver' => 'database', - 'table' => 'cache', - 'connection' => null, + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, 'lock_connection' => null, ], 'file' => [ 'driver' => 'file', - 'path' => storage_path('framework/cache/data'), + 'path' => storage_path('framework/cache/data'), ], 'memcached' => [ - 'driver' => 'memcached', + 'driver' => 'memcached', 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), - 'sasl' => [ + 'sasl' => [ env('MEMCACHED_USERNAME'), env('MEMCACHED_PASSWORD'), ], @@ -66,25 +66,25 @@ ], 'servers' => [ [ - 'host' => env('MEMCACHED_HOST', '127.0.0.1'), - 'port' => env('MEMCACHED_PORT', 11211), + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), 'weight' => 100, ], ], ], 'redis' => [ - 'driver' => 'redis', - 'connection' => 'cache', + 'driver' => 'redis', + 'connection' => 'cache', 'lock_connection' => 'default', ], 'dynamodb' => [ - 'driver' => 'dynamodb', - 'key' => env('AWS_ACCESS_KEY_ID'), - 'secret' => env('AWS_SECRET_ACCESS_KEY'), - 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), - 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 'endpoint' => env('DYNAMODB_ENDPOINT'), ], diff --git a/config/concord.php b/config/concord.php index d05884069..7bde89262 100644 --- a/config/concord.php +++ b/config/concord.php @@ -19,5 +19,5 @@ \Webkul\WebForm\Providers\ModuleServiceProvider::class, \Webkul\Workflow\Providers\ModuleServiceProvider::class, ], - 'register_route_models' => true + 'register_route_models' => true, ]; diff --git a/config/cors.php b/config/cors.php index ddaaf2839..4222c1143 100644 --- a/config/cors.php +++ b/config/cors.php @@ -22,7 +22,7 @@ * Example: ['api/*'] */ 'paths' => [ - 'admin/web-forms/forms/*' + 'admin/web-forms/forms/*', ], /* diff --git a/config/database.php b/config/database.php index aeabec6fb..7c32f1377 100644 --- a/config/database.php +++ b/config/database.php @@ -36,58 +36,58 @@ 'connections' => [ 'sqlite' => [ - 'driver' => 'sqlite', - 'url' => env('DATABASE_URL'), - 'database' => env('DB_DATABASE', database_path('database.sqlite')), - 'prefix' => '', + 'driver' => 'sqlite', + 'url' => env('DATABASE_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), ], 'mysql' => [ - 'driver' => 'mysql', - 'url' => env('DATABASE_URL'), - 'host' => env('DB_HOST', '127.0.0.1'), - 'port' => env('DB_PORT', '3306'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), - 'unix_socket' => env('DB_SOCKET', ''), - 'charset' => 'utf8mb4', - 'collation' => 'utf8mb4_unicode_ci', - 'prefix' => '', + 'driver' => 'mysql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', 'prefix_indexes' => true, - 'strict' => false, - 'engine' => null, - 'options' => extension_loaded('pdo_mysql') ? array_filter([ + 'strict' => false, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), ]) : [], ], 'pgsql' => [ - 'driver' => 'pgsql', - 'url' => env('DATABASE_URL'), - 'host' => env('DB_HOST', '127.0.0.1'), - 'port' => env('DB_PORT', '5432'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'prefix' => '', + 'driver' => 'pgsql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', 'prefix_indexes' => true, - 'schema' => 'public', - 'sslmode' => 'prefer', + 'schema' => 'public', + 'sslmode' => 'prefer', ], 'sqlsrv' => [ - 'driver' => 'sqlsrv', - 'url' => env('DATABASE_URL'), - 'host' => env('DB_HOST', 'localhost'), - 'port' => env('DB_PORT', '1433'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'prefix' => '', + 'driver' => 'sqlsrv', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', 'prefix_indexes' => true, ], @@ -123,22 +123,22 @@ 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'redis'), - 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), ], 'default' => [ - 'url' => env('REDIS_URL'), - 'host' => env('REDIS_HOST', '127.0.0.1'), + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), - 'port' => env('REDIS_PORT', '6379'), + 'port' => env('REDIS_PORT', '6379'), 'database' => env('REDIS_DB', '0'), ], 'cache' => [ - 'url' => env('REDIS_URL'), - 'host' => env('REDIS_HOST', '127.0.0.1'), + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), - 'port' => env('REDIS_PORT', '6379'), + 'port' => env('REDIS_PORT', '6379'), 'database' => env('REDIS_CACHE_DB', '1'), ], diff --git a/config/debugbar.php b/config/debugbar.php index fe3b192d7..d88ab0b4e 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -15,7 +15,7 @@ */ 'enabled' => env('DEBUGBAR_ENABLED', null), - 'except' => [ + 'except' => [ 'telescope*', 'horizon*', ], @@ -82,7 +82,7 @@ */ 'remote_sites_path' => env('DEBUGBAR_REMOTE_SITES_PATH', ''), - 'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', ''), + 'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', ''), /* |-------------------------------------------------------------------------- @@ -114,7 +114,7 @@ | X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header. */ - 'capture_ajax' => true, + 'capture_ajax' => true, 'add_ajax_timing' => false, /* @@ -188,24 +188,24 @@ 'show_name' => true, // Also show the users name/email in the debugbar ], 'db' => [ - 'with_params' => true, // Render SQL with the parameters substituted - 'backtrace' => true, // Use a backtrace to find the origin of the query in your files. + 'with_params' => true, // Render SQL with the parameters substituted + 'backtrace' => true, // Use a backtrace to find the origin of the query in your files. 'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults) - 'timeline' => false, // Add the queries to the timeline - 'duration_background' => true, // Show shaded background on each query relative to how long it took to execute. - 'explain' => [ // Show EXPLAIN output on queries + 'timeline' => false, // Add the queries to the timeline + 'duration_background' => true, // Show shaded background on each query relative to how long it took to execute. + 'explain' => [ // Show EXPLAIN output on queries 'enabled' => false, - 'types' => ['SELECT'], // Deprecated setting, is always only SELECT + 'types' => ['SELECT'], // Deprecated setting, is always only SELECT ], - 'hints' => false, // Show hints for common mistakes - 'show_copy' => false, // Show copy button next to the query + 'hints' => false, // Show hints for common mistakes + 'show_copy' => false, // Show copy button next to the query ], 'mail' => [ 'full_log' => false, ], 'views' => [ 'timeline' => false, // Add the views to the timeline (Experimental) - 'data' => false, //Note: Can slow down the application, because the data can be quite large.. + 'data' => false, //Note: Can slow down the application, because the data can be quite large.. ], 'route' => [ 'label' => true, // show complete route on bar diff --git a/config/dompdf.php b/config/dompdf.php index 8ad202243..5b60bbadb 100644 --- a/config/dompdf.php +++ b/config/dompdf.php @@ -1,6 +1,6 @@ true, - 'options' => array( + 'options' => [ /** * The location of the DOMPDF font directory * @@ -45,7 +45,7 @@ * Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic, * Symbol, ZapfDingbats. */ - "font_dir" => storage_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782) + 'font_dir' => storage_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782) /** * The location of the DOMPDF font cache directory @@ -55,7 +55,7 @@ * * Note: This directory must exist and be writable by the webserver process. */ - "font_cache" => storage_path('fonts'), + 'font_cache' => storage_path('fonts'), /** * The location of a temporary directory. @@ -64,7 +64,7 @@ * The temporary directory is required to download remote images and when * using the PFDLib back end. */ - "temp_dir" => sys_get_temp_dir(), + 'temp_dir' => sys_get_temp_dir(), /** * ==== IMPORTANT ==== @@ -78,7 +78,7 @@ * direct class use like: * $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output(); */ - "chroot" => realpath(base_path()), + 'chroot' => realpath(base_path()), /** * Protocol whitelist @@ -91,28 +91,27 @@ * @var array */ 'allowed_protocols' => [ - "file://" => ["rules" => []], - "http://" => ["rules" => []], - "https://" => ["rules" => []] + 'file://' => ['rules' => []], + 'http://' => ['rules' => []], + 'https://' => ['rules' => []], ], - /** - * @var string - */ + /** + * @var string + */ 'log_output_file' => null, /** * Whether to enable font subsetting or not. */ - "enable_font_subsetting" => false, + 'enable_font_subsetting' => false, /** * The PDF rendering backend to use * * Valid settings are 'PDFLib', 'CPDF' (the bundled R&OS PDF class), 'GD' and * 'auto'. 'auto' will look for PDFLib and use it if found, or if not it will - * fall back on CPDF. 'GD' renders PDFs to graphic files. {@link - * Canvas_Factory} ultimately determines which rendering class to instantiate + * fall back on CPDF. 'GD' renders PDFs to graphic files. {@link * Canvas_Factory} ultimately determines which rendering class to instantiate * based on this setting. * * Both PDFLib & CPDF rendering backends provide sufficient rendering @@ -134,7 +133,7 @@ * @link http://www.ros.co.nz/pdf * @link http://www.php.net/image */ - "pdf_backend" => "CPDF", + 'pdf_backend' => 'CPDF', /** * PDFlib license key @@ -160,7 +159,7 @@ * the desired content might be different (e.g. screen or projection view of html file). * Therefore allow specification of content here. */ - "default_media_type" => "screen", + 'default_media_type' => 'screen', /** * The default paper size. @@ -169,24 +168,25 @@ * * @see CPDF_Adapter::PAPER_SIZES for valid sizes ('letter', 'legal', 'A4', etc.) */ - "default_paper_size" => "a4", + 'default_paper_size' => 'a4', - /** - * The default paper orientation. - * - * The orientation of the page (portrait or landscape). - * - * @var string - */ - 'default_paper_orientation' => "portrait", + /** + * The default paper orientation. + * + * The orientation of the page (portrait or landscape). + * + * @var string + */ + 'default_paper_orientation' => 'portrait', /** * The default font family * * Used if no suitable fonts can be found. This must exist in the font folder. + * * @var string */ - "default_font" => "serif", + 'default_font' => 'serif', /** * Image DPI setting @@ -221,7 +221,7 @@ * * @var int */ - "dpi" => 96, + 'dpi' => 96, /** * Enable inline PHP @@ -235,7 +235,7 @@ * * @var bool */ - "enable_php" => false, + 'enable_php' => false, /** * Enable inline Javascript @@ -245,7 +245,7 @@ * * @var bool */ - "enable_javascript" => true, + 'enable_javascript' => true, /** * Enable remote file access @@ -264,21 +264,21 @@ * * @var bool */ - "enable_remote" => true, + 'enable_remote' => true, /** * A ratio applied to the fonts height to be more like browsers' line height */ - "font_height_ratio" => 1.1, + 'font_height_ratio' => 1.1, /** * Use the HTML5 Lib parser * * @deprecated This feature is now always on in dompdf 2.x + * * @var bool */ - "enable_html5_parser" => true, - ), - + 'enable_html5_parser' => true, + ], -); +]; diff --git a/config/excel.php b/config/excel.php index 1c7b5c998..bd92fcf77 100644 --- a/config/excel.php +++ b/config/excel.php @@ -14,7 +14,7 @@ | Here you can specify how big the chunk should be. | */ - 'chunk_size' => 1000, + 'chunk_size' => 1000, /* |-------------------------------------------------------------------------- @@ -41,7 +41,7 @@ | Configure e.g. delimiter, enclosure and line ending for CSV exports. | */ - 'csv' => [ + 'csv' => [ 'delimiter' => ',', 'enclosure' => '"', 'line_ending' => PHP_EOL, @@ -59,7 +59,7 @@ | Configure e.g. default title, creator, subject,... | */ - 'properties' => [ + 'properties' => [ 'creator' => '', 'lastModifiedBy' => '', 'title' => '', @@ -72,7 +72,7 @@ ], ], - 'imports' => [ + 'imports' => [ /* |-------------------------------------------------------------------------- @@ -121,7 +121,7 @@ | Configure e.g. delimiter, enclosure and line ending for CSV imports. | */ - 'csv' => [ + 'csv' => [ 'delimiter' => null, 'enclosure' => '"', 'escape_character' => '\\', @@ -137,7 +137,7 @@ | Configure e.g. default title, creator, subject,... | */ - 'properties' => [ + 'properties' => [ 'creator' => '', 'lastModifiedBy' => '', 'title' => '', @@ -186,7 +186,7 @@ | Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF | */ - 'pdf' => Excel::DOMPDF, + 'pdf' => Excel::DOMPDF, ], /* @@ -227,7 +227,7 @@ | Drivers: memory|illuminate|batch | */ - 'driver' => 'memory', + 'driver' => 'memory', /* |-------------------------------------------------------------------------- @@ -239,7 +239,7 @@ | Here you can tweak the memory limit to your liking. | */ - 'batch' => [ + 'batch' => [ 'memory_limit' => 60000, ], @@ -293,7 +293,7 @@ | storing reading or downloading. Here you can customize that path. | */ - 'local_path' => storage_path('framework/cache/laravel-excel'), + 'local_path' => storage_path('framework/cache/laravel-excel'), /* |-------------------------------------------------------------------------- @@ -309,8 +309,8 @@ | in conjunction with queued imports and exports. | */ - 'remote_disk' => null, - 'remote_prefix' => null, + 'remote_disk' => null, + 'remote_prefix' => null, /* |-------------------------------------------------------------------------- diff --git a/config/filesystems.php b/config/filesystems.php index acff539df..35c62bff8 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -32,23 +32,23 @@ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => storage_path('app'), ], 'public' => [ - 'driver' => 'local', - 'root' => storage_path('app/public'), - 'url' => env('APP_URL').'/storage', + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', 'visibility' => 'public', ], 's3' => [ - 'driver' => 's3', - 'key' => env('AWS_ACCESS_KEY_ID'), - 'secret' => env('AWS_SECRET_ACCESS_KEY'), - 'region' => env('AWS_DEFAULT_REGION'), - 'bucket' => env('AWS_BUCKET'), - 'url' => env('AWS_URL'), + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), ], diff --git a/config/flare.php b/config/flare.php index a4896f353..71d146775 100644 --- a/config/flare.php +++ b/config/flare.php @@ -1,16 +1,16 @@ [ 'maximum_number_of_collected_queries' => 200, - 'report_query_bindings' => true, + 'report_query_bindings' => true, ], AddJobs::class => [ 'max_chained_job_reporting_depth' => 5, @@ -62,8 +62,8 @@ CensorRequestHeaders::class => [ 'headers' => [ 'API-KEY', - ] - ] + ], + ], ], /* diff --git a/config/hashing.php b/config/hashing.php index 842577087..5b10c09d3 100644 --- a/config/hashing.php +++ b/config/hashing.php @@ -44,9 +44,9 @@ */ 'argon' => [ - 'memory' => 1024, + 'memory' => 1024, 'threads' => 2, - 'time' => 2, + 'time' => 2, ], ]; diff --git a/config/ignition.php b/config/ignition.php index 4cc53e45c..5a4df0e18 100644 --- a/config/ignition.php +++ b/config/ignition.php @@ -172,7 +172,7 @@ */ 'remote_sites_path' => env('IGNITION_REMOTE_SITES_PATH', base_path()), - 'local_sites_path' => env('IGNITION_LOCAL_SITES_PATH', ''), + 'local_sites_path' => env('IGNITION_LOCAL_SITES_PATH', ''), /* |-------------------------------------------------------------------------- diff --git a/config/logging.php b/config/logging.php index 6aa77fe28..c1cb04ed8 100644 --- a/config/logging.php +++ b/config/logging.php @@ -36,36 +36,36 @@ 'channels' => [ 'stack' => [ - 'driver' => 'stack', - 'channels' => ['single'], + 'driver' => 'stack', + 'channels' => ['single'], 'ignore_exceptions' => false, ], 'single' => [ 'driver' => 'single', - 'path' => storage_path('logs/laravel.log'), - 'level' => env('LOG_LEVEL', 'debug'), + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), ], 'daily' => [ 'driver' => 'daily', - 'path' => storage_path('logs/laravel.log'), - 'level' => env('LOG_LEVEL', 'debug'), - 'days' => 14, + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => 14, ], 'slack' => [ - 'driver' => 'slack', - 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', - 'emoji' => ':boom:', - 'level' => env('LOG_LEVEL', 'critical'), + 'emoji' => ':boom:', + 'level' => env('LOG_LEVEL', 'critical'), ], 'papertrail' => [ - 'driver' => 'monolog', - 'level' => env('LOG_LEVEL', 'debug'), - 'handler' => SyslogUdpHandler::class, + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), @@ -73,26 +73,26 @@ ], 'stderr' => [ - 'driver' => 'monolog', - 'handler' => StreamHandler::class, + 'driver' => 'monolog', + 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), - 'with' => [ + 'with' => [ 'stream' => 'php://stderr', ], ], 'syslog' => [ 'driver' => 'syslog', - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'debug'), ], 'errorlog' => [ 'driver' => 'errorlog', - 'level' => env('LOG_LEVEL', 'debug'), + 'level' => env('LOG_LEVEL', 'debug'), ], 'null' => [ - 'driver' => 'monolog', + 'driver' => 'monolog', 'handler' => NullHandler::class, ], diff --git a/config/mail.php b/config/mail.php index f4b2962a6..2f2f48d6b 100644 --- a/config/mail.php +++ b/config/mail.php @@ -35,13 +35,13 @@ 'mailers' => [ 'smtp' => [ - 'transport' => 'smtp', - 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), - 'port' => env('MAIL_PORT', 587), - 'encryption' => env('MAIL_ENCRYPTION', 'tls'), - 'username' => env('MAIL_USERNAME'), - 'password' => env('MAIL_PASSWORD'), - 'timeout' => null, + 'transport' => 'smtp', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'port' => env('MAIL_PORT', 587), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, 'verify_peer' => false, ], @@ -59,12 +59,12 @@ 'sendmail' => [ 'transport' => 'sendmail', - 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), ], 'log' => [ 'transport' => 'log', - 'channel' => env('MAIL_LOG_CHANNEL'), + 'channel' => env('MAIL_LOG_CHANNEL'), ], 'array' => [ @@ -73,7 +73,7 @@ 'failover' => [ 'transport' => 'failover', - 'mailers' => [ + 'mailers' => [ 'smtp', 'log', ], @@ -93,7 +93,7 @@ 'from' => [ 'address' => env('MAIL_FROM_ADDRESS'), - 'name' => env('MAIL_FROM_NAME') + 'name' => env('MAIL_FROM_NAME'), ], /* @@ -127,4 +127,4 @@ ], ], -]; \ No newline at end of file +]; diff --git a/config/queue.php b/config/queue.php index 122229666..a8bf55158 100644 --- a/config/queue.php +++ b/config/queue.php @@ -35,36 +35,36 @@ ], 'database' => [ - 'driver' => 'database', - 'table' => 'jobs', - 'queue' => 'default', + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', 'retry_after' => 90, ], 'beanstalkd' => [ - 'driver' => 'beanstalkd', - 'host' => 'localhost', - 'queue' => 'default', + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', 'retry_after' => 90, - 'block_for' => 0, + 'block_for' => 0, ], 'sqs' => [ 'driver' => 'sqs', - 'key' => env('AWS_ACCESS_KEY_ID'), + 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), - 'queue' => env('SQS_QUEUE', 'your-queue-name'), + 'queue' => env('SQS_QUEUE', 'your-queue-name'), 'suffix' => env('SQS_SUFFIX'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], 'redis' => [ - 'driver' => 'redis', - 'connection' => 'default', - 'queue' => env('REDIS_QUEUE', 'default'), + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90, - 'block_for' => null, + 'block_for' => null, ], ], @@ -81,9 +81,9 @@ */ 'failed' => [ - 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 'database' => env('DB_CONNECTION', 'mysql'), - 'table' => 'failed_jobs', + 'table' => 'failed_jobs', ], ]; diff --git a/config/repository.php b/config/repository.php index f8498b8db..4b051641d 100644 --- a/config/repository.php +++ b/config/repository.php @@ -15,7 +15,7 @@ | */ 'pagination' => [ - 'limit' => 15 + 'limit' => 15, ], /* @@ -30,11 +30,11 @@ JsonApiSerializer */ - 'fractal' => [ - 'params' => [ - 'include' => 'include' + 'fractal' => [ + 'params' => [ + 'include' => 'include', ], - 'serializer' => League\Fractal\Serializer\DataArraySerializer::class + 'serializer' => League\Fractal\Serializer\DataArraySerializer::class, ], /* @@ -43,7 +43,7 @@ |-------------------------------------------------------------------------- | */ - 'cache' => [ + 'cache' => [ /* |-------------------------------------------------------------------------- | Cache Status @@ -52,7 +52,7 @@ | Enable or disable cache | */ - 'enabled' => false, + 'enabled' => false, /* |-------------------------------------------------------------------------- @@ -62,7 +62,7 @@ | Time of expiration cache | */ - 'minutes' => 30, + 'minutes' => 30, /* |-------------------------------------------------------------------------- @@ -82,7 +82,7 @@ | | */ - 'clean' => [ + 'clean' => [ /* |-------------------------------------------------------------------------- @@ -102,14 +102,14 @@ | delete : Clear Cache on delete Entry in repository | */ - 'on' => [ + 'on' => [ 'create' => true, 'update' => true, 'delete' => true, - ] + ], ], - 'params' => [ + 'params' => [ /* |-------------------------------------------------------------------------- | Skip Cache Params @@ -119,7 +119,7 @@ | Ex: http://prettus.local/?search=lorem&skipCache=true | */ - 'skipCache' => 'skipCache' + 'skipCache' => 'skipCache', ], /* @@ -137,10 +137,10 @@ | | 'except' =>['find'], */ - 'allowed' => [ + 'allowed' => [ 'only' => null, - 'except' => null - ] + 'except' => null, + ], ], /* @@ -151,7 +151,7 @@ | Settings of request parameters names that will be used by Criteria | */ - 'criteria' => [ + 'criteria' => [ /* |-------------------------------------------------------------------------- | Accepted Conditions @@ -170,7 +170,7 @@ 'acceptedConditions' => [ '=', 'like', - 'in' + 'in', ], /* |-------------------------------------------------------------------------- @@ -210,7 +210,7 @@ | http://prettus.local/?search=lorem&searchJoin=or | */ - 'params' => [ + 'params' => [ 'search' => 'search', 'searchFields' => 'searchFields', 'filter' => 'filter', @@ -218,8 +218,8 @@ 'sortedBy' => 'sortedBy', 'with' => 'with', 'searchJoin' => 'searchJoin', - 'withCount' => 'withCount' - ] + 'withCount' => 'withCount', + ], ], /* |-------------------------------------------------------------------------- @@ -227,11 +227,11 @@ |-------------------------------------------------------------------------- | */ - 'generator' => [ - 'basePath' => app()->path(), - 'rootNamespace' => 'App\\', + 'generator' => [ + 'basePath' => app()->path(), + 'rootNamespace' => 'App\\', 'stubsOverridePath' => app()->path(), - 'paths' => [ + 'paths' => [ 'models' => 'Entities', 'repositories' => 'Repositories', 'interfaces' => 'Repositories', @@ -240,7 +240,7 @@ 'validators' => 'Validators', 'controllers' => 'Http/Controllers', 'provider' => 'RepositoryServiceProvider', - 'criteria' => 'Criteria' - ] - ] + 'criteria' => 'Criteria', + ], + ], ]; diff --git a/config/sanctum.php b/config/sanctum.php index a5a9aa536..c6c6045e8 100644 --- a/config/sanctum.php +++ b/config/sanctum.php @@ -59,7 +59,7 @@ 'middleware' => [ 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, - 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, + 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, ], ]; diff --git a/config/services.php b/config/services.php index 7dade3321..3215b4235 100644 --- a/config/services.php +++ b/config/services.php @@ -15,8 +15,8 @@ */ 'mailgun' => [ - 'domain' => env('MAILGUN_DOMAIN'), - 'secret' => env('MAILGUN_SECRET'), + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), ], @@ -25,9 +25,9 @@ ], 'ses' => [ - 'key' => env('AWS_ACCESS_KEY_ID'), + 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], - + ]; diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 3510ed670..8556600d1 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -23,11 +23,11 @@ class UserFactory extends Factory public function definition() { return [ - 'name' => $this->faker->name, - 'email' => $this->faker->unique()->safeEmail, + 'name' => $this->faker->name, + 'email' => $this->faker->unique()->safeEmail, 'email_verified_at' => now(), - 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password - 'remember_token' => Str::random(10), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password + 'remember_token' => Str::random(10), ]; } diff --git a/lang/en/auth.php b/lang/en/auth.php index 6598e2c06..24e063b59 100644 --- a/lang/en/auth.php +++ b/lang/en/auth.php @@ -13,7 +13,7 @@ | */ - 'failed' => 'These credentials do not match our records.', + 'failed' => 'These credentials do not match our records.', 'password' => 'The provided password is incorrect.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', diff --git a/lang/en/pagination.php b/lang/en/pagination.php index d48141187..fcab34b25 100644 --- a/lang/en/pagination.php +++ b/lang/en/pagination.php @@ -14,6 +14,6 @@ */ 'previous' => '« Previous', - 'next' => 'Next »', + 'next' => 'Next »', ]; diff --git a/lang/en/passwords.php b/lang/en/passwords.php index 2345a56b5..526795fba 100644 --- a/lang/en/passwords.php +++ b/lang/en/passwords.php @@ -13,10 +13,10 @@ | */ - 'reset' => 'Your password has been reset!', - 'sent' => 'We have emailed your password reset link!', + 'reset' => 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', 'throttled' => 'Please wait before retrying.', - 'token' => 'This password reset token is invalid.', - 'user' => "We can't find a user with that email address.", + 'token' => 'This password reset token is invalid.', + 'user' => "We can't find a user with that email address.", ]; diff --git a/lang/en/validation.php b/lang/en/validation.php index c77e41ce4..5226d4e68 100644 --- a/lang/en/validation.php +++ b/lang/en/validation.php @@ -13,111 +13,111 @@ | */ - 'accepted' => 'The :attribute must be accepted.', - 'active_url' => 'The :attribute is not a valid URL.', - 'after' => 'The :attribute must be a date after :date.', - 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', - 'alpha' => 'The :attribute may only contain letters.', - 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', - 'alpha_num' => 'The :attribute may only contain letters and numbers.', - 'array' => 'The :attribute must be an array.', - 'before' => 'The :attribute must be a date before :date.', + 'accepted' => 'The :attribute must be accepted.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute may only contain letters.', + 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute may only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'before' => 'The :attribute must be a date before :date.', 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', - 'between' => [ + 'between' => [ 'numeric' => 'The :attribute must be between :min and :max.', - 'file' => 'The :attribute must be between :min and :max kilobytes.', - 'string' => 'The :attribute must be between :min and :max characters.', - 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'string' => 'The :attribute must be between :min and :max characters.', + 'array' => 'The :attribute must have between :min and :max items.', ], - 'boolean' => 'The :attribute field must be true or false.', - 'confirmed' => 'The :attribute confirmation does not match.', - 'date' => 'The :attribute is not a valid date.', - 'date_equals' => 'The :attribute must be a date equal to :date.', - 'date_format' => 'The :attribute does not match the format :format.', - 'different' => 'The :attribute and :other must be different.', - 'digits' => 'The :attribute must be :digits digits.', + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', 'digits_between' => 'The :attribute must be between :min and :max digits.', - 'dimensions' => 'The :attribute has invalid image dimensions.', - 'distinct' => 'The :attribute field has a duplicate value.', - 'email' => 'The :attribute must be a valid email address.', - 'ends_with' => 'The :attribute must end with one of the following: :values.', - 'exists' => 'The selected :attribute is invalid.', - 'file' => 'The :attribute must be a file.', - 'filled' => 'The :attribute field must have a value.', - 'gt' => [ + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ 'numeric' => 'The :attribute must be greater than :value.', - 'file' => 'The :attribute must be greater than :value kilobytes.', - 'string' => 'The :attribute must be greater than :value characters.', - 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'string' => 'The :attribute must be greater than :value characters.', + 'array' => 'The :attribute must have more than :value items.', ], 'gte' => [ 'numeric' => 'The :attribute must be greater than or equal :value.', - 'file' => 'The :attribute must be greater than or equal :value kilobytes.', - 'string' => 'The :attribute must be greater than or equal :value characters.', - 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal :value kilobytes.', + 'string' => 'The :attribute must be greater than or equal :value characters.', + 'array' => 'The :attribute must have :value items or more.', ], - 'image' => 'The :attribute must be an image.', - 'in' => 'The selected :attribute is invalid.', + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', 'in_array' => 'The :attribute field does not exist in :other.', - 'integer' => 'The :attribute must be an integer.', - 'ip' => 'The :attribute must be a valid IP address.', - 'ipv4' => 'The :attribute must be a valid IPv4 address.', - 'ipv6' => 'The :attribute must be a valid IPv6 address.', - 'json' => 'The :attribute must be a valid JSON string.', - 'lt' => [ + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lt' => [ 'numeric' => 'The :attribute must be less than :value.', - 'file' => 'The :attribute must be less than :value kilobytes.', - 'string' => 'The :attribute must be less than :value characters.', - 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'string' => 'The :attribute must be less than :value characters.', + 'array' => 'The :attribute must have less than :value items.', ], 'lte' => [ 'numeric' => 'The :attribute must be less than or equal :value.', - 'file' => 'The :attribute must be less than or equal :value kilobytes.', - 'string' => 'The :attribute must be less than or equal :value characters.', - 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal :value kilobytes.', + 'string' => 'The :attribute must be less than or equal :value characters.', + 'array' => 'The :attribute must not have more than :value items.', ], 'max' => [ 'numeric' => 'The :attribute may not be greater than :max.', - 'file' => 'The :attribute may not be greater than :max kilobytes.', - 'string' => 'The :attribute may not be greater than :max characters.', - 'array' => 'The :attribute may not have more than :max items.', + 'file' => 'The :attribute may not be greater than :max kilobytes.', + 'string' => 'The :attribute may not be greater than :max characters.', + 'array' => 'The :attribute may not have more than :max items.', ], - 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimes' => 'The :attribute must be a file of type: :values.', 'mimetypes' => 'The :attribute must be a file of type: :values.', - 'min' => [ + 'min' => [ 'numeric' => 'The :attribute must be at least :min.', - 'file' => 'The :attribute must be at least :min kilobytes.', - 'string' => 'The :attribute must be at least :min characters.', - 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'string' => 'The :attribute must be at least :min characters.', + 'array' => 'The :attribute must have at least :min items.', ], - 'multiple_of' => 'The :attribute must be a multiple of :value.', - 'not_in' => 'The selected :attribute is invalid.', - 'not_regex' => 'The :attribute format is invalid.', - 'numeric' => 'The :attribute must be a number.', - 'password' => 'The password is incorrect.', - 'present' => 'The :attribute field must be present.', - 'regex' => 'The :attribute format is invalid.', - 'required' => 'The :attribute field is required.', - 'required_if' => 'The :attribute field is required when :other is :value.', - 'required_unless' => 'The :attribute field is required unless :other is in :values.', - 'required_with' => 'The :attribute field is required when :values is present.', - 'required_with_all' => 'The :attribute field is required when :values are present.', - 'required_without' => 'The :attribute field is required when :values is not present.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => 'The password is incorrect.', + 'present' => 'The :attribute field must be present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', 'required_without_all' => 'The :attribute field is required when none of :values are present.', - 'same' => 'The :attribute and :other must match.', - 'size' => [ + 'same' => 'The :attribute and :other must match.', + 'size' => [ 'numeric' => 'The :attribute must be :size.', - 'file' => 'The :attribute must be :size kilobytes.', - 'string' => 'The :attribute must be :size characters.', - 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'string' => 'The :attribute must be :size characters.', + 'array' => 'The :attribute must contain :size items.', ], 'starts_with' => 'The :attribute must start with one of the following: :values.', - 'string' => 'The :attribute must be a string.', - 'timezone' => 'The :attribute must be a valid zone.', - 'unique' => 'The :attribute has already been taken.', - 'uploaded' => 'The :attribute failed to upload.', - 'url' => 'The :attribute format is invalid.', - 'uuid' => 'The :attribute must be a valid UUID.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid zone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'url' => 'The :attribute format is invalid.', + 'uuid' => 'The :attribute must be a valid UUID.', /* |-------------------------------------------------------------------------- diff --git a/packages/Webkul/Activity/src/Contracts/Activity.php b/packages/Webkul/Activity/src/Contracts/Activity.php index 3fa2414bf..9a88b8781 100644 --- a/packages/Webkul/Activity/src/Contracts/Activity.php +++ b/packages/Webkul/Activity/src/Contracts/Activity.php @@ -2,6 +2,4 @@ namespace Webkul\Activity\Contracts; -interface Activity -{ -} \ No newline at end of file +interface Activity {} diff --git a/packages/Webkul/Activity/src/Contracts/File.php b/packages/Webkul/Activity/src/Contracts/File.php index 9a3224e2b..990d4bfce 100644 --- a/packages/Webkul/Activity/src/Contracts/File.php +++ b/packages/Webkul/Activity/src/Contracts/File.php @@ -2,6 +2,4 @@ namespace Webkul\Activity\Contracts; -interface File -{ -} \ No newline at end of file +interface File {} diff --git a/packages/Webkul/Activity/src/Contracts/Participant.php b/packages/Webkul/Activity/src/Contracts/Participant.php index 6cb3a28ab..5a9781bd6 100644 --- a/packages/Webkul/Activity/src/Contracts/Participant.php +++ b/packages/Webkul/Activity/src/Contracts/Participant.php @@ -2,6 +2,4 @@ namespace Webkul\Activity\Contracts; -interface Participant -{ -} \ No newline at end of file +interface Participant {} diff --git a/packages/Webkul/Activity/src/Database/Migrations/2021_07_28_142453_create_activity_participants_table.php b/packages/Webkul/Activity/src/Database/Migrations/2021_07_28_142453_create_activity_participants_table.php index f6da0c4dc..a58ec7738 100644 --- a/packages/Webkul/Activity/src/Database/Migrations/2021_07_28_142453_create_activity_participants_table.php +++ b/packages/Webkul/Activity/src/Database/Migrations/2021_07_28_142453_create_activity_participants_table.php @@ -15,13 +15,13 @@ public function up() { Schema::create('activity_participants', function (Blueprint $table) { $table->increments('id'); - + $table->integer('activity_id')->unsigned(); $table->foreign('activity_id')->references('id')->on('activities')->onDelete('cascade'); $table->integer('user_id')->nullable()->unsigned(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); - + $table->integer('person_id')->nullable()->unsigned(); $table->foreign('person_id')->references('id')->on('persons')->onDelete('cascade'); }); diff --git a/packages/Webkul/Activity/src/Models/Activity.php b/packages/Webkul/Activity/src/Models/Activity.php index a1effb3db..3ad08c5a1 100644 --- a/packages/Webkul/Activity/src/Models/Activity.php +++ b/packages/Webkul/Activity/src/Models/Activity.php @@ -3,9 +3,9 @@ namespace Webkul\Activity\Models; use Illuminate\Database\Eloquent\Model; -use Webkul\User\Models\UserProxy; -use Webkul\Lead\Models\LeadProxy; use Webkul\Activity\Contracts\Activity as ActivityContract; +use Webkul\Lead\Models\LeadProxy; +use Webkul\User\Models\UserProxy; class Activity extends Model implements ActivityContract { diff --git a/packages/Webkul/Activity/src/Models/ActivityProxy.php b/packages/Webkul/Activity/src/Models/ActivityProxy.php index 0e7fda0e9..d748e53b7 100644 --- a/packages/Webkul/Activity/src/Models/ActivityProxy.php +++ b/packages/Webkul/Activity/src/Models/ActivityProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class ActivityProxy extends ModelProxy -{ - -} \ No newline at end of file +class ActivityProxy extends ModelProxy {} diff --git a/packages/Webkul/Activity/src/Models/FileProxy.php b/packages/Webkul/Activity/src/Models/FileProxy.php index b4326e817..09ff947c6 100644 --- a/packages/Webkul/Activity/src/Models/FileProxy.php +++ b/packages/Webkul/Activity/src/Models/FileProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class FileProxy extends ModelProxy -{ - -} \ No newline at end of file +class FileProxy extends ModelProxy {} diff --git a/packages/Webkul/Activity/src/Models/Participant.php b/packages/Webkul/Activity/src/Models/Participant.php index 2a9e1042f..083829a42 100644 --- a/packages/Webkul/Activity/src/Models/Participant.php +++ b/packages/Webkul/Activity/src/Models/Participant.php @@ -3,9 +3,9 @@ namespace Webkul\Activity\Models; use Illuminate\Database\Eloquent\Model; -use Webkul\User\Models\UserProxy; -use Webkul\Contact\Models\PersonProxy; use Webkul\Activity\Contracts\Participant as ParticipantContract; +use Webkul\Contact\Models\PersonProxy; +use Webkul\User\Models\UserProxy; class Participant extends Model implements ParticipantContract { @@ -25,7 +25,7 @@ class Participant extends Model implements ParticipantContract 'user_id', 'person_id', ]; - + /** * Get the activity that owns the participant. */ @@ -33,20 +33,20 @@ public function activity() { return $this->belongsTo(ActivityProxy::modelClass()); } - - /** - * Get the user that owns the participant. - */ - public function user() - { - return $this->belongsTo(UserProxy::modelClass()); - } - - /** - * Get the person that owns the participant. - */ - public function person() - { - return $this->belongsTo(PersonProxy::modelClass()); - } + + /** + * Get the user that owns the participant. + */ + public function user() + { + return $this->belongsTo(UserProxy::modelClass()); + } + + /** + * Get the person that owns the participant. + */ + public function person() + { + return $this->belongsTo(PersonProxy::modelClass()); + } } diff --git a/packages/Webkul/Activity/src/Models/ParticipantProxy.php b/packages/Webkul/Activity/src/Models/ParticipantProxy.php index 71f646723..c4433af70 100644 --- a/packages/Webkul/Activity/src/Models/ParticipantProxy.php +++ b/packages/Webkul/Activity/src/Models/ParticipantProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class ParticipantProxy extends ModelProxy -{ - -} \ No newline at end of file +class ParticipantProxy extends ModelProxy {} diff --git a/packages/Webkul/Activity/src/Providers/ActivityServiceProvider.php b/packages/Webkul/Activity/src/Providers/ActivityServiceProvider.php index 9bb107580..eb4bdc4ad 100644 --- a/packages/Webkul/Activity/src/Providers/ActivityServiceProvider.php +++ b/packages/Webkul/Activity/src/Providers/ActivityServiceProvider.php @@ -2,8 +2,8 @@ namespace Webkul\Activity\Providers; -use Illuminate\Support\ServiceProvider; use Illuminate\Routing\Router; +use Illuminate\Support\ServiceProvider; class ActivityServiceProvider extends ServiceProvider { @@ -14,6 +14,6 @@ class ActivityServiceProvider extends ServiceProvider */ public function boot(Router $router) { - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Activity/src/Providers/ModuleServiceProvider.php b/packages/Webkul/Activity/src/Providers/ModuleServiceProvider.php index 8d5202343..326d64322 100644 --- a/packages/Webkul/Activity/src/Providers/ModuleServiceProvider.php +++ b/packages/Webkul/Activity/src/Providers/ModuleServiceProvider.php @@ -11,4 +11,4 @@ class ModuleServiceProvider extends BaseModuleServiceProvider \Webkul\Activity\Models\File::class, \Webkul\Activity\Models\Participant::class, ]; -} \ No newline at end of file +} diff --git a/packages/Webkul/Activity/src/Repositories/ActivityRepository.php b/packages/Webkul/Activity/src/Repositories/ActivityRepository.php index f9821304d..be9c19c73 100755 --- a/packages/Webkul/Activity/src/Repositories/ActivityRepository.php +++ b/packages/Webkul/Activity/src/Repositories/ActivityRepository.php @@ -12,7 +12,7 @@ class ActivityRepository extends Repository * * @return mixed */ - function model() + public function model() { return 'Webkul\Activity\Contracts\Activity'; } @@ -24,13 +24,13 @@ function model() public function getActivities($dateRange) { return $this->select( - 'activities.id', - 'activities.created_at', - 'activities.title', - 'activities.schedule_from as start', - 'activities.schedule_to as end', - 'users.name as user_name', - ) + 'activities.id', + 'activities.created_at', + 'activities.title', + 'activities.schedule_from as start', + 'activities.schedule_to as end', + 'users.name as user_name', + ) ->addSelect(\DB::raw('IF(activities.is_done, "done", "") as class')) ->leftJoin('activity_participants', 'activities.id', '=', 'activity_participants.activity_id') ->leftJoin('users', 'activities.user_id', '=', 'users.id') @@ -59,10 +59,10 @@ public function getActivities($dateRange) * @param string $startFrom * @param string $endFrom * @param array $participants - * @param integer $id - * @return boolean + * @param int $id + * @return bool */ - public function isDurationOverlapping($startFrom, $endFrom, $participants = [], $id) + public function isDurationOverlapping($startFrom, $endFrom, $participants, $id) { $queryBuilder = $this->model ->leftJoin('activity_participants', 'activities.id', '=', 'activity_participants.activity_id') diff --git a/packages/Webkul/Activity/src/Repositories/FileRepository.php b/packages/Webkul/Activity/src/Repositories/FileRepository.php index f46172032..9baab4e4f 100755 --- a/packages/Webkul/Activity/src/Repositories/FileRepository.php +++ b/packages/Webkul/Activity/src/Repositories/FileRepository.php @@ -32,7 +32,6 @@ public function model() /** * Upload files. * - * @param array $data * @return mixed|void */ public function upload(array $data) @@ -50,7 +49,7 @@ public function upload(array $data) return parent::create([ 'name' => $data['name'] ?? request()->file('file')->getClientOriginalName(), - 'path' => request()->file('file')->store('activities/' . $leadActivity->id), + 'path' => request()->file('file')->store('activities/'.$leadActivity->id), 'activity_id' => $leadActivity->id, ]); } diff --git a/packages/Webkul/Activity/src/Repositories/ParticipantRepository.php b/packages/Webkul/Activity/src/Repositories/ParticipantRepository.php index 26ff03690..168d6f7b2 100755 --- a/packages/Webkul/Activity/src/Repositories/ParticipantRepository.php +++ b/packages/Webkul/Activity/src/Repositories/ParticipantRepository.php @@ -11,8 +11,8 @@ class ParticipantRepository extends Repository * * @return mixed */ - function model() + public function model() { return 'Webkul\Activity\Contracts\Participant'; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Bouncer.php b/packages/Webkul/Admin/src/Bouncer.php index 270afa4f6..2738d0a17 100755 --- a/packages/Webkul/Admin/src/Bouncer.php +++ b/packages/Webkul/Admin/src/Bouncer.php @@ -35,4 +35,4 @@ public static function allow($permission) abort(401, 'This action is unauthorized'); } } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Config/acl.php b/packages/Webkul/Admin/src/Config/acl.php index 71238d415..9ca341d5b 100644 --- a/packages/Webkul/Admin/src/Config/acl.php +++ b/packages/Webkul/Admin/src/Config/acl.php @@ -27,7 +27,7 @@ 'route' => ['admin.leads.edit', 'admin.leads.update', 'admin.leads.mass_update'], 'sort' => 3, ], [ - 'key' => 'leads.delete', + 'key' => 'leads.delete', 'name' => 'admin::app.acl.delete', 'route' => ['admin.leads.delete', 'admin.leads.mass_delete'], 'sort' => 4, @@ -411,7 +411,7 @@ 'name' => 'admin::app.acl.create', 'route' => ['admin.settings.tags.create', 'admin.settings.tags.store', 'admin.leads.tags.store'], 'sort' => 1, - ], [ + ], [ 'key' => 'settings.other_settings.tags.edit', 'name' => 'admin::app.acl.edit', 'route' => ['admin.settings.tags.edit', 'admin.settings.tags.update'], @@ -426,5 +426,5 @@ 'name' => 'admin::app.acl.configuration', 'route' => 'admin.configuration.index', 'sort' => 9, - ] + ], ]; diff --git a/packages/Webkul/Admin/src/Config/attribute_entity_types.php b/packages/Webkul/Admin/src/Config/attribute_entity_types.php index c9e054081..7c0b99a03 100644 --- a/packages/Webkul/Admin/src/Config/attribute_entity_types.php +++ b/packages/Webkul/Admin/src/Config/attribute_entity_types.php @@ -30,4 +30,4 @@ 'name' => 'admin::app.settings.warehouses.title', 'repository' => 'Webkul\Warehouse\Repositories\WarehouseRepository', ], -]; \ No newline at end of file +]; diff --git a/packages/Webkul/Admin/src/Config/attribute_lookups.php b/packages/Webkul/Admin/src/Config/attribute_lookups.php index aa1671f2f..f1ba92d3c 100644 --- a/packages/Webkul/Admin/src/Config/attribute_lookups.php +++ b/packages/Webkul/Admin/src/Config/attribute_lookups.php @@ -51,4 +51,4 @@ 'name' => 'Locations', 'repository' => 'Webkul\Warehouse\Repositories\LocationRepository', ], -]; \ No newline at end of file +]; diff --git a/packages/Webkul/Admin/src/Config/core_config.php b/packages/Webkul/Admin/src/Config/core_config.php index 0002b14b5..e453e5a1e 100644 --- a/packages/Webkul/Admin/src/Config/core_config.php +++ b/packages/Webkul/Admin/src/Config/core_config.php @@ -14,8 +14,8 @@ 'name' => 'locale', 'title' => 'admin::app.configuration.locale', 'type' => 'select', - 'data_source' => 'Webkul\Core\Core@locales' + 'data_source' => 'Webkul\Core\Core@locales', ], ], ], -]; \ No newline at end of file +]; diff --git a/packages/Webkul/Admin/src/Config/dashboard_cards.php b/packages/Webkul/Admin/src/Config/dashboard_cards.php index 90190c9e1..04e5b97d5 100644 --- a/packages/Webkul/Admin/src/Config/dashboard_cards.php +++ b/packages/Webkul/Admin/src/Config/dashboard_cards.php @@ -2,89 +2,89 @@ return [ [ - "selected" => true, - "card_id" => "leads", - "sort" => 1, - "card_type" => "bar_chart", + 'selected' => true, + 'card_id' => 'leads', + 'sort' => 1, + 'card_type' => 'bar_chart', // "view_url" => "admin.leads.index", - "label" => 'admin::app.dashboard.leads_over_time', + 'label' => 'admin::app.dashboard.leads_over_time', // "class_name" => "Webkul\Admin\Helpers\DashboardHelper", // "method_name" => "getLeads", ], [ - "selected" => true, - "card_id" => "leads_started", - "sort" => 2, - "card_type" => "line_chart", - "label" => 'admin::app.dashboard.leads_started', + 'selected' => true, + 'card_id' => 'leads_started', + 'sort' => 2, + 'card_type' => 'line_chart', + 'label' => 'admin::app.dashboard.leads_started', ], [ - "selected" => true, - "card_id" => "activities", - "sort" => 4, - "card_type" => "activities", - "data_class" => "display-grid", - "view_url" => "admin.activities.index", - "label" => 'admin::app.dashboard.activities', + 'selected' => true, + 'card_id' => 'activities', + 'sort' => 4, + 'card_type' => 'activities', + 'data_class' => 'display-grid', + 'view_url' => 'admin.activities.index', + 'label' => 'admin::app.dashboard.activities', ], [ - "selected" => true, - "card_id" => "top_leads", - "sort" => 3, - "card_type" => "top_card", - "data_class" => "display-grid", - "label" => 'admin::app.dashboard.top_leads', + 'selected' => true, + 'card_id' => 'top_leads', + 'sort' => 3, + 'card_type' => 'top_card', + 'data_class' => 'display-grid', + 'label' => 'admin::app.dashboard.top_leads', ], [ - "selected" => true, - "card_id" => "pipelines", - "sort" => 5, - "card_type" => "pipelines_bar", - "data_class" => "display-grid", - "label" => 'admin::app.dashboard.pipelines', + 'selected' => true, + 'card_id' => 'pipelines', + 'sort' => 5, + 'card_type' => 'pipelines_bar', + 'data_class' => 'display-grid', + 'label' => 'admin::app.dashboard.pipelines', ], [ - "selected" => true, - "card_id" => "emails", - "sort" => 6, - "card_type" => "column-grid-2", - "data_class" => "column-grid-2", - "view_url" => "admin.mail.index", - "url_params" => "inbox", - "label" => 'admin::app.dashboard.emails', + 'selected' => true, + 'card_id' => 'emails', + 'sort' => 6, + 'card_type' => 'column-grid-2', + 'data_class' => 'column-grid-2', + 'view_url' => 'admin.mail.index', + 'url_params' => 'inbox', + 'label' => 'admin::app.dashboard.emails', ], [ - "selected" => true, - "card_id" => "customers", - "sort" => 7, - "card_type" => "line_chart", - "view_url" => "admin.contacts.persons.index", - "label" => 'admin::app.dashboard.customers', + 'selected' => true, + 'card_id' => 'customers', + 'sort' => 7, + 'card_type' => 'line_chart', + 'view_url' => 'admin.contacts.persons.index', + 'label' => 'admin::app.dashboard.customers', ], [ - "selected" => true, - "card_id" => "top_customers", - "sort" => 8, - "card_type" => "column-grid-2", - "data_class" => "column-grid-2", - "label" => 'admin::app.dashboard.top_customers', + 'selected' => true, + 'card_id' => 'top_customers', + 'sort' => 8, + 'card_type' => 'column-grid-2', + 'data_class' => 'column-grid-2', + 'label' => 'admin::app.dashboard.top_customers', ], [ - "selected" => true, - "card_id" => "products", - "sort" => 9, - "card_type" => "line_chart", - "view_url" => "admin.products.index", - "label" => 'admin::app.dashboard.products', + 'selected' => true, + 'card_id' => 'products', + 'sort' => 9, + 'card_type' => 'line_chart', + 'view_url' => 'admin.products.index', + 'label' => 'admin::app.dashboard.products', ], [ - "selected" => true, - "card_id" => "top_products", - "sort" => 10, - "card_type" => "column-grid-2", - "data_class" => "column-grid-2", - "label" => 'admin::app.dashboard.top_products', + 'selected' => true, + 'card_id' => 'top_products', + 'sort' => 10, + 'card_type' => 'column-grid-2', + 'data_class' => 'column-grid-2', + 'label' => 'admin::app.dashboard.top_products', ], [ - "sort" => 10, - "selected" => true, - "card_id" => "quotes", - "card_type" => "line_chart", - "label" => 'admin::app.dashboard.quotes', + 'sort' => 10, + 'selected' => true, + 'card_id' => 'quotes', + 'card_type' => 'line_chart', + 'label' => 'admin::app.dashboard.quotes', ], [ - "sort" => 11, - "card_type" => "custom_card", - "card_border" => "dashed", - "selected" => false, - ] -]; \ No newline at end of file + 'sort' => 11, + 'card_type' => 'custom_card', + 'card_border' => 'dashed', + 'selected' => false, + ], +]; diff --git a/packages/Webkul/Admin/src/Config/menu.php b/packages/Webkul/Admin/src/Config/menu.php index 961ae0916..1b66eddc8 100644 --- a/packages/Webkul/Admin/src/Config/menu.php +++ b/packages/Webkul/Admin/src/Config/menu.php @@ -272,5 +272,5 @@ 'route' => 'admin.configuration.index', 'sort' => 9, 'icon-class' => 'tools-icon', - ] -]; \ No newline at end of file + ], +]; diff --git a/packages/Webkul/Admin/src/DataGrids/Activity/ActivityDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Activity/ActivityDataGrid.php index e4fdcabd9..5aaf672f7 100644 --- a/packages/Webkul/Admin/src/DataGrids/Activity/ActivityDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Activity/ActivityDataGrid.php @@ -48,7 +48,7 @@ public function prepareQueryBuilder() if ($currentUser->view_permission != 'global') { if ($currentUser->view_permission == 'group') { - $queryBuilder->where(function ($query) use ($currentUser) { + $queryBuilder->where(function ($query) { $userIds = $this->userRepository->getCurrentUserGroupsUserIds(); $query->whereIn('activities.user_id', $userIds) @@ -111,7 +111,7 @@ public function addColumns() 'closure' => function ($row) { $route = urldecode(route('admin.settings.users.index', ['id[eq]' => $row->created_by_id])); - return "" . $row->created_by . ""; + return "".$row->created_by.''; }, ]); @@ -132,18 +132,18 @@ public function addColumns() 'closure' => function ($row) { $route = urldecode(route('admin.leads.index', ['pipeline_id' => $row->lead_pipeline_id, 'view_type' => 'table', 'id[eq]' => $row->lead_id])); - return "" . $row->lead_title . ""; + return "".$row->lead_title.''; }, ]); $this->addColumn([ - 'index' => 'type', - 'label' => trans('admin::app.datagrid.type'), - 'type' => 'dropdown', + 'index' => 'type', + 'label' => trans('admin::app.datagrid.type'), + 'type' => 'dropdown', 'dropdown_options' => $this->getActivityTypeDropdownOptions(), - 'searchable' => false, - 'filterable' => false, - 'closure' => function ($row) { + 'searchable' => false, + 'filterable' => false, + 'closure' => function ($row) { return trans('admin::app.activities.'.$row->type); }, ]); @@ -210,8 +210,8 @@ public function prepareTabFilters() 'name' => 'admin::app.leads.lunch', 'isActive' => false, 'key' => 'lunch', - ] - ] + ], + ], ]); $this->addTabFilter([ @@ -243,8 +243,8 @@ public function prepareTabFilters() 'name' => 'admin::app.datagrid.filters.custom', 'isActive' => false, 'key' => 'custom', - ] - ] + ], + ], ]); } diff --git a/packages/Webkul/Admin/src/DataGrids/Contact/OrganizationDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Contact/OrganizationDataGrid.php index a2732a2ad..23445d408 100644 --- a/packages/Webkul/Admin/src/DataGrids/Contact/OrganizationDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Contact/OrganizationDataGrid.php @@ -71,7 +71,7 @@ public function addColumns() $route = urldecode(route('admin.contacts.persons.index', ['organization[in]' => $row->id])); - return "" . $personsCount . ""; + return "".$personsCount.''; }, ]); diff --git a/packages/Webkul/Admin/src/DataGrids/Contact/PersonDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Contact/PersonDataGrid.php index 42bc19352..7257239df 100644 --- a/packages/Webkul/Admin/src/DataGrids/Contact/PersonDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Contact/PersonDataGrid.php @@ -13,7 +13,7 @@ class PersonDataGrid extends DataGrid /** * Export option. * - * @var boolean + * @var bool */ protected $export; @@ -109,8 +109,8 @@ public function addColumns() 'type' => 'dropdown', 'dropdown_options' => $this->getOrganizationDropdownOptions(), 'sortable' => false, - 'closure' => function ($row) { - return "organization_id) . "' target='_blank'>" . $row->organization . ""; + 'closure' => function ($row) { + return "organization_id)."' target='_blank'>".$row->organization.''; }, ]); } diff --git a/packages/Webkul/Admin/src/DataGrids/Lead/LeadDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Lead/LeadDataGrid.php index 57a51025b..e417a18bb 100644 --- a/packages/Webkul/Admin/src/DataGrids/Lead/LeadDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Lead/LeadDataGrid.php @@ -3,7 +3,6 @@ namespace Webkul\Admin\DataGrids\Lead; use Illuminate\Support\Facades\DB; -use Carbon\Carbon; use Webkul\Admin\Traits\ProvideDropdownOptions; use Webkul\Lead\Repositories\PipelineRepository; use Webkul\Lead\Repositories\StageRepository; @@ -51,13 +50,13 @@ public function init() { $this->setRowProperties([ 'backgroundColor' => '#ffd0d6', - 'condition' => function ($row) { + 'condition' => function ($row) { if (in_array($row->stage_code, ['won', 'lost']) || ! $row->rotten_lead) { return false; } return true; - } + }, ]); } @@ -86,7 +85,7 @@ public function prepareQueryBuilder() 'tags.name as tag_name', 'lead_pipelines.rotten_days as pipeline_rotten_days', 'lead_pipeline_stages.code as stage_code', - DB::raw('CASE WHEN DATEDIFF(NOW(),' . DB::getTablePrefix() . 'leads.created_at) >=' . DB::getTablePrefix() . 'lead_pipelines.rotten_days THEN 1 ELSE 0 END as rotten_lead'), + DB::raw('CASE WHEN DATEDIFF(NOW(),'.DB::getTablePrefix().'leads.created_at) >='.DB::getTablePrefix().'lead_pipelines.rotten_days THEN 1 ELSE 0 END as rotten_lead'), ) ->leftJoin('users', 'leads.user_id', '=', 'users.id') ->leftJoin('persons', 'leads.person_id', '=', 'persons.id') @@ -110,7 +109,7 @@ public function prepareQueryBuilder() } if (! is_null(request()->input('rotten_lead.in'))) { - $queryBuilder->havingRaw(DB::getTablePrefix() . 'rotten_lead = ' . request()->input('rotten_lead.in')); + $queryBuilder->havingRaw(DB::getTablePrefix().'rotten_lead = '.request()->input('rotten_lead.in')); } $this->addFilter('id', 'leads.id'); @@ -123,7 +122,7 @@ public function prepareQueryBuilder() $this->addFilter('tag_name', 'tags.name'); $this->addFilter('expected_close_date', 'leads.expected_close_date'); $this->addFilter('created_at', 'leads.created_at'); - $this->addFilter('rotten_lead', DB::raw('DATEDIFF(NOW(), ' . DB::getTablePrefix() . 'leads.created_at) >= ' . DB::getTablePrefix() . 'lead_pipelines.rotten_days')); + $this->addFilter('rotten_lead', DB::raw('DATEDIFF(NOW(), '.DB::getTablePrefix().'leads.created_at) >= '.DB::getTablePrefix().'lead_pipelines.rotten_days')); $this->setQueryBuilder($queryBuilder); } @@ -152,7 +151,7 @@ public function addColumns() 'closure' => function ($row) { $route = urldecode(route('admin.settings.users.index', ['id[eq]' => $row->user_id])); - return "" . $row->sales_person . ""; + return "".$row->sales_person.''; }, ]); @@ -198,7 +197,7 @@ public function addColumns() 'closure' => function ($row) { $route = urldecode(route('admin.contacts.persons.index', ['id[eq]' => $row->person_id])); - return "" . $row->person_name . ""; + return "".$row->person_name.''; }, ]); @@ -212,13 +211,13 @@ public function addColumns() 'closure' => function ($row) { if ($row->stage == 'Won') { $badge = 'success'; - } else if ($row->stage == 'Lost') { + } elseif ($row->stage == 'Lost') { $badge = 'danger'; } else { $badge = 'primary'; } - return "" . $row->stage; + return "".$row->stage; }, ]); @@ -232,7 +231,7 @@ public function addColumns() 'condition' => 'eq', 'closure' => function ($row) { return ! $row->rotten_lead || in_array($row->stage_code, ['won', 'lost']) ? trans('admin::app.common.no') : trans('admin::app.common.yes'); - } + }, ]); $this->addColumn([ diff --git a/packages/Webkul/Admin/src/DataGrids/Mail/EmailDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Mail/EmailDataGrid.php index 7a4ca48b0..368877a29 100644 --- a/packages/Webkul/Admin/src/DataGrids/Mail/EmailDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Mail/EmailDataGrid.php @@ -21,11 +21,11 @@ public function prepareQueryBuilder() 'emails.subject', 'emails.reply', 'emails.created_at', - DB::raw('COUNT(DISTINCT ' . DB::getTablePrefix() . 'email_attachments.id) as attachments') + DB::raw('COUNT(DISTINCT '.DB::getTablePrefix().'email_attachments.id) as attachments') ) ->leftJoin('email_attachments', 'emails.id', '=', 'email_attachments.email_id') ->groupBy('emails.id') - ->where('folders', 'like', '%"' . request('route') . '"%') + ->where('folders', 'like', '%"'.request('route').'"%') ->whereNull('parent_id'); $this->addFilter('id', 'emails.id'); @@ -69,7 +69,7 @@ public function addColumns() 'type' => 'string', 'sortable' => true, 'closure' => function ($row) { - return '
' . $row->subject . ' - ' . substr(strip_tags($row->reply), 0, 225) . '
'; + return '
'.$row->subject.' - '.substr(strip_tags($row->reply), 0, 225).'
'; }, ]); @@ -101,7 +101,7 @@ public function prepareActions() 'params' => ['route' => request('route')], 'icon' => request('route') == 'draft' ? 'pencil-icon' - : 'eye-icon' + : 'eye-icon', ]); $this->addAction([ @@ -109,10 +109,10 @@ public function prepareActions() 'method' => 'DELETE', 'route' => 'admin.mail.delete', 'params' => [ - 'type' => request('route') == 'trash' - ? 'delete' - : 'trash' - ], + 'type' => request('route') == 'trash' + ? 'delete' + : 'trash', + ], 'confirm_text' => trans('ui::app.datagrid.mass-action.delete', ['resource' => 'email']), 'icon' => 'trash-icon', ]); @@ -130,8 +130,8 @@ public function prepareMassActions() 'type' => 'delete', 'label' => trans('admin::app.datagrid.move-to-inbox'), 'action' => route('admin.mail.mass_update', [ - 'folders' => ['inbox'], - ]), + 'folders' => ['inbox'], + ]), 'method' => 'PUT', ]); } @@ -140,10 +140,10 @@ public function prepareMassActions() 'type' => 'delete', 'label' => trans('ui::app.datagrid.delete'), 'action' => route('admin.mail.mass_delete', [ - 'type' => request('route') == 'trash' - ? 'delete' - : 'trash', - ]), + 'type' => request('route') == 'trash' + ? 'delete' + : 'trash', + ]), 'method' => 'PUT', ]); } diff --git a/packages/Webkul/Admin/src/DataGrids/Product/ProductDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Product/ProductDataGrid.php index 1f6263b0f..bc3a2a5a1 100644 --- a/packages/Webkul/Admin/src/DataGrids/Product/ProductDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Product/ProductDataGrid.php @@ -2,8 +2,8 @@ namespace Webkul\Admin\DataGrids\Product; -use Webkul\UI\DataGrid\DataGrid; use Illuminate\Support\Facades\DB; +use Webkul\UI\DataGrid\DataGrid; class ProductDataGrid extends DataGrid { diff --git a/packages/Webkul/Admin/src/DataGrids/Quote/QuoteDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Quote/QuoteDataGrid.php index 9030f7a4e..4a895aade 100644 --- a/packages/Webkul/Admin/src/DataGrids/Quote/QuoteDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Quote/QuoteDataGrid.php @@ -2,8 +2,8 @@ namespace Webkul\Admin\DataGrids\Quote; -use Illuminate\Support\Facades\DB; use Carbon\Carbon; +use Illuminate\Support\Facades\DB; use Webkul\Admin\Traits\ProvideDropdownOptions; use Webkul\UI\DataGrid\DataGrid; use Webkul\User\Repositories\UserRepository; @@ -31,13 +31,13 @@ public function init() { $this->setRowProperties([ 'backgroundColor' => '#ffd0d6', - 'condition' => function ($row) { - if (Carbon::createFromFormat('Y-m-d H:i:s', $row->expired_at)->endOfDay() < Carbon::now()) { + 'condition' => function ($row) { + if (Carbon::createFromFormat('Y-m-d H:i:s', $row->expired_at)->endOfDay() < Carbon::now()) { return true; } return false; - } + }, ]); } @@ -86,9 +86,9 @@ public function prepareQueryBuilder() $this->addFilter('created_at', 'quotes.created_at'); if (request()->input('expired_quotes.in') == 1) { - $this->addFilter('expired_quotes', DB::raw('DATEDIFF(NOW(), ' . DB::getTablePrefix() . 'quotes.expired_at) >= ' . DB::getTablePrefix() . 'NOW()')); + $this->addFilter('expired_quotes', DB::raw('DATEDIFF(NOW(), '.DB::getTablePrefix().'quotes.expired_at) >= '.DB::getTablePrefix().'NOW()')); } else { - $this->addFilter('expired_quotes', DB::raw('DATEDIFF(NOW(), ' . DB::getTablePrefix() . 'quotes.expired_at) < ' . DB::getTablePrefix() . 'NOW()')); + $this->addFilter('expired_quotes', DB::raw('DATEDIFF(NOW(), '.DB::getTablePrefix().'quotes.expired_at) < '.DB::getTablePrefix().'NOW()')); } $this->setQueryBuilder($queryBuilder); @@ -117,7 +117,7 @@ public function addColumns() 'closure' => function ($row) { $route = urldecode(route('admin.settings.users.index', ['id[eq]' => $row->user_id])); - return "" . $row->sales_person . ""; + return "".$row->sales_person.''; }, ]); @@ -137,7 +137,7 @@ public function addColumns() 'closure' => function ($row) { $route = urldecode(route('admin.contacts.persons.index', ['id[eq]' => $row->person_id])); - return "" . $row->person_name . ""; + return "".$row->person_name.''; }, ]); diff --git a/packages/Webkul/Admin/src/DataGrids/Setting/AttributeDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Setting/AttributeDataGrid.php index 53724a3fa..e9493e873 100644 --- a/packages/Webkul/Admin/src/DataGrids/Setting/AttributeDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Setting/AttributeDataGrid.php @@ -3,13 +3,13 @@ namespace Webkul\Admin\DataGrids\Setting; use Illuminate\Support\Facades\DB; -use Webkul\UI\DataGrid\DataGrid; use Webkul\Admin\Traits\ProvideDropdownOptions; +use Webkul\UI\DataGrid\DataGrid; class AttributeDataGrid extends DataGrid { use ProvideDropdownOptions; - + /** * Create datagrid instance. * @@ -25,12 +25,12 @@ public function __construct() 'key' => 'entity_type', 'condition' => 'eq', 'values' => array_merge([ - [ - 'name' => trans('admin::app.leads.all'), - 'isActive' => true, - 'key' => 'all', - ], + [ + 'name' => trans('admin::app.leads.all'), + 'isActive' => true, + 'key' => 'all', ], + ], collect(config('attribute_entity_types'))->map(function ($entityType, $key) { return [ 'name' => trans($entityType['name']), diff --git a/packages/Webkul/Admin/src/DataGrids/Setting/PipelineDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Setting/PipelineDataGrid.php index a7e40ee64..19154839b 100644 --- a/packages/Webkul/Admin/src/DataGrids/Setting/PipelineDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Setting/PipelineDataGrid.php @@ -68,7 +68,7 @@ public function addColumns() return (bool) $row->is_default ? __('admin::app.common.yes') : __('admin::app.common.no'); - } + }, ]); } diff --git a/packages/Webkul/Admin/src/DataGrids/Setting/TagDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Setting/TagDataGrid.php index d3fe9d1c4..9badff7d6 100644 --- a/packages/Webkul/Admin/src/DataGrids/Setting/TagDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Setting/TagDataGrid.php @@ -78,10 +78,9 @@ public function addColumns() 'searchable' => true, 'sortable' => false, 'closure' => function ($row) { - $html = ''; + $html = ''; - - return $html . htmlspecialchars($row->name); + return $html.htmlspecialchars($row->name); }, ]); diff --git a/packages/Webkul/Admin/src/DataGrids/Setting/TypeDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Setting/TypeDataGrid.php index 29c4651e4..9c390bdeb 100644 --- a/packages/Webkul/Admin/src/DataGrids/Setting/TypeDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Setting/TypeDataGrid.php @@ -2,8 +2,8 @@ namespace Webkul\Admin\DataGrids\Setting; -use Webkul\UI\DataGrid\DataGrid; use Illuminate\Support\Facades\DB; +use Webkul\UI\DataGrid\DataGrid; class TypeDataGrid extends DataGrid { diff --git a/packages/Webkul/Admin/src/DataGrids/Setting/UserDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Setting/UserDataGrid.php index 68ff99912..895a5240b 100644 --- a/packages/Webkul/Admin/src/DataGrids/Setting/UserDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Setting/UserDataGrid.php @@ -19,10 +19,9 @@ class UserDataGrid extends DataGrid */ protected $userRepository; - /** + /** * Create data grid instance. - * - * @param \Webkul\User\Repositories\UserRepository $userRepository + * * @return void */ public function __construct(UserRepository $userRepository) @@ -87,9 +86,9 @@ public function addColumns() 'sortable' => true, 'closure' => function ($row) { if ($row->image) { - return '
' . $row->name; + return '
'.$row->name; } else { - return '
' . $row->name; + return '
'.$row->name; } }, ]); @@ -109,9 +108,9 @@ public function addColumns() 'searchable' => false, 'closure' => function ($row) { if ($row->status == 1) { - return '' . trans('admin::app.datagrid.active'); + return ''.trans('admin::app.datagrid.active'); } else { - return '' . trans('admin::app.datagrid.inactive'); + return ''.trans('admin::app.datagrid.inactive'); } }, ]); diff --git a/packages/Webkul/Admin/src/DataGrids/Setting/WarehouseDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Setting/WarehouseDataGrid.php index 3cd35f00f..6274c990f 100644 --- a/packages/Webkul/Admin/src/DataGrids/Setting/WarehouseDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Setting/WarehouseDataGrid.php @@ -96,7 +96,7 @@ public function addColumns() 'sortable' => true, 'filterable' => false, 'closure' => function ($row) { - return "id) . "'>" . $row->products . ""; + return "id)."'>".$row->products.''; }, ]); diff --git a/packages/Webkul/Admin/src/DataGrids/Setting/WorkflowDataGrid.php b/packages/Webkul/Admin/src/DataGrids/Setting/WorkflowDataGrid.php index c235ecd14..51bdd0d8c 100644 --- a/packages/Webkul/Admin/src/DataGrids/Setting/WorkflowDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/Setting/WorkflowDataGrid.php @@ -2,8 +2,8 @@ namespace Webkul\Admin\DataGrids\Setting; -use Webkul\UI\DataGrid\DataGrid; use Illuminate\Support\Facades\DB; +use Webkul\UI\DataGrid\DataGrid; class WorkflowDataGrid extends DataGrid { diff --git a/packages/Webkul/Admin/src/Database/Migrations/2021_10_02_170105_insert_expected_closed_date_column_in_attributes_table.php b/packages/Webkul/Admin/src/Database/Migrations/2021_10_02_170105_insert_expected_closed_date_column_in_attributes_table.php index 7fef55f30..f71535be9 100644 --- a/packages/Webkul/Admin/src/Database/Migrations/2021_10_02_170105_insert_expected_closed_date_column_in_attributes_table.php +++ b/packages/Webkul/Admin/src/Database/Migrations/2021_10_02_170105_insert_expected_closed_date_column_in_attributes_table.php @@ -1,9 +1,8 @@ 'Expected Close Date', 'type' => 'date', 'entity_type' => 'leads', - 'lookup_type' => NULL, - 'validation' => NULL, + 'lookup_type' => null, + 'validation' => null, 'sort_order' => '8', 'is_required' => '0', 'is_unique' => '0', @@ -30,7 +29,7 @@ public function up() 'is_user_defined' => '0', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), - ] + ], ]); } @@ -39,7 +38,5 @@ public function up() * * @return void */ - public function down() - { - } + public function down() {} } diff --git a/packages/Webkul/Admin/src/Exceptions/Handler.php b/packages/Webkul/Admin/src/Exceptions/Handler.php index e5dfa0066..d0a42091c 100755 --- a/packages/Webkul/Admin/src/Exceptions/Handler.php +++ b/packages/Webkul/Admin/src/Exceptions/Handler.php @@ -4,9 +4,9 @@ use App\Exceptions\Handler as AppExceptionHandler; use Illuminate\Auth\AuthenticationException; -use PDOException; use Illuminate\Container\Container; use Illuminate\Database\Eloquent\ModelNotFoundException; +use PDOException; use Symfony\Component\HttpKernel\Exception\HttpException; use Throwable; @@ -32,7 +32,7 @@ public function __construct(Container $container) '404' => trans('admin::app.common.resource-not-found'), '403' => trans('admin::app.common.forbidden-error'), '401' => trans('admin::app.common.unauthenticated'), - '500' => trans('admin::app.common.internal-server-error') + '500' => trans('admin::app.common.internal-server-error'), ]; } @@ -40,7 +40,6 @@ public function __construct(Container $container) * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Throwable $exception * @return \Illuminate\Http\Response */ public function render($request, Throwable $exception) @@ -55,7 +54,6 @@ public function render($request, Throwable $exception) /** * Report the exception. * - * @param \Throwable $exception * @return void */ public function report(Throwable $exception) @@ -67,7 +65,6 @@ public function report(Throwable $exception) * Convert an authentication exception into a response. * * @param \Illuminate\Http\Request $request - * @param \Illuminate\Auth\AuthenticationException $exception * @return \Illuminate\Http\Response */ protected function unauthenticated($request, AuthenticationException $exception) @@ -82,7 +79,6 @@ protected function unauthenticated($request, AuthenticationException $exception) /** * Render custom HTTP response. * - * @param \Throwable $exception * @return \Illuminate\Http\Response|null */ private function renderCustomResponse(Throwable $exception) @@ -121,7 +117,7 @@ private function response($path, $statusCode) return response()->json([ 'message' => isset($this->jsonErrorMessages[$statusCode]) ? $this->jsonErrorMessages[$statusCode] - : trans('admin::app.common.something-went-wrong') + : trans('admin::app.common.something-went-wrong'), ], $statusCode); } diff --git a/packages/Webkul/Admin/src/Facades/Bouncer.php b/packages/Webkul/Admin/src/Facades/Bouncer.php index 3d9cb0572..b62fed93d 100755 --- a/packages/Webkul/Admin/src/Facades/Bouncer.php +++ b/packages/Webkul/Admin/src/Facades/Bouncer.php @@ -15,4 +15,4 @@ protected static function getFacadeAccessor() { return 'bouncer'; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Helpers/Dashboard.php b/packages/Webkul/Admin/src/Helpers/Dashboard.php index 9d75f9969..d856139d4 100644 --- a/packages/Webkul/Admin/src/Helpers/Dashboard.php +++ b/packages/Webkul/Admin/src/Helpers/Dashboard.php @@ -38,8 +38,7 @@ public function __construct( protected ActivityRepository $activityRepository, protected UserRepository $userRepository, protected EmailRepository $emailRepository - ) { - } + ) {} /** * This will set all available cards data to be displayed on dashboard. @@ -59,12 +58,10 @@ public function setCards() /** * This will set all available cards data to be displayed on dashboard. - * - * @return array */ public function getCards(): array { - if(! $this->cards) { + if (! $this->cards) { $this->setCards(); } @@ -74,7 +71,7 @@ public function getCards(): array /** * Collect leads card data. * - * @return array|boolean + * @return array|bool */ public function getLeads($startDateFilter, $endDateFilter, $totalWeeks) { @@ -86,45 +83,45 @@ public function getLeads($startDateFilter, $endDateFilter, $totalWeeks) if ($totalWeeks) { for ($index = $totalWeeks; $index >= 1; $index--) { - list( + [ 'startDate' => $startDate, 'endDate' => $endDate, 'labels' => $labels, - ) = $this->getFormattedDateRange([ - "start_date" => $startDateFilter, - "end_date" => $endDateFilter, - "index" => $index, - "labels" => $labels, - "total_weeks" => $totalWeeks, + ] = $this->getFormattedDateRange([ + 'start_date' => $startDateFilter, + 'end_date' => $endDateFilter, + 'index' => $index, + 'labels' => $labels, + 'total_weeks' => $totalWeeks, ]); - array_push($wonLeadsCount, $this->leadRepository->getLeadsCount("Won", $startDate, $endDate)); + array_push($wonLeadsCount, $this->leadRepository->getLeadsCount('Won', $startDate, $endDate)); - array_push($lostLeadsCount, $this->leadRepository->getLeadsCount("Lost", $startDate, $endDate)); + array_push($lostLeadsCount, $this->leadRepository->getLeadsCount('Lost', $startDate, $endDate)); } } else { - $labels = [__("admin::app.dashboard.week") . "1"]; + $labels = [__('admin::app.dashboard.week').'1']; - $wonLeadsCount = [$this->leadRepository->getLeadsCount("Won", $startDateFilter, $endDateFilter)]; - $lostLeadsCount = [$this->leadRepository->getLeadsCount("Lost", $startDateFilter, $endDateFilter)]; + $wonLeadsCount = [$this->leadRepository->getLeadsCount('Won', $startDateFilter, $endDateFilter)]; + $lostLeadsCount = [$this->leadRepository->getLeadsCount('Lost', $startDateFilter, $endDateFilter)]; } if (! (empty(array_filter($wonLeadsCount)) && empty(array_filter($lostLeadsCount)))) { $cardData = [ - "data" => [ - "labels" => $labels, - "datasets" => [ + 'data' => [ + 'labels' => $labels, + 'datasets' => [ [ - "data" => $wonLeadsCount, - "label" => __("admin::app.settings.pipelines.won-stage"), - "backgroundColor" => "#4BC0C0", + 'data' => $wonLeadsCount, + 'label' => __('admin::app.settings.pipelines.won-stage'), + 'backgroundColor' => '#4BC0C0', ], [ - "backgroundColor" => "#FF4D50", - "data" => $lostLeadsCount, - "label" => __("admin::app.settings.pipelines.lost-stage"), - ] - ] - ] + 'backgroundColor' => '#FF4D50', + 'data' => $lostLeadsCount, + 'label' => __('admin::app.settings.pipelines.lost-stage'), + ], + ], + ], ]; } @@ -137,53 +134,53 @@ public function getLeads($startDateFilter, $endDateFilter, $totalWeeks) * @param string $startDateFilter * @param string $endDateFilter * @param array $totalWeeks - * @return array|boolean + * @return array|bool */ public function getLeadsStarted($startDateFilter, $endDateFilter, $totalWeeks) { if (! bouncer()->hasPermission('leads')) { return 0; } - + $labels = $leadsStarted = []; if ($totalWeeks) { for ($index = $totalWeeks; $index >= 1; $index--) { - list( + [ 'startDate' => $startDate, 'endDate' => $endDate, 'labels' => $labels, - ) = $this->getFormattedDateRange([ - "start_date" => $startDateFilter, - "end_date" => $endDateFilter, - "index" => $index, - "labels" => $labels, - "total_weeks" => $totalWeeks, + ] = $this->getFormattedDateRange([ + 'start_date' => $startDateFilter, + 'end_date' => $endDateFilter, + 'index' => $index, + 'labels' => $labels, + 'total_weeks' => $totalWeeks, ]); - array_push($leadsStarted, $this->leadRepository->getLeadsCount("all", $startDate, $endDate)); + array_push($leadsStarted, $this->leadRepository->getLeadsCount('all', $startDate, $endDate)); } } else { - $labels = [__("admin::app.dashboard.week") . "1"]; + $labels = [__('admin::app.dashboard.week').'1']; - $leadsStarted = [$this->leadRepository->getLeadsCount("Won", $startDateFilter, $endDateFilter)]; + $leadsStarted = [$this->leadRepository->getLeadsCount('Won', $startDateFilter, $endDateFilter)]; } if (! empty(array_filter($leadsStarted))) { $cardData = [ - "data" => [ - "labels" => $labels, - "datasets" => [ + 'data' => [ + 'labels' => $labels, + 'datasets' => [ [ - "fill" => true, - "tension" => 0.6, - "backgroundColor" => "#4BC0C0", - "borderColor" => '#2f7373', - "data" => $leadsStarted, - "label" => __("admin::app.dashboard.leads_started"), + 'fill' => true, + 'tension' => 0.6, + 'backgroundColor' => '#4BC0C0', + 'borderColor' => '#2f7373', + 'data' => $leadsStarted, + 'label' => __('admin::app.dashboard.leads_started'), ], - ] - ] + ], + ], ]; } @@ -196,7 +193,7 @@ public function getLeadsStarted($startDateFilter, $endDateFilter, $totalWeeks) * @param string $startDateFilter * @param string $endDateFilter * @param array $totalWeeks - * @return array|boolean + * @return array|bool */ public function getProducts($startDateFilter, $endDateFilter, $totalWeeks) { @@ -204,41 +201,41 @@ public function getProducts($startDateFilter, $endDateFilter, $totalWeeks) if ($totalWeeks) { for ($index = $totalWeeks; $index >= 1; $index--) { - list( + [ 'startDate' => $startDate, 'endDate' => $endDate, 'labels' => $labels, - ) = $this->getFormattedDateRange([ - "start_date" => $startDateFilter, - "end_date" => $endDateFilter, - "index" => $index, - "labels" => $labels, - "total_weeks" => $totalWeeks, + ] = $this->getFormattedDateRange([ + 'start_date' => $startDateFilter, + 'end_date' => $endDateFilter, + 'index' => $index, + 'labels' => $labels, + 'total_weeks' => $totalWeeks, ]); // get products count array_push($productsCount, $this->productRepository->getProductCount($startDate, $endDate)); } } else { - $labels = [__("admin::app.dashboard.week") . "1"]; + $labels = [__('admin::app.dashboard.week').'1']; $productsCount = [$this->productRepository->getProductCount($startDateFilter, $endDateFilter)]; } if (! empty(array_filter($productsCount))) { $cardData = [ - "data" => [ - "labels" => $labels, - "datasets" => [ + 'data' => [ + 'labels' => $labels, + 'datasets' => [ [ - "fill" => true, - "tension" => 0.6, - "backgroundColor" => "#4BC0C0", - "borderColor" => '#2f7373', - "data" => $productsCount, - "label" => __("admin::app.dashboard.products"), + 'fill' => true, + 'tension' => 0.6, + 'backgroundColor' => '#4BC0C0', + 'borderColor' => '#2f7373', + 'data' => $productsCount, + 'label' => __('admin::app.dashboard.products'), ], - ] - ] + ], + ], ]; } @@ -251,7 +248,7 @@ public function getProducts($startDateFilter, $endDateFilter, $totalWeeks) * @param string $startDateFilter * @param string $endDateFilter * @param array $totalWeeks - * @return array|boolean + * @return array|bool */ public function getCustomers($startDateFilter, $endDateFilter, $totalWeeks) { @@ -259,41 +256,41 @@ public function getCustomers($startDateFilter, $endDateFilter, $totalWeeks) if ($totalWeeks) { for ($index = $totalWeeks; $index >= 1; $index--) { - list( + [ 'startDate' => $startDate, 'endDate' => $endDate, 'labels' => $labels, - ) = $this->getFormattedDateRange([ - "start_date" => $startDateFilter, - "end_date" => $endDateFilter, - "index" => $index, - "labels" => $labels, - "total_weeks" => $totalWeeks, + ] = $this->getFormattedDateRange([ + 'start_date' => $startDateFilter, + 'end_date' => $endDateFilter, + 'index' => $index, + 'labels' => $labels, + 'total_weeks' => $totalWeeks, ]); // get customers count array_push($customersCount, $this->personRepository->getCustomerCount($startDate, $endDate)); } } else { - $labels = [__("admin::app.dashboard.week") . "1"]; + $labels = [__('admin::app.dashboard.week').'1']; $customersCount = [$this->personRepository->getCustomerCount($startDateFilter, $endDateFilter)]; } if (! empty(array_filter($customersCount))) { $cardData = [ - "data" => [ - "labels" => $labels, - "datasets" => [ + 'data' => [ + 'labels' => $labels, + 'datasets' => [ [ - "fill" => true, - "tension" => 0.6, - "backgroundColor" => "#4BC0C0", - "borderColor" => '#2f7373', - "data" => $customersCount, - "label" => __("admin::app.dashboard.customers"), + 'fill' => true, + 'tension' => 0.6, + 'backgroundColor' => '#4BC0C0', + 'borderColor' => '#2f7373', + 'data' => $customersCount, + 'label' => __('admin::app.dashboard.customers'), ], - ] - ] + ], + ], ]; } @@ -313,7 +310,7 @@ public function getActivities($startDateFilter, $endDateFilter, $totalWeeks) $activityTypes = ['call', 'meeting', 'lunch']; $activities = $this->activityRepository - ->select(DB::raw("(COUNT(DISTINCT activities.id)) as count"), 'type as label') + ->select(DB::raw('(COUNT(DISTINCT activities.id)) as count'), 'type as label') ->leftJoin('activity_participants', 'activities.id', '=', 'activity_participants.activity_id') ->groupBy('type') ->orderBy('count', 'desc') @@ -340,10 +337,10 @@ public function getActivities($startDateFilter, $endDateFilter, $totalWeeks) ->filter(function ($type) use ($activities) { return ! in_array($type, $activities->pluck('label')->toArray()); }) - ->map(function ($type) { + ->map(function ($type) { return [ 'count' => 0, - 'label' => __("admin::app.activities.$type") + 'label' => __("admin::app.activities.$type"), ]; }); @@ -351,7 +348,7 @@ public function getActivities($startDateFilter, $endDateFilter, $totalWeeks) return [ 'data' => $activities, - 'total' => $activities->pluck('count')->sum() + 'total' => $activities->pluck('count')->sum(), ]; } @@ -364,32 +361,32 @@ public function getActivities($startDateFilter, $endDateFilter, $totalWeeks) * @return array */ public function getTopLeads($startDateFilter, $endDateFilter, $totalWeeks) - { + { if (! bouncer()->hasPermission('leads')) { return 0; } - + $topLeads = $this->leadRepository ->select('leads.id', 'title', 'lead_value as amount', 'leads.created_at', 'status', 'lead_pipeline_stages.name as statusLabel') ->leftJoin('lead_pipeline_stages', 'leads.lead_pipeline_stage_id', '=', 'lead_pipeline_stages.id') ->orderBy('lead_value', 'desc') ->whereBetween('leads.created_at', [$startDateFilter, $endDateFilter]) ->where(function ($query) { - $currentUser = auth()->guard('user')->user(); + $currentUser = auth()->guard('user')->user(); - if ($currentUser->view_permission != 'global') { - if ($currentUser->view_permission == 'group') { - $query->whereIn('leads.user_id', app('\Webkul\User\Repositories\UserRepository')->getCurrentUserGroupsUserIds()); - } else { - $query->where('leads.user_id', $currentUser->id); + if ($currentUser->view_permission != 'global') { + if ($currentUser->view_permission == 'group') { + $query->whereIn('leads.user_id', app('\Webkul\User\Repositories\UserRepository')->getCurrentUserGroupsUserIds()); + } else { + $query->where('leads.user_id', $currentUser->id); + } } - } - }) - ->limit(3) - ->get(); + }) + ->limit(3) + ->get(); $cardData = [ - "data" => $topLeads, + 'data' => $topLeads, ]; return $cardData; @@ -401,7 +398,6 @@ public function getTopLeads($startDateFilter, $endDateFilter, $totalWeeks) * @param string $startDateFilter * @param string $endDateFilter * @param array $totalWeeks - * @return array */ public function getPipelines($startDateFilter, $endDateFilter, $totalWeeks): array { @@ -430,7 +426,7 @@ public function getPipelines($startDateFilter, $endDateFilter, $totalWeeks): arr ->where('lead_pipelines.id', $pipeline->id) ->where(function ($query) { $currentUser = auth()->guard('user')->user(); - + if ($currentUser->view_permission != 'global') { if ($currentUser->view_permission == 'group') { $query->whereIn('leads.user_id', app('\Webkul\User\Repositories\UserRepository')->getCurrentUserGroupsUserIds()); @@ -449,7 +445,7 @@ public function getPipelines($startDateFilter, $endDateFilter, $totalWeeks): arr return [ 'data' => $leadPipelines, - 'total' => $totalLeadsBetweenDateCount + 'total' => $totalLeadsBetweenDateCount, ]; } @@ -472,13 +468,13 @@ public function getEmails($startDateFilter, $endDateFilter, $totalWeeks) foreach ($emailsCollection as $key => $email) { if (in_array('inbox', $email->folders) !== false) { $receivedEmails++; - } else if (in_array('draft', $email->folders) !== false) { + } elseif (in_array('draft', $email->folders) !== false) { $draftEmails++; - } else if (in_array('outbox', $email->folders) !== false) { + } elseif (in_array('outbox', $email->folders) !== false) { $outboxEmails++; - } else if (in_array('sent', $email->folders) !== false) { + } elseif (in_array('sent', $email->folders) !== false) { $sentEmails++; - } else if (in_array('trash', $email->folders) !== false) { + } elseif (in_array('trash', $email->folders) !== false) { $trashEmails++; } @@ -486,27 +482,27 @@ public function getEmails($startDateFilter, $endDateFilter, $totalWeeks) } $cardData = [ - "data" => [ + 'data' => [ [ - 'label' => __("admin::app.mail.total"), - 'count' => $totalEmails + 'label' => __('admin::app.mail.total'), + 'count' => $totalEmails, ], [ - 'label' => __("admin::app.mail.inbox"), - 'count' => $receivedEmails + 'label' => __('admin::app.mail.inbox'), + 'count' => $receivedEmails, ], [ - 'label' => __("admin::app.mail.draft"), - 'count' => $draftEmails + 'label' => __('admin::app.mail.draft'), + 'count' => $draftEmails, ], [ - 'label' => __("admin::app.mail.outbox"), - 'count' => $outboxEmails + 'label' => __('admin::app.mail.outbox'), + 'count' => $outboxEmails, ], [ - 'label' => __("admin::app.mail.sent"), - 'count' => $sentEmails + 'label' => __('admin::app.mail.sent'), + 'count' => $sentEmails, ], [ - 'label' => __("admin::app.mail.trash"), - 'count' => $trashEmails + 'label' => __('admin::app.mail.trash'), + 'count' => $trashEmails, ], - ] + ], ]; return $cardData; @@ -523,7 +519,7 @@ public function getEmails($startDateFilter, $endDateFilter, $totalWeeks) public function getTopCustomers($startDateFilter, $endDateFilter, $totalWeeks) { $topCustomers = $this->leadRepository - ->select('persons.id as personId', 'persons.name as label', DB::raw("(COUNT(*)) as count")) + ->select('persons.id as personId', 'persons.name as label', DB::raw('(COUNT(*)) as count')) ->leftJoin('persons', 'leads.person_id', '=', 'persons.id') ->whereBetween('leads.created_at', [$startDateFilter, $endDateFilter]) ->groupBy('person_id') @@ -533,7 +529,7 @@ public function getTopCustomers($startDateFilter, $endDateFilter, $totalWeeks) ->get(); $cardData = [ - "data" => $topCustomers + 'data' => $topCustomers, ]; return $cardData; @@ -550,7 +546,7 @@ public function getTopCustomers($startDateFilter, $endDateFilter, $totalWeeks) public function getTopProducts($startDateFilter, $endDateFilter, $totalWeeks) { $topProducts = $this->leadProductRepository - ->select('lead_products.*', 'products.name as label', DB::raw("(COUNT(*)) as count")) + ->select('lead_products.*', 'products.name as label', DB::raw('(COUNT(*)) as count')) ->leftJoin('leads', 'lead_products.lead_id', '=', 'leads.id') ->leftJoin('products', 'lead_products.product_id', '=', 'products.id') ->groupBy('lead_products.product_id') @@ -559,7 +555,7 @@ public function getTopProducts($startDateFilter, $endDateFilter, $totalWeeks) ->get(); $cardData = [ - "data" => $topProducts + 'data' => $topProducts, ]; return $cardData; @@ -579,42 +575,42 @@ public function getQuotes($startDateFilter, $endDateFilter, $totalWeeks) if ($totalWeeks) { for ($index = $totalWeeks; $index >= 1; $index--) { - list( + [ 'startDate' => $startDate, 'endDate' => $endDate, 'labels' => $labels, - ) = $this->getFormattedDateRange([ - "start_date" => $startDateFilter, - "end_date" => $endDateFilter, - "index" => $index, - "labels" => $labels, - "total_weeks" => $totalWeeks, + ] = $this->getFormattedDateRange([ + 'start_date' => $startDateFilter, + 'end_date' => $endDateFilter, + 'index' => $index, + 'labels' => $labels, + 'total_weeks' => $totalWeeks, ]); // get quotes count array_push($quotes, $this->quoteRepository->getQuotesCount($startDate, $endDate)); } } else { - $labels = [__("admin::app.dashboard.week") . "1"]; + $labels = [__('admin::app.dashboard.week').'1']; - $quotes = [$this->quoteRepository->getQuotesCount("Won", $startDateFilter, $endDateFilter)]; + $quotes = [$this->quoteRepository->getQuotesCount('Won', $startDateFilter, $endDateFilter)]; } if (! empty(array_filter($quotes))) { $cardData = [ - "data" => [ - "labels" => $labels, - "datasets" => [ + 'data' => [ + 'labels' => $labels, + 'datasets' => [ [ - "fill" => true, - "tension" => 0.6, - "backgroundColor" => "#4BC0C0", - "borderColor" => '#2f7373', - "data" => $quotes, - "label" => __("admin::app.dashboard.leads_started"), + 'fill' => true, + 'tension' => 0.6, + 'backgroundColor' => '#4BC0C0', + 'borderColor' => '#2f7373', + 'data' => $quotes, + 'label' => __('admin::app.dashboard.leads_started'), ], - ] - ] + ], + ], ]; } @@ -631,11 +627,11 @@ public function getDateRangeDetails($data) { $cardId = $data['card-id']; - $dateRange = $data['date-range'] ?? Carbon::now()->subMonth()->addDays(1)->format('Y-m-d') . "," . Carbon::now()->format('Y-m-d'); - $dateRange = explode(",", $dateRange); + $dateRange = $data['date-range'] ?? Carbon::now()->subMonth()->addDays(1)->format('Y-m-d').','.Carbon::now()->format('Y-m-d'); + $dateRange = explode(',', $dateRange); - $startDateFilter = $dateRange[0] . ' ' . Carbon::parse('00:01')->format('H:i'); - $endDateFilter = $dateRange[1] . ' ' . Carbon::parse('23:59')->format('H:i'); + $startDateFilter = $dateRange[0].' '.Carbon::parse('00:01')->format('H:i'); + $endDateFilter = $dateRange[1].' '.Carbon::parse('23:59')->format('H:i'); $startDate = Carbon::parse($startDateFilter); $endDate = Carbon::parse($endDateFilter); @@ -664,10 +660,10 @@ public function getFormattedDateRange($data) $currentIndex = $data['index']; $totalWeeks = $data['total_weeks']; - $startDate = Carbon::parse($data["start_date"]); - $endDate = Carbon::parse($data["end_date"]); + $startDate = Carbon::parse($data['start_date']); + $endDate = Carbon::parse($data['end_date']); - array_push($labels, __("admin::app.dashboard.week") . (($totalWeeks + 1) - $currentIndex)); + array_push($labels, __('admin::app.dashboard.week').(($totalWeeks + 1) - $currentIndex)); $startDate = $currentIndex != $totalWeeks ? $startDate->addDays((7 * ($totalWeeks - $currentIndex)) + ($totalWeeks - $currentIndex)) @@ -685,20 +681,20 @@ public function getFormattedDateRange($data) * Collect card data based on `cardId`. * * @param array $requestData - * @return array|boolean + * @return array|bool */ public function getFormattedCardData($requestData) { $relevantFunction = false; - list( + [ 'cardId' => $cardId, 'endDate' => $endDate, 'startDate' => $startDate, 'totalWeeks' => $totalWeeks, 'endDateFilter' => $endDateFilter, 'startDateFilter' => $startDateFilter, - ) = $this->getDateRangeDetails($requestData); + ] = $this->getDateRangeDetails($requestData); foreach ($this->getCards() as $card) { if (isset($card['card_id']) && $card['card_id'] == $cardId) { @@ -715,7 +711,7 @@ public function getFormattedCardData($requestData) $class = $class ?? $this; if (! $relevantFunction) { - $relevantFunction = "get" . str_replace(" ", "", ucwords(str_replace("_", " ", $cardId))); + $relevantFunction = 'get'.str_replace(' ', '', ucwords(str_replace('_', ' ', $cardId))); } if (! method_exists($class ?? $this, $relevantFunction)) { diff --git a/packages/Webkul/Admin/src/Http/Controllers/Activity/ActivityController.php b/packages/Webkul/Admin/src/Http/Controllers/Activity/ActivityController.php index f4ba3b202..217e4fe4a 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Activity/ActivityController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Activity/ActivityController.php @@ -2,9 +2,9 @@ namespace Webkul\Admin\Http\Controllers\Activity; +use Carbon\Carbon; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Storage; -use Carbon\Carbon; use Webkul\Activity\Repositories\ActivityRepository; use Webkul\Activity\Repositories\FileRepository; use Webkul\Admin\Http\Controllers\Controller; @@ -26,8 +26,7 @@ public function __construct( protected LeadRepository $leadRepository, protected UserRepository $userRepository, protected PersonRepository $personRepository - ) { - } + ) {} /** * Display a listing of the resource. @@ -48,11 +47,11 @@ public function get() { if (request('view_type')) { $startDate = request()->get('startDate') - ? Carbon::createFromTimeString(request()->get('startDate') . " 00:00:01") + ? Carbon::createFromTimeString(request()->get('startDate').' 00:00:01') : Carbon::now()->startOfWeek()->format('Y-m-d H:i:s'); $endDate = request()->get('endDate') - ? Carbon::createFromTimeString(request()->get('endDate') . " 23:59:59") + ? Carbon::createFromTimeString(request()->get('endDate').' 23:59:59') : Carbon::now()->endOfWeek()->format('Y-m-d H:i:s'); $activities = $this->activityRepository->getActivities([$startDate, $endDate])->toArray(); @@ -109,7 +108,7 @@ public function store() if (is_array(request('participants.users'))) { foreach (request('participants.users') as $userId) { $activity->participants()->create([ - 'user_id' => $userId + 'user_id' => $userId, ]); } } @@ -131,7 +130,7 @@ public function store() Event::dispatch('activity.create.after', $activity); - session()->flash('success', trans('admin::app.activities.create-success', ['type' => trans('admin::app.activities.' . $activity->type)])); + session()->flash('success', trans('admin::app.activities.create-success', ['type' => trans('admin::app.activities.'.$activity->type)])); return redirect()->back(); } @@ -152,7 +151,7 @@ public function edit($id) /** * Update the specified resource in storage. * - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function update($id) @@ -167,7 +166,7 @@ public function update($id) if (is_array(request('participants.users'))) { foreach (request('participants.users') as $userId) { $activity->participants()->create([ - 'user_id' => $userId + 'user_id' => $userId, ]); } } @@ -193,10 +192,10 @@ public function update($id) if (request()->ajax()) { return response()->json([ - 'message' => trans('admin::app.activities.update-success', ['type' => trans('admin::app.activities.' . $activity->type)]), + 'message' => trans('admin::app.activities.update-success', ['type' => trans('admin::app.activities.'.$activity->type)]), ]); } else { - session()->flash('success', trans('admin::app.activities.update-success', ['type' => trans('admin::app.activities.' . $activity->type)])); + session()->flash('success', trans('admin::app.activities.update-success', ['type' => trans('admin::app.activities.'.$activity->type)])); return redirect()->route('admin.activities.index'); } @@ -244,11 +243,11 @@ public function massUpdate() public function searchParticipants() { $users = $this->userRepository->findWhere([ - ['name', 'like', '%' . urldecode(request()->input('query')) . '%'] + ['name', 'like', '%'.urldecode(request()->input('query')).'%'], ]); $persons = $this->personRepository->findWhere([ - ['name', 'like', '%' . urldecode(request()->input('query')) . '%'] + ['name', 'like', '%'.urldecode(request()->input('query')).'%'], ]); return response()->json([ @@ -320,11 +319,11 @@ public function destroy($id) Event::dispatch('activity.delete.after', $id); return response()->json([ - 'message' => trans('admin::app.activities.destroy-success', ['type' => trans('admin::app.activities.' . $activity->type)]), + 'message' => trans('admin::app.activities.destroy-success', ['type' => trans('admin::app.activities.'.$activity->type)]), ], 200); } catch (\Exception $exception) { return response()->json([ - 'message' => trans('admin::app.activities.destroy-failed', ['type' => trans('admin::app.activities.' . $activity->type)]), + 'message' => trans('admin::app.activities.destroy-failed', ['type' => trans('admin::app.activities.'.$activity->type)]), ], 400); } } @@ -345,7 +344,7 @@ public function massDestroy() } return response()->json([ - 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.activities.title')]) + 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.activities.title')]), ]); } } diff --git a/packages/Webkul/Admin/src/Http/Controllers/Admin/DashboardController.php b/packages/Webkul/Admin/src/Http/Controllers/Admin/DashboardController.php index 0b4ab4e4b..f70e93a30 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Admin/DashboardController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Admin/DashboardController.php @@ -3,8 +3,8 @@ namespace Webkul\Admin\Http\Controllers\Admin; use Carbon\Carbon; -use Webkul\Admin\Http\Controllers\Controller; use Webkul\Admin\Helpers\Dashboard as DashboardHelper; +use Webkul\Admin\Http\Controllers\Controller; class DashboardController extends Controller { @@ -13,9 +13,7 @@ class DashboardController extends Controller * * @return void */ - public function __construct(protected DashboardHelper $dashboardHelper) - { - } + public function __construct(protected DashboardHelper $dashboardHelper) {} /** * Display a listing of the resource. @@ -27,13 +25,13 @@ public function index() $cards = $this->dashboardHelper->getCards(); if ($dateRange = request('date-range')) { - $dateRange = explode(",", $dateRange); + $dateRange = explode(',', $dateRange); $endDate = $dateRange[1]; $startDate = $dateRange[0]; } else { $endDate = Carbon::now()->format('Y-m-d'); - + $startDate = Carbon::now()->subMonth()->addDays(1)->format('Y-m-d'); } @@ -62,12 +60,12 @@ public function getCardData() /** * Returns json data for available dashboard cards. - * + * * @return \Illuminate\Http\Response */ public function getCards() { - $response = $this->dashboardHelper->getCards();; + $response = $this->dashboardHelper->getCards(); $response = array_map(function ($card) { if ($card['view_url'] ?? false) { @@ -82,7 +80,7 @@ public function getCards() /** * Returns updated json data for available dashboard cards. - * + * * @return \Illuminate\Http\Response */ public function updateCards() @@ -104,4 +102,4 @@ public function updateCards() return response()->json($cards); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/Configuration/ConfigurationController.php b/packages/Webkul/Admin/src/Http/Controllers/Configuration/ConfigurationController.php index 6bdea04e6..a478e6c4c 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Configuration/ConfigurationController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Configuration/ConfigurationController.php @@ -4,7 +4,6 @@ use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Storage; -use Webkul\Core\Contracts\Validations\Code; use Webkul\Admin\Http\Controllers\Controller; use Webkul\Core\Repositories\CoreConfigRepository as ConfigurationRepository; @@ -15,9 +14,7 @@ class ConfigurationController extends Controller * * @return void */ - public function __construct(protected ConfigurationRepository $configurationRepository) - { - } + public function __construct(protected ConfigurationRepository $configurationRepository) {} /** * Display a listing of the resource. @@ -80,10 +77,10 @@ public function download() { $path = request()->route()->parameters()['path']; - $fileName = 'configuration/'. $path; + $fileName = 'configuration/'.$path; $config = $this->configurationRepository->findOneByField('value', $fileName); return Storage::download($config['value']); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/Contact/OrganizationController.php b/packages/Webkul/Admin/src/Http/Controllers/Contact/OrganizationController.php index da700942f..1683b4686 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Contact/OrganizationController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Contact/OrganizationController.php @@ -43,11 +43,9 @@ public function create() return view('admin::contacts.organizations.create'); } - /** * Store a newly created resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request * @return \Illuminate\Http\Response */ public function store(AttributeForm $request) @@ -79,8 +77,7 @@ public function edit($id) /** * Update the specified resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function update(AttributeForm $request, $id) @@ -114,7 +111,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.contacts.organizations.organization')]), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.response.destroy-failed', ['name' => trans('admin::app.contacts.organizations.organization')]), ], 400); @@ -137,7 +134,7 @@ public function massDestroy() } return response()->json([ - 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.contacts.organizations.title')]) + 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.contacts.organizations.title')]), ]); } } diff --git a/packages/Webkul/Admin/src/Http/Controllers/Contact/PersonController.php b/packages/Webkul/Admin/src/Http/Controllers/Contact/PersonController.php index 4986b40c4..20435651a 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Contact/PersonController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Contact/PersonController.php @@ -46,7 +46,6 @@ public function create() /** * Store a newly created resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request * @return \Illuminate\Http\Response */ public function store(AttributeForm $request) @@ -78,8 +77,7 @@ public function edit($id) /** * Update the specified resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function update(AttributeForm $request, $id) @@ -103,7 +101,7 @@ public function update(AttributeForm $request, $id) public function search() { $results = $this->personRepository->findWhere([ - ['name', 'like', '%' . urldecode(request()->input('query')) . '%'] + ['name', 'like', '%'.urldecode(request()->input('query')).'%'], ]); return response()->json($results); @@ -152,14 +150,12 @@ public function massDestroy() } return response()->json([ - 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.contacts.persons.title')]) + 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.contacts.persons.title')]), ]); } /** * Sanitize requested person data and return the clean array. - * - * @return array */ private function sanitizeRequestedPersonData(): array { diff --git a/packages/Webkul/Admin/src/Http/Controllers/Controller.php b/packages/Webkul/Admin/src/Http/Controllers/Controller.php index 7be383568..0254c1362 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Controller.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Controller.php @@ -2,10 +2,10 @@ namespace Webkul\Admin\Http\Controllers; +use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; -use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; -use Illuminate\Foundation\Auth\Access\AuthorizesRequests; +use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { diff --git a/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php b/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php index f33bc216c..2df3e6978 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php @@ -54,13 +54,13 @@ public function get() } else { $createdAt = request('created_at') ?? null; - if ($createdAt && isset($createdAt["bw"])) { - $createdAt = explode(",", $createdAt["bw"]); + if ($createdAt && isset($createdAt['bw'])) { + $createdAt = explode(',', $createdAt['bw']); $createdAt[0] .= ' 00:01'; $createdAt[1] = $createdAt[1] - ? $createdAt[1] . ' 23:59' + ? $createdAt[1].' 23:59' : Carbon::now()->format('Y-m-d 23:59'); } else { $createdAt = null; @@ -80,17 +80,17 @@ public function get() $paginator = $query->paginate(10); $data[$stageId] = [ - 'leads' => [], + 'leads' => [], 'pagination' => [ 'current' => $current = $paginator->currentPage(), - 'last' => $last = $paginator->lastPage(), - 'next' => $current < $last ? $current + 1 : null, + 'last' => $last = $paginator->lastPage(), + 'next' => $current < $last ? $current + 1 : null, ], 'total' => core()->formatBasePrice($query->getModel()->paginate(request('page') ? request('page') * 10 : 10, ['lead_value'], 'page', 1)->sum('lead_value')), ]; foreach ($paginator as $lead) { - $data[$stageId]['leads'][] = array_merge($lead->toArray(), [ + $data[$stageId]['leads'][] = array_merge($lead->toArray(), [ 'lead_value' => core()->formatBasePrice($lead->lead_value), ]); } @@ -101,17 +101,17 @@ public function get() $paginator = $query->paginate(10); $data[$stage->id] = [ - 'leads' => [], + 'leads' => [], 'pagination' => [ 'current' => $current = $paginator->currentPage(), - 'last' => $last = $paginator->lastPage(), - 'next' => $current < $last ? $current + 1 : null, + 'last' => $last = $paginator->lastPage(), + 'next' => $current < $last ? $current + 1 : null, ], 'total' => core()->formatBasePrice($query->paginate(10)->sum('lead_value')), ]; foreach ($paginator as $lead) { - $data[$stage->id]['leads'][] = array_merge($lead->toArray(), [ + $data[$stage->id]['leads'][] = array_merge($lead->toArray(), [ 'lead_value' => core()->formatBasePrice($lead->lead_value), ]); } @@ -136,7 +136,6 @@ public function create() /** * Store a newly created resource in storage. * - * @param \Webkul\Admin\Http\Requests\LeadForm $request * @return \Illuminate\Http\Response */ public function store(LeadForm $request) @@ -206,14 +205,13 @@ public function view($id) /** * Update the specified resource in storage. * - * @param \Webkul\Admin\Http\Requests\LeadForm $request - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function update(LeadForm $request, $id) { Event::dispatch('lead.update.before', $id); - + $data = request()->all(); if ($data['lead_pipeline_stage_id']) { @@ -230,7 +228,7 @@ public function update(LeadForm $request, $id) $data['lead_pipeline_stage_id'] = $stage->id; } - $lead = $this->leadRepository->update($data, $id); + $lead = $this->leadRepository->update($data, $id); Event::dispatch('lead.update.after', $lead); @@ -244,7 +242,7 @@ public function update(LeadForm $request, $id) if (request()->has('closed_at')) { return redirect()->back(); } else { - return redirect()->route('admin.leads.index', $data['lead_pipeline_id']); + return redirect()->route('admin.leads.index', $data['lead_pipeline_id']); } } } @@ -258,24 +256,24 @@ public function search() { $currentUser = auth()->guard('user')->user(); - if ($currentUser->view_permission == 'global') { + if ($currentUser->view_permission == 'global') { $results = $this->leadRepository->findWhere([ - ['title', 'like', '%' . urldecode(request()->input('query')) . '%'], + ['title', 'like', '%'.urldecode(request()->input('query')).'%'], ]); - } elseif ($currentUser->view_permission == 'individual') { + } elseif ($currentUser->view_permission == 'individual') { $results = $this->leadRepository->findWhere([ - ['title', 'like', '%' . urldecode(request()->input('query')) . '%'], + ['title', 'like', '%'.urldecode(request()->input('query')).'%'], ['user_id', '=', $currentUser->id], ]); } elseif ($currentUser->view_permission == 'group') { $userIds = app('\Webkul\User\Repositories\UserRepository')->getCurrentUserGroupsUserIds(); - + $results = $this->leadRepository->findWhere([ - ['title', 'like', '%' . urldecode(request()->input('query')) . '%'], + ['title', 'like', '%'.urldecode(request()->input('query')).'%'], ['user_id', 'IN', $userIds], ]); } - + return response()->json($results); } @@ -326,7 +324,7 @@ public function massUpdate() } return response()->json([ - 'message' => trans('admin::app.response.update-success', ['name' => trans('admin::app.leads.title')]) + 'message' => trans('admin::app.response.update-success', ['name' => trans('admin::app.leads.title')]), ]); } @@ -349,4 +347,4 @@ public function massDestroy() 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.leads.title')]), ]); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/Lead/QuoteController.php b/packages/Webkul/Admin/src/Http/Controllers/Lead/QuoteController.php index f0e5d6185..4a2b824ae 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Lead/QuoteController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Lead/QuoteController.php @@ -3,9 +3,9 @@ namespace Webkul\Admin\Http\Controllers\Lead; use Illuminate\Support\Facades\Event; +use Webkul\Admin\Http\Controllers\Controller; use Webkul\Lead\Repositories\LeadRepository; use Webkul\Quote\Repositories\QuoteRepository; -use Webkul\Admin\Http\Controllers\Controller; class QuoteController extends Controller { @@ -17,14 +17,12 @@ class QuoteController extends Controller public function __construct( protected LeadRepository $leadRepository, protected QuoteRepository $quoteRepository - ) - { - } + ) {} /** * Store a newly created resource in storage. * - * @param integer $id + * @param int $id * @return \Illuminate\Http\Response */ public function store($id) @@ -38,7 +36,7 @@ public function store($id) } Event::dispatch('leads.quote.create.after', $lead); - + return response()->json([ 'message' => trans('admin::app.leads.quote-create-success'), ], 200); @@ -47,8 +45,8 @@ public function store($id) /** * Remove the specified resource from storage. * - * @param integer $leadId - * @param integer $tagId + * @param int $leadId + * @param int $tagId * @return \Illuminate\Http\Response */ public function delete($leadId) @@ -60,9 +58,9 @@ public function delete($leadId) $lead->quotes()->detach(request('quote_id')); Event::dispatch('leads.quote.delete.after', $lead); - + return response()->json([ 'message' => trans('admin::app.leads.quote-destroy-success'), ], 200); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/Lead/TagController.php b/packages/Webkul/Admin/src/Http/Controllers/Lead/TagController.php index 34ade5178..06b460937 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Lead/TagController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Lead/TagController.php @@ -3,8 +3,8 @@ namespace Webkul\Admin\Http\Controllers\Lead; use Illuminate\Support\Facades\Event; -use Webkul\Lead\Repositories\LeadRepository; use Webkul\Admin\Http\Controllers\Controller; +use Webkul\Lead\Repositories\LeadRepository; class TagController extends Controller { @@ -13,14 +13,12 @@ class TagController extends Controller * * @return void */ - public function __construct(protected LeadRepository $leadRepository) - { - } + public function __construct(protected LeadRepository $leadRepository) {} /** * Store a newly created resource in storage. * - * @param integer $id + * @param int $id * @return \Illuminate\Http\Response */ public function store($id) @@ -34,7 +32,7 @@ public function store($id) } Event::dispatch('leads.tag.create.after', $lead); - + return response()->json([ 'status' => true, 'message' => trans('admin::app.leads.tag-create-success'), @@ -44,8 +42,8 @@ public function store($id) /** * Remove the specified resource from storage. * - * @param integer $leadId - * @param integer $tagId + * @param int $leadId + * @param int $tagId * @return \Illuminate\Http\Response */ public function delete($leadId) @@ -57,10 +55,10 @@ public function delete($leadId) $lead->tags()->detach(request('tag_id')); Event::dispatch('leads.tag.delete.after', $lead); - + return response()->json([ 'status' => true, 'message' => trans('admin::app.leads.tag-destroy-success'), ], 200); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/Mail/EmailController.php b/packages/Webkul/Admin/src/Http/Controllers/Mail/EmailController.php index acc25f241..7a8fb6631 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Mail/EmailController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Mail/EmailController.php @@ -3,13 +3,13 @@ namespace Webkul\Admin\Http\Controllers\Mail; use Illuminate\Support\Facades\Event; -use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Mail; -use Webkul\Email\Mails\Email; +use Illuminate\Support\Facades\Storage; use Webkul\Admin\Http\Controllers\Controller; -use Webkul\Lead\Repositories\LeadRepository; -use Webkul\Email\Repositories\EmailRepository; +use Webkul\Email\Mails\Email; use Webkul\Email\Repositories\AttachmentRepository; +use Webkul\Email\Repositories\EmailRepository; +use Webkul\Lead\Repositories\LeadRepository; class EmailController extends Controller { @@ -22,8 +22,7 @@ public function __construct( protected LeadRepository $leadRepository, protected EmailRepository $emailRepository, protected AttachmentRepository $attachmentRepository - ) { - } + ) {} /** * Display a listing of the resource. @@ -36,7 +35,7 @@ public function index() return redirect()->route('admin.mail.index', ['route' => 'inbox']); } - if (! bouncer()->hasPermission('mail.' . request('route'))) { + if (! bouncer()->hasPermission('mail.'.request('route'))) { abort(401, 'This action is unauthorized'); } @@ -65,8 +64,8 @@ public function view() ->findOrFail(request('id')); $currentUser = auth()->guard('user')->user(); - - if ($currentUser->view_permission == 'individual') { + + if ($currentUser->view_permission == 'individual') { $results = $this->leadRepository->findWhere([ ['id', '=', $email->lead_id], ['user_id', '=', $currentUser->id], @@ -83,11 +82,11 @@ public function view() ['id', '=', $email->lead_id], ]); } - + if (empty($results->toArray())) { unset($email->lead_id); } - + if (request('route') == 'draft') { return view('admin::mail.compose', compact('email')); } else { @@ -109,7 +108,7 @@ public function store() Event::dispatch('email.create.before'); - $uniqueId = time() . '@' . config('mail.domain'); + $uniqueId = time().'@'.config('mail.domain'); $referenceIds = []; @@ -136,9 +135,10 @@ public function store() Mail::send(new Email($email)); $this->emailRepository->update([ - 'folders' => ['sent'] + 'folders' => ['sent'], ], $email->id); - } catch (\Exception $e) {} + } catch (\Exception $e) { + } } Event::dispatch('email.create.after', $email); @@ -179,9 +179,10 @@ public function update($id) Mail::send(new Email($email)); $this->emailRepository->update([ - 'folders' => ['inbox', 'sent'] + 'folders' => ['inbox', 'sent'], ], $email->id); - } catch (\Exception $e) {} + } catch (\Exception $e) { + } } if (! is_null(request('is_draft'))) { @@ -277,7 +278,7 @@ public function destroy($id) $email = $this->emailRepository->findOrFail($id); try { - Event::dispatch('email.' . request('type') . '.before', $id); + Event::dispatch('email.'.request('type').'.before', $id); $parentId = $email->parent_id; @@ -289,7 +290,7 @@ public function destroy($id) $this->emailRepository->delete($id); } - Event::dispatch('email.' . request('type') . '.after', $id); + Event::dispatch('email.'.request('type').'.after', $id); if (request()->ajax()) { return response()->json([ @@ -304,7 +305,7 @@ public function destroy($id) return redirect()->route('admin.mail.index', ['route' => 'inbox']); } } - } catch(\Exception $exception) { + } catch (\Exception $exception) { if (request()->ajax()) { return response()->json([ 'message' => trans('admin::app.mail.delete-failed'), @@ -325,7 +326,7 @@ public function destroy($id) public function massDestroy() { foreach (request('rows') as $emailId) { - Event::dispatch('email.' . request('type') . '.before', $emailId); + Event::dispatch('email.'.request('type').'.before', $emailId); if (request('type') == 'trash') { $this->emailRepository->update([ @@ -335,7 +336,7 @@ public function massDestroy() $this->emailRepository->delete($emailId); } - Event::dispatch('email.' . request('type') . '.after', $emailId); + Event::dispatch('email.'.request('type').'.after', $emailId); } return response()->json([ diff --git a/packages/Webkul/Admin/src/Http/Controllers/Product/ProductController.php b/packages/Webkul/Admin/src/Http/Controllers/Product/ProductController.php index cab634bdd..428999b82 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Product/ProductController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Product/ProductController.php @@ -46,7 +46,6 @@ public function create() /** * Store a newly created resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request * @return \Illuminate\Http\Response */ public function store(AttributeForm $request) @@ -105,8 +104,7 @@ public function edit($id) /** * Update the specified resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function update(AttributeForm $request, $id) @@ -125,8 +123,8 @@ public function update(AttributeForm $request, $id) /** * Store a newly created resource in storage. * - * @param int $id - * @param int $warehouseId + * @param int $id + * @param int $warehouseId * @return \Illuminate\Http\Response */ public function storeInventories($id, $warehouseId = null) @@ -160,7 +158,7 @@ public function storeInventories($id, $warehouseId = null) public function search() { $results = $this->productRepository->findWhere([ - ['name', 'like', '%' . urldecode(request()->input('query')) . '%'] + ['name', 'like', '%'.urldecode(request()->input('query')).'%'], ]); return response()->json($results); @@ -199,7 +197,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.products.product')]), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.response.destroy-failed', ['name' => trans('admin::app.products.product')]), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Quote/QuoteController.php b/packages/Webkul/Admin/src/Http/Controllers/Quote/QuoteController.php index b58293d5e..549e3fecf 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Quote/QuoteController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Quote/QuoteController.php @@ -2,13 +2,13 @@ namespace Webkul\Admin\Http\Controllers\Quote; -use Illuminate\Support\Facades\Event; use Barryvdh\DomPDF\Facade\Pdf as PDF; +use Illuminate\Support\Facades\Event; use Webkul\Admin\DataGrids\Quote\QuoteDataGrid; use Webkul\Admin\Http\Controllers\Controller; use Webkul\Attribute\Http\Requests\AttributeForm; -use Webkul\Quote\Repositories\QuoteRepository; use Webkul\Lead\Repositories\LeadRepository; +use Webkul\Quote\Repositories\QuoteRepository; class QuoteController extends Controller { @@ -20,8 +20,7 @@ class QuoteController extends Controller public function __construct( protected QuoteRepository $quoteRepository, protected LeadRepository $leadRepository - ) - { + ) { request()->request->add(['entity_type' => 'quotes']); } @@ -54,7 +53,6 @@ public function create() /** * Store a newly created resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request * @return \Illuminate\Http\Response */ public function store(AttributeForm $request) @@ -92,8 +90,7 @@ public function edit($id) /** * Update the specified resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function update(AttributeForm $request, $id) @@ -125,7 +122,7 @@ public function update(AttributeForm $request, $id) public function search() { $results = $this->quoteRepository->findWhere([ - ['name', 'like', '%' . urldecode(request()->input('query')) . '%'] + ['name', 'like', '%'.urldecode(request()->input('query')).'%'], ]); return response()->json($results); @@ -151,7 +148,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.quotes.quote')]), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.response.destroy-failed', ['name' => trans('admin::app.quotes.quote')]), ], 400); @@ -190,6 +187,6 @@ public function print($id) return PDF::loadHTML(view('admin::quotes.pdf', compact('quote'))->render()) ->setPaper('a4') - ->download('Quote_' . $quote->subject . '.pdf'); + ->download('Quote_'.$quote->subject.'.pdf'); } } diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/AttributeController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/AttributeController.php index 43d6fd894..e6b6e551f 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/AttributeController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/AttributeController.php @@ -4,8 +4,8 @@ use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Storage; -use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Admin\Http\Controllers\Controller; +use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Core\Contracts\Validations\Code; class AttributeController extends Controller @@ -15,9 +15,7 @@ class AttributeController extends Controller * * @return void */ - public function __construct(protected AttributeRepository $attributeRepository) - { - } + public function __construct(protected AttributeRepository $attributeRepository) {} /** * Display a listing of the resource. @@ -51,7 +49,7 @@ public function create() public function store() { $this->validate(request(), [ - 'code' => ['required', 'unique:attributes,code,NULL,NULL,entity_type,' . request('entity_type'), new Code], + 'code' => ['required', 'unique:attributes,code,NULL,NULL,entity_type,'.request('entity_type'), new Code], 'name' => 'required', 'type' => 'required', ]); @@ -91,7 +89,7 @@ public function edit($id) public function update($id) { $this->validate(request(), [ - 'code' => ['required', 'unique:attributes,code,NULL,NULL,entity_type,' . $id, new Code], + 'code' => ['required', 'unique:attributes,code,NULL,NULL,entity_type,'.$id, new Code], 'name' => 'required', 'type' => 'required', ]); @@ -134,7 +132,7 @@ public function destroy($id) 'status' => true, 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.settings.attributes.attribute')]), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.attributes.delete-failed'), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/EmailTemplateController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/EmailTemplateController.php index 754a45690..e99ceb05a 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/EmailTemplateController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/EmailTemplateController.php @@ -17,8 +17,7 @@ class EmailTemplateController extends Controller public function __construct( protected EmailTemplateRepository $emailTemplateRepository, protected Entity $workflowEntityHelper - ) { - } + ) {} /** * Display a listing of the email template. @@ -130,7 +129,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.email-templates.delete-success'), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.email-templates.delete-failed'), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/GroupController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/GroupController.php index 90a85048f..acad5ceaa 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/GroupController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/GroupController.php @@ -3,9 +3,8 @@ namespace Webkul\Admin\Http\Controllers\Setting; use Illuminate\Support\Facades\Event; - -use Webkul\User\Repositories\GroupRepository; use Webkul\Admin\Http\Controllers\Controller; +use Webkul\User\Repositories\GroupRepository; class GroupController extends Controller { @@ -14,9 +13,7 @@ class GroupController extends Controller * * @return void */ - public function __construct(protected GroupRepository $groupRepository) - { - } + public function __construct(protected GroupRepository $groupRepository) {} /** * Display a listing of the resource. @@ -86,7 +83,7 @@ public function edit($id) public function update($id) { $this->validate(request(), [ - 'name' => 'required|unique:groups,name,' . $id, + 'name' => 'required|unique:groups,name,'.$id, ]); Event::dispatch('settings.group.update.before', $id); @@ -120,7 +117,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.groups.destroy-success'), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.groups.delete-failed'), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/LocationController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/LocationController.php index ae3301bed..8adda2cbe 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/LocationController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/LocationController.php @@ -4,9 +4,8 @@ use Illuminate\Support\Facades\Event; use Prettus\Repository\Criteria\RequestCriteria; -use Webkul\Attribute\Http\Requests\AttributeForm; -use Webkul\Admin\DataGrids\Setting\LocationDataGrid; use Webkul\Admin\Http\Controllers\Controller; +use Webkul\Attribute\Http\Requests\AttributeForm; use Webkul\Warehouse\Repositories\LocationRepository; class LocationController extends Controller @@ -16,9 +15,7 @@ class LocationController extends Controller * * @return void */ - public function __construct(protected LocationRepository $locationRepository) - { - } + public function __construct(protected LocationRepository $locationRepository) {} /** * Search location results @@ -37,7 +34,6 @@ public function search() /** * Store a newly created resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request * @return \Illuminate\Http\Response */ public function store(AttributeForm $request) @@ -73,7 +69,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.locations.location')]), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.response.destroy-failed', ['name' => trans('admin::app.locations.location')]), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/PipelineController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/PipelineController.php index 07584fd21..8337db9b7 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/PipelineController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/PipelineController.php @@ -14,9 +14,7 @@ class PipelineController extends Controller * * @return void */ - public function __construct(protected PipelineRepository $pipelineRepository) - { - } + public function __construct(protected PipelineRepository $pipelineRepository) {} /** * Display a listing of the resource. @@ -137,7 +135,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.pipelines.delete-success'), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.pipelines.delete-failed'), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/RoleController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/RoleController.php index fa9e92520..e23660c0b 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/RoleController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/RoleController.php @@ -13,9 +13,7 @@ class RoleController extends Controller * * @return void */ - public function __construct(protected RoleRepository $roleRepository) - { - } + public function __construct(protected RoleRepository $roleRepository) {} /** * Display a listing of the resource. @@ -135,7 +133,7 @@ public function destroy($id) $response['message'] = trans('admin::app.settings.roles.being-used'); session()->flash('error', $response['message']); - } else if ($this->roleRepository->count() == 1) { + } elseif ($this->roleRepository->count() == 1) { $response['message'] = trans('admin::app.settings.roles.last-delete-error'); session()->flash('error', $response['message']); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/SettingController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/SettingController.php index 3634afce3..20526e7a8 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/SettingController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/SettingController.php @@ -15,4 +15,4 @@ public function index() { return view('admin::settings.index'); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/SourceController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/SourceController.php index f171b1b4e..a109c5faf 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/SourceController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/SourceController.php @@ -14,9 +14,7 @@ class SourceController extends Controller * * @return void */ - public function __construct(protected SourceRepository $sourceRepository) - { - } + public function __construct(protected SourceRepository $sourceRepository) {} /** * Display a listing of the resource. @@ -40,9 +38,9 @@ public function index() public function store() { $validator = Validator::make(request()->all(), [ - 'name' => 'required|unique:lead_sources,name' + 'name' => 'required|unique:lead_sources,name', ]); - + if ($validator->fails()) { session()->flash('error', trans('admin::app.settings.sources.name-exists')); @@ -82,7 +80,7 @@ public function edit($id) public function update($id) { $this->validate(request(), [ - 'name' => 'required|unique:lead_sources,name,' . $id, + 'name' => 'required|unique:lead_sources,name,'.$id, ]); Event::dispatch('settings.source.update.before', $id); @@ -116,7 +114,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.sources.delete-success'), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.sources.delete-failed'), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/TagController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/TagController.php index 95b3f632c..0a69e9d97 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/TagController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/TagController.php @@ -4,8 +4,8 @@ use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Validator; -use Webkul\Tag\Repositories\TagRepository; use Webkul\Admin\Http\Controllers\Controller; +use Webkul\Tag\Repositories\TagRepository; class TagController extends Controller { @@ -14,9 +14,7 @@ class TagController extends Controller * * @return void */ - public function __construct(protected TagRepository $tagRepository) - { - } + public function __construct(protected TagRepository $tagRepository) {} /** * Display a listing of the resource. @@ -98,7 +96,7 @@ public function edit($id) public function update($id) { $validator = Validator::make(request()->all(), [ - 'name' => 'required|unique:tags,name,' . $id, + 'name' => 'required|unique:tags,name,'.$id, ]); if ($validator->fails()) { @@ -106,7 +104,7 @@ public function update($id) return redirect()->back(); } - + Event::dispatch('settings.tag.update.before', $id); $tag = $this->tagRepository->update(request()->all(), $id); @@ -138,7 +136,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.tags.delete-success'), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.tags.delete-failed'), ], 400); @@ -157,7 +155,7 @@ public function destroy($id) public function search() { $results = $this->tagRepository->findWhere([ - ['name', 'like', '%' . urldecode(request()->input('query')) . '%'] + ['name', 'like', '%'.urldecode(request()->input('query')).'%'], ]); return response()->json($results); @@ -182,4 +180,4 @@ public function massDestroy() 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.settings.tags.title')]), ]); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/TypeController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/TypeController.php index 64be27bf5..b8f301e83 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/TypeController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/TypeController.php @@ -14,9 +14,7 @@ class TypeController extends Controller * * @return void */ - public function __construct(protected TypeRepository $typeRepository) - { - } + public function __construct(protected TypeRepository $typeRepository) {} /** * Display a listing of the type. @@ -40,9 +38,9 @@ public function index() public function store() { $validator = Validator::make(request()->all(), [ - 'name' => 'required|unique:lead_types,name' + 'name' => 'required|unique:lead_types,name', ]); - + if ($validator->fails()) { session()->flash('error', trans('admin::app.settings.types.name-exists')); @@ -82,7 +80,7 @@ public function edit($id) public function update($id) { $this->validate(request(), [ - 'name' => 'required|unique:lead_types,name,' . $id, + 'name' => 'required|unique:lead_types,name,'.$id, ]); Event::dispatch('settings.type.update.before', $id); @@ -116,7 +114,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.types.delete-success'), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.types.delete-failed'), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/UserController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/UserController.php index bf07ef764..56033fa3b 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/UserController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/UserController.php @@ -4,11 +4,11 @@ use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Mail; -use Webkul\User\Repositories\RoleRepository; +use Webkul\Admin\Http\Controllers\Controller; +use Webkul\Admin\Notifications\User\Create; use Webkul\User\Repositories\GroupRepository; +use Webkul\User\Repositories\RoleRepository; use Webkul\User\Repositories\UserRepository; -use Webkul\Admin\Notifications\User\Create; -use Webkul\Admin\Http\Controllers\Controller; class UserController extends Controller { @@ -21,8 +21,7 @@ public function __construct( protected UserRepository $userRepository, protected GroupRepository $groupRepository, protected RoleRepository $roleRepository - ) { - } + ) {} /** * Display a listing of the resource. @@ -87,7 +86,8 @@ public function store() try { Mail::queue(new Create($admin)); - } catch (\Exception $e) {} + } catch (\Exception $e) { + } Event::dispatch('settings.user.create.after', $admin); @@ -122,7 +122,7 @@ public function edit($id) public function update($id) { $this->validate(request(), [ - 'email' => 'required|email|unique:users,email,' . $id, + 'email' => 'required|email|unique:users,email,'.$id, 'name' => 'required', 'password' => 'nullable', 'confirm_password' => 'nullable|required_with:password|same:password', @@ -170,7 +170,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.users.delete-failed'), ], 400); - } else if ($this->userRepository->count() == 1) { + } elseif ($this->userRepository->count() == 1) { return response()->json([ 'message' => trans('admin::app.settings.users.last-delete-error'), ], 400); @@ -242,7 +242,7 @@ public function massDestroy() if (auth()->guard('user')->user()->id == $userId) { continue; } - + Event::dispatch('settings.user.delete.before', $userId); $this->userRepository->delete($userId); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/WarehouseController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/WarehouseController.php index c8c5bd10a..77362cfb3 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/WarehouseController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/WarehouseController.php @@ -4,9 +4,9 @@ use Illuminate\Support\Facades\Event; use Prettus\Repository\Criteria\RequestCriteria; -use Webkul\Attribute\Http\Requests\AttributeForm; use Webkul\Admin\DataGrids\Setting\WarehouseDataGrid; use Webkul\Admin\Http\Controllers\Controller; +use Webkul\Attribute\Http\Requests\AttributeForm; use Webkul\Warehouse\Repositories\WarehouseRepository; class WarehouseController extends Controller @@ -79,7 +79,6 @@ public function create() /** * Store a newly created resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request * @return \Illuminate\Http\Response */ public function store(AttributeForm $request) @@ -124,8 +123,7 @@ public function edit($id) /** * Update the specified resource in storage. * - * @param \Webkul\Attribute\Http\Requests\AttributeForm $request - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function update(AttributeForm $request, $id) @@ -161,7 +159,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.response.destroy-success', ['name' => trans('admin::app.warehouses.warehouse')]), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.response.destroy-failed', ['name' => trans('admin::app.warehouses.warehouse')]), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Setting/WorkflowController.php b/packages/Webkul/Admin/src/Http/Controllers/Setting/WorkflowController.php index 9e318199a..eb6f9dd73 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Setting/WorkflowController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Setting/WorkflowController.php @@ -13,9 +13,7 @@ class WorkflowController extends Controller * * @return void */ - public function __construct(protected WorkflowRepository $workflowRepository) - { - } + public function __construct(protected WorkflowRepository $workflowRepository) {} /** * Display a listing of the workflow. @@ -119,7 +117,7 @@ public function destroy($id) return response()->json([ 'message' => trans('admin::app.settings.workflows.delete-success'), ], 200); - } catch(\Exception $exception) { + } catch (\Exception $exception) { return response()->json([ 'message' => trans('admin::app.settings.workflows.delete-failed'), ], 400); diff --git a/packages/Webkul/Admin/src/Http/Controllers/User/AccountController.php b/packages/Webkul/Admin/src/Http/Controllers/User/AccountController.php index 35380e803..e79a2c754 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/User/AccountController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/User/AccountController.php @@ -2,8 +2,8 @@ namespace Webkul\Admin\Http\Controllers\User; -use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Event; +use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Storage; use Webkul\Admin\Http\Controllers\Controller; @@ -34,7 +34,7 @@ public function update() $this->validate(request(), [ 'name' => 'required', - 'email' => 'email|unique:users,email,' . $user->id, + 'email' => 'email|unique:users,email,'.$user->id, 'password' => 'nullable|min:6|confirmed', 'current_password' => 'nullable|required|min:6', 'image' => 'mimes:jpeg,jpg,png,gif', @@ -49,7 +49,7 @@ public function update() return redirect()->back(); } - if( isset($data['role_id']) || isset($data['view_permission']) ) { + if (isset($data['role_id']) || isset($data['view_permission'])) { session()->flash('warning', trans('admin::app.user.account.permission-denied')); return redirect()->back(); @@ -80,7 +80,7 @@ public function update() * Handle profile image upload. * * @param array $data - * @param Object $user + * @param object $user * @return void */ public function handleProfileImageUpload(&$data, $user) @@ -90,20 +90,20 @@ public function handleProfileImageUpload(&$data, $user) if (! isset($data['image'])) { $data['image'] = $user->image; } - + if (request()->hasFile('image')) { - $data['image'] = request()->file('image')->store('users/' . $user->id); + $data['image'] = request()->file('image')->store('users/'.$user->id); } - + if ( isset($data['remove_image']) && $data['remove_image'] ) { $data['image'] = null; } - + if ( - $oldImage + $oldImage && ($data['image'] !== $oldImage) ) { Storage::delete($oldImage); diff --git a/packages/Webkul/Admin/src/Http/Controllers/User/ForgotPasswordController.php b/packages/Webkul/Admin/src/Http/Controllers/User/ForgotPasswordController.php index d77fd686d..1a7c7fe85 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/User/ForgotPasswordController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/User/ForgotPasswordController.php @@ -17,7 +17,7 @@ class ForgotPasswordController extends Controller * @return \Illuminate\View\View */ public function create() - { + { if (auth()->guard('user')->check()) { return redirect()->route('admin.dashboard.index'); } else { @@ -45,7 +45,7 @@ public function store() 'email' => 'required|email', ]); - $response = $this->broker()->sendResetLink(request(['email']), function($user, $token) { + $response = $this->broker()->sendResetLink(request(['email']), function ($user, $token) { $user->notify(new UserResetPassword($token)); }); @@ -60,7 +60,7 @@ public function store() ->withErrors([ 'email' => trans('admin::app.sessions.forgot-password.email-not-exist'), ]); - } catch(\Exception $exception) { + } catch (\Exception $exception) { session()->flash('error', trans($exception->getMessage())); return redirect()->back(); @@ -76,4 +76,4 @@ public function broker() { return Password::broker('users'); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/User/ResetPasswordController.php b/packages/Webkul/Admin/src/Http/Controllers/User/ResetPasswordController.php index 3d3bf3417..5544a86c6 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/User/ResetPasswordController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/User/ResetPasswordController.php @@ -2,10 +2,10 @@ namespace Webkul\Admin\Http\Controllers\User; +use Illuminate\Auth\Events\PasswordReset; use Illuminate\Foundation\Auth\ResetsPasswords; -use Illuminate\Support\Facades\Password; use Illuminate\Support\Facades\Hash; -use Illuminate\Auth\Events\PasswordReset; +use Illuminate\Support\Facades\Password; use Illuminate\Support\Str; use Webkul\Admin\Http\Controllers\Controller; @@ -58,7 +58,7 @@ public function store() ->withErrors([ 'email' => trans($response), ]); - } catch(\Exception $exception) { + } catch (\Exception $exception) { session()->flash('error', trans($exception->getMessage())); return redirect()->back(); @@ -94,4 +94,4 @@ public function broker() { return Password::broker('users'); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Controllers/User/SessionController.php b/packages/Webkul/Admin/src/Http/Controllers/User/SessionController.php index 86eb12981..3d144a9d5 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/User/SessionController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/User/SessionController.php @@ -2,7 +2,6 @@ namespace Webkul\Admin\Http\Controllers\User; -use Illuminate\Support\Facades\Auth; use Webkul\Admin\Http\Controllers\Controller; class SessionController extends Controller @@ -69,4 +68,4 @@ public function destroy() return redirect()->route('admin.session.create'); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Middleware/Bouncer.php b/packages/Webkul/Admin/src/Http/Middleware/Bouncer.php index 8bd0be1d9..a9a7bbcd5 100755 --- a/packages/Webkul/Admin/src/Http/Middleware/Bouncer.php +++ b/packages/Webkul/Admin/src/Http/Middleware/Bouncer.php @@ -10,7 +10,6 @@ class Bouncer * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string|null $guard * @return mixed */ @@ -40,7 +39,7 @@ public function handle($request, \Closure $next, $guard = 'user') auth()->guard($guard)->logout(); session()->flash('error', __('admin::app.errors.401')); - + return redirect()->route('admin.session.create'); } diff --git a/packages/Webkul/Admin/src/Http/Middleware/Locale.php b/packages/Webkul/Admin/src/Http/Middleware/Locale.php index b6549fece..dce6edb7c 100644 --- a/packages/Webkul/Admin/src/Http/Middleware/Locale.php +++ b/packages/Webkul/Admin/src/Http/Middleware/Locale.php @@ -3,16 +3,14 @@ namespace Webkul\Admin\Http\Middleware; use Closure; -use Illuminate\Http\Request; use Illuminate\Foundation\Application; +use Illuminate\Http\Request; class Locale { /** * The middleware instance. - * - * @param \Illuminate\Foundation\Application $app - * @param \Illuminate\Http\Request $request + * * @return void */ public function __construct( @@ -28,7 +26,6 @@ public function __construct( * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) @@ -40,4 +37,4 @@ public function handle($request, Closure $next) return $next($request); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/Requests/LeadForm.php b/packages/Webkul/Admin/src/Http/Requests/LeadForm.php index f8417da74..fb395d00b 100644 --- a/packages/Webkul/Admin/src/Http/Requests/LeadForm.php +++ b/packages/Webkul/Admin/src/Http/Requests/LeadForm.php @@ -3,9 +3,9 @@ namespace Webkul\Admin\Http\Requests; use Illuminate\Foundation\Http\FormRequest; -use Webkul\Core\Contracts\Validations\Decimal; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Attribute\Repositories\AttributeValueRepository; +use Webkul\Core\Contracts\Validations\Decimal; class LeadForm extends FormRequest { @@ -22,9 +22,7 @@ class LeadForm extends FormRequest public function __construct( protected AttributeRepository $attributeRepository, protected AttributeValueRepository $attributeValueRepository - ) - { - } + ) {} /** * Determine if the product is authorized to make this request. @@ -44,7 +42,7 @@ public function authorize() public function rules() { foreach (['leads', 'persons'] as $key => $entityType) { - $attributes = $this->attributeRepository->scopeQuery(function($query) use($entityType) { + $attributes = $this->attributeRepository->scopeQuery(function ($query) use ($entityType) { $attributeCodes = $entityType == 'persons' ? array_keys(request('person') ?? []) : array_keys(request()->all()); @@ -61,36 +59,36 @@ public function rules() foreach ($attributes as $attribute) { if ($entityType == 'persons') { - $attribute->code = 'person.' . $attribute->code; + $attribute->code = 'person.'.$attribute->code; } $validations = []; if ($attribute->type == 'boolean') { continue; - } else if ($attribute->type == 'address') { + } elseif ($attribute->type == 'address') { if (! $attribute->is_required) { continue; } $validations = [ - $attribute->code . '.address' => 'required', - $attribute->code . '.country' => 'required', - $attribute->code . '.state' => 'required', - $attribute->code . '.city' => 'required', - $attribute->code . '.postcode' => 'required', + $attribute->code.'.address' => 'required', + $attribute->code.'.country' => 'required', + $attribute->code.'.state' => 'required', + $attribute->code.'.city' => 'required', + $attribute->code.'.postcode' => 'required', ]; - } else if ($attribute->type == 'email') { + } elseif ($attribute->type == 'email') { $validations = [ $attribute->code => [$attribute->is_required ? 'required' : 'nullable'], - $attribute->code . '.*.value' => [$attribute->is_required ? 'required' : 'nullable', 'email'], - $attribute->code . '.*.label' => $attribute->is_required ? 'required' : 'nullable', + $attribute->code.'.*.value' => [$attribute->is_required ? 'required' : 'nullable', 'email'], + $attribute->code.'.*.label' => $attribute->is_required ? 'required' : 'nullable', ]; - } else if ($attribute->type == 'phone') { + } elseif ($attribute->type == 'phone') { $validations = [ $attribute->code => [$attribute->is_required ? 'required' : 'nullable'], - $attribute->code . '.*.value' => [$attribute->is_required ? 'required' : 'nullable'], - $attribute->code . '.*.label' => $attribute->is_required ? 'required' : 'nullable', + $attribute->code.'.*.value' => [$attribute->is_required ? 'required' : 'nullable'], + $attribute->code.'.*.label' => $attribute->is_required ? 'required' : 'nullable', ]; } else { $validations[$attribute->code] = [$attribute->is_required ? 'required' : 'nullable']; @@ -110,15 +108,15 @@ public function rules() if ($attribute->is_unique) { array_push($validations[in_array($attribute->type, ['email', 'phone']) - ? $attribute->code . '.*.value' + ? $attribute->code.'.*.value' : $attribute->code ], function ($field, $value, $fail) use ($attribute, $entityType) { if (! $this->attributeValueRepository->isValueUnique( - $entityType == 'persons' ? request('person.id') : $this->id, - $attribute->entity_type, - $attribute, - request($field) - ) + $entityType == 'persons' ? request('person.id') : $this->id, + $attribute->entity_type, + $attribute, + request($field) + ) ) { $fail('The value has already been taken.'); } diff --git a/packages/Webkul/Admin/src/Http/Requests/PipelineForm.php b/packages/Webkul/Admin/src/Http/Requests/PipelineForm.php index 8884b2931..845360197 100755 --- a/packages/Webkul/Admin/src/Http/Requests/PipelineForm.php +++ b/packages/Webkul/Admin/src/Http/Requests/PipelineForm.php @@ -10,7 +10,6 @@ class PipelineForm extends FormRequest /** * Constructor. * - * @param \Illuminate\Validation\Factory $validationFactory * @return void */ public function __construct(ValidationFactory $validationFactory) @@ -37,15 +36,15 @@ public function rules() { if (request('id')) { return [ - 'name' => 'required', + 'name' => 'required', 'stages.*.name' => 'unique_key', 'stages.*.code' => 'unique_key', ]; } return [ - 'name' => 'required', - 'rotten_days' => 'required', + 'name' => 'required', + 'rotten_days' => 'required', 'stages.*.name' => 'unique_key', 'stages.*.code' => 'unique_key', ]; @@ -66,7 +65,6 @@ public function messages() /** * Place all your validator extensions here. * - * @param \Illuminate\Validation\Factory $validationFactory * @return void */ public function validatorExtensions(ValidationFactory $validationFactory) diff --git a/packages/Webkul/Admin/src/Http/Requests/UserForm.php b/packages/Webkul/Admin/src/Http/Requests/UserForm.php index 628317bcf..e2e9d32ba 100755 --- a/packages/Webkul/Admin/src/Http/Requests/UserForm.php +++ b/packages/Webkul/Admin/src/Http/Requests/UserForm.php @@ -35,7 +35,7 @@ public function rules() ]; if ($this->method() == 'PUT') { - $this->rules['email'] = 'email|unique:users,email,' . $this->route('id'); + $this->rules['email'] = 'email|unique:users,email,'.$this->route('id'); } return $this->rules; diff --git a/packages/Webkul/Admin/src/Http/helpers.php b/packages/Webkul/Admin/src/Http/helpers.php index f3b30d7a0..019e620af 100755 --- a/packages/Webkul/Admin/src/Http/helpers.php +++ b/packages/Webkul/Admin/src/Http/helpers.php @@ -1,8 +1,8 @@ make('bouncer'); - } + +if (! function_exists('bouncer')) { + function bouncer() + { + return app()->make('bouncer'); } -?> \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Http/routes.php b/packages/Webkul/Admin/src/Http/routes.php index 79284d2ba..4f6d3c7b4 100644 --- a/packages/Webkul/Admin/src/Http/routes.php +++ b/packages/Webkul/Admin/src/Http/routes.php @@ -54,7 +54,7 @@ // User Routes Route::group([ 'prefix' => 'account', - 'namespace' => 'Webkul\Admin\Http\Controllers\User' + 'namespace' => 'Webkul\Admin\Http\Controllers\User', ], function () { Route::get('', 'AccountController@edit')->name('admin.user.account.edit'); @@ -172,7 +172,7 @@ // Contacts Routes Route::group([ 'prefix' => 'contacts', - 'namespace' => 'Webkul\Admin\Http\Controllers\Contact' + 'namespace' => 'Webkul\Admin\Http\Controllers\Contact', ], function () { // Customers Routes Route::prefix('persons')->group(function () { @@ -214,7 +214,7 @@ // Products Routes Route::group([ 'prefix' => 'products', - 'namespace' => 'Webkul\Admin\Http\Controllers\Product' + 'namespace' => 'Webkul\Admin\Http\Controllers\Product', ], function () { Route::get('', 'ProductController@index')->name('admin.products.index'); @@ -242,7 +242,7 @@ // Contacts Routes Route::group([ 'prefix' => 'settings', - 'namespace' => 'Webkul\Admin\Http\Controllers\Setting' + 'namespace' => 'Webkul\Admin\Http\Controllers\Setting', ], function () { Route::get('', 'SettingController@index')->name('admin.settings.index'); @@ -321,7 +321,6 @@ Route::get('download', 'AttributeController@download')->name('admin.settings.attributes.download'); }); - // Lead Pipelines Routes Route::prefix('pipelines')->group(function () { Route::get('', 'PipelineController@index')->name('admin.settings.pipelines.index'); @@ -337,7 +336,6 @@ Route::delete('{id}', 'PipelineController@destroy')->name('admin.settings.pipelines.delete'); }); - // Lead Sources Routes Route::prefix('sources')->group(function () { Route::get('', 'SourceController@index')->name('admin.settings.sources.index'); @@ -351,7 +349,6 @@ Route::delete('{id}', 'SourceController@destroy')->name('admin.settings.sources.delete'); }); - // Lead Types Routes Route::prefix('types')->group(function () { Route::get('', 'TypeController@index')->name('admin.settings.types.index'); @@ -365,7 +362,6 @@ Route::delete('{id}', 'TypeController@destroy')->name('admin.settings.types.delete'); }); - // Email Templates Routes Route::prefix('email-templates')->group(function () { Route::get('', 'EmailTemplateController@index')->name('admin.settings.email_templates.index'); @@ -381,7 +377,6 @@ Route::delete('{id}', 'EmailTemplateController@destroy')->name('admin.settings.email_templates.delete'); }); - // Warehouses Routes Route::prefix('warehouses')->group(function () { Route::get('', 'WarehouseController@index')->name('admin.settings.warehouses.index'); @@ -414,7 +409,6 @@ Route::delete('{id}', 'LocationController@destroy')->name('admin.settings.locations.delete'); }); - // Workflows Routes Route::prefix('workflows')->group(function () { Route::get('', 'WorkflowController@index')->name('admin.settings.workflows.index'); @@ -430,7 +424,6 @@ Route::delete('{id}', 'WorkflowController@destroy')->name('admin.settings.workflows.delete'); }); - // Tags Routes Route::prefix('tags')->group(function () { Route::get('', 'TagController@index')->name('admin.settings.tags.index'); @@ -452,7 +445,7 @@ // Configuration Routes Route::group([ 'prefix' => 'configuration', - 'namespace' => 'Webkul\Admin\Http\Controllers\Configuration' + 'namespace' => 'Webkul\Admin\Http\Controllers\Configuration', ], function () { Route::get('{slug?}', 'ConfigurationController@index')->name('admin.configuration.index'); diff --git a/packages/Webkul/Admin/src/Listeners/Lead.php b/packages/Webkul/Admin/src/Listeners/Lead.php index f89a58a70..20a40fa4a 100644 --- a/packages/Webkul/Admin/src/Listeners/Lead.php +++ b/packages/Webkul/Admin/src/Listeners/Lead.php @@ -11,9 +11,7 @@ class Lead * * @return void */ - public function __construct(protected EmailRepository $emailRepository) - { - } + public function __construct(protected EmailRepository $emailRepository) {} /** * @param \Webkul\Lead\Models\Lead $lead @@ -29,4 +27,4 @@ public function linkToEmail($lead) 'lead_id' => $lead->id, ], request('email_id')); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Listeners/Person.php b/packages/Webkul/Admin/src/Listeners/Person.php index f80beae53..b8c437824 100644 --- a/packages/Webkul/Admin/src/Listeners/Person.php +++ b/packages/Webkul/Admin/src/Listeners/Person.php @@ -11,9 +11,7 @@ class Person * * @return void */ - public function __construct(protected EmailRepository $emailRepository) - { - } + public function __construct(protected EmailRepository $emailRepository) {} /** * @param \Webkul\Contact\Models\Person $person @@ -29,4 +27,4 @@ public function linkToEmail($person) 'person_id' => $person->id, ], request('email_id')); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Notifications/Common.php b/packages/Webkul/Admin/src/Notifications/Common.php index a22ac8d92..33ea2810b 100644 --- a/packages/Webkul/Admin/src/Notifications/Common.php +++ b/packages/Webkul/Admin/src/Notifications/Common.php @@ -8,12 +8,10 @@ class Common extends Mailable { /** * Create a new notification instance. - * + * * @return void */ - public function __construct(public $data) - { - } + public function __construct(public $data) {} /** * Build the mail representation of the notification. diff --git a/packages/Webkul/Admin/src/Notifications/User/Create.php b/packages/Webkul/Admin/src/Notifications/User/Create.php index a84b2e536..e980f05dd 100644 --- a/packages/Webkul/Admin/src/Notifications/User/Create.php +++ b/packages/Webkul/Admin/src/Notifications/User/Create.php @@ -3,7 +3,6 @@ namespace Webkul\Admin\Notifications\User; use Illuminate\Mail\Mailable; -use Illuminate\Notifications\Messages\MailMessage; class Create extends Mailable { @@ -11,9 +10,7 @@ class Create extends Mailable * @param object $user * @return void */ - public function __construct(public $user) - { - } + public function __construct(public $user) {} /** * Build the mail representation of the notification. diff --git a/packages/Webkul/Admin/src/Notifications/User/UserUpdatePassword.php b/packages/Webkul/Admin/src/Notifications/User/UserUpdatePassword.php index 95fd1e97f..2e82646d6 100644 --- a/packages/Webkul/Admin/src/Notifications/User/UserUpdatePassword.php +++ b/packages/Webkul/Admin/src/Notifications/User/UserUpdatePassword.php @@ -16,9 +16,7 @@ class UserUpdatePassword extends Mailable * @param \Webkul\User\Contracts\User $user * @return void */ - public function __construct(public $user) - { - } + public function __construct(public $user) {} /** * Build the message. @@ -28,8 +26,8 @@ public function __construct(public $user) public function build() { return $this->from(core()->getSenderEmailDetails()['email'], core()->getSenderEmailDetails()['name']) - ->to($this->user->email, $this->user->name) - ->subject(trans('shop::app.mail.update-password.subject')) - ->view('shop::emails.users.update-password', ['user' => $this->user]); + ->to($this->user->email, $this->user->name) + ->subject(trans('shop::app.mail.update-password.subject')) + ->view('shop::emails.users.update-password', ['user' => $this->user]); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php b/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php index 4427edf0d..e03914fa6 100644 --- a/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php +++ b/packages/Webkul/Admin/src/Providers/AdminServiceProvider.php @@ -3,10 +3,10 @@ namespace Webkul\Admin\Providers; use Illuminate\Database\Eloquent\Relations\Relation; -use Webkul\Admin\Http\Middleware\Locale; use Illuminate\Foundation\AliasLoader; use Illuminate\Routing\Router; use Illuminate\Support\ServiceProvider; +use Webkul\Admin\Http\Middleware\Locale; use Webkul\Core\Tree; class AdminServiceProvider extends ServiceProvider @@ -18,15 +18,15 @@ class AdminServiceProvider extends ServiceProvider */ public function boot(Router $router) { - include __DIR__ . '/../Http/helpers.php'; + include __DIR__.'/../Http/helpers.php'; - $this->loadRoutesFrom(__DIR__ . '/../Http/routes.php'); + $this->loadRoutesFrom(__DIR__.'/../Http/routes.php'); - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); - $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'admin'); + $this->loadTranslationsFrom(__DIR__.'/../Resources/lang', 'admin'); - $this->loadViewsFrom(__DIR__ . '/../Resources/views', 'admin'); + $this->loadViewsFrom(__DIR__.'/../Resources/views', 'admin'); $this->app->bind(\Illuminate\Contracts\Debug\ExceptionHandler::class, \Webkul\Admin\Exceptions\Handler::class); @@ -35,7 +35,7 @@ public function boot(Router $router) $router->aliasMiddleware('admin_locale', Locale::class); $this->publishes([ - __DIR__ . '/../../publishable/assets' => public_path('vendor/webkul/admin/assets'), + __DIR__.'/../../publishable/assets' => public_path('vendor/webkul/admin/assets'), ], 'public'); Relation::morphMap([ @@ -87,17 +87,17 @@ protected function registerFacades() */ protected function registerConfig() { - $this->mergeConfigFrom(dirname(__DIR__) . '/Config/acl.php', 'acl'); + $this->mergeConfigFrom(dirname(__DIR__).'/Config/acl.php', 'acl'); - $this->mergeConfigFrom(dirname(__DIR__) . '/Config/menu.php', 'menu.admin'); + $this->mergeConfigFrom(dirname(__DIR__).'/Config/menu.php', 'menu.admin'); - $this->mergeConfigFrom(dirname(__DIR__) . '/Config/core_config.php', 'core_config'); + $this->mergeConfigFrom(dirname(__DIR__).'/Config/core_config.php', 'core_config'); - $this->mergeConfigFrom(dirname(__DIR__) . '/Config/dashboard_cards.php', 'dashboard_cards'); + $this->mergeConfigFrom(dirname(__DIR__).'/Config/dashboard_cards.php', 'dashboard_cards'); - $this->mergeConfigFrom(dirname(__DIR__) . '/Config/attribute_lookups.php', 'attribute_lookups'); + $this->mergeConfigFrom(dirname(__DIR__).'/Config/attribute_lookups.php', 'attribute_lookups'); - $this->mergeConfigFrom(dirname(__DIR__) . '/Config/attribute_entity_types.php', 'attribute_entity_types'); + $this->mergeConfigFrom(dirname(__DIR__).'/Config/attribute_entity_types.php', 'attribute_entity_types'); } /** diff --git a/packages/Webkul/Admin/src/Providers/EventServiceProvider.php b/packages/Webkul/Admin/src/Providers/EventServiceProvider.php index 49b3d9d2a..59b8619fd 100644 --- a/packages/Webkul/Admin/src/Providers/EventServiceProvider.php +++ b/packages/Webkul/Admin/src/Providers/EventServiceProvider.php @@ -13,11 +13,11 @@ class EventServiceProvider extends ServiceProvider */ protected $listen = [ 'contacts.person.create.after' => [ - 'Webkul\Admin\Listeners\Person@linkToEmail' + 'Webkul\Admin\Listeners\Person@linkToEmail', ], 'lead.create.after' => [ - 'Webkul\Admin\Listeners\Lead@linkToEmail' + 'Webkul\Admin\Listeners\Lead@linkToEmail', ], ]; -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Providers/ModuleServiceProvider.php b/packages/Webkul/Admin/src/Providers/ModuleServiceProvider.php index 191d003e2..8db18ef9b 100644 --- a/packages/Webkul/Admin/src/Providers/ModuleServiceProvider.php +++ b/packages/Webkul/Admin/src/Providers/ModuleServiceProvider.php @@ -8,4 +8,4 @@ class ModuleServiceProvider extends BaseModuleServiceProvider { protected $models = [ ]; -} \ No newline at end of file +} diff --git a/packages/Webkul/Admin/src/Resources/lang/ar/app.php b/packages/Webkul/Admin/src/Resources/lang/ar/app.php index 99edd984e..2ac97c76e 100644 --- a/packages/Webkul/Admin/src/Resources/lang/ar/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/ar/app.php @@ -1,943 +1,944 @@ [ - 'title' => 'لوحة القيادة', - 'cards' => 'البطاقات', - 'column' => 'عمودي', - 'done' => 'منتهي', - 'activity' => 'نشاط', - 'activities' => 'أنشطة', - 'top_leads' => 'كبار العملاء المتوقعين', - 'pipelines' => 'خطوط الأنابيب', - 'quotes' => 'يقتبس', - 'emails' => 'رسائل البريد الإلكتروني', - 'custom_card' => 'بطاقة مخصصة', - 'customers' => 'عملاء', - 'top_customers' => 'كبار العملاء', - 'leads_started' => 'بدأ العملاء المحتملون', - 'products' => 'منتجات', - 'top_products' => 'أهم المنتجات', - 'leads_over_time' => 'يؤدي بمرور الوقت', - 'no_record_found' => 'لا يوجد سجلات', - 'week' => 'أسبوع', + +return [ + 'dashboard' => [ + 'title' => 'لوحة القيادة', + 'cards' => 'البطاقات', + 'column' => 'عمودي', + 'done' => 'منتهي', + 'activity' => 'نشاط', + 'activities' => 'أنشطة', + 'top_leads' => 'كبار العملاء المتوقعين', + 'pipelines' => 'خطوط الأنابيب', + 'quotes' => 'يقتبس', + 'emails' => 'رسائل البريد الإلكتروني', + 'custom_card' => 'بطاقة مخصصة', + 'customers' => 'عملاء', + 'top_customers' => 'كبار العملاء', + 'leads_started' => 'بدأ العملاء المحتملون', + 'products' => 'منتجات', + 'top_products' => 'أهم المنتجات', + 'leads_over_time' => 'يؤدي بمرور الوقت', + 'no_record_found' => 'لا يوجد سجلات', + 'week' => 'أسبوع', + ], + + 'layouts' => [ + 'app-version' => 'إصدار : :version', + 'dashboard' => 'لوحة القيادة', + 'leads' => 'يؤدي', + 'quotes' => 'يقتبس', + 'quote' => 'اقتبس', + 'mail' => [ + 'title' => 'بريد', + 'compose' => 'مؤلف موسيقى', + 'inbox' => 'صندوق الوارد', + 'draft' => 'مشروع', + 'outbox' => 'صندوق الصادر', + 'sent' => 'أرسلت', + 'trash' => 'نفاية', + 'setting' => 'ضبط', + ], + 'activities' => 'أنشطة', + 'contacts' => 'جهات الاتصال', + 'persons' => 'الأشخاص', + 'person' => 'شخص', + 'organizations' => 'المنظمات', + 'organization' => 'منظمة', + 'products' => 'منتجات', + 'product' => 'المنتج', + 'settings' => 'إعدادات', + 'user' => 'مستخدم', + 'user-info' => 'إدارة جميع المستخدمين وأذوناتهم في CRM ، ما يُسمح لهم بفعله.', + 'groups' => 'مجموعات', + 'groups-info' => 'إضافة مجموعات أو تحريرها أو حذفها من CRM', + 'roles' => 'الأدوار', + 'role' => 'دور', + 'roles-info' => 'إضافة الأدوار أو تحريرها أو حذفها من CRM', + 'users' => 'المستخدمون', + 'users-info' => 'إضافة أو تحرير أو حذف المستخدمين من CRM', + 'lead' => 'قيادة', + 'lead-info' => 'قم بإدارة جميع الإعدادات المتعلقة بالعملاء المتوقعين في CRM', + 'pipelines' => 'خطوط الأنابيب', + 'pipelines-info' => 'إضافة أو تحرير أو حذف خطوط الأنابيب من CRM', + 'sources' => 'مصادر', + 'sources-info' => 'إضافة أو تحرير أو حذف المصادر من CRM', + 'types' => 'أنواع', + 'types-info' => 'إضافة أنواع أو تعديلها أو حذفها من CRM', + 'automation' => 'التشغيل الآلي', + 'automation-info' => 'إدارة جميع الإعدادات المتعلقة بالأتمتة في CRM', + 'attributes' => 'صفات', + 'attribute' => 'يصف', + 'attributes-info' => 'إضافة أو تحرير أو حذف السمات من CRM', + 'email-templates' => 'قوالب البريد الإلكتروني', + 'email' => 'بريد الالكتروني', + 'email-templates-info' => 'إضافة أو تحرير أو حذف قوالب البريد الإلكتروني من CRM', + 'workflows' => 'سير العمل', + 'workflows-info' => 'إضافة أو تحرير أو حذف مهام سير العمل من CRM', + 'other-settings' => 'اعدادات اخرى', + 'other-settings-info' => 'إدارة جميع الإعدادات الإضافية الخاصة بك في CRM', + 'tags' => 'العلامات', + 'tags-info' => 'إضافة أو تحرير أو حذف العلامات من CRM', + 'my-account' => 'حسابي', + 'sign-out' => 'خروج', + 'back' => 'خلف', + 'name' => 'اسم', + 'configuration' => 'إعدادات', + 'activities' => 'أنشطة', + 'howdy' => 'مرحبا!', + 'warehouses' => 'المستودعات', + 'warehouse' => 'المستودع', + 'warehouses-info' => 'إضافة أو تعديل أو حذف المستودعات من نظام إدارة علاقات العملاء (CRM)', + ], + + 'contacts' => [ + 'organizations' => [ + 'title' => 'المنظمات', + 'organization' => 'منظمة', + 'create-title' => 'إنشاء منظمة', + 'edit-title' => 'تحرير المنظمة', + 'save-btn-title' => 'حفظ كمنظمة', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'create-success' => 'تم إنشاء المنظمة بنجاح.', + 'update-success' => 'تم تحديث المنظمة بنجاح.', + 'delete-success' => 'تم حذف المنظمة بنجاح.', + 'delete-failed' => 'لا يمكن حذف المنظمة.', ], - 'layouts' => [ - 'app-version' => 'إصدار : :version', - 'dashboard' => 'لوحة القيادة', - 'leads' => 'يؤدي', - 'quotes' => 'يقتبس', - 'quote' => 'اقتبس', - 'mail' => [ - 'title' => 'بريد', - 'compose' => 'مؤلف موسيقى', - 'inbox' => 'صندوق الوارد', - 'draft' => 'مشروع', - 'outbox' => 'صندوق الصادر', - 'sent' => 'أرسلت', - 'trash' => 'نفاية', - 'setting' => 'ضبط', - ], - 'activities' => 'أنشطة', - 'contacts' => 'جهات الاتصال', - 'persons' => 'الأشخاص', - 'person' => 'شخص', - 'organizations' => 'المنظمات', - 'organization' => 'منظمة', - 'products' => 'منتجات', - 'product' => 'المنتج', - 'settings' => 'إعدادات', - 'user' => 'مستخدم', - 'user-info' => 'إدارة جميع المستخدمين وأذوناتهم في CRM ، ما يُسمح لهم بفعله.', - 'groups' => 'مجموعات', - 'groups-info' => 'إضافة مجموعات أو تحريرها أو حذفها من CRM', - 'roles' => 'الأدوار', - 'role' => 'دور', - 'roles-info' => 'إضافة الأدوار أو تحريرها أو حذفها من CRM', - 'users' => 'المستخدمون', - 'users-info' => 'إضافة أو تحرير أو حذف المستخدمين من CRM', - 'lead' => 'قيادة', - 'lead-info' => 'قم بإدارة جميع الإعدادات المتعلقة بالعملاء المتوقعين في CRM', - 'pipelines' => 'خطوط الأنابيب', - 'pipelines-info' => 'إضافة أو تحرير أو حذف خطوط الأنابيب من CRM', - 'sources' => 'مصادر', - 'sources-info' => 'إضافة أو تحرير أو حذف المصادر من CRM', - 'types' => 'أنواع', - 'types-info' => 'إضافة أنواع أو تعديلها أو حذفها من CRM', - 'automation' => 'التشغيل الآلي', - 'automation-info' => 'إدارة جميع الإعدادات المتعلقة بالأتمتة في CRM', - 'attributes' => 'صفات', - 'attribute' => 'يصف', - 'attributes-info' => 'إضافة أو تحرير أو حذف السمات من CRM', - 'email-templates' => 'قوالب البريد الإلكتروني', - 'email' => 'بريد الالكتروني', - 'email-templates-info' => 'إضافة أو تحرير أو حذف قوالب البريد الإلكتروني من CRM', - 'workflows' => 'سير العمل', - 'workflows-info' => 'إضافة أو تحرير أو حذف مهام سير العمل من CRM', - 'other-settings' => 'اعدادات اخرى', - 'other-settings-info' => 'إدارة جميع الإعدادات الإضافية الخاصة بك في CRM', - 'tags' => 'العلامات', - 'tags-info' => 'إضافة أو تحرير أو حذف العلامات من CRM', - 'my-account' => 'حسابي', - 'sign-out' => 'خروج', - 'back' => 'خلف', - 'name' => 'اسم', - 'configuration' => 'إعدادات', - 'activities' => 'أنشطة', - 'howdy' => 'مرحبا!', - 'warehouses' => 'المستودعات', - 'warehouse' => 'المستودع', - 'warehouses-info' => 'إضافة أو تعديل أو حذف المستودعات من نظام إدارة علاقات العملاء (CRM)', + 'persons' => [ + 'title' => 'الأشخاص', + 'person' => 'شخص', + 'create-title' => 'خلق الشخص', + 'edit-title' => 'تحرير الشخص', + 'save-btn-title' => 'حفظ كشخص', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'create-success' => 'تم إنشاء الشخص بنجاح.', + 'update-success' => 'تم تحديث الشخص بنجاح.', + 'delete-success' => 'تم حذف الشخص بنجاح.', + 'delete-failed' => 'لا يمكن حذف الشخص.', + ], + ], + + 'leads' => [ + 'title' => 'يؤدي', + 'lead' => 'قيادة', + 'create-title' => 'خلق الرصاص', + 'edit-title' => 'تحرير الرصاص', + 'save-btn-title' => 'حفظ كقائد', + 'save' => 'يحفظ', + 'upload' => 'تحميل', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'no-lead' => 'لا يؤدي', + 'lead-source-name' => 'مصدر الدليل', + 'details' => 'تفاصيل', + 'rotten-info' => 'الرصاص قد تعفن ل :days day(s)', + 'stage' => 'المسرح', + 'new' => 'جديد', + 'won-lost' => 'فاز / خسر', + 'won' => 'وون', + 'lost' => 'ضائع', + 'change-stage' => 'مرحلة التغيير', + 'lost-reason' => 'سبب ضائع', + 'won-value' => 'قيمة الفوز', + 'created-date:' => 'تاريخ الإنشاء:', + 'closed-date:' => 'تاريخ مغلق:', + 'closed-date' => 'تاريخ مغلق', + 'expected-close-date:' => 'تاريخ الإغلاق المتوقع:', + 'contact-person' => 'الشخص الذي يمكن الاتصال به', + 'add-tag' => 'إضافة علامة', + 'search-tag' => 'بحث الوسم', + 'name' => 'اسم', + 'color' => 'اللون', + 'email' => 'بريد الالكتروني', + 'contact-numbers' => 'ارقام التواصل', + 'organization' => 'منظمة', + 'address' => 'عنوان', + 'products' => 'منتجات', + 'item' => 'غرض', + 'price' => 'سعر', + 'quantity' => 'كمية', + 'amount' => 'كمية', + 'create-success' => 'تم إنشاء العميل المحتمل بنجاح.', + 'update-success' => 'تم تحديث العميل المحتمل بنجاح.', + 'delete-success' => 'تم حذف الرصاص بنجاح.', + 'delete-failed' => 'لا يمكن حذف الرصاص.', + 'product-quantity-required' => 'الكمية المطلوبة للمنتج مطلوبة عندما يكون معرف المنتج موجودًا.', + 'product-price-required' => 'سعر المنتج مطلوب عندما يكون معرف المنتج موجودًا.', + 'product-name-required' => 'اسم المنتج مطلوب عندما يكون معرف المنتج موجودًا.', + 'selected-product-not-exist' => 'معرف المنتج المحدد غير موجود.', + 'note' => 'ملحوظة', + 'activity' => 'نشاط', + 'title-control' => 'عنوان', + 'call' => 'مكالمة', + 'meeting' => 'لقاء', + 'lunch' => 'غداء', + 'file' => 'ملف', + 'quote' => 'اقتبس', + 'create-quote' => 'إنشاء اقتباس', + 'type' => 'نوع', + 'description' => 'وصف', + 'schedule' => 'جدول', + 'from' => 'من عند', + 'to' => 'إلى', + 'location' => 'موقع', + 'participants' => 'مشاركون', + 'participant-info' => 'ابدأ في كتابة الاسم', + 'users' => 'المستخدمون', + 'persons' => 'الأشخاص', + 'cc' => 'نسخة', + 'bcc' => 'نسخة مخفية الوجهة', + 'email-placeholder' => 'اضغط على يدخل لإضافة رسائل بريد إلكتروني', + 'file' => 'ملف', + 'subject' => 'موضوعات', + 'reply' => 'رد', + 'send' => 'يرسل', + 'all' => 'الجميع', + 'notes' => 'ملحوظات', + 'select-type' => 'اختر صنف', + 'calls' => 'المكالمات', + 'meetings' => 'الاجتماعات', + 'lunches' => 'وجبات الغداء', + 'emails' => 'رسائل البريد الإلكتروني', + 'files' => 'الملفات', + 'sales-owner' => 'مالك المبيعات', + 'person' => 'شخص', + 'expired-at' => 'منتهي الصلاحية في', + 'sub-total' => 'المجموع الفرعي', + 'discount' => 'خصم', + 'tax' => 'ضريبة', + 'adjustment' => 'تعديل', + 'grand-total' => 'المبلغ الإجمالي', + 'actions' => 'أجراءات', + 'planned' => 'مخطط', + 'done' => 'منتهي', + 'edit' => 'يحرر', + 'view' => 'منظر', + 'unlink' => 'إلغاء الارتباط', + 'mark-as-done' => 'اعتبره منته', + 'remove' => 'يزيل', + 'export-to-pdf' => 'تصدير إلى PDF', + 'empty-planned-activities' => 'ليس لديك أنشطة مخطط لها.', + 'empty-done-activities' => 'لم تقم بأي أنشطة.', + 'note-added' => 'تمت إضافة الملاحظة', + 'call-scheduled' => 'تمت جدولة المكالمة في :from - :to', + 'meeting-scheduled' => 'الاجتماع المقرر في :from - :to', + 'lunch-scheduled' => 'الغداء المقرر في :from - :to', + 'file-added' => 'تمت إضافة الملف', + 'quote-destroy-success' => 'تمت إزالة الاقتباس بنجاح.', + 'tag-create-success' => 'تمت إضافة العلامة بنجاح.', + 'tag-destroy-success' => 'تمت إزالة العلامة بنجاح.', + 'edit' => 'تعديل', + ], + + 'quotes' => [ + 'title' => 'يقتبس', + 'quote' => 'يقتبس', + 'create-title' => 'إنشاء اقتباس', + 'edit-title' => 'تحرير الاقتباس', + 'save-btn-title' => 'حفظ كاقتباس', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'quote-information' => 'معلومات الاقتباس', + 'lead' => 'قيادة', + 'address-information' => 'معلومات العنوان', + 'quote-items' => 'عناصر الاقتباس', + 'name' => 'اسم', + 'quantity' => 'كمية', + 'price' => 'سعر', + 'amount' => 'كمية', + 'discount' => 'خصم', + 'tax' => 'ضريبة', + 'total' => 'المجموع', + 'sub-total' => 'المجموع الفرعي', + 'adjustment' => 'تعديل', + 'grand-total' => 'المبلغ الإجمالي', + 'create-success' => 'تم إنشاء الاقتباس بنجاح', + 'update-success' => 'تم تحديث الاقتباس بنجاح.', + 'delete-success' => 'تم حذف الاقتباس بنجاح.', + 'delete-failed' => 'لا يمكن حذف الاقتباس.', + 'quote-id' => 'معرف الاقتباس', + 'quote-date' => 'تاريخ الاقتباس', + 'valid-until' => 'صالح حتى', + 'sales-person' => 'مندوب مبيعات', + 'bill-to' => 'فاتورة الى', + 'ship-to' => 'سافر على متن سفينة ل', + 'sku' => 'Sku', + 'product-name' => 'اسم المنتج', + 'price' => 'سعر', + 'amount' => 'كمية', + 'quantity' => 'كمية', + 'sub-total' => 'المجموع الفرعي', + 'tax' => 'ضريبة', + 'adjustment' => 'تعديل', + 'grand-total' => 'المبلغ الإجمالي', + 'search' => 'بحث..', + ], + + 'mail' => [ + 'title' => 'بريد - :type', + 'compose' => 'مؤلف موسيقى', + 'inbox' => 'صندوق الوارد', + 'draft' => 'مشروع', + 'outbox' => 'صندوق الصادر', + 'sent' => 'أرسلت', + 'trash' => 'نفاية', + 'setting' => 'ضبط', + 'total' => 'المجموع', + 'link-mail' => 'ربط البريد', + 'link-contact' => 'ربط جهة اتصال', + 'linked-contact' => 'جهة اتصال مرتبطة', + 'add-to-existing-contact' => 'إضافة إلى جهات الاتصال الموجودة', + 'create-new-contact' => 'إنشاء اتصال جديد', + 'search-contact' => 'ابحث عن جهة اتصال', + 'link-lead' => 'ربط الرصاص', + 'linked-lead' => 'الرصاص المرتبط', + 'search-lead' => 'ابحث عن الرصاص', + 'link-to-existing-lead' => 'الارتباط الموجود', + 'add-new-lead' => 'إضافة عميل محتمل جديد', + 'send' => 'يرسل', + 'back' => 'خلف', + 'discard' => 'تجاهل', + 'from-' => 'من عند - ', + 'to-' => 'إلى - ', + 'cc-' => 'نسخة - ', + 'bcc-' => 'نسخة مخفية الوجهة - ', + 'reply' => 'رد', + 'reply-all' => 'رد على الكل', + 'forward' => 'إلى الأمام', + 'delete' => 'حذف', + 'destroy-success' => 'تم حذف رسائل البريد الإلكتروني المحددة بنجاح.', + 'save-to-draft' => 'حفظ في المسودة', + 'create-success' => 'تم إرسال البريد الإلكتروني بنجاح.', + 'update-success' => 'تم تحديث البريد الإلكتروني بنجاح.', + 'saved-to-draft' => 'تم حفظ البريد الإلكتروني في المسودة.', + 'delete-success' => 'تم حذف البريد الإلكتروني بنجاح.', + 'delete-failed' => 'لا يمكن حذف البريد الإلكتروني.', + 'mass-update-success' => 'تم تحديث رسائل البريد الإلكتروني بنجاح.', + + 'forget-password' => [ + 'subject' => 'إعادة تعيين كلمة مرور العميل', + 'dear' => 'عزيزي :name', + 'reset-password' => 'إعادة تعيين كلمة المرور', + 'info' => 'أنت تتلقى هذا البريد الإلكتروني لأننا تلقينا طلب إعادة تعيين كلمة المرور لحسابك', + 'final-summary' => 'إذا لم تطلب إعادة تعيين كلمة المرور ، فلا داعي لاتخاذ أي إجراء آخر', + 'thanks' => 'شكرا!', ], - 'contacts' => [ - 'organizations' => [ - 'title' => 'المنظمات', - 'organization' => 'منظمة', - 'create-title' => 'إنشاء منظمة', - 'edit-title' => 'تحرير المنظمة', - 'save-btn-title' => 'حفظ كمنظمة', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'create-success' => 'تم إنشاء المنظمة بنجاح.', - 'update-success' => 'تم تحديث المنظمة بنجاح.', - 'delete-success' => 'تم حذف المنظمة بنجاح.', - 'delete-failed' => 'لا يمكن حذف المنظمة.', - ], - - 'persons' => [ - 'title' => 'الأشخاص', - 'person' => 'شخص', - 'create-title' => 'خلق الشخص', - 'edit-title' => 'تحرير الشخص', - 'save-btn-title' => 'حفظ كشخص', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'create-success' => 'تم إنشاء الشخص بنجاح.', - 'update-success' => 'تم تحديث الشخص بنجاح.', - 'delete-success' => 'تم حذف الشخص بنجاح.', - 'delete-failed' => 'لا يمكن حذف الشخص.', - ], + 'user' => [ + 'create-subject' => 'تمت إضافتك كعضو.', + 'create-body' => 'تهانينا! أنت الآن عضو في فريقنا.', + ], + ], + + 'activities' => [ + 'title' => 'أنشطة', + 'title-control' => 'عنوان', + 'edit-title' => 'تحرير النشاط', + 'save-btn-title' => 'حفظ كنشاط', + 'back' => 'خلف', + 'type' => 'نوع', + 'note' => 'ملحوظة', + 'call' => 'مكالمة', + 'meeting' => 'لقاء', + 'lunch' => 'غداء', + 'file' => 'ملف', + 'description' => 'وصف', + 'schedule' => 'جدول', + 'from' => 'من عند', + 'to' => 'إلى', + 'location' => 'موقع', + 'participants' => 'مشاركون', + 'lead' => 'يقود', + 'duration-overlapping' => 'المشاركون لديهم اجتماع آخر في هذا الوقت. هل تريد الاستمرار?', + 'file-upload-success' => 'تم تحميل الملف (الملفات) بنجاح.', + 'file-upload-error' => 'لا يمكن تحميل الملف (الملفات).', + 'create-success' => ':تم إنشاء النوع بنجاح.', + 'update-success' => ':اكتب محدث بنجاح.', + 'mass-update-success' => 'تم تحديث الأنشطة بنجاح.', + 'mass-update-failed' => 'لا يمكن تحديث الأنشطة.', + 'destroy-success' => ':اكتب تم حذفه بنجاح.', + 'delete-failed' => ':لا يمكن حذف النوع.', + 'typing-placeholder' => 'ابدأ في كتابة الاسم', + ], + + 'products' => [ + 'title' => 'منتجات', + 'product' => 'المنتج', + 'create-title' => 'إنشاء منتج', + 'edit-title' => 'تحرير المنتج', + 'save-btn-title' => 'حفظ كمنتج', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'information' => 'معلومات', + 'inventories' => 'المخزون', + 'location' => 'الموقع', + 'search' => 'بحث..', + 'name' => 'الاسم', + 'save' => 'حفظ', + 'in-stock' => 'في المخزن', + 'allocated' => 'مخصص', + 'create-success' => 'تم إنشاء المنتج بنجاح.', + 'update-success' => 'تم إنشاء المنتج بنجاح.', + 'delete-success' => 'تم حذف المنتج بنجاح.', + 'delete-failed' => 'لا يمكن حذف المنتج.', + ], + + 'sessions' => [ + 'login' => [ + 'title' => 'تسجيل الدخول', + 'welcome' => 'مرحبا بعودتك', + 'email' => 'بريد الالكتروني', + 'password' => 'كلمه السر', + 'login' => 'تسجيل الدخول', + 'forgot-password' => 'هل نسيت كلمة السر?', + 'login-error' => 'يرجى التحقق من بيانات الاعتماد الخاصة بك وحاول مرة أخرى.', + 'activate-warning' => 'لم يتم تنشيط حسابك بعد ، يرجى الاتصال بالمسؤول.', ], - 'leads' => [ - 'title' => 'يؤدي', - 'lead' => 'قيادة', - 'create-title' => 'خلق الرصاص', - 'edit-title' => 'تحرير الرصاص', - 'save-btn-title' => 'حفظ كقائد', - 'save' => 'يحفظ', - 'upload' => 'تحميل', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'no-lead' => 'لا يؤدي', - 'lead-source-name' => 'مصدر الدليل', - 'details' => 'تفاصيل', - 'rotten-info' => 'الرصاص قد تعفن ل :days day(s)', - 'stage' => 'المسرح', - 'new' => 'جديد', - 'won-lost' => 'فاز / خسر', - 'won' => 'وون', - 'lost' => 'ضائع', - 'change-stage' => 'مرحلة التغيير', - 'lost-reason' => 'سبب ضائع', - 'won-value' => 'قيمة الفوز', - 'created-date:' => 'تاريخ الإنشاء:', - 'closed-date:' => 'تاريخ مغلق:', - 'closed-date' => 'تاريخ مغلق', - 'expected-close-date:' => 'تاريخ الإغلاق المتوقع:', - 'contact-person' => 'الشخص الذي يمكن الاتصال به', - 'add-tag' => 'إضافة علامة', - 'search-tag' => 'بحث الوسم', - 'name' => 'اسم', - 'color' => 'اللون', - 'email' => 'بريد الالكتروني', - 'contact-numbers' => 'ارقام التواصل', - 'organization' => 'منظمة', - 'address' => 'عنوان', - 'products' => 'منتجات', - 'item' => 'غرض', - 'price' => 'سعر', - 'quantity' => 'كمية', - 'amount' => 'كمية', - 'create-success' => 'تم إنشاء العميل المحتمل بنجاح.', - 'update-success' => 'تم تحديث العميل المحتمل بنجاح.', - 'delete-success' => 'تم حذف الرصاص بنجاح.', - 'delete-failed' => 'لا يمكن حذف الرصاص.', - 'product-quantity-required' => 'الكمية المطلوبة للمنتج مطلوبة عندما يكون معرف المنتج موجودًا.', - 'product-price-required' => 'سعر المنتج مطلوب عندما يكون معرف المنتج موجودًا.', - 'product-name-required' => 'اسم المنتج مطلوب عندما يكون معرف المنتج موجودًا.', - 'selected-product-not-exist' => 'معرف المنتج المحدد غير موجود.', - 'note' => 'ملحوظة', - 'activity' => 'نشاط', - 'title-control' => 'عنوان', - 'call' => 'مكالمة', - 'meeting' => 'لقاء', - 'lunch' => 'غداء', - 'file' => 'ملف', - 'quote' => 'اقتبس', - 'create-quote' => 'إنشاء اقتباس', - 'type' => 'نوع', - 'description' => 'وصف', - 'schedule' => 'جدول', - 'from' => 'من عند', - 'to' => 'إلى', - 'location' => 'موقع', - 'participants' => 'مشاركون', - 'participant-info' => 'ابدأ في كتابة الاسم', - 'users' => 'المستخدمون', - 'persons' => 'الأشخاص', - 'cc' => 'نسخة', - 'bcc' => 'نسخة مخفية الوجهة', - 'email-placeholder' => 'اضغط على يدخل لإضافة رسائل بريد إلكتروني', - 'file' => 'ملف', - 'subject' => 'موضوعات', - 'reply' => 'رد', - 'send' => 'يرسل', - 'all' => 'الجميع', - 'notes' => 'ملحوظات', - 'select-type' => 'اختر صنف', - 'calls' => 'المكالمات', - 'meetings' => 'الاجتماعات', - 'lunches' => 'وجبات الغداء', - 'emails' => 'رسائل البريد الإلكتروني', - 'files' => 'الملفات', - 'sales-owner' => 'مالك المبيعات', - 'person' => 'شخص', - 'expired-at' => 'منتهي الصلاحية في', - 'sub-total' => 'المجموع الفرعي', - 'discount' => 'خصم', - 'tax' => 'ضريبة', - 'adjustment' => 'تعديل', - 'grand-total' => 'المبلغ الإجمالي', - 'actions' => 'أجراءات', - 'planned' => 'مخطط', - 'done' => 'منتهي', - 'edit' => 'يحرر', - 'view' => 'منظر', - 'unlink' => 'إلغاء الارتباط', - 'mark-as-done' => 'اعتبره منته', - 'remove' => 'يزيل', - 'export-to-pdf' => 'تصدير إلى PDF', - 'empty-planned-activities' => 'ليس لديك أنشطة مخطط لها.', - 'empty-done-activities' => 'لم تقم بأي أنشطة.', - 'note-added' => 'تمت إضافة الملاحظة', - 'call-scheduled' => 'تمت جدولة المكالمة في :from - :to', - 'meeting-scheduled' => 'الاجتماع المقرر في :from - :to', - 'lunch-scheduled' => 'الغداء المقرر في :from - :to', - 'file-added' => 'تمت إضافة الملف', - 'quote-destroy-success' => 'تمت إزالة الاقتباس بنجاح.', - 'tag-create-success' => 'تمت إضافة العلامة بنجاح.', - 'tag-destroy-success' => 'تمت إزالة العلامة بنجاح.', - 'edit' => 'تعديل', + 'forgot-password' => [ + 'title' => 'هل نسيت كلمة السر?', + 'email' => 'بريد الالكتروني', + 'send-reset-password-email' => 'إرسال بريد إلكتروني لإعادة تعيين كلمة المرور', + 'reset-link-sent' => 'لقد أرسلنا رابط إعادة تعيين كلمة المرور بالبريد الإلكتروني.', + 'email-not-exist' => 'لا يمكننا العثور على مستخدم بعنوان البريد الإلكتروني هذا.', + 'back-to-login' => 'العودة إلى تسجيل الدخول', ], - 'quotes' => [ - 'title' => 'يقتبس', - 'quote' => 'يقتبس', - 'create-title' => 'إنشاء اقتباس', - 'edit-title' => 'تحرير الاقتباس', - 'save-btn-title' => 'حفظ كاقتباس', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'quote-information' => 'معلومات الاقتباس', - 'lead' => 'قيادة', - 'address-information' => 'معلومات العنوان', - 'quote-items' => 'عناصر الاقتباس', + 'reset-password' => [ + 'title' => 'إعادة تعيين كلمة المرور', + 'email' => 'بريد الالكتروني', + 'password' => 'كلمه السر', + 'confirm-password' => 'تأكيد كلمة المرور', + 'reset-password' => 'إعادة تعيين كلمة المرور', + ], + ], + + 'settings' => [ + 'title' => 'إعدادات', + + 'groups' => [ + 'title' => 'مجموعات', + 'group' => 'مجموعة', + 'edit-title' => 'تحرير المجموعة', + 'description' => 'وصف', + 'create-title' => 'إنشاء مجموعة', + 'save-btn-title' => 'حفظ كمجموعة', + 'update-btn-title' => 'تحديث المجموعة', + 'create-success' => 'تم إنشاء المجموعة بنجاح.', + 'update-success' => 'تم تحديث المجموعة بنجاح.', + 'destroy-success' => 'تم حذف المجموعة بنجاح.', + 'delete-failed' => 'لا يمكن حذف المجموعة.', + 'user-define-error' => 'لا يمكن حذف مجموعة النظام.', + ], + + 'roles' => [ + 'title' => 'الأدوار', + 'role' => 'دور', + 'edit-title' => 'تحرير الدور', + 'description' => 'وصف', + 'create-title' => 'إنشاء دور', + 'permission_type' => 'نوع الإذن', + 'custom' => 'مخصص', + 'all' => 'الجميع', + 'save-btn-title' => 'حفظ دور', + 'update-btn-title' => 'تحديث الدور', + 'create-success' => 'تم إنشاء الدور بنجاح.', + 'update-success' => 'تم تحديث الدور بنجاح.', + 'delete-success' => 'تم حذف الدور بنجاح.', + 'delete-failed' => 'لا يمكن حذف الدور.', + 'user-define-error' => 'لا يمكن حذف دور النظام.', + 'last-delete-error' => 'مطلوب دور واحد على الأقل.', + 'current-role-delete-error' => 'لا يمكن حذف الدور المعين للمستخدم الحالي.', + 'being-used' => 'لا يمكن حذف الدور ، حيث يتم استخدامه في المستخدم الإداري.', + ], + + 'users' => [ + 'title' => 'المستخدمون', + 'create-title' => 'إنشاء المستخدم', + 'edit-title' => 'تحرير العضو', + 'general' => 'عام', + 'permission' => 'إذن', 'name' => 'اسم', - 'quantity' => 'كمية', - 'price' => 'سعر', - 'amount' => 'كمية', - 'discount' => 'خصم', - 'tax' => 'ضريبة', - 'total' => 'المجموع', - 'sub-total' => 'المجموع الفرعي', - 'adjustment' => 'تعديل', - 'grand-total' => 'المبلغ الإجمالي', - 'create-success' => 'تم إنشاء الاقتباس بنجاح', - 'update-success' => 'تم تحديث الاقتباس بنجاح.', - 'delete-success' => 'تم حذف الاقتباس بنجاح.', - 'delete-failed' => 'لا يمكن حذف الاقتباس.', - 'quote-id' => 'معرف الاقتباس', - 'quote-date' => 'تاريخ الاقتباس', - 'valid-until' => 'صالح حتى', - 'sales-person' => 'مندوب مبيعات', - 'bill-to' => 'فاتورة الى', - 'ship-to' => 'سافر على متن سفينة ل', - 'sku' => 'Sku', - 'product-name' => 'اسم المنتج', - 'price' => 'سعر', - 'amount' => 'كمية', - 'quantity' => 'كمية', - 'sub-total' => 'المجموع الفرعي', - 'tax' => 'ضريبة', - 'adjustment' => 'تعديل', - 'grand-total' => 'المبلغ الإجمالي', - 'search' => 'بحث..' + 'email' => 'بريد الالكتروني', + 'back' => 'خلف', + 'password' => 'كلمه السر', + 'groups' => 'مجموعات', + 'role' => 'دور', + 'view-permission' => 'عرض الإذن', + 'global' => 'عالمي', + 'group' => 'مجموعة', + 'individual' => 'فرد', + 'status' => 'حالة', + 'save-btn-title' => 'حفظ كمستخدم', + 'confirm_password' => 'تأكيد كلمة المرور', + 'create-success' => 'تم إنشاء المستخدم بنجاح.', + 'update-success' => 'تم تحديث المستخدم بنجاح.', + 'delete-success' => 'تم حذف المستخدم بنجاح.', + 'delete-failed' => 'لا يمكن حذف المستخدم.', + 'user-define-error' => 'لا يمكن حذف مستخدم النظام.', + 'last-delete-error' => 'مطلوب مستخدم واحد على الأقل.', + 'mass-update-success' => 'تم تحديث المستخدمين بنجاح.', + 'mass-update-failed' => 'لا يمكن تحديث المستخدمين.', + 'mass-delete-success' => 'تم حذف المستخدمين بنجاح.', + 'mass-delete-failed' => 'لا يمكن حذف المستخدمين.', ], - 'mail' => [ - 'title' => 'بريد - :type', - 'compose' => 'مؤلف موسيقى', - 'inbox' => 'صندوق الوارد', - 'draft' => 'مشروع', - 'outbox' => 'صندوق الصادر', - 'sent' => 'أرسلت', - 'trash' => 'نفاية', - 'setting' => 'ضبط', - 'total' => 'المجموع', - 'link-mail' => 'ربط البريد', - 'link-contact' => 'ربط جهة اتصال', - 'linked-contact' => 'جهة اتصال مرتبطة', - 'add-to-existing-contact' => 'إضافة إلى جهات الاتصال الموجودة', - 'create-new-contact' => 'إنشاء اتصال جديد', - 'search-contact' => 'ابحث عن جهة اتصال', - 'link-lead' => 'ربط الرصاص', - 'linked-lead' => 'الرصاص المرتبط', - 'search-lead' => 'ابحث عن الرصاص', - 'link-to-existing-lead' => 'الارتباط الموجود', - 'add-new-lead' => 'إضافة عميل محتمل جديد', - 'send' => 'يرسل', - 'back' => 'خلف', - 'discard' => 'تجاهل', - 'from-' => 'من عند - ', - 'to-' => 'إلى - ', - 'cc-' => 'نسخة - ', - 'bcc-' => 'نسخة مخفية الوجهة - ', - 'reply' => 'رد', - 'reply-all' => 'رد على الكل', - 'forward' => 'إلى الأمام', - 'delete' => 'حذف', - 'destroy-success' => 'تم حذف رسائل البريد الإلكتروني المحددة بنجاح.', - 'save-to-draft' => 'حفظ في المسودة', - 'create-success' => 'تم إرسال البريد الإلكتروني بنجاح.', - 'update-success' => 'تم تحديث البريد الإلكتروني بنجاح.', - 'saved-to-draft' => 'تم حفظ البريد الإلكتروني في المسودة.', - 'delete-success' => 'تم حذف البريد الإلكتروني بنجاح.', - 'delete-failed' => 'لا يمكن حذف البريد الإلكتروني.', - 'mass-update-success' => 'تم تحديث رسائل البريد الإلكتروني بنجاح.', - - 'forget-password' => [ - 'subject' => 'إعادة تعيين كلمة مرور العميل', - 'dear' => 'عزيزي :name', - 'reset-password' => 'إعادة تعيين كلمة المرور', - 'info' => 'أنت تتلقى هذا البريد الإلكتروني لأننا تلقينا طلب إعادة تعيين كلمة المرور لحسابك', - 'final-summary' => 'إذا لم تطلب إعادة تعيين كلمة المرور ، فلا داعي لاتخاذ أي إجراء آخر', - 'thanks' => 'شكرا!' - ], - - 'user' => [ - 'create-subject' => 'تمت إضافتك كعضو.', - 'create-body' => 'تهانينا! أنت الآن عضو في فريقنا.', - ], + 'attributes' => [ + 'title' => 'صفات', + 'attribute' => 'يصف', + 'create-title' => 'تكوين السمة', + 'edit-title' => 'تحرير السمة', + 'save-btn-title' => 'حفظ كسمة', + 'back' => 'خلف', + 'code' => 'الشفرة', + 'name' => 'اسم', + 'type' => 'نوع', + 'text' => 'نص', + 'textarea' => 'تيكستاريا', + 'price' => 'سعر', + 'boolean' => 'قيمة منطقية', + 'select' => 'يختار', + 'multiselect' => 'تحديد متعدد', + 'email' => 'بريد الالكتروني', + 'address' => 'عنوان', + 'phone' => 'هاتف', + 'datetime' => 'التاريخ والوقت', + 'date' => 'تاريخ', + 'image' => 'صورة', + 'file' => 'ملف', + 'entity-type' => 'نوع الكيان', + 'lookup' => 'ابحث عن', + 'entity_type' => 'نوع الكيان', + 'lookup-type' => 'نوع البحث', + 'checkbox' => 'خانة اختيار', + 'is_required' => 'مطلوب', + 'is_unique' => 'فريد من نوعة', + 'yes' => 'نعم', + 'no' => 'لا', + 'input_validation' => 'التحقق من صحة المدخلات', + 'number' => 'عدد', + 'decimal' => 'عدد عشري', + 'email' => 'بريد الالكتروني', + 'url' => 'عنوان Url', + 'options-type' => 'نوع الخيار', + 'options' => 'خيارات', + 'sort-order' => 'امر ترتيب', + 'add-option-btn-title' => 'إضافة خيار', + 'create-success' => 'تم إنشاء السمة بنجاح.', + 'update-success' => 'تم تحديث السمة بنجاح.', + 'update-error' => 'تعذر تحديث السمة.', + 'delete-success' => 'تم حذف السمة بنجاح.', + 'delete-failed' => 'لا يمكن حذف السمة.', + 'user-define-error' => 'لا يمكن حذف سمة النظام.', + 'mass-delete-failed' => 'السمات لا يمكن حذفها.', ], - 'activities' => [ - 'title' => 'أنشطة', - 'title-control' => 'عنوان', - 'edit-title' => 'تحرير النشاط', - 'save-btn-title' => 'حفظ كنشاط', + 'pipelines' => [ + 'title' => 'خطوط الأنابيب', + 'organization' => 'خط انابيب', + 'create-title' => 'إنشاء خط أنابيب', + 'edit-title' => 'تحرير خط الأنابيب', + 'save-btn-title' => 'حفظ كخط أنابيب', 'back' => 'خلف', - 'type' => 'نوع', - 'note' => 'ملحوظة', - 'call' => 'مكالمة', - 'meeting' => 'لقاء', - 'lunch' => 'غداء', - 'file' => 'ملف', - 'description' => 'وصف', - 'schedule' => 'جدول', - 'from' => 'من عند', - 'to' => 'إلى', - 'location' => 'موقع', - 'participants' => 'مشاركون', - 'lead' => 'يقود', - 'duration-overlapping' => 'المشاركون لديهم اجتماع آخر في هذا الوقت. هل تريد الاستمرار?', - 'file-upload-success' => 'تم تحميل الملف (الملفات) بنجاح.', - 'file-upload-error' => 'لا يمكن تحميل الملف (الملفات).', - 'create-success' => ':تم إنشاء النوع بنجاح.', - 'update-success' => ':اكتب محدث بنجاح.', - 'mass-update-success' => 'تم تحديث الأنشطة بنجاح.', - 'mass-update-failed' => 'لا يمكن تحديث الأنشطة.', - 'destroy-success' =>':اكتب تم حذفه بنجاح.', - 'delete-failed' => ':لا يمكن حذف النوع.', - 'typing-placeholder' => 'ابدأ في كتابة الاسم', + 'cancel' => 'يلغي', + 'name' => 'اسم', + 'rotting-days' => 'أيام متعفنة', + 'is-default' => 'علامة كما الافتراضي', + 'probability' => 'احتمالا (%)', + 'add-stage-btn-title' => 'أضف المرحلة', + 'new-stage' => 'الجديد', + 'won-stage' => 'وون', + 'lost-stage' => 'ضائع', + 'duplicate-name' => 'لا يمكن أن يكون حقل "الاسم" مكررًا', + 'create-success' => 'تم إنشاء خط الأنابيب بنجاح.', + 'update-success' => 'تم تحديث خط الأنابيب بنجاح.', + 'delete-success' => 'تم حذف خط الأنابيب بنجاح.', + 'delete-failed' => 'لا يمكن حذف خط الأنابيب.', + 'default-delete-error' => 'لا يمكن حذف خط الأنابيب الافتراضي.', ], - 'products' => [ - 'title' => 'منتجات', - 'product' => 'المنتج', - 'create-title' => 'إنشاء منتج', - 'edit-title' => 'تحرير المنتج', - 'save-btn-title' => 'حفظ كمنتج', + 'sources' => [ + 'title' => 'مصادر', + 'organization' => 'مصدر', + 'create-title' => 'إنشاء مصدر', + 'edit-title' => 'تحرير المصدر', + 'save-btn-title' => 'حفظ كمصدر', 'back' => 'خلف', 'cancel' => 'يلغي', - 'information' => 'معلومات', - 'inventories' => 'المخزون', - 'location' => 'الموقع', - 'search' => 'بحث..', - 'name' => 'الاسم', - 'save' => 'حفظ', - 'in-stock' => 'في المخزن', - 'allocated' => 'مخصص', - 'create-success' => 'تم إنشاء المنتج بنجاح.', - 'update-success' => 'تم إنشاء المنتج بنجاح.', - 'delete-success' => 'تم حذف المنتج بنجاح.', - 'delete-failed' => 'لا يمكن حذف المنتج.', + 'create-success' => 'تم إنشاء المصدر بنجاح.', + 'name-exists' => 'اسم المصدر موجود بالفعل.', + 'update-success' => 'تم تحديث المصدر بنجاح.', + 'delete-success' => 'تم حذف المصدر بنجاح.', + 'delete-failed' => 'لا يمكن حذف المصدر.', ], - 'sessions' => [ - 'login' => [ - 'title' => 'تسجيل الدخول', - 'welcome' => 'مرحبا بعودتك', - 'email' => 'بريد الالكتروني', - 'password' => 'كلمه السر', - 'login' => 'تسجيل الدخول', - 'forgot-password' => 'هل نسيت كلمة السر?', - 'login-error' => 'يرجى التحقق من بيانات الاعتماد الخاصة بك وحاول مرة أخرى.', - 'activate-warning' => 'لم يتم تنشيط حسابك بعد ، يرجى الاتصال بالمسؤول.', - ], - - 'forgot-password' => [ - 'title' => 'هل نسيت كلمة السر?', - 'email' => 'بريد الالكتروني', - 'send-reset-password-email' => 'إرسال بريد إلكتروني لإعادة تعيين كلمة المرور', - 'reset-link-sent' => 'لقد أرسلنا رابط إعادة تعيين كلمة المرور بالبريد الإلكتروني.', - 'email-not-exist' => "لا يمكننا العثور على مستخدم بعنوان البريد الإلكتروني هذا.", - 'back-to-login' => 'العودة إلى تسجيل الدخول' - ], - - 'reset-password' => [ - 'title' => 'إعادة تعيين كلمة المرور', - 'email' => 'بريد الالكتروني', - 'password' => 'كلمه السر', - 'confirm-password' => 'تأكيد كلمة المرور', - 'reset-password' => 'إعادة تعيين كلمة المرور' - ] + 'types' => [ + 'title' => 'أنواع', + 'organization' => 'نوع', + 'create-title' => 'نوع الإنشاء', + 'edit-title' => 'نوع التحرير', + 'save-btn-title' => 'حفظ كنوع', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'create-success' => 'تم إنشاء النوع بنجاح.', + 'name-exists' => 'اسم النوع موجود بالفعل.', + 'update-success' => 'تم تحديث النوع بنجاح.', + 'delete-success' => 'تم حذف النوع بنجاح.', + 'delete-failed' => 'لا يمكن حذف النوع.', ], - 'settings' => [ - 'title' => 'إعدادات', - - 'groups' => [ - 'title' => 'مجموعات', - 'group' => 'مجموعة', - 'edit-title' => 'تحرير المجموعة', - 'description' => 'وصف', - 'create-title' => 'إنشاء مجموعة', - 'save-btn-title' => 'حفظ كمجموعة', - 'update-btn-title' => 'تحديث المجموعة', - 'create-success' => 'تم إنشاء المجموعة بنجاح.', - 'update-success' => 'تم تحديث المجموعة بنجاح.', - 'destroy-success' => 'تم حذف المجموعة بنجاح.', - 'delete-failed' => 'لا يمكن حذف المجموعة.', - 'user-define-error' => 'لا يمكن حذف مجموعة النظام.', - ], - - 'roles' => [ - 'title' => 'الأدوار', - 'role' => 'دور', - 'edit-title' => 'تحرير الدور', - 'description' => 'وصف', - 'create-title' => 'إنشاء دور', - 'permission_type' => 'نوع الإذن', - 'custom' => 'مخصص', - 'all' => 'الجميع', - 'save-btn-title' => 'حفظ دور', - 'update-btn-title' => 'تحديث الدور', - 'create-success' => 'تم إنشاء الدور بنجاح.', - 'update-success' => 'تم تحديث الدور بنجاح.', - 'delete-success' => 'تم حذف الدور بنجاح.', - 'delete-failed' => 'لا يمكن حذف الدور.', - 'user-define-error' => 'لا يمكن حذف دور النظام.', - 'last-delete-error' => 'مطلوب دور واحد على الأقل.', - 'current-role-delete-error' => 'لا يمكن حذف الدور المعين للمستخدم الحالي.', - 'being-used' => 'لا يمكن حذف الدور ، حيث يتم استخدامه في المستخدم الإداري.', - ], - - 'users' => [ - 'title' => 'المستخدمون', - 'create-title' => 'إنشاء المستخدم', - 'edit-title' => 'تحرير العضو', - 'general' => 'عام', - 'permission' => 'إذن', - 'name' => 'اسم', - 'email' => 'بريد الالكتروني', - 'back' => 'خلف', - 'password' => 'كلمه السر', - 'groups' => 'مجموعات', - 'role' => 'دور', - 'view-permission' => 'عرض الإذن', - 'global' => 'عالمي', - 'group' => 'مجموعة', - 'individual' => 'فرد', - 'status' => 'حالة', - 'save-btn-title' => 'حفظ كمستخدم', - 'confirm_password' => 'تأكيد كلمة المرور', - 'create-success' => 'تم إنشاء المستخدم بنجاح.', - 'update-success' => 'تم تحديث المستخدم بنجاح.', - 'delete-success' => 'تم حذف المستخدم بنجاح.', - 'delete-failed' => 'لا يمكن حذف المستخدم.', - 'user-define-error' => 'لا يمكن حذف مستخدم النظام.', - 'last-delete-error' => 'مطلوب مستخدم واحد على الأقل.', - 'mass-update-success' => 'تم تحديث المستخدمين بنجاح.', - 'mass-update-failed' => 'لا يمكن تحديث المستخدمين.', - 'mass-delete-success' => 'تم حذف المستخدمين بنجاح.', - 'mass-delete-failed' => 'لا يمكن حذف المستخدمين.', - ], - - 'attributes' => [ - 'title' => 'صفات', - 'attribute' => 'يصف', - 'create-title' => 'تكوين السمة', - 'edit-title' => 'تحرير السمة', - 'save-btn-title' => 'حفظ كسمة', - 'back' => 'خلف', - 'code' => 'الشفرة', - 'name' => 'اسم', - 'type' => 'نوع', - 'text' => 'نص', - 'textarea' => 'تيكستاريا', - 'price' => 'سعر', - 'boolean' => 'قيمة منطقية', - 'select' => 'يختار', - 'multiselect' => 'تحديد متعدد', - 'email' => 'بريد الالكتروني', - 'address' => 'عنوان', - 'phone' => 'هاتف', - 'datetime' => 'التاريخ والوقت', - 'date' => 'تاريخ', - 'image' => 'صورة', - 'file' => 'ملف', - 'entity-type' => 'نوع الكيان', - 'lookup' => 'ابحث عن', - 'entity_type' => 'نوع الكيان', - 'lookup-type' => 'نوع البحث', - 'checkbox' => 'خانة اختيار', - 'is_required' => 'مطلوب', - 'is_unique' => 'فريد من نوعة', - 'yes' => 'نعم', - 'no' => 'لا', - 'input_validation' => 'التحقق من صحة المدخلات', - 'number' => 'عدد', - 'decimal' => 'عدد عشري', - 'email' => 'بريد الالكتروني', - 'url' => 'عنوان Url', - 'options-type' => 'نوع الخيار', - 'options' => 'خيارات', - 'sort-order' => 'امر ترتيب', - 'add-option-btn-title' => 'إضافة خيار', - 'create-success' => 'تم إنشاء السمة بنجاح.', - 'update-success' => 'تم تحديث السمة بنجاح.', - 'update-error' => 'تعذر تحديث السمة.', - 'delete-success' => 'تم حذف السمة بنجاح.', - 'delete-failed' => 'لا يمكن حذف السمة.', - 'user-define-error' => 'لا يمكن حذف سمة النظام.', - 'mass-delete-failed' => 'السمات لا يمكن حذفها.', - ], - - 'pipelines' => [ - 'title' => 'خطوط الأنابيب', - 'organization' => 'خط انابيب', - 'create-title' => 'إنشاء خط أنابيب', - 'edit-title' => 'تحرير خط الأنابيب', - 'save-btn-title' => 'حفظ كخط أنابيب', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'name' => 'اسم', - 'rotting-days' => 'أيام متعفنة', - 'is-default' => 'علامة كما الافتراضي', - 'probability' => 'احتمالا (%)', - 'add-stage-btn-title' => 'أضف المرحلة', - 'new-stage' => 'الجديد', - 'won-stage' => 'وون', - 'lost-stage' => 'ضائع', - 'duplicate-name' => 'لا يمكن أن يكون حقل "الاسم" مكررًا', - 'create-success' => 'تم إنشاء خط الأنابيب بنجاح.', - 'update-success' => 'تم تحديث خط الأنابيب بنجاح.', - 'delete-success' => 'تم حذف خط الأنابيب بنجاح.', - 'delete-failed' => 'لا يمكن حذف خط الأنابيب.', - 'default-delete-error' => 'لا يمكن حذف خط الأنابيب الافتراضي.', - ], - - 'sources' => [ - 'title' => 'مصادر', - 'organization' => 'مصدر', - 'create-title' => 'إنشاء مصدر', - 'edit-title' => 'تحرير المصدر', - 'save-btn-title' => 'حفظ كمصدر', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'create-success' => 'تم إنشاء المصدر بنجاح.', - 'name-exists' => 'اسم المصدر موجود بالفعل.', - 'update-success' => 'تم تحديث المصدر بنجاح.', - 'delete-success' => 'تم حذف المصدر بنجاح.', - 'delete-failed' => 'لا يمكن حذف المصدر.', - ], - - 'types' => [ - 'title' => 'أنواع', - 'organization' => 'نوع', - 'create-title' => 'نوع الإنشاء', - 'edit-title' => 'نوع التحرير', - 'save-btn-title' => 'حفظ كنوع', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'create-success' => 'تم إنشاء النوع بنجاح.', - 'name-exists' => 'اسم النوع موجود بالفعل.', - 'update-success' => 'تم تحديث النوع بنجاح.', - 'delete-success' => 'تم حذف النوع بنجاح.', - 'delete-failed' => 'لا يمكن حذف النوع.', - ], - - 'warehouses' => [ - 'title' => 'المستودعات', - 'create-title' => 'إنشاء مستودع', - 'edit-title' => 'تعديل مستودع', - 'save-btn-title' => 'حفظ كمستودع', - 'back' => 'عودة', - 'cancel' => 'إلغاء', - 'information' => 'معلومات', - 'general-information' => 'معلومات عامة', - 'contact-information' => 'معلومات الاتصال', - 'locations' => 'المواقع', - 'products' => 'المنتجات', - 'add-location' => 'إضافة موقع', - 'create-success' => 'تم إنشاء المستودع بنجاح.', - 'name-exists' => 'اسم المستودع موجود بالفعل.', - 'update-success' => 'تم تحديث المستودع بنجاح.', - 'delete-success' => 'تم حذف المستودع بنجاح.', - 'delete-failed' => 'لا يمكن حذف المستودع.', - ], - - 'email-templates' => [ - 'title' => 'قوالب البريد الإلكتروني', - 'create-title' => 'إنشاء نموذج بريد إلكتروني', - 'edit-title' => 'تحرير قالب البريد الإلكتروني', - 'save-btn-title' => 'حفظ كقالب بريد إلكتروني', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'name' => 'اسم', - 'subject' => 'موضوعات', - 'content' => 'المحتوى', - 'placeholders' => 'العناصر النائبة', - 'create-success' => 'تم إنشاء قالب البريد الإلكتروني بنجاح.', - 'update-success' => 'تم تحديث نموذج البريد الإلكتروني بنجاح.', - 'delete-success' => 'تم حذف قالب البريد الإلكتروني بنجاح.', - 'delete-failed' => 'لا يمكن حذف قالب البريد الإلكتروني.', - ], - - 'workflows' => [ - 'title' => 'سير العمل', - 'create-title' => 'إنشاء سير العمل', - 'edit-title' => 'تحرير سير العمل', - 'save-btn-title' => 'حفظ كسير عمل', - 'back' => 'خلف', - 'cancel' => 'يلغي', - 'information' => 'معلومة', - 'name' => 'اسم', - 'description' => 'وصف', - 'event' => 'حدث', - 'events' => 'الأحداث', - 'created' => 'خلقت', - 'updated' => 'محدث', - 'deleted' => 'تم الحذف', - 'event-info' => 'يتم تشغيل الحدث تلقائيًا للتحقق من الشروط وتنفيذ مجموعة محددة مسبقًا من الإجراءات', - 'conditions' => 'شروط', - 'condition-info' => 'الشروط عبارة عن مجموعة من القواعد التي تتحقق من سيناريوهات محددة ويتم تشغيلها في مناسبات محددة', - 'condition-type' => 'نوع الشرط', - 'all-conditions-true' => 'كل الشروط صحيحة', - 'any-condition-true' => 'أي شرط صحيح', - 'add-condition' => 'أضف شرط', - 'choose-condition-to-add' => 'اختر شرط لإضافته', - 'is-equal-to' => 'يساوي', - 'is-not-equal-to' => 'لا يساوي', - 'equals-or-greater-than' => 'يساوي أو أكبر من', - 'equals-or-less-than' => 'يساوي أو أقل من', - 'greater-than' => 'أكثر من', - 'less-than' => 'أقل من', - 'contain' => 'يحتوي', - 'contains' => 'يتضمن', - 'does-not-contain' => 'لا يحتوي', - 'actions' => 'أجراءات', - 'action-info' => 'لا يقلل الإجراء من عبء العمل فحسب ، بل يسهل أيضًا أتمتة CRM', - 'choose-action-to-add' => 'اختر إجراءً لإضافته', - 'update-lead' => 'تحديث الرصاص', - 'update-person' => 'تحديث الشخص', - 'send-email-to-person' => 'إرسال بريد إلكتروني إلى شخص', - 'send-email-to-sales-owner' => 'إرسال بريد إلكتروني إلى صاحب المبيعات', - 'send-email-to-participants' => 'إرسال بريد إلكتروني إلى المشاركين', - 'add-tag' => 'إضافة علامة', - 'add-note-as-activity' => 'أضف ملاحظة كنشاط', - 'choose-attribute' => 'اختر السمة', - 'choose-option' => 'إختر خيارا', - 'update-person' => 'تحديث الشخص', - 'update-related-leads' => 'تحديث العملاء المتوقعين ذوي الصلة', - 'update-quote' => 'تحديث الاقتباس', - 'add-action' => 'أضف إجراء', - 'create-success' => 'تم إنشاء سير العمل بنجاح.', - 'update-success' => 'تم تحديث سير العمل بنجاح.', - 'delete-success' => 'تم حذف سير العمل بنجاح.', - 'delete-failed' => 'لا يمكن حذف سير العمل.', - 'add-webhook' => 'تفعيل الويب هوك', - 'webhook_heading' => 'إعدادات الويب هوك', - 'webhook_url' => 'أدخل الرابط', - 'request-headers' => 'عناوين الجسم', - 'webhook_request_method' => 'طريقة الطلب', - 'get_method' => 'GET', - 'post_method' => 'POST', - 'put_method' => 'PUT', - 'patch_method' => 'PATCH', - 'delete_method' => 'DELETE', - 'webhook_encoding' => 'اختر الترميز', - 'encoding_json' => 'JSON', - 'encoding_http_query' => 'X-www-form-urlencoded', - 'request_body' => 'مفتاح وقيمة', - 'request_body_info' => 'أضف زوج مفتاح وقيمة في سطر جديد، أي، مفتاح=قيمة', - 'simple_body' => 'بسيط', - 'raw' => 'خام', - 'lead' => 'رصيد', - 'person' => 'شخص', - 'quote' => 'اقتباس', - 'activity' => 'نشاط', - 'add_header' => 'إضافة رأس', - 'header_key' => 'المفتاح', - 'header_value' => 'القيمة', - ], - - 'tags' => [ - 'title' => 'العلامات', - 'create-title' => 'إنشاء علامة', - 'edit-title' => 'تحرير العلامة', - 'cancel' => 'يلغي', - 'save-btn-title' => 'حفظ كعلامة', - 'name' => 'اسم', - 'color' => 'اللون', - 'create-success' => 'تم إنشاء العلامة بنجاح.', - 'update-success' => 'تم تحديث العلامة بنجاح.', - 'delete-success' => 'تم حذف العلامة بنجاح.', - 'delete-failed' => 'لا يمكن حذف العلامة.', - ], - - 'web-forms' => [ - 'create-success' => 'تم تحديث نموذج الويب بنجاح', - 'update-success' => 'تم تحديث نموذج الويب بنجاح', - 'delete-success' => 'تم حذف نموذج الويب بنجاح' - ], + 'warehouses' => [ + 'title' => 'المستودعات', + 'create-title' => 'إنشاء مستودع', + 'edit-title' => 'تعديل مستودع', + 'save-btn-title' => 'حفظ كمستودع', + 'back' => 'عودة', + 'cancel' => 'إلغاء', + 'information' => 'معلومات', + 'general-information' => 'معلومات عامة', + 'contact-information' => 'معلومات الاتصال', + 'locations' => 'المواقع', + 'products' => 'المنتجات', + 'add-location' => 'إضافة موقع', + 'create-success' => 'تم إنشاء المستودع بنجاح.', + 'name-exists' => 'اسم المستودع موجود بالفعل.', + 'update-success' => 'تم تحديث المستودع بنجاح.', + 'delete-success' => 'تم حذف المستودع بنجاح.', + 'delete-failed' => 'لا يمكن حذف المستودع.', ], - 'configuration' => [ - 'title' => 'لقب', - 'save-btn-title' => 'يحفظ', - 'general' => 'عام', - 'locale-settings' => 'إعدادات اللغة', - 'locale' => 'لغة', - 'timezone' => 'وحدة زمنية', - 'date-time-formats' => 'تنسيقات التاريخ والوقت', - 'save-message' => 'تم تحديث التهيئة بنجاح!', - "emails" => [ - 'email' => 'بريد الالكتروني', - 'notification_label' => 'إشعارات', - 'new_lead' => 'قيادة جديدة', - ] + 'email-templates' => [ + 'title' => 'قوالب البريد الإلكتروني', + 'create-title' => 'إنشاء نموذج بريد إلكتروني', + 'edit-title' => 'تحرير قالب البريد الإلكتروني', + 'save-btn-title' => 'حفظ كقالب بريد إلكتروني', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'name' => 'اسم', + 'subject' => 'موضوعات', + 'content' => 'المحتوى', + 'placeholders' => 'العناصر النائبة', + 'create-success' => 'تم إنشاء قالب البريد الإلكتروني بنجاح.', + 'update-success' => 'تم تحديث نموذج البريد الإلكتروني بنجاح.', + 'delete-success' => 'تم حذف قالب البريد الإلكتروني بنجاح.', + 'delete-failed' => 'لا يمكن حذف قالب البريد الإلكتروني.', ], - 'datagrid' => [ - 'id' => 'هوية شخصية', - 'name' => 'اسم', - 'code' => 'اسم', - 'sku' => 'SKU', - 'type' => 'نوع', - 'price' => 'سعر', - 'email' => 'بريد الالكتروني', - 'attachments' => 'المرفقات', - 'from' => 'من عند', - 'lead' => 'قيادة', - 'title' => 'عنوان', - 'subject' => 'موضوعات', - 'tags' => 'العلامات', - 'emails' => 'رسائل البريد الإلكتروني', - 'stage' => 'المسرح', - 'status' => 'حالة', - 'active' => 'نشيط', - 'inactive' => 'غير نشط', - 'address' => 'عنوان', - 'quantity' => 'كمية', - 'lead_value' => 'قيمة الرصاص', - 'comment' => 'تعليق', - 'is_done' => 'تم', - 'type' => 'نوع', - 'all' => 'الجميع', - 'user' => 'مستخدم', - 'sales-person' => 'مندوب مبيعات', - 'expired_quotes' => 'اقتباسات منتهية الصلاحية', - 'person' => 'شخص', - 'sub-total' => 'المجموع الفرعي', - 'discount' => 'خصم', - 'tax' => 'ضريبة', - 'adjustment' => 'تعديل', - 'grand-total' => 'المبلغ الإجمالي', - 'persons_count' => 'عدد الأشخاص', - 'assigned_to' => 'مخصص ل', - 'created_by' => 'انشأ من قبل', - 'entity_type' => 'نوع الكيان', - 'created_at' => 'تاريخ الإنشاء', - 'expected_close_date' => 'تاريخ الإغلاق المتوقع', - 'schedule_from' => 'جدولة من', - 'schedule_to' => 'جدولة ل', - 'description' => 'وصف', - 'update_stage' => 'مرحلة التحديث', - 'contact_person' => 'الشخص الذي يمكن الاتصال به', - 'contact_numbers' => 'ارقام التواصل', - 'permission_type' => 'نوع الإذن', - 'organization_name' => 'اسم المنظمة', - 'is-default' => 'افتراضي', - 'rotten-days' => 'أيام فاسدة', - 'rotten_lead' => 'الرصاص الفاسد', - 'yes' => 'نعم', - 'no' => 'لا', - 'move-to-inbox' => 'الانتقال إلى البريد الوارد', - 'update-success' => ':تم تحديث المورد بنجاح.', - 'destroy-success' => ':تم حذف المورد بنجاح.', - 'destroy-failed' => ':لا يمكن حذف المورد.', - 'attribute_type' => 'نوع السمة', - 'contact-name' => 'اسم جهة الاتصال', - 'contact-emails' => 'البريد الإلكتروني لجهة الاتصال', - 'contact-numbers' => 'أرقام جهة الاتصال', - 'in-stock' => 'في المخزن', - 'allocated' => 'مخصص', - 'on-hand' => 'متاح', - 'products' => 'المنتجات', - 'filters' => [ - 'yesterday' => 'في الامس', - 'today' => 'اليوم', - 'tomorrow' => 'غدا', - 'this-week' => 'هذا الاسبوع', - 'this-month' => 'هذا الشهر', - 'custom' => 'مخصص', - ] + 'workflows' => [ + 'title' => 'سير العمل', + 'create-title' => 'إنشاء سير العمل', + 'edit-title' => 'تحرير سير العمل', + 'save-btn-title' => 'حفظ كسير عمل', + 'back' => 'خلف', + 'cancel' => 'يلغي', + 'information' => 'معلومة', + 'name' => 'اسم', + 'description' => 'وصف', + 'event' => 'حدث', + 'events' => 'الأحداث', + 'created' => 'خلقت', + 'updated' => 'محدث', + 'deleted' => 'تم الحذف', + 'event-info' => 'يتم تشغيل الحدث تلقائيًا للتحقق من الشروط وتنفيذ مجموعة محددة مسبقًا من الإجراءات', + 'conditions' => 'شروط', + 'condition-info' => 'الشروط عبارة عن مجموعة من القواعد التي تتحقق من سيناريوهات محددة ويتم تشغيلها في مناسبات محددة', + 'condition-type' => 'نوع الشرط', + 'all-conditions-true' => 'كل الشروط صحيحة', + 'any-condition-true' => 'أي شرط صحيح', + 'add-condition' => 'أضف شرط', + 'choose-condition-to-add' => 'اختر شرط لإضافته', + 'is-equal-to' => 'يساوي', + 'is-not-equal-to' => 'لا يساوي', + 'equals-or-greater-than' => 'يساوي أو أكبر من', + 'equals-or-less-than' => 'يساوي أو أقل من', + 'greater-than' => 'أكثر من', + 'less-than' => 'أقل من', + 'contain' => 'يحتوي', + 'contains' => 'يتضمن', + 'does-not-contain' => 'لا يحتوي', + 'actions' => 'أجراءات', + 'action-info' => 'لا يقلل الإجراء من عبء العمل فحسب ، بل يسهل أيضًا أتمتة CRM', + 'choose-action-to-add' => 'اختر إجراءً لإضافته', + 'update-lead' => 'تحديث الرصاص', + 'update-person' => 'تحديث الشخص', + 'send-email-to-person' => 'إرسال بريد إلكتروني إلى شخص', + 'send-email-to-sales-owner' => 'إرسال بريد إلكتروني إلى صاحب المبيعات', + 'send-email-to-participants' => 'إرسال بريد إلكتروني إلى المشاركين', + 'add-tag' => 'إضافة علامة', + 'add-note-as-activity' => 'أضف ملاحظة كنشاط', + 'choose-attribute' => 'اختر السمة', + 'choose-option' => 'إختر خيارا', + 'update-person' => 'تحديث الشخص', + 'update-related-leads' => 'تحديث العملاء المتوقعين ذوي الصلة', + 'update-quote' => 'تحديث الاقتباس', + 'add-action' => 'أضف إجراء', + 'create-success' => 'تم إنشاء سير العمل بنجاح.', + 'update-success' => 'تم تحديث سير العمل بنجاح.', + 'delete-success' => 'تم حذف سير العمل بنجاح.', + 'delete-failed' => 'لا يمكن حذف سير العمل.', + 'add-webhook' => 'تفعيل الويب هوك', + 'webhook_heading' => 'إعدادات الويب هوك', + 'webhook_url' => 'أدخل الرابط', + 'request-headers' => 'عناوين الجسم', + 'webhook_request_method' => 'طريقة الطلب', + 'get_method' => 'GET', + 'post_method' => 'POST', + 'put_method' => 'PUT', + 'patch_method' => 'PATCH', + 'delete_method' => 'DELETE', + 'webhook_encoding' => 'اختر الترميز', + 'encoding_json' => 'JSON', + 'encoding_http_query' => 'X-www-form-urlencoded', + 'request_body' => 'مفتاح وقيمة', + 'request_body_info' => 'أضف زوج مفتاح وقيمة في سطر جديد، أي، مفتاح=قيمة', + 'simple_body' => 'بسيط', + 'raw' => 'خام', + 'lead' => 'رصيد', + 'person' => 'شخص', + 'quote' => 'اقتباس', + 'activity' => 'نشاط', + 'add_header' => 'إضافة رأس', + 'header_key' => 'المفتاح', + 'header_value' => 'القيمة', ], - 'response' => [ - 'create-success' => ':تم إنشاء الاسم بنجاح.', - 'update-success' => ':تم تحديث الاسم بنجاح.', - 'destroy-success'=> ':تم حذف الاسم بنجاح.', - 'destroy-failed' => ':لا يمكن حذف الاسم.', + 'tags' => [ + 'title' => 'العلامات', + 'create-title' => 'إنشاء علامة', + 'edit-title' => 'تحرير العلامة', + 'cancel' => 'يلغي', + 'save-btn-title' => 'حفظ كعلامة', + 'name' => 'اسم', + 'color' => 'اللون', + 'create-success' => 'تم إنشاء العلامة بنجاح.', + 'update-success' => 'تم تحديث العلامة بنجاح.', + 'delete-success' => 'تم حذف العلامة بنجاح.', + 'delete-failed' => 'لا يمكن حذف العلامة.', ], - 'acl' => [ - 'leads' => 'يؤدي', - 'lead' => 'قيادة', - 'quotes' => 'يقتبس', - 'mail' => 'بريد', - 'inbox' => 'صندوق الوارد', - 'draft' => 'مشروع', - 'outbox' => 'صندوق الصادر', - 'sent' => 'أرسلت', - 'trash' => 'نفاية', - 'activities' => 'أنشطة', - 'contacts' => 'جهات الاتصال', - 'persons' => 'الأشخاص', - 'organizations' => 'المنظمات', - 'products' => 'منتجات', - 'settings' => 'إعدادات', - 'groups' => 'مجموعات', - 'roles' => 'الأدوار', - 'users' => 'المستخدمون', - 'user' => 'مستخدم', - 'automation' => 'التشغيل الآلي', - 'attributes' => 'صفات', - 'pipelines' => 'خطوط الأنابيب', - 'sources' => 'مصادر', - 'types' => 'أنواع', - 'email-templates' => 'قوالب البريد الإلكتروني', - 'workflows' => 'سير العمل', - 'other-settings' => 'اعدادات اخرى', - 'tags' => 'العلامات', - 'configuration' => 'إعدادات', - 'create' => 'إنشاء', - 'edit' => 'يحرر', - 'view' => 'رأي', - 'print' => 'مطبعة', - 'delete' => 'حذف', - 'export' => 'يصدر', - 'mass-delete' => 'حذف جماعي', + 'web-forms' => [ + 'create-success' => 'تم تحديث نموذج الويب بنجاح', + 'update-success' => 'تم تحديث نموذج الويب بنجاح', + 'delete-success' => 'تم حذف نموذج الويب بنجاح', ], - - 'common' => [ - 'back' => 'خلف', - 'address' => 'عنوان', - 'country' => 'دولة', - 'add_more' => 'أضف المزيد', - 'select-country' => 'الرجاء تحديد الدولة', - 'select-users' => 'حدد المستخدمون', - 'select_rotten_leads' => 'حدد العروض الفاسدة', - 'select-organization' => 'حدد المنظمات', - 'state' => 'ولاية', - 'select-state' => 'الرجاء تحديد الولاية', - 'city' => 'مدينة', - 'postcode' => 'الرمز البريدي', - 'address-validation' => 'حقل "العنوان" مطلوب', - 'work' => 'عمل', - 'home' => 'الصفحة الرئيسية', - 'no-result-found' => 'لم يتم العثور على السجلات بالاسم نفسه.', - 'add-as' => 'أضف كالجديد', - 'not-available' => 'غير متوفر', - 'select-options' => 'اشر على الخيارات', - 'yes' => 'نعم', - 'no' => 'لا', - 'delete' => 'حذف', - 'save' => 'يحفظ', - 'locale' => 'لغة', - 'en' => 'إنجليزي', - 'tr' => 'Turkçe', - 'ar' => 'عربي', - 'es' => 'الأسبانية', - 'add-as' => 'أضف كالجديد', - 'no-records-found' => 'لا توجد سجلات', - 'start-typing' => 'ابدأ الكتابة للبحث في السجلات', - 'select-type' => 'اختر صنف', - 'select-call' => 'مكالمة', - 'select-meeting' => 'لقاء', - 'select-lunch' => 'غداء', - 'duplicate-value' => 'لا يمكن أن تكون القيمة مكررة', - 'unauthenticated' => 'غير مصدق', - 'resource-not-found' => 'الموارد غير موجود', - 'forbidden-error' => 'ممنوع الخطأ', - 'internal-server-error' => 'خطأ في الخادم الداخلي', - 'something-went-wrong' => 'هناك شئ خاطئ، يرجى المحاولة فى وقت لاحق.', - 'delete-confirm' => 'هل تريد حقًا تنفيذ هذا الإجراء؟', - 'system_attribute' => 'نظام', - 'custom_attribute' => 'العادة', - 'select-warehouse' => 'اختر المستودع', + ], + + 'configuration' => [ + 'title' => 'لقب', + 'save-btn-title' => 'يحفظ', + 'general' => 'عام', + 'locale-settings' => 'إعدادات اللغة', + 'locale' => 'لغة', + 'timezone' => 'وحدة زمنية', + 'date-time-formats' => 'تنسيقات التاريخ والوقت', + 'save-message' => 'تم تحديث التهيئة بنجاح!', + 'emails' => [ + 'email' => 'بريد الالكتروني', + 'notification_label' => 'إشعارات', + 'new_lead' => 'قيادة جديدة', ], - - 'user' => [ - 'account' => [ - 'name' => 'اسم', - 'email' => 'بريد الالكتروني', - 'password' => 'كلمه السر', - 'my_account' => 'حسابي', - 'update_details' => 'تحديث التفاصيل', - 'current_password' => 'كلمة المرور الحالي', - 'confirm_password' => 'تأكيد كلمة المرور', - 'password-match' => 'كلمة المرور الحالية غير متطابقة.', - 'account-save' => 'تم حفظ تغييرات الحساب بنجاح.', - 'permission-denied' => 'تم رفض الإذن', - 'remove-image' => 'إزالة الصورة', - 'upload_image_pix' => 'تحميل صورة الملف الشخصي (100 بكسل × 100 بكسل)', - 'upload_image_format' =>'بتنسيق PNG أو JPG', - 'image_upload_message' => 'يسمح فقط بالصور (.jpeg، .jpg، .png، ..).' - ] + ], + + 'datagrid' => [ + 'id' => 'هوية شخصية', + 'name' => 'اسم', + 'code' => 'اسم', + 'sku' => 'SKU', + 'type' => 'نوع', + 'price' => 'سعر', + 'email' => 'بريد الالكتروني', + 'attachments' => 'المرفقات', + 'from' => 'من عند', + 'lead' => 'قيادة', + 'title' => 'عنوان', + 'subject' => 'موضوعات', + 'tags' => 'العلامات', + 'emails' => 'رسائل البريد الإلكتروني', + 'stage' => 'المسرح', + 'status' => 'حالة', + 'active' => 'نشيط', + 'inactive' => 'غير نشط', + 'address' => 'عنوان', + 'quantity' => 'كمية', + 'lead_value' => 'قيمة الرصاص', + 'comment' => 'تعليق', + 'is_done' => 'تم', + 'type' => 'نوع', + 'all' => 'الجميع', + 'user' => 'مستخدم', + 'sales-person' => 'مندوب مبيعات', + 'expired_quotes' => 'اقتباسات منتهية الصلاحية', + 'person' => 'شخص', + 'sub-total' => 'المجموع الفرعي', + 'discount' => 'خصم', + 'tax' => 'ضريبة', + 'adjustment' => 'تعديل', + 'grand-total' => 'المبلغ الإجمالي', + 'persons_count' => 'عدد الأشخاص', + 'assigned_to' => 'مخصص ل', + 'created_by' => 'انشأ من قبل', + 'entity_type' => 'نوع الكيان', + 'created_at' => 'تاريخ الإنشاء', + 'expected_close_date' => 'تاريخ الإغلاق المتوقع', + 'schedule_from' => 'جدولة من', + 'schedule_to' => 'جدولة ل', + 'description' => 'وصف', + 'update_stage' => 'مرحلة التحديث', + 'contact_person' => 'الشخص الذي يمكن الاتصال به', + 'contact_numbers' => 'ارقام التواصل', + 'permission_type' => 'نوع الإذن', + 'organization_name' => 'اسم المنظمة', + 'is-default' => 'افتراضي', + 'rotten-days' => 'أيام فاسدة', + 'rotten_lead' => 'الرصاص الفاسد', + 'yes' => 'نعم', + 'no' => 'لا', + 'move-to-inbox' => 'الانتقال إلى البريد الوارد', + 'update-success' => ':تم تحديث المورد بنجاح.', + 'destroy-success' => ':تم حذف المورد بنجاح.', + 'destroy-failed' => ':لا يمكن حذف المورد.', + 'attribute_type' => 'نوع السمة', + 'contact-name' => 'اسم جهة الاتصال', + 'contact-emails' => 'البريد الإلكتروني لجهة الاتصال', + 'contact-numbers' => 'أرقام جهة الاتصال', + 'in-stock' => 'في المخزن', + 'allocated' => 'مخصص', + 'on-hand' => 'متاح', + 'products' => 'المنتجات', + 'filters' => [ + 'yesterday' => 'في الامس', + 'today' => 'اليوم', + 'tomorrow' => 'غدا', + 'this-week' => 'هذا الاسبوع', + 'this-month' => 'هذا الشهر', + 'custom' => 'مخصص', + ], + ], + + 'response' => [ + 'create-success' => ':تم إنشاء الاسم بنجاح.', + 'update-success' => ':تم تحديث الاسم بنجاح.', + 'destroy-success'=> ':تم حذف الاسم بنجاح.', + 'destroy-failed' => ':لا يمكن حذف الاسم.', + ], + + 'acl' => [ + 'leads' => 'يؤدي', + 'lead' => 'قيادة', + 'quotes' => 'يقتبس', + 'mail' => 'بريد', + 'inbox' => 'صندوق الوارد', + 'draft' => 'مشروع', + 'outbox' => 'صندوق الصادر', + 'sent' => 'أرسلت', + 'trash' => 'نفاية', + 'activities' => 'أنشطة', + 'contacts' => 'جهات الاتصال', + 'persons' => 'الأشخاص', + 'organizations' => 'المنظمات', + 'products' => 'منتجات', + 'settings' => 'إعدادات', + 'groups' => 'مجموعات', + 'roles' => 'الأدوار', + 'users' => 'المستخدمون', + 'user' => 'مستخدم', + 'automation' => 'التشغيل الآلي', + 'attributes' => 'صفات', + 'pipelines' => 'خطوط الأنابيب', + 'sources' => 'مصادر', + 'types' => 'أنواع', + 'email-templates' => 'قوالب البريد الإلكتروني', + 'workflows' => 'سير العمل', + 'other-settings' => 'اعدادات اخرى', + 'tags' => 'العلامات', + 'configuration' => 'إعدادات', + 'create' => 'إنشاء', + 'edit' => 'يحرر', + 'view' => 'رأي', + 'print' => 'مطبعة', + 'delete' => 'حذف', + 'export' => 'يصدر', + 'mass-delete' => 'حذف جماعي', + ], + + 'common' => [ + 'back' => 'خلف', + 'address' => 'عنوان', + 'country' => 'دولة', + 'add_more' => 'أضف المزيد', + 'select-country' => 'الرجاء تحديد الدولة', + 'select-users' => 'حدد المستخدمون', + 'select_rotten_leads' => 'حدد العروض الفاسدة', + 'select-organization' => 'حدد المنظمات', + 'state' => 'ولاية', + 'select-state' => 'الرجاء تحديد الولاية', + 'city' => 'مدينة', + 'postcode' => 'الرمز البريدي', + 'address-validation' => 'حقل "العنوان" مطلوب', + 'work' => 'عمل', + 'home' => 'الصفحة الرئيسية', + 'no-result-found' => 'لم يتم العثور على السجلات بالاسم نفسه.', + 'add-as' => 'أضف كالجديد', + 'not-available' => 'غير متوفر', + 'select-options' => 'اشر على الخيارات', + 'yes' => 'نعم', + 'no' => 'لا', + 'delete' => 'حذف', + 'save' => 'يحفظ', + 'locale' => 'لغة', + 'en' => 'إنجليزي', + 'tr' => 'Turkçe', + 'ar' => 'عربي', + 'es' => 'الأسبانية', + 'add-as' => 'أضف كالجديد', + 'no-records-found' => 'لا توجد سجلات', + 'start-typing' => 'ابدأ الكتابة للبحث في السجلات', + 'select-type' => 'اختر صنف', + 'select-call' => 'مكالمة', + 'select-meeting' => 'لقاء', + 'select-lunch' => 'غداء', + 'duplicate-value' => 'لا يمكن أن تكون القيمة مكررة', + 'unauthenticated' => 'غير مصدق', + 'resource-not-found' => 'الموارد غير موجود', + 'forbidden-error' => 'ممنوع الخطأ', + 'internal-server-error' => 'خطأ في الخادم الداخلي', + 'something-went-wrong' => 'هناك شئ خاطئ، يرجى المحاولة فى وقت لاحق.', + 'delete-confirm' => 'هل تريد حقًا تنفيذ هذا الإجراء؟', + 'system_attribute' => 'نظام', + 'custom_attribute' => 'العادة', + 'select-warehouse' => 'اختر المستودع', + ], + + 'user' => [ + 'account' => [ + 'name' => 'اسم', + 'email' => 'بريد الالكتروني', + 'password' => 'كلمه السر', + 'my_account' => 'حسابي', + 'update_details' => 'تحديث التفاصيل', + 'current_password' => 'كلمة المرور الحالي', + 'confirm_password' => 'تأكيد كلمة المرور', + 'password-match' => 'كلمة المرور الحالية غير متطابقة.', + 'account-save' => 'تم حفظ تغييرات الحساب بنجاح.', + 'permission-denied' => 'تم رفض الإذن', + 'remove-image' => 'إزالة الصورة', + 'upload_image_pix' => 'تحميل صورة الملف الشخصي (100 بكسل × 100 بكسل)', + 'upload_image_format' => 'بتنسيق PNG أو JPG', + 'image_upload_message' => 'يسمح فقط بالصور (.jpeg، .jpg، .png، ..).', ], + ], - 'emails' => [ - 'common' => [ - 'dear' => 'عزيزي :name', - 'cheers' => 'في صحتك ، فريق
:app_name' - ], + 'emails' => [ + 'common' => [ + 'dear' => 'عزيزي :name', + 'cheers' => 'في صحتك ، فريق
:app_name', ], + ], - 'errors' => [ - '401' => 'أنت غير مفوض لدخول هذه الصفحة' - ] - ]; + 'errors' => [ + '401' => 'أنت غير مفوض لدخول هذه الصفحة', + ], +]; diff --git a/packages/Webkul/Admin/src/Resources/lang/en/app.php b/packages/Webkul/Admin/src/Resources/lang/en/app.php index 95c25149e..5478ec846 100644 --- a/packages/Webkul/Admin/src/Resources/lang/en/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/en/app.php @@ -1,953 +1,954 @@ [ - 'title' => 'Dashboard', - 'cards' => 'Cards', - 'column' => 'Column', - 'done' => 'Done', - 'activity' => 'Activity', - 'activities' => 'Activities', - 'top_leads' => 'Top Leads', - 'pipelines' => 'Pipelines', - 'quotes' => 'Quotes', - 'emails' => 'Emails', - 'custom_card' => 'Custom Card', - 'customers' => 'Customers', - 'top_customers' => 'Top Customers', - 'products' => 'Products', - 'top_products' => 'Top Products', - 'leads_started' => 'Leads started', - 'leads_over_time' => 'Leads over time', - 'no_record_found' => 'No record found', - 'week' => 'Week', + +return [ + 'dashboard' => [ + 'title' => 'Dashboard', + 'cards' => 'Cards', + 'column' => 'Column', + 'done' => 'Done', + 'activity' => 'Activity', + 'activities' => 'Activities', + 'top_leads' => 'Top Leads', + 'pipelines' => 'Pipelines', + 'quotes' => 'Quotes', + 'emails' => 'Emails', + 'custom_card' => 'Custom Card', + 'customers' => 'Customers', + 'top_customers' => 'Top Customers', + 'products' => 'Products', + 'top_products' => 'Top Products', + 'leads_started' => 'Leads started', + 'leads_over_time' => 'Leads over time', + 'no_record_found' => 'No record found', + 'week' => 'Week', + ], + + 'layouts' => [ + 'app-version' => 'Version : :version', + 'dashboard' => 'Dashboard', + 'leads' => 'Leads', + 'quotes' => 'Quotes', + 'quote' => 'Quote', + 'mail' => [ + 'title' => 'Mail', + 'compose' => 'Compose', + 'inbox' => 'Inbox', + 'draft' => 'Draft', + 'outbox' => 'Outbox', + 'sent' => 'Sent', + 'trash' => 'Trash', + 'setting' => 'Setting', + ], + 'activities' => 'Activities', + 'contacts' => 'Contacts', + 'persons' => 'Persons', + 'person' => 'Person', + 'organizations' => 'Organizations', + 'organization' => 'Organization', + 'products' => 'Products', + 'product' => 'Product', + 'settings' => 'Settings', + 'user' => 'User', + 'user-info' => 'Manage all your users and their permissions in the CRM, what they’re allowed to do.', + 'groups' => 'Groups', + 'groups-info' => 'Add, edit or delete groups from CRM', + 'roles' => 'Roles', + 'role' => 'Role', + 'roles-info' => 'Add, edit or delete roles from CRM', + 'users' => 'Users', + 'users-info' => 'Add, edit or delete users from CRM', + 'lead' => 'Lead', + 'lead-info' => 'Manage all your leads related settings in the CRM', + 'pipelines' => 'Pipelines', + 'pipelines-info' => 'Add, edit or delete pipelines from CRM', + 'sources' => 'Sources', + 'sources-info' => 'Add, edit or delete sources from CRM', + 'types' => 'Types', + 'types-info' => 'Add, edit or delete types from CRM', + 'automation' => 'Automation', + 'automation-info' => 'Manage all your automation related settings in the CRM', + 'attributes' => 'Attributes', + 'attribute' => 'Attribute', + 'attributes-info' => 'Add, edit or delete attributes from CRM', + 'email-templates' => 'Email Templates', + 'email' => 'Email', + 'email-templates-info' => 'Add, edit or delete email templates from CRM', + 'workflows' => 'Workflows', + 'workflows-info' => 'Add, edit or delete workflows from CRM', + 'other-settings' => 'Other Settings', + 'other-settings-info' => 'Manage all your extra settings in the CRM', + 'tags' => 'Tags', + 'tags-info' => 'Add, edit or delete tags from CRM', + 'my-account' => 'My Account', + 'sign-out' => 'Sign Out', + 'back' => 'Back', + 'name' => 'Name', + 'configuration' => 'Configuration', + 'activities' => 'Activities', + 'howdy' => 'Howdy!', + 'warehouses' => 'Warehouses', + 'warehouse' => 'Warehouse', + 'warehouses-info' => 'Add, edit or delete warehouses from CRM', + ], + + 'contacts' => [ + 'organizations' => [ + 'title' => 'Organizations', + 'organization' => 'Organization', + 'create-title' => 'Create Organization', + 'edit-title' => 'Edit Organization', + 'save-btn-title' => 'Save as Organization', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'create-success' => 'Organization created successfully.', + 'update-success' => 'Organization updated successfully.', + 'delete-success' => 'Organization deleted successfully.', + 'delete-failed' => 'Organization can not be deleted.', ], - 'layouts' => [ - 'app-version' => 'Version : :version', - 'dashboard' => 'Dashboard', - 'leads' => 'Leads', - 'quotes' => 'Quotes', - 'quote' => 'Quote', - 'mail' => [ - 'title' => 'Mail', - 'compose' => 'Compose', - 'inbox' => 'Inbox', - 'draft' => 'Draft', - 'outbox' => 'Outbox', - 'sent' => 'Sent', - 'trash' => 'Trash', - 'setting' => 'Setting', - ], - 'activities' => 'Activities', - 'contacts' => 'Contacts', - 'persons' => 'Persons', - 'person' => 'Person', - 'organizations' => 'Organizations', - 'organization' => 'Organization', - 'products' => 'Products', - 'product' => 'Product', - 'settings' => 'Settings', - 'user' => 'User', - 'user-info' => 'Manage all your users and their permissions in the CRM, what they’re allowed to do.', - 'groups' => 'Groups', - 'groups-info' => 'Add, edit or delete groups from CRM', - 'roles' => 'Roles', - 'role' => 'Role', - 'roles-info' => 'Add, edit or delete roles from CRM', - 'users' => 'Users', - 'users-info' => 'Add, edit or delete users from CRM', - 'lead' => 'Lead', - 'lead-info' => 'Manage all your leads related settings in the CRM', - 'pipelines' => 'Pipelines', - 'pipelines-info' => 'Add, edit or delete pipelines from CRM', - 'sources' => 'Sources', - 'sources-info' => 'Add, edit or delete sources from CRM', - 'types' => 'Types', - 'types-info' => 'Add, edit or delete types from CRM', - 'automation' => 'Automation', - 'automation-info' => 'Manage all your automation related settings in the CRM', - 'attributes' => 'Attributes', - 'attribute' => 'Attribute', - 'attributes-info' => 'Add, edit or delete attributes from CRM', - 'email-templates' => 'Email Templates', - 'email' => 'Email', - 'email-templates-info' => 'Add, edit or delete email templates from CRM', - 'workflows' => 'Workflows', - 'workflows-info' => 'Add, edit or delete workflows from CRM', - 'other-settings' => 'Other Settings', - 'other-settings-info' => 'Manage all your extra settings in the CRM', - 'tags' => 'Tags', - 'tags-info' => 'Add, edit or delete tags from CRM', - 'my-account' => 'My Account', - 'sign-out' => 'Sign Out', - 'back' => 'Back', - 'name' => 'Name', - 'configuration' => 'Configuration', - 'activities' => 'Activities', - 'howdy' => 'Howdy!', - 'warehouses' => 'Warehouses', - 'warehouse' => 'Warehouse', - 'warehouses-info' => 'Add, edit or delete warehouses from CRM', + 'persons' => [ + 'title' => 'Persons', + 'person' => 'Person', + 'create-title' => 'Create Person', + 'edit-title' => 'Edit Person', + 'save-btn-title' => 'Save as Person', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'create-success' => 'Person created successfully.', + 'update-success' => 'Person updated successfully.', + 'delete-success' => 'Person deleted successfully.', + 'delete-failed' => 'Person can not be deleted.', + ], + ], + + 'leads' => [ + 'title' => 'Leads', + 'lead' => 'Lead', + 'create-title' => 'Create Lead', + 'edit-title' => 'Edit Lead', + 'save-btn-title' => 'Save as Lead', + 'save' => 'Save', + 'upload' => 'Upload', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'no-lead' => 'No Lead', + 'lead-source-name' => 'Lead source', + 'details' => 'Details', + 'rotten-info' => 'Lead has been rotten for :days day(s)', + 'stage' => 'Stage', + 'new' => 'New', + 'won-lost' => 'Won/Lost', + 'won' => 'Won', + 'lost' => 'Lost', + 'change-stage' => 'Change Stage', + 'lost-reason' => 'Lost Reason', + 'won-value' => 'Won Value', + 'created-date:' => 'Created Date:', + 'closed-date:' => 'Closed Date:', + 'closed-date' => 'Closed Date', + 'expected-close-date:' => 'Expected Close Date:', + 'contact-person' => 'Contact Person', + 'add-tag' => 'Add Tag', + 'search-tag' => 'Search Tag', + 'name' => 'Name', + 'color' => 'Color', + 'email' => 'Email', + 'contact-numbers' => 'Contact Numbers', + 'organization' => 'Organization', + 'address' => 'Address', + 'products' => 'Products', + 'item' => 'Item', + 'price' => 'Price', + 'quantity' => 'Quantity', + 'amount' => 'Amount', + 'create-success' => 'Lead created successfully.', + 'update-success' => 'Lead updated successfully.', + 'delete-success' => 'Lead deleted successfully.', + 'delete-failed' => 'Lead can not be deleted.', + 'product-quantity-required' => 'The product quantity is required when a product ID is present.', + 'product-price-required' => 'The product price is required when a product ID is present.', + 'product-name-required' => 'The product name is required when a product ID is present.', + 'selected-product-not-exist' => 'The selected product ID does not exist.', + 'note' => 'Note', + 'activity' => 'Activity', + 'title-control' => 'Title', + 'call' => 'Call', + 'meeting' => 'Meeting', + 'lunch' => 'Lunch', + 'file' => 'File', + 'quote' => 'Quote', + 'create-quote' => 'Create Quote', + 'type' => 'Type', + 'description' => 'Description', + 'schedule' => 'Schedule', + 'from' => 'From', + 'to' => 'To', + 'location' => 'Location', + 'participants' => 'Participants', + 'participant-info' => 'Start typing name', + 'users' => 'Users', + 'persons' => 'Persons', + 'cc' => 'Cc', + 'bcc' => 'Bcc', + 'email-placeholder' => 'Press enter to add emails', + 'file' => 'File', + 'subject' => 'Subject', + 'reply' => 'Reply', + 'send' => 'Send', + 'all' => 'All', + 'notes' => 'Notes', + 'select-type' => 'Select Type', + 'calls' => 'Calls', + 'meetings' => 'Meetings', + 'lunches' => 'Lunches', + 'emails' => 'Emails', + 'files' => 'Files', + 'sales-owner' => 'Sales Owner', + 'person' => 'Person', + 'expired-at' => 'Expired At', + 'sub-total' => 'Sub Total', + 'discount' => 'Discount', + 'tax' => 'Tax', + 'adjustment' => 'Adjustment', + 'grand-total' => 'Grand Total', + 'actions' => 'Actions', + 'planned' => 'Planned', + 'done' => 'Done', + 'edit' => 'Edit', + 'view' => 'View', + 'unlink' => 'Unlink', + 'mark-as-done' => 'Mark as Done', + 'remove' => 'Remove', + 'export-to-pdf' => 'Export To PDF', + 'empty-planned-activities' => 'You have no planned activities.', + 'empty-done-activities' => 'You have no done activities.', + 'note-added' => 'Note added', + 'call-scheduled' => 'Call scheduled at :from - :to', + 'meeting-scheduled' => 'Meeting scheduled at :from - :to', + 'lunch-scheduled' => 'Lunch scheduled at :from - :to', + 'file-added' => 'File added', + 'quote-destroy-success' => 'Quote removed successfully.', + 'tag-create-success' => 'Tag added successfully.', + 'tag-destroy-success' => 'Tag removed successfully.', + 'edit' => 'Edit', + ], + + 'quotes' => [ + 'title' => 'Quotes', + 'quote' => 'Quote', + 'create-title' => 'Create Quote', + 'edit-title' => 'Edit Quote', + 'save-btn-title' => 'Save as Quote', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'quote-information' => 'Quote Information', + 'lead' => 'Lead', + 'address-information' => 'Address Information', + 'quote-items' => 'Quote Items', + 'name' => 'Name', + 'quantity' => 'Quantity', + 'price' => 'Price', + 'amount' => 'Amount', + 'discount' => 'Discount', + 'tax' => 'Tax', + 'total' => 'Total', + 'sub-total' => 'Sub Total', + 'adjustment' => 'Adjustment', + 'grand-total' => 'Grand Total', + 'create-success' => 'Quote created successfully.', + 'update-success' => 'Quote updated successfully.', + 'delete-success' => 'Quote deleted successfully.', + 'delete-failed' => 'Quote can not be deleted.', + 'quote-id' => 'Quote Id', + 'quote-date' => 'Quote Date', + 'valid-until' => 'Valid Until', + 'sales-person' => 'Sales Person', + 'bill-to' => 'Bill To', + 'ship-to' => 'Ship To', + 'sku' => 'Sku', + 'product-name' => 'Product Name', + 'price' => 'Price', + 'amount' => 'Amount', + 'quantity' => 'Quantity', + 'sub-total' => 'Sub Total', + 'tax' => 'Tax', + 'adjustment' => 'Adjustment', + 'grand-total' => 'Grand Total', + 'search' => 'Search..', + ], + + 'mail' => [ + 'title' => 'Mail - :type', + 'compose' => 'Compose', + 'inbox' => 'Inbox', + 'draft' => 'Draft', + 'outbox' => 'Outbox', + 'sent' => 'Sent', + 'trash' => 'Trash', + 'setting' => 'Setting', + 'total' => 'Total', + 'link-mail' => 'Link Mail', + 'link-contact' => 'Link Contact', + 'linked-contact' => 'Linked Contact', + 'add-to-existing-contact' => 'Add To Existing Contact', + 'create-new-contact' => 'Create New Contact', + 'search-contact' => 'Search a contact', + 'link-lead' => 'Link Lead', + 'linked-lead' => 'Linked Lead', + 'search-lead' => 'Search for lead', + 'link-to-existing-lead' => 'Link To Existing', + 'add-new-lead' => 'Add New Lead', + 'send' => 'Send', + 'back' => 'Back', + 'discard' => 'Discard', + 'from-' => 'From - ', + 'to-' => 'To - ', + 'cc-' => 'Cc - ', + 'bcc-' => 'Bcc - ', + 'reply' => 'Reply', + 'reply-all' => 'Reply All', + 'forward' => 'Forward', + 'delete' => 'Delete', + 'destroy-success' => 'Selected emails deleted successfully.', + 'save-to-draft' => 'Save to Draft', + 'create-success' => 'Email sent successfully.', + 'update-success' => 'Email updated successfully.', + 'saved-to-draft' => 'Email saved to draft.', + 'delete-success' => 'Email deleted successfully.', + 'delete-failed' => 'Email can not be deleted.', + 'mass-update-success' => 'Emails updated successfully.', + + 'forget-password' => [ + 'subject' => 'Customer Reset Password', + 'dear' => 'Dear :name', + 'reset-password' => 'Reset Password', + 'info' => 'You are receiving this email because we received a password reset request for your account', + 'final-summary' => 'If you did not request a password reset, no further action is required', + 'thanks' => 'Thanks!', ], - 'contacts' => [ - 'organizations' => [ - 'title' => 'Organizations', - 'organization' => 'Organization', - 'create-title' => 'Create Organization', - 'edit-title' => 'Edit Organization', - 'save-btn-title' => 'Save as Organization', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'create-success' => 'Organization created successfully.', - 'update-success' => 'Organization updated successfully.', - 'delete-success' => 'Organization deleted successfully.', - 'delete-failed' => 'Organization can not be deleted.', - ], - - 'persons' => [ - 'title' => 'Persons', - 'person' => 'Person', - 'create-title' => 'Create Person', - 'edit-title' => 'Edit Person', - 'save-btn-title' => 'Save as Person', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'create-success' => 'Person created successfully.', - 'update-success' => 'Person updated successfully.', - 'delete-success' => 'Person deleted successfully.', - 'delete-failed' => 'Person can not be deleted.', - ], + 'user' => [ + 'create-subject' => 'You are added as a member.', + 'create-body' => 'Congratulations! You are now a member of our team.', + ], + ], + + 'activities' => [ + 'title' => 'Activities', + 'title-control' => 'Title', + 'edit-title' => 'Edit Activity', + 'save-btn-title' => 'Save as Activity', + 'back' => 'Back', + 'type' => 'Type', + 'note' => 'Note', + 'call' => 'Call', + 'meeting' => 'Meeting', + 'lunch' => 'Lunch', + 'file' => 'File', + 'description' => 'Description', + 'schedule' => 'Schedule', + 'from' => 'From', + 'to' => 'To', + 'location' => 'Location', + 'participants' => 'Participants', + 'lead' => 'Lead', + 'duration-overlapping' => 'Participants have another meeting at this time. Do you want to continue?', + 'file-upload-success' => 'File(s) uploaded successfully.', + 'file-upload-error' => 'File(s) can not be uploaded.', + 'create-success' => ':type created successfully.', + 'update-success' => ':type updated successfully.', + 'mass-update-success' => 'Activities updated successfully.', + 'mass-update-failed' => 'Activities can not be updated.', + 'destroy-success' => ':type deleted successfully.', + 'delete-failed' => ':type can not be deleted.', + 'typing-placeholder' => 'Start typing name', + ], + + 'products' => [ + 'title' => 'Products', + 'product' => 'Product', + 'create-title' => 'Create Product', + 'edit-title' => 'Edit Product', + 'save-btn-title' => 'Save as Product', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'information' => 'Information', + 'inventories' => 'Inventories', + 'location' => 'Location', + 'search' => 'Search..', + 'name' => 'Name', + 'save' => 'Save', + 'source' => 'Source', + 'in-stock' => 'In Stock', + 'allocated' => 'Allocated', + 'on-hand' => 'On Hand', + 'actions' => 'Actions', + 'assign' => 'Assign', + 'add-source' => 'Add Source', + 'create-success' => 'Product created successfully.', + 'update-success' => 'Product updated successfully.', + 'delete-success' => 'Product deleted successfully.', + 'delete-failed' => 'Product can not be deleted.', + ], + + 'sessions' => [ + 'login' => [ + 'title' => 'Login', + 'welcome' => 'Welcome Back', + 'email' => 'Email', + 'password' => 'Password', + 'login' => 'Login', + 'forgot-password' => 'Forgot Password?', + 'login-error' => 'Please check your credentials and try again.', + 'activate-warning' => 'Your account is yet to be activated, please contact administrator.', ], - 'leads' => [ - 'title' => 'Leads', - 'lead' => 'Lead', - 'create-title' => 'Create Lead', - 'edit-title' => 'Edit Lead', - 'save-btn-title' => 'Save as Lead', - 'save' => 'Save', - 'upload' => 'Upload', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'no-lead' => 'No Lead', - 'lead-source-name' => 'Lead source', - 'details' => 'Details', - 'rotten-info' => 'Lead has been rotten for :days day(s)', - 'stage' => 'Stage', - 'new' => 'New', - 'won-lost' => 'Won/Lost', - 'won' => 'Won', - 'lost' => 'Lost', - 'change-stage' => 'Change Stage', - 'lost-reason' => 'Lost Reason', - 'won-value' => 'Won Value', - 'created-date:' => 'Created Date:', - 'closed-date:' => 'Closed Date:', - 'closed-date' => 'Closed Date', - 'expected-close-date:' => 'Expected Close Date:', - 'contact-person' => 'Contact Person', - 'add-tag' => 'Add Tag', - 'search-tag' => 'Search Tag', - 'name' => 'Name', - 'color' => 'Color', - 'email' => 'Email', - 'contact-numbers' => 'Contact Numbers', - 'organization' => 'Organization', - 'address' => 'Address', - 'products' => 'Products', - 'item' => 'Item', - 'price' => 'Price', - 'quantity' => 'Quantity', - 'amount' => 'Amount', - 'create-success' => 'Lead created successfully.', - 'update-success' => 'Lead updated successfully.', - 'delete-success' => 'Lead deleted successfully.', - 'delete-failed' => 'Lead can not be deleted.', - 'product-quantity-required' => 'The product quantity is required when a product ID is present.', - 'product-price-required' => 'The product price is required when a product ID is present.', - 'product-name-required' => 'The product name is required when a product ID is present.', - 'selected-product-not-exist' => 'The selected product ID does not exist.', - 'note' => 'Note', - 'activity' => 'Activity', - 'title-control' => 'Title', - 'call' => 'Call', - 'meeting' => 'Meeting', - 'lunch' => 'Lunch', - 'file' => 'File', - 'quote' => 'Quote', - 'create-quote' => 'Create Quote', - 'type' => 'Type', - 'description' => 'Description', - 'schedule' => 'Schedule', - 'from' => 'From', - 'to' => 'To', - 'location' => 'Location', - 'participants' => 'Participants', - 'participant-info' => 'Start typing name', - 'users' => 'Users', - 'persons' => 'Persons', - 'cc' => 'Cc', - 'bcc' => 'Bcc', - 'email-placeholder' => 'Press enter to add emails', - 'file' => 'File', - 'subject' => 'Subject', - 'reply' => 'Reply', - 'send' => 'Send', - 'all' => 'All', - 'notes' => 'Notes', - 'select-type' => 'Select Type', - 'calls' => 'Calls', - 'meetings' => 'Meetings', - 'lunches' => 'Lunches', - 'emails' => 'Emails', - 'files' => 'Files', - 'sales-owner' => 'Sales Owner', - 'person' => 'Person', - 'expired-at' => 'Expired At', - 'sub-total' => 'Sub Total', - 'discount' => 'Discount', - 'tax' => 'Tax', - 'adjustment' => 'Adjustment', - 'grand-total' => 'Grand Total', - 'actions' => 'Actions', - 'planned' => 'Planned', - 'done' => 'Done', - 'edit' => 'Edit', - 'view' => 'View', - 'unlink' => 'Unlink', - 'mark-as-done' => 'Mark as Done', - 'remove' => 'Remove', - 'export-to-pdf' => 'Export To PDF', - 'empty-planned-activities' => 'You have no planned activities.', - 'empty-done-activities' => 'You have no done activities.', - 'note-added' => 'Note added', - 'call-scheduled' => 'Call scheduled at :from - :to', - 'meeting-scheduled' => 'Meeting scheduled at :from - :to', - 'lunch-scheduled' => 'Lunch scheduled at :from - :to', - 'file-added' => 'File added', - 'quote-destroy-success' => 'Quote removed successfully.', - 'tag-create-success' => 'Tag added successfully.', - 'tag-destroy-success' => 'Tag removed successfully.', - 'edit' => 'Edit', + 'forgot-password' => [ + 'title' => 'Forgot Password ?', + 'email' => 'Email', + 'send-reset-password-email' => 'Send Reset Password Email', + 'reset-link-sent' => 'We have e-mailed your reset password link.', + 'email-not-exist' => 'We can not find a user with this e-mail address.', + 'back-to-login' => 'Back to login', ], - 'quotes' => [ - 'title' => 'Quotes', - 'quote' => 'Quote', - 'create-title' => 'Create Quote', - 'edit-title' => 'Edit Quote', - 'save-btn-title' => 'Save as Quote', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'quote-information' => 'Quote Information', - 'lead' => 'Lead', - 'address-information' => 'Address Information', - 'quote-items' => 'Quote Items', - 'name' => 'Name', - 'quantity' => 'Quantity', - 'price' => 'Price', - 'amount' => 'Amount', - 'discount' => 'Discount', - 'tax' => 'Tax', - 'total' => 'Total', - 'sub-total' => 'Sub Total', - 'adjustment' => 'Adjustment', - 'grand-total' => 'Grand Total', - 'create-success' => 'Quote created successfully.', - 'update-success' => 'Quote updated successfully.', - 'delete-success' => 'Quote deleted successfully.', - 'delete-failed' => 'Quote can not be deleted.', - 'quote-id' => 'Quote Id', - 'quote-date' => 'Quote Date', - 'valid-until' => 'Valid Until', - 'sales-person' => 'Sales Person', - 'bill-to' => 'Bill To', - 'ship-to' => 'Ship To', - 'sku' => 'Sku', - 'product-name' => 'Product Name', - 'price' => 'Price', - 'amount' => 'Amount', - 'quantity' => 'Quantity', - 'sub-total' => 'Sub Total', - 'tax' => 'Tax', - 'adjustment' => 'Adjustment', - 'grand-total' => 'Grand Total', - 'search' => 'Search..' + 'reset-password' => [ + 'title' => 'Reset Password', + 'email' => 'Email', + 'password' => 'Password', + 'confirm-password' => 'Confirm Password', + 'reset-password' => 'Reset Password', + ], + ], + + 'settings' => [ + 'title' => 'Settings', + + 'groups' => [ + 'title' => 'Groups', + 'group' => 'Group', + 'edit-title' => 'Edit Group', + 'description' => 'Description', + 'create-title' => 'Create Group', + 'save-btn-title' => 'Save as Group', + 'update-btn-title' => 'Update Group', + 'create-success' => 'Group created successfully.', + 'update-success' => 'Group updated successfully.', + 'destroy-success' => 'Group deleted successfully.', + 'delete-failed' => 'Group can not be deleted.', + 'user-define-error' => 'Can not delete system group.', ], - 'mail' => [ - 'title' => 'Mail - :type', - 'compose' => 'Compose', - 'inbox' => 'Inbox', - 'draft' => 'Draft', - 'outbox' => 'Outbox', - 'sent' => 'Sent', - 'trash' => 'Trash', - 'setting' => 'Setting', - 'total' => 'Total', - 'link-mail' => 'Link Mail', - 'link-contact' => 'Link Contact', - 'linked-contact' => 'Linked Contact', - 'add-to-existing-contact' => 'Add To Existing Contact', - 'create-new-contact' => 'Create New Contact', - 'search-contact' => 'Search a contact', - 'link-lead' => 'Link Lead', - 'linked-lead' => 'Linked Lead', - 'search-lead' => 'Search for lead', - 'link-to-existing-lead' => 'Link To Existing', - 'add-new-lead' => 'Add New Lead', - 'send' => 'Send', - 'back' => 'Back', - 'discard' => 'Discard', - 'from-' => 'From - ', - 'to-' => 'To - ', - 'cc-' => 'Cc - ', - 'bcc-' => 'Bcc - ', - 'reply' => 'Reply', - 'reply-all' => 'Reply All', - 'forward' => 'Forward', - 'delete' => 'Delete', - 'destroy-success' => 'Selected emails deleted successfully.', - 'save-to-draft' => 'Save to Draft', - 'create-success' => 'Email sent successfully.', - 'update-success' => 'Email updated successfully.', - 'saved-to-draft' => 'Email saved to draft.', - 'delete-success' => 'Email deleted successfully.', - 'delete-failed' => 'Email can not be deleted.', - 'mass-update-success' => 'Emails updated successfully.', - - 'forget-password' => [ - 'subject' => 'Customer Reset Password', - 'dear' => 'Dear :name', - 'reset-password' => 'Reset Password', - 'info' => 'You are receiving this email because we received a password reset request for your account', - 'final-summary' => 'If you did not request a password reset, no further action is required', - 'thanks' => 'Thanks!' - ], - - 'user' => [ - 'create-subject' => 'You are added as a member.', - 'create-body' => 'Congratulations! You are now a member of our team.', - ], + 'roles' => [ + 'title' => 'Roles', + 'role' => 'Role', + 'edit-title' => 'Edit Role', + 'description' => 'Description', + 'create-title' => 'Create Role', + 'permission_type' => 'Permission type', + 'custom' => 'Custom', + 'all' => 'All', + 'save-btn-title' => 'Save as Role', + 'update-btn-title' => 'Update Role', + 'create-success' => 'Role created successfully.', + 'update-success' => 'Role updated successfully.', + 'delete-success' => 'Role deleted successfully.', + 'delete-failed' => 'Role can not be deleted.', + 'user-define-error' => 'Can not delete system role.', + 'last-delete-error' => 'At least one role is required.', + 'current-role-delete-error' => 'Can not delete role assigned to the current user.', + 'being-used' => 'Role can not be deleted, as this is being used in admin user.', ], - 'activities' => [ - 'title' => 'Activities', - 'title-control' => 'Title', - 'edit-title' => 'Edit Activity', - 'save-btn-title' => 'Save as Activity', - 'back' => 'Back', - 'type' => 'Type', - 'note' => 'Note', - 'call' => 'Call', - 'meeting' => 'Meeting', - 'lunch' => 'Lunch', - 'file' => 'File', - 'description' => 'Description', - 'schedule' => 'Schedule', - 'from' => 'From', - 'to' => 'To', - 'location' => 'Location', - 'participants' => 'Participants', - 'lead' => 'Lead', - 'duration-overlapping' => 'Participants have another meeting at this time. Do you want to continue?', - 'file-upload-success' => 'File(s) uploaded successfully.', - 'file-upload-error' => 'File(s) can not be uploaded.', - 'create-success' => ':type created successfully.', - 'update-success' => ':type updated successfully.', - 'mass-update-success' => 'Activities updated successfully.', - 'mass-update-failed' => 'Activities can not be updated.', - 'destroy-success' => ':type deleted successfully.', - 'delete-failed' => ':type can not be deleted.', - 'typing-placeholder' => 'Start typing name', + 'users' => [ + 'title' => 'Users', + 'create-title' => 'Create User', + 'edit-title' => 'Edit User', + 'general' => 'General', + 'permission' => 'Permission', + 'name' => 'Name', + 'email' => 'Email', + 'back' => 'Back', + 'password' => 'Password', + 'groups' => 'Groups', + 'role' => 'Role', + 'view-permission' => 'View Permission', + 'global' => 'Global', + 'group' => 'Group', + 'individual' => 'Individual', + 'status' => 'Status', + 'save-btn-title' => 'Save as User', + 'confirm_password' => 'Confirm password', + 'create-success' => 'User created successfully.', + 'update-success' => 'User updated successfully.', + 'delete-success' => 'User deleted successfully.', + 'delete-failed' => 'User can not be deleted.', + 'user-define-error' => 'Can not delete system user.', + 'last-delete-error' => 'At least one user is required.', + 'mass-update-success' => 'Users updated successfully.', + 'mass-update-failed' => 'Users can not be updated.', + 'mass-delete-success' => 'Users deleted successfully.', + 'mass-delete-failed' => 'Users can not be deleted.', ], - 'products' => [ - 'title' => 'Products', - 'product' => 'Product', - 'create-title' => 'Create Product', - 'edit-title' => 'Edit Product', - 'save-btn-title' => 'Save as Product', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'information' => 'Information', - 'inventories' => 'Inventories', - 'location' => 'Location', - 'search' => 'Search..', - 'name' => 'Name', - 'save' => 'Save', - 'source' => 'Source', - 'in-stock' => 'In Stock', - 'allocated' => 'Allocated', - 'on-hand' => 'On Hand', - 'actions' => 'Actions', - 'assign' => 'Assign', - 'add-source' => 'Add Source', - 'create-success' => 'Product created successfully.', - 'update-success' => 'Product updated successfully.', - 'delete-success' => 'Product deleted successfully.', - 'delete-failed' => 'Product can not be deleted.', + 'attributes' => [ + 'title' => 'Attributes', + 'attribute' => 'Attribute', + 'create-title' => 'Create Attribute', + 'edit-title' => 'Edit Attribute', + 'save-btn-title' => 'Save as Attribute', + 'back' => 'Back', + 'code' => 'Code', + 'name' => 'Name', + 'type' => 'Type', + 'text' => 'Text', + 'textarea' => 'Textarea', + 'price' => 'Price', + 'boolean' => 'Boolean', + 'select' => 'Select', + 'multiselect' => 'Multiselect', + 'email' => 'Email', + 'address' => 'Address', + 'phone' => 'Phone', + 'datetime' => 'Datetime', + 'date' => 'Date', + 'image' => 'Image', + 'file' => 'File', + 'entity-type' => 'Entity Type', + 'lookup' => 'Lookup', + 'entity_type' => 'Entity type', + 'lookup-type' => 'Lookup Type', + 'checkbox' => 'Checkbox', + 'is_required' => 'Is Required', + 'is_unique' => 'Is Unique', + 'yes' => 'Yes', + 'no' => 'No', + 'input_validation' => 'Input Validation', + 'number' => 'Number', + 'decimal' => 'Decimal', + 'email' => 'Email', + 'url' => 'Url', + 'options-type' => 'Option Type', + 'options' => 'Options', + 'sort-order' => 'Sort Order', + 'add-option-btn-title' => 'Add Option', + 'create-success' => 'Attribute created successfully.', + 'update-success' => 'Attribute updated successfully.', + 'update-error' => 'Unable to update attribute.', + 'delete-success' => 'Attribute deleted successfully.', + 'delete-failed' => 'Attribute can not be deleted.', + 'user-define-error' => 'Can not delete system attribute.', + 'mass-delete-failed' => 'Attributes can not be deleted.', ], - 'sessions' => [ - 'login' => [ - 'title' => 'Login', - 'welcome' => 'Welcome Back', - 'email' => 'Email', - 'password' => 'Password', - 'login' => 'Login', - 'forgot-password' => 'Forgot Password?', - 'login-error' => 'Please check your credentials and try again.', - 'activate-warning' => 'Your account is yet to be activated, please contact administrator.', - ], - - 'forgot-password' => [ - 'title' => 'Forgot Password ?', - 'email' => 'Email', - 'send-reset-password-email' => 'Send Reset Password Email', - 'reset-link-sent' => 'We have e-mailed your reset password link.', - 'email-not-exist' => "We can not find a user with this e-mail address.", - 'back-to-login' => 'Back to login' - ], - - 'reset-password' => [ - 'title' => 'Reset Password', - 'email' => 'Email', - 'password' => 'Password', - 'confirm-password' => 'Confirm Password', - 'reset-password' => 'Reset Password' - ] + 'pipelines' => [ + 'title' => 'Pipelines', + 'organization' => 'Pipeline', + 'create-title' => 'Create Pipeline', + 'edit-title' => 'Edit Pipeline', + 'save-btn-title' => 'Save as Pipeline', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'name' => 'Name', + 'rotting-days' => 'Rotting Days', + 'is-default' => 'Mark as Default', + 'probability' => 'Probability (%)', + 'add-stage-btn-title' => 'Add Stage', + 'new-stage' => 'New', + 'won-stage' => 'Won', + 'lost-stage' => 'Lost', + 'duplicate-name' => 'The "Name" field cannot be duplicate', + 'create-success' => 'Pipeline created successfully.', + 'update-success' => 'Pipeline updated successfully.', + 'delete-success' => 'Pipeline deleted successfully.', + 'delete-failed' => 'Pipeline can not be deleted.', + 'default-delete-error' => 'Default pipeline can not be deleted.', ], - 'settings' => [ - 'title' => 'Settings', - - 'groups' => [ - 'title' => 'Groups', - 'group' => 'Group', - 'edit-title' => 'Edit Group', - 'description' => 'Description', - 'create-title' => 'Create Group', - 'save-btn-title' => 'Save as Group', - 'update-btn-title' => 'Update Group', - 'create-success' => 'Group created successfully.', - 'update-success' => 'Group updated successfully.', - 'destroy-success' => 'Group deleted successfully.', - 'delete-failed' => 'Group can not be deleted.', - 'user-define-error' => 'Can not delete system group.', - ], - - 'roles' => [ - 'title' => 'Roles', - 'role' => 'Role', - 'edit-title' => 'Edit Role', - 'description' => 'Description', - 'create-title' => 'Create Role', - 'permission_type' => 'Permission type', - 'custom' => 'Custom', - 'all' => 'All', - 'save-btn-title' => 'Save as Role', - 'update-btn-title' => 'Update Role', - 'create-success' => 'Role created successfully.', - 'update-success' => 'Role updated successfully.', - 'delete-success' => 'Role deleted successfully.', - 'delete-failed' => 'Role can not be deleted.', - 'user-define-error' => 'Can not delete system role.', - 'last-delete-error' => 'At least one role is required.', - 'current-role-delete-error' => 'Can not delete role assigned to the current user.', - 'being-used' => 'Role can not be deleted, as this is being used in admin user.', - ], - - 'users' => [ - 'title' => 'Users', - 'create-title' => 'Create User', - 'edit-title' => 'Edit User', - 'general' => 'General', - 'permission' => 'Permission', - 'name' => 'Name', - 'email' => 'Email', - 'back' => 'Back', - 'password' => 'Password', - 'groups' => 'Groups', - 'role' => 'Role', - 'view-permission' => 'View Permission', - 'global' => 'Global', - 'group' => 'Group', - 'individual' => 'Individual', - 'status' => 'Status', - 'save-btn-title' => 'Save as User', - 'confirm_password' => 'Confirm password', - 'create-success' => 'User created successfully.', - 'update-success' => 'User updated successfully.', - 'delete-success' => 'User deleted successfully.', - 'delete-failed' => 'User can not be deleted.', - 'user-define-error' => 'Can not delete system user.', - 'last-delete-error' => 'At least one user is required.', - 'mass-update-success' => 'Users updated successfully.', - 'mass-update-failed' => 'Users can not be updated.', - 'mass-delete-success' => 'Users deleted successfully.', - 'mass-delete-failed' => 'Users can not be deleted.', - ], - - 'attributes' => [ - 'title' => 'Attributes', - 'attribute' => 'Attribute', - 'create-title' => 'Create Attribute', - 'edit-title' => 'Edit Attribute', - 'save-btn-title' => 'Save as Attribute', - 'back' => 'Back', - 'code' => 'Code', - 'name' => 'Name', - 'type' => 'Type', - 'text' => 'Text', - 'textarea' => 'Textarea', - 'price' => 'Price', - 'boolean' => 'Boolean', - 'select' => 'Select', - 'multiselect' => 'Multiselect', - 'email' => 'Email', - 'address' => 'Address', - 'phone' => 'Phone', - 'datetime' => 'Datetime', - 'date' => 'Date', - 'image' => 'Image', - 'file' => 'File', - 'entity-type' => 'Entity Type', - 'lookup' => 'Lookup', - 'entity_type' => 'Entity type', - 'lookup-type' => 'Lookup Type', - 'checkbox' => 'Checkbox', - 'is_required' => 'Is Required', - 'is_unique' => 'Is Unique', - 'yes' => 'Yes', - 'no' => 'No', - 'input_validation' => 'Input Validation', - 'number' => 'Number', - 'decimal' => 'Decimal', - 'email' => 'Email', - 'url' => 'Url', - 'options-type' => 'Option Type', - 'options' => 'Options', - 'sort-order' => 'Sort Order', - 'add-option-btn-title' => 'Add Option', - 'create-success' => 'Attribute created successfully.', - 'update-success' => 'Attribute updated successfully.', - 'update-error' => 'Unable to update attribute.', - 'delete-success' => 'Attribute deleted successfully.', - 'delete-failed' => 'Attribute can not be deleted.', - 'user-define-error' => 'Can not delete system attribute.', - 'mass-delete-failed' => 'Attributes can not be deleted.', - ], - - 'pipelines' => [ - 'title' => 'Pipelines', - 'organization' => 'Pipeline', - 'create-title' => 'Create Pipeline', - 'edit-title' => 'Edit Pipeline', - 'save-btn-title' => 'Save as Pipeline', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'name' => 'Name', - 'rotting-days' => 'Rotting Days', - 'is-default' => 'Mark as Default', - 'probability' => 'Probability (%)', - 'add-stage-btn-title' => 'Add Stage', - 'new-stage' => 'New', - 'won-stage' => 'Won', - 'lost-stage' => 'Lost', - 'duplicate-name' => 'The "Name" field cannot be duplicate', - 'create-success' => 'Pipeline created successfully.', - 'update-success' => 'Pipeline updated successfully.', - 'delete-success' => 'Pipeline deleted successfully.', - 'delete-failed' => 'Pipeline can not be deleted.', - 'default-delete-error' => 'Default pipeline can not be deleted.', - ], - - 'sources' => [ - 'title' => 'Sources', - 'organization' => 'Source', - 'create-title' => 'Create Source', - 'edit-title' => 'Edit Source', - 'save-btn-title' => 'Save as Source', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'create-success' => 'Source created successfully.', - 'name-exists' => 'Source name already exists.', - 'update-success' => 'Source updated successfully.', - 'delete-success' => 'Source deleted successfully.', - 'delete-failed' => 'Source can not be deleted.', - ], - - 'types' => [ - 'title' => 'Types', - 'organization' => 'Type', - 'create-title' => 'Create Type', - 'edit-title' => 'Edit Type', - 'save-btn-title' => 'Save as Type', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'create-success' => 'Type created successfully.', - 'name-exists' => 'Type name already exists.', - 'update-success' => 'Type updated successfully.', - 'delete-success' => 'Type deleted successfully.', - 'delete-failed' => 'Type can not be deleted.', - ], - - 'warehouses' => [ - 'title' => 'Warehouses', - 'create-title' => 'Create Warehouse', - 'edit-title' => 'Edit Warehouse', - 'save-btn-title' => 'Save as Warehouse', - 'save-btn' => 'Save', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'name' => 'Name', - 'information' => 'Information', - 'general-information' => 'General Information', - 'contact-information' => 'Contact Information', - 'locations' => 'Locations', - 'products' => 'Products', - 'action' => 'Action', - 'delete' => 'Delete', - 'add-location' => 'Add Location', - 'confirm-delete' => 'Are you sure you want to delete this location?', - 'create-success' => 'Warehouse created successfully.', - 'name-exists' => 'Warehouse name already exists.', - 'update-success' => 'Warehouse updated successfully.', - 'delete-success' => 'Warehouse deleted successfully.', - 'delete-failed' => 'Warehouse can not be deleted.', - ], - - 'email-templates' => [ - 'title' => 'Email Templates', - 'create-title' => 'Create Email Template', - 'edit-title' => 'Edit Email Template', - 'save-btn-title' => 'Save as Email Template', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'name' => 'Name', - 'subject' => 'Subject', - 'content' => 'Content', - 'placeholders' => 'Placeholders', - 'create-success' => 'Email Template created successfully.', - 'update-success' => 'Email Template updated successfully.', - 'delete-success' => 'Email Template deleted successfully.', - 'delete-failed' => 'Email Template can not be deleted.', - ], - - 'workflows' => [ - 'title' => 'Workflows', - 'create-title' => 'Create Workflow', - 'edit-title' => 'Edit Workflow', - 'save-btn-title' => 'Save as Workflow', - 'back' => 'Back', - 'cancel' => 'Cancel', - 'information' => 'Information', - 'name' => 'Name', - 'description' => 'Description', - 'event' => 'Event', - 'events' => 'Events', - 'created' => 'Created', - 'updated' => 'Updated', - 'deleted' => 'Deleted', - 'event-info' => 'An event automatically triggers to check conditions and perform a respective pre-defined set of actions', - 'conditions' => 'Conditions', - 'condition-info' => 'Conditions are set of rules which checks for specific scenarios and are triggered on specific occasions', - 'condition-type' => 'Condition Type', - 'all-conditions-true' => 'All Conditions are True', - 'any-condition-true' => 'Any Condition is True', - 'add-condition' => 'Add Condition', - 'choose-condition-to-add' => 'Choose a condition to add', - 'is-equal-to' => 'Is equal to', - 'is-not-equal-to' => 'Is not equal to', - 'equals-or-greater-than' => 'Equals or greater than', - 'equals-or-less-than' => 'Equals or less than', - 'greater-than' => 'Greater than', - 'less-than' => 'Less than', - 'contain' => 'Contain', - 'contains' => 'Contains', - 'does-not-contain' => 'Does not contain', - 'actions' => 'Actions', - 'action-info' => 'An action not only reduces the workload but also makes it quite easier for CRM automation', - 'choose-action-to-add' => 'Choose action to add', - 'update-lead' => 'Update lead', - 'update-person' => 'Update person', - 'send-email-to-person' => 'Send email to person', - 'send-email-to-sales-owner' => 'Send email to sales owner', - 'send-email-to-participants' => 'Send email to participants', - 'add-tag' => 'Add tag', - 'add-note-as-activity' => 'Add note as activity', - 'choose-attribute' => 'Choose attribute', - 'choose-option' => 'Choose option', - 'update-person' => 'Update person', - 'update-related-leads' => 'Update related leads', - 'update-quote' => 'Update quote', - 'add-action' => 'Add Action', - 'create-success' => 'Workflow created successfully.', - 'update-success' => 'Workflow updated successfully.', - 'delete-success' => 'Workflow deleted successfully.', - 'delete-failed' => 'Workflow can not be deleted.', - 'add-webhook' => 'Trigger webhook', - 'webhook_heading' => 'Webhook settings', - 'webhook_url' => 'Enter URL', - 'request-headers' => 'Request Headers', - 'webhook_request_method' => 'Request method', - 'get_method' => 'GET', - 'post_method' => 'POST', - 'put_method' => 'PUT', - 'patch_method' => 'PATCH', - 'delete_method' => 'DELETE', - 'webhook_encoding' => 'Select encoding', - 'encoding_json' => 'JSON', - 'encoding_http_query' => 'X-www-form-urlencoded', - 'request_body' => 'Request Body', - 'request_body_info' => 'Add key value pair in new line, i.e., key=value', - 'simple_body' => 'Simple', - 'raw' => 'Raw', - 'lead' => 'Lead', - 'person' => 'Person', - 'quote' => 'Quote', - 'activity' => 'Activity', - 'add_header' => 'Add header', - 'header_key' => 'Key', - 'header_value' => 'Value', - ], - - 'tags' => [ - 'title' => 'Tags', - 'create-title' => 'Create Tag', - 'edit-title' => 'Edit Tag', - 'cancel' => 'Cancel', - 'save-btn-title' => 'Save as Tag', - 'name' => 'Name', - 'color' => 'Color', - 'create-success' => 'Tag created successfully.', - 'update-success' => 'Tag updated successfully.', - 'delete-success' => 'Tag deleted successfully.', - 'delete-failed' => 'Tag can not be deleted.', - ], - - 'web-forms' => [ - 'create-success' => 'Web form created successfully', - 'update-success' => 'Web form Updated successfully', - 'delete-success' => 'Web form deleted successfully' - ], + 'sources' => [ + 'title' => 'Sources', + 'organization' => 'Source', + 'create-title' => 'Create Source', + 'edit-title' => 'Edit Source', + 'save-btn-title' => 'Save as Source', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'create-success' => 'Source created successfully.', + 'name-exists' => 'Source name already exists.', + 'update-success' => 'Source updated successfully.', + 'delete-success' => 'Source deleted successfully.', + 'delete-failed' => 'Source can not be deleted.', ], - 'configuration' => [ - 'title' => 'Configuration', - 'save-btn-title' => 'Save', - 'general' => 'General', - 'locale-settings' => 'Locale Settings', - 'locale' => 'Locale', - 'timezone' => 'Timezone', - 'date-time-formats' => 'Date And Time Formats', - 'save-message' => 'Configuration updated successfully!', - "emails" => [ - 'email' => 'Email', - 'notification_label' => 'Notifications', - 'new_lead' => 'New lead', - ] + 'types' => [ + 'title' => 'Types', + 'organization' => 'Type', + 'create-title' => 'Create Type', + 'edit-title' => 'Edit Type', + 'save-btn-title' => 'Save as Type', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'create-success' => 'Type created successfully.', + 'name-exists' => 'Type name already exists.', + 'update-success' => 'Type updated successfully.', + 'delete-success' => 'Type deleted successfully.', + 'delete-failed' => 'Type can not be deleted.', ], - 'datagrid' => [ - 'id' => 'ID', + 'warehouses' => [ + 'title' => 'Warehouses', + 'create-title' => 'Create Warehouse', + 'edit-title' => 'Edit Warehouse', + 'save-btn-title' => 'Save as Warehouse', + 'save-btn' => 'Save', + 'back' => 'Back', + 'cancel' => 'Cancel', 'name' => 'Name', - 'code' => 'Code', - 'sku' => 'SKU', - 'type' => 'Type', - 'price' => 'Price', - 'email' => 'Email', - 'attachments' => 'Attachments', - 'from' => 'From', - 'lead' => 'Lead', - 'title' => 'Title', - 'subject' => 'Subject', - 'tags' => 'Tags', - 'emails' => 'Emails', - 'stage' => 'Stage', - 'status' => 'Status', - 'active' => 'Active', - 'inactive' => 'Inactive', - 'address' => 'Address', - 'quantity' => 'Quantity', - 'lead_value' => 'Lead Value', - 'comment' => 'Comment', - 'is_done' => 'Is Done', - 'type' => 'Type', - 'all' => 'All', - 'user' => 'User', - 'sales-person' => 'Sales Person', - 'expired_quotes' => 'Expired Quotes', - 'person' => 'Person', - 'sub-total' => 'Sub Total', - 'discount' => 'Discount', - 'tax' => 'Tax', - 'adjustment' => 'Adjustment', - 'grand-total' => 'Grand Total', - 'persons_count' => 'Persons count', - 'assigned_to' => 'Assigned To', - 'created_by' => 'Created By', - 'entity_type' => 'Entity Type', - 'created_at' => 'Created Date', - 'expected_close_date' => 'Expected Close Date', - 'schedule_from' => 'Schedule From', - 'schedule_to' => 'Schedule To', - 'description' => 'Description', - 'update_stage' => 'Update Stage', - 'contact_person' => 'Contact Person', - 'contact_numbers' => 'Contact Numbers', - 'permission_type' => 'Permission Type', - 'organization_name' => 'Organization Name', - 'is-default' => 'Is Default', - 'rotten-days' => 'Rotten Days', - 'rotten_lead' => 'Rotten Lead', - 'yes' => 'Yes', - 'no' => 'No', - 'move-to-inbox' => 'Move to Inbox', - 'update-success' => ':resource updated successfully.', - 'destroy-success' => ':resource deleted successfully.', - 'destroy-failed' => ':resource can not be deleted.', - 'attribute_type' => 'Attribute Type', - 'contact-name' => 'Contact Name', - 'contact-emails' => 'Contact Emails', - 'contact-numbers' => 'Contact Numbers', - 'in-stock' => 'In Stock', - 'allocated' => 'Allocated', - 'on-hand' => 'On Hand', + 'information' => 'Information', + 'general-information' => 'General Information', + 'contact-information' => 'Contact Information', + 'locations' => 'Locations', 'products' => 'Products', - 'filters' => [ - 'yesterday' => 'Yesterday', - 'today' => 'Today', - 'tomorrow' => 'Tomorrow', - 'this-week' => 'This Week', - 'this-month' => 'This Month', - 'custom' => 'Custom', - ] + 'action' => 'Action', + 'delete' => 'Delete', + 'add-location' => 'Add Location', + 'confirm-delete' => 'Are you sure you want to delete this location?', + 'create-success' => 'Warehouse created successfully.', + 'name-exists' => 'Warehouse name already exists.', + 'update-success' => 'Warehouse updated successfully.', + 'delete-success' => 'Warehouse deleted successfully.', + 'delete-failed' => 'Warehouse can not be deleted.', ], - 'response' => [ - 'create-success' => ':name created successfully.', - 'update-success' => ':name updated successfully.', - 'destroy-success'=> ':name deleted successfully.', - 'destroy-failed' => ':name can not be deleted.', + 'email-templates' => [ + 'title' => 'Email Templates', + 'create-title' => 'Create Email Template', + 'edit-title' => 'Edit Email Template', + 'save-btn-title' => 'Save as Email Template', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'name' => 'Name', + 'subject' => 'Subject', + 'content' => 'Content', + 'placeholders' => 'Placeholders', + 'create-success' => 'Email Template created successfully.', + 'update-success' => 'Email Template updated successfully.', + 'delete-success' => 'Email Template deleted successfully.', + 'delete-failed' => 'Email Template can not be deleted.', ], - 'acl' => [ - 'leads' => 'Leads', - 'lead' => 'Lead', - 'quotes' => 'Quotes', - 'mail' => 'Mail', - 'inbox' => 'Inbox', - 'draft' => 'Draft', - 'outbox' => 'Outbox', - 'sent' => 'Sent', - 'trash' => 'Trash', - 'activities' => 'Activities', - 'contacts' => 'Contacts', - 'persons' => 'Persons', - 'organizations' => 'Organizations', - 'products' => 'Products', - 'settings' => 'Settings', - 'groups' => 'Groups', - 'roles' => 'Roles', - 'users' => 'Users', - 'user' => 'User', - 'automation' => 'Automation', - 'attributes' => 'Attributes', - 'pipelines' => 'Pipelines', - 'sources' => 'Sources', - 'types' => 'Types', - 'email-templates' => 'Email Templates', - 'workflows' => 'Workflows', - 'other-settings' => 'Other Settings', - 'tags' => 'Tags', - 'configuration' => 'Configuration', - 'create' => 'Create', - 'edit' => 'Edit', - 'view' => 'View', - 'print' => 'Print', - 'delete' => 'Delete', - 'export' => 'Export', - 'mass-delete' => 'Mass Delete', + 'workflows' => [ + 'title' => 'Workflows', + 'create-title' => 'Create Workflow', + 'edit-title' => 'Edit Workflow', + 'save-btn-title' => 'Save as Workflow', + 'back' => 'Back', + 'cancel' => 'Cancel', + 'information' => 'Information', + 'name' => 'Name', + 'description' => 'Description', + 'event' => 'Event', + 'events' => 'Events', + 'created' => 'Created', + 'updated' => 'Updated', + 'deleted' => 'Deleted', + 'event-info' => 'An event automatically triggers to check conditions and perform a respective pre-defined set of actions', + 'conditions' => 'Conditions', + 'condition-info' => 'Conditions are set of rules which checks for specific scenarios and are triggered on specific occasions', + 'condition-type' => 'Condition Type', + 'all-conditions-true' => 'All Conditions are True', + 'any-condition-true' => 'Any Condition is True', + 'add-condition' => 'Add Condition', + 'choose-condition-to-add' => 'Choose a condition to add', + 'is-equal-to' => 'Is equal to', + 'is-not-equal-to' => 'Is not equal to', + 'equals-or-greater-than' => 'Equals or greater than', + 'equals-or-less-than' => 'Equals or less than', + 'greater-than' => 'Greater than', + 'less-than' => 'Less than', + 'contain' => 'Contain', + 'contains' => 'Contains', + 'does-not-contain' => 'Does not contain', + 'actions' => 'Actions', + 'action-info' => 'An action not only reduces the workload but also makes it quite easier for CRM automation', + 'choose-action-to-add' => 'Choose action to add', + 'update-lead' => 'Update lead', + 'update-person' => 'Update person', + 'send-email-to-person' => 'Send email to person', + 'send-email-to-sales-owner' => 'Send email to sales owner', + 'send-email-to-participants' => 'Send email to participants', + 'add-tag' => 'Add tag', + 'add-note-as-activity' => 'Add note as activity', + 'choose-attribute' => 'Choose attribute', + 'choose-option' => 'Choose option', + 'update-person' => 'Update person', + 'update-related-leads' => 'Update related leads', + 'update-quote' => 'Update quote', + 'add-action' => 'Add Action', + 'create-success' => 'Workflow created successfully.', + 'update-success' => 'Workflow updated successfully.', + 'delete-success' => 'Workflow deleted successfully.', + 'delete-failed' => 'Workflow can not be deleted.', + 'add-webhook' => 'Trigger webhook', + 'webhook_heading' => 'Webhook settings', + 'webhook_url' => 'Enter URL', + 'request-headers' => 'Request Headers', + 'webhook_request_method' => 'Request method', + 'get_method' => 'GET', + 'post_method' => 'POST', + 'put_method' => 'PUT', + 'patch_method' => 'PATCH', + 'delete_method' => 'DELETE', + 'webhook_encoding' => 'Select encoding', + 'encoding_json' => 'JSON', + 'encoding_http_query' => 'X-www-form-urlencoded', + 'request_body' => 'Request Body', + 'request_body_info' => 'Add key value pair in new line, i.e., key=value', + 'simple_body' => 'Simple', + 'raw' => 'Raw', + 'lead' => 'Lead', + 'person' => 'Person', + 'quote' => 'Quote', + 'activity' => 'Activity', + 'add_header' => 'Add header', + 'header_key' => 'Key', + 'header_value' => 'Value', ], - 'common' => [ - 'back' => 'Back', - 'address' => 'Address', - 'country' => 'Country', - 'add_more' => 'Add More', - 'select-country' => 'Please select country', - 'select-users' => 'Select Users', - 'select_rotten_leads' => 'Select Rotten Leads', - 'select-organization' => 'Select Organizations', - 'state' => 'State', - 'select-state' => 'Please select state', - 'city' => 'City', - 'postcode' => 'Postcode', - 'address-validation' => 'The "Address" field is required', - 'work' => 'Work', - 'home' => 'Home', - 'no-result-found' => 'Records not found with same name.', - 'add-as' => 'Add as new', - 'not-available' => 'Not Available', - 'select-options' => 'Select Options', - 'yes' => 'Yes', - 'no' => 'No', - 'delete' => 'Delete', - 'save' => 'Save', - 'locale' => 'Locale', - 'en' => 'English', - 'tr' => 'Türkçe', - 'ar' => 'Arabic', - 'es' => 'Spanish', - 'add-as' => 'Add as new', - 'no-records-found' => 'No Records Found', - 'start-typing' => 'Start typing to search records', - 'select-type' => 'Select Type', - 'select-call' => 'Call', - 'select-meeting' => 'Meeting', - 'select-lunch' => 'Lunch', - 'duplicate-value' => 'The value cannot be duplicate', - 'unauthenticated' => 'Unauthenticated', - 'resource-not-found' => 'Resource not found', - 'forbidden-error' => '403 forbidden Error', - 'internal-server-error' => '500 Internal Server Error', - 'something-went-wrong' => 'Something went wrong, please try again later.', - 'delete-confirm' => 'Do you really want to perform this action?', - 'system_attribute' => 'System', - 'custom_attribute' => 'Custom', - 'select-warehouse' => 'Select Warehouse', + 'tags' => [ + 'title' => 'Tags', + 'create-title' => 'Create Tag', + 'edit-title' => 'Edit Tag', + 'cancel' => 'Cancel', + 'save-btn-title' => 'Save as Tag', + 'name' => 'Name', + 'color' => 'Color', + 'create-success' => 'Tag created successfully.', + 'update-success' => 'Tag updated successfully.', + 'delete-success' => 'Tag deleted successfully.', + 'delete-failed' => 'Tag can not be deleted.', ], - 'user' => [ - 'account' => [ - 'name' => 'Name', - 'email' => 'Email', - 'password' => 'Password', - 'my_account' => 'My account', - 'update_details' => 'Update Details', - 'current_password' => 'Current password', - 'confirm_password' => 'Confirm password', - 'password-match' => 'Current password does not match.', - 'account-save' => 'Account changes saved successfully.', - 'permission-denied' => 'Permission Denied', - 'remove-image' => 'Remove Image', - 'upload_image_pix' => 'Upload a Profile Image (100px x 100px)', - 'upload_image_format' =>'in PNG or JPG Format', - 'image_upload_message' => 'Only images (.jpeg, .jpg, .png, ..) are allowed.' - ] + 'web-forms' => [ + 'create-success' => 'Web form created successfully', + 'update-success' => 'Web form Updated successfully', + 'delete-success' => 'Web form deleted successfully', ], + ], + + 'configuration' => [ + 'title' => 'Configuration', + 'save-btn-title' => 'Save', + 'general' => 'General', + 'locale-settings' => 'Locale Settings', + 'locale' => 'Locale', + 'timezone' => 'Timezone', + 'date-time-formats' => 'Date And Time Formats', + 'save-message' => 'Configuration updated successfully!', + 'emails' => [ + 'email' => 'Email', + 'notification_label' => 'Notifications', + 'new_lead' => 'New lead', + ], + ], + + 'datagrid' => [ + 'id' => 'ID', + 'name' => 'Name', + 'code' => 'Code', + 'sku' => 'SKU', + 'type' => 'Type', + 'price' => 'Price', + 'email' => 'Email', + 'attachments' => 'Attachments', + 'from' => 'From', + 'lead' => 'Lead', + 'title' => 'Title', + 'subject' => 'Subject', + 'tags' => 'Tags', + 'emails' => 'Emails', + 'stage' => 'Stage', + 'status' => 'Status', + 'active' => 'Active', + 'inactive' => 'Inactive', + 'address' => 'Address', + 'quantity' => 'Quantity', + 'lead_value' => 'Lead Value', + 'comment' => 'Comment', + 'is_done' => 'Is Done', + 'type' => 'Type', + 'all' => 'All', + 'user' => 'User', + 'sales-person' => 'Sales Person', + 'expired_quotes' => 'Expired Quotes', + 'person' => 'Person', + 'sub-total' => 'Sub Total', + 'discount' => 'Discount', + 'tax' => 'Tax', + 'adjustment' => 'Adjustment', + 'grand-total' => 'Grand Total', + 'persons_count' => 'Persons count', + 'assigned_to' => 'Assigned To', + 'created_by' => 'Created By', + 'entity_type' => 'Entity Type', + 'created_at' => 'Created Date', + 'expected_close_date' => 'Expected Close Date', + 'schedule_from' => 'Schedule From', + 'schedule_to' => 'Schedule To', + 'description' => 'Description', + 'update_stage' => 'Update Stage', + 'contact_person' => 'Contact Person', + 'contact_numbers' => 'Contact Numbers', + 'permission_type' => 'Permission Type', + 'organization_name' => 'Organization Name', + 'is-default' => 'Is Default', + 'rotten-days' => 'Rotten Days', + 'rotten_lead' => 'Rotten Lead', + 'yes' => 'Yes', + 'no' => 'No', + 'move-to-inbox' => 'Move to Inbox', + 'update-success' => ':resource updated successfully.', + 'destroy-success' => ':resource deleted successfully.', + 'destroy-failed' => ':resource can not be deleted.', + 'attribute_type' => 'Attribute Type', + 'contact-name' => 'Contact Name', + 'contact-emails' => 'Contact Emails', + 'contact-numbers' => 'Contact Numbers', + 'in-stock' => 'In Stock', + 'allocated' => 'Allocated', + 'on-hand' => 'On Hand', + 'products' => 'Products', + 'filters' => [ + 'yesterday' => 'Yesterday', + 'today' => 'Today', + 'tomorrow' => 'Tomorrow', + 'this-week' => 'This Week', + 'this-month' => 'This Month', + 'custom' => 'Custom', + ], + ], + + 'response' => [ + 'create-success' => ':name created successfully.', + 'update-success' => ':name updated successfully.', + 'destroy-success'=> ':name deleted successfully.', + 'destroy-failed' => ':name can not be deleted.', + ], + + 'acl' => [ + 'leads' => 'Leads', + 'lead' => 'Lead', + 'quotes' => 'Quotes', + 'mail' => 'Mail', + 'inbox' => 'Inbox', + 'draft' => 'Draft', + 'outbox' => 'Outbox', + 'sent' => 'Sent', + 'trash' => 'Trash', + 'activities' => 'Activities', + 'contacts' => 'Contacts', + 'persons' => 'Persons', + 'organizations' => 'Organizations', + 'products' => 'Products', + 'settings' => 'Settings', + 'groups' => 'Groups', + 'roles' => 'Roles', + 'users' => 'Users', + 'user' => 'User', + 'automation' => 'Automation', + 'attributes' => 'Attributes', + 'pipelines' => 'Pipelines', + 'sources' => 'Sources', + 'types' => 'Types', + 'email-templates' => 'Email Templates', + 'workflows' => 'Workflows', + 'other-settings' => 'Other Settings', + 'tags' => 'Tags', + 'configuration' => 'Configuration', + 'create' => 'Create', + 'edit' => 'Edit', + 'view' => 'View', + 'print' => 'Print', + 'delete' => 'Delete', + 'export' => 'Export', + 'mass-delete' => 'Mass Delete', + ], + + 'common' => [ + 'back' => 'Back', + 'address' => 'Address', + 'country' => 'Country', + 'add_more' => 'Add More', + 'select-country' => 'Please select country', + 'select-users' => 'Select Users', + 'select_rotten_leads' => 'Select Rotten Leads', + 'select-organization' => 'Select Organizations', + 'state' => 'State', + 'select-state' => 'Please select state', + 'city' => 'City', + 'postcode' => 'Postcode', + 'address-validation' => 'The "Address" field is required', + 'work' => 'Work', + 'home' => 'Home', + 'no-result-found' => 'Records not found with same name.', + 'add-as' => 'Add as new', + 'not-available' => 'Not Available', + 'select-options' => 'Select Options', + 'yes' => 'Yes', + 'no' => 'No', + 'delete' => 'Delete', + 'save' => 'Save', + 'locale' => 'Locale', + 'en' => 'English', + 'tr' => 'Türkçe', + 'ar' => 'Arabic', + 'es' => 'Spanish', + 'add-as' => 'Add as new', + 'no-records-found' => 'No Records Found', + 'start-typing' => 'Start typing to search records', + 'select-type' => 'Select Type', + 'select-call' => 'Call', + 'select-meeting' => 'Meeting', + 'select-lunch' => 'Lunch', + 'duplicate-value' => 'The value cannot be duplicate', + 'unauthenticated' => 'Unauthenticated', + 'resource-not-found' => 'Resource not found', + 'forbidden-error' => '403 forbidden Error', + 'internal-server-error' => '500 Internal Server Error', + 'something-went-wrong' => 'Something went wrong, please try again later.', + 'delete-confirm' => 'Do you really want to perform this action?', + 'system_attribute' => 'System', + 'custom_attribute' => 'Custom', + 'select-warehouse' => 'Select Warehouse', + ], + + 'user' => [ + 'account' => [ + 'name' => 'Name', + 'email' => 'Email', + 'password' => 'Password', + 'my_account' => 'My account', + 'update_details' => 'Update Details', + 'current_password' => 'Current password', + 'confirm_password' => 'Confirm password', + 'password-match' => 'Current password does not match.', + 'account-save' => 'Account changes saved successfully.', + 'permission-denied' => 'Permission Denied', + 'remove-image' => 'Remove Image', + 'upload_image_pix' => 'Upload a Profile Image (100px x 100px)', + 'upload_image_format' => 'in PNG or JPG Format', + 'image_upload_message' => 'Only images (.jpeg, .jpg, .png, ..) are allowed.', + ], + ], - 'emails' => [ - 'common' => [ - 'dear' => 'Dear :name', - 'cheers' => 'Cheers,
Team :app_name' - ], + 'emails' => [ + 'common' => [ + 'dear' => 'Dear :name', + 'cheers' => 'Cheers,
Team :app_name', ], + ], - 'errors' => [ - '401' => 'You are not authorized to access this page' - ] - ]; + 'errors' => [ + '401' => 'You are not authorized to access this page', + ], +]; diff --git a/packages/Webkul/Admin/src/Resources/lang/es/app.php b/packages/Webkul/Admin/src/Resources/lang/es/app.php index 0eb53121c..c4dfefef5 100644 --- a/packages/Webkul/Admin/src/Resources/lang/es/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/es/app.php @@ -1,942 +1,943 @@ [ - 'title' => 'Tablero', - 'cards' => 'Tarjetas', - 'column' => 'Columna', - 'done' => 'Realizado', - 'activity' => 'Actividad', - 'activities' => 'Actividades', - 'top_leads' => 'Oportunidades Principales', - 'pipelines' => 'Pipelines', - 'quotes' => 'Presupuestos', - 'emails' => 'Emails', - 'custom_card' => 'Tarjeta Personalizada', - 'customers' => 'Clientes', - 'top_customers' => 'Clientes Principales', - 'leads_started' => 'Oportunidades iniciadas', - 'products' => 'Productos', - 'top_products' => 'Productos Principales', - 'leads_over_time' => 'Oportunidades en el tiempo', - 'no_record_found' => 'No hay registros', - 'week' => 'Semana', + +return [ + 'dashboard' => [ + 'title' => 'Tablero', + 'cards' => 'Tarjetas', + 'column' => 'Columna', + 'done' => 'Realizado', + 'activity' => 'Actividad', + 'activities' => 'Actividades', + 'top_leads' => 'Oportunidades Principales', + 'pipelines' => 'Pipelines', + 'quotes' => 'Presupuestos', + 'emails' => 'Emails', + 'custom_card' => 'Tarjeta Personalizada', + 'customers' => 'Clientes', + 'top_customers' => 'Clientes Principales', + 'leads_started' => 'Oportunidades iniciadas', + 'products' => 'Productos', + 'top_products' => 'Productos Principales', + 'leads_over_time' => 'Oportunidades en el tiempo', + 'no_record_found' => 'No hay registros', + 'week' => 'Semana', + ], + + 'layouts' => [ + 'app-version' => 'Version : :version', + 'dashboard' => 'Tablero', + 'leads' => 'Oportunidades', + 'quotes' => 'Presupuestos', + 'quote' => 'Presupuesto', + 'mail' => [ + 'title' => 'Email', + 'compose' => 'Redactar', + 'inbox' => 'Entrada', + 'draft' => 'Borrador', + 'outbox' => 'Salida', + 'sent' => 'Enviado', + 'trash' => 'Papelera', + 'setting' => 'Ajuste', + ], + 'activities' => 'Actividades', + 'contacts' => 'Contactos', + 'persons' => 'Personas', + 'person' => 'Persona', + 'organizations' => 'Organizaciones', + 'organization' => 'Organización', + 'products' => 'Productos', + 'product' => 'Producto', + 'settings' => 'Ajustes', + 'user' => 'Usuario', + 'user-info' => 'Administre todos los Usuarios y sus privilegios del CRM', + 'groups' => 'Grupos', + 'groups-info' => 'Agregar, editar ó eliminar Grupos del CRM', + 'roles' => 'Roles', + 'role' => 'Role', + 'roles-info' => 'Agregar, editar ó eliminar Roles del CRM', + 'users' => 'Usuarios', + 'users-info' => 'Agregar, editar ó eliminar Usuarios del CRM', + 'lead' => 'Oportunidad', + 'lead-info' => 'Administre todos los ajustes de Oportunidades del CRM', + 'pipelines' => 'Pipelines', + 'pipelines-info' => 'Agregar, editar ó eliminar Pipelines del CRM', + 'sources' => 'Orígenes', + 'sources-info' => 'Agregar, editar ó eliminar Orígenes del CRM', + 'types' => 'Tipos', + 'types-info' => 'Agregar, editar ó eliminar Tipos del CRM', + 'automation' => 'Automatización', + 'automation-info' => 'Administre todos los ajustes de Automatización del CRM', + 'attributes' => 'Atributos', + 'attribute' => 'Atributo', + 'attributes-info' => 'Agregar, editar ó eliminar Atributos del CRM', + 'email-templates' => 'Plantillas de Emails', + 'email' => 'Email', + 'email-templates-info' => 'Agregar, editar ó eliminar Plantillas de Emails del CRM', + 'workflows' => 'Flujos de Trabajo', + 'workflows-info' => 'Agregar, editar ó eliminar Flujos de Trabajo del CRM', + 'other-settings' => 'Otros Ajustes', + 'other-settings-info' => 'Administre todos los ajustes adicionales del CRM', + 'tags' => 'Etiquetas', + 'tags-info' => 'Agregar, editar ó eliminar Etiquetas del CRM', + 'my-account' => 'Mi Cuenta', + 'sign-out' => 'Cerrar Sesión', + 'back' => 'Atrás', + 'name' => 'Nombre', + 'configuration' => 'Configuración', + 'activities' => 'Actividades', + 'howdy' => 'Hurra!', + 'warehouses' => 'Almacenes', + 'warehouse' => 'Almacén', + 'warehouses-info' => 'Agregar, editar o eliminar almacenes desde CRM', + ], + + 'contacts' => [ + 'organizations' => [ + 'title' => 'Organizaciones', + 'organization' => 'Organización', + 'create-title' => 'Crear Organización', + 'edit-title' => 'Editar Organización', + 'save-btn-title' => 'Guardar Organización', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'create-success' => 'Organización creada con éxito.', + 'update-success' => 'Organización actualizada con éxito.', + 'delete-success' => 'Organización eliminada con éxito.', + 'delete-failed' => 'Organización no pudo ser eliminada.', ], - 'layouts' => [ - 'app-version' => 'Version : :version', - 'dashboard' => 'Tablero', - 'leads' => 'Oportunidades', - 'quotes' => 'Presupuestos', - 'quote' => 'Presupuesto', - 'mail' => [ - 'title' => 'Email', - 'compose' => 'Redactar', - 'inbox' => 'Entrada', - 'draft' => 'Borrador', - 'outbox' => 'Salida', - 'sent' => 'Enviado', - 'trash' => 'Papelera', - 'setting' => 'Ajuste', - ], - 'activities' => 'Actividades', - 'contacts' => 'Contactos', - 'persons' => 'Personas', - 'person' => 'Persona', - 'organizations' => 'Organizaciones', - 'organization' => 'Organización', - 'products' => 'Productos', - 'product' => 'Producto', - 'settings' => 'Ajustes', - 'user' => 'Usuario', - 'user-info' => 'Administre todos los Usuarios y sus privilegios del CRM', - 'groups' => 'Grupos', - 'groups-info' => 'Agregar, editar ó eliminar Grupos del CRM', - 'roles' => 'Roles', - 'role' => 'Role', - 'roles-info' => 'Agregar, editar ó eliminar Roles del CRM', - 'users' => 'Usuarios', - 'users-info' => 'Agregar, editar ó eliminar Usuarios del CRM', - 'lead' => 'Oportunidad', - 'lead-info' => 'Administre todos los ajustes de Oportunidades del CRM', - 'pipelines' => 'Pipelines', - 'pipelines-info' => 'Agregar, editar ó eliminar Pipelines del CRM', - 'sources' => 'Orígenes', - 'sources-info' => 'Agregar, editar ó eliminar Orígenes del CRM', - 'types' => 'Tipos', - 'types-info' => 'Agregar, editar ó eliminar Tipos del CRM', - 'automation' => 'Automatización', - 'automation-info' => 'Administre todos los ajustes de Automatización del CRM', - 'attributes' => 'Atributos', - 'attribute' => 'Atributo', - 'attributes-info' => 'Agregar, editar ó eliminar Atributos del CRM', - 'email-templates' => 'Plantillas de Emails', - 'email' => 'Email', - 'email-templates-info' => 'Agregar, editar ó eliminar Plantillas de Emails del CRM', - 'workflows' => 'Flujos de Trabajo', - 'workflows-info' => 'Agregar, editar ó eliminar Flujos de Trabajo del CRM', - 'other-settings' => 'Otros Ajustes', - 'other-settings-info' => 'Administre todos los ajustes adicionales del CRM', - 'tags' => 'Etiquetas', - 'tags-info' => 'Agregar, editar ó eliminar Etiquetas del CRM', - 'my-account' => 'Mi Cuenta', - 'sign-out' => 'Cerrar Sesión', - 'back' => 'Atrás', - 'name' => 'Nombre', - 'configuration' => 'Configuración', - 'activities' => 'Actividades', - 'howdy' => 'Hurra!', - 'warehouses' => 'Almacenes', - 'warehouse' => 'Almacén', - 'warehouses-info' => 'Agregar, editar o eliminar almacenes desde CRM', + 'persons' => [ + 'title' => 'Personas', + 'person' => 'Persona', + 'create-title' => 'Crear Persona', + 'edit-title' => 'Editar Persona', + 'save-btn-title' => 'Guardar Persona', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'create-success' => 'Persona creada con éxito.', + 'update-success' => 'Persona actualizada con éxito.', + 'delete-success' => 'Persona eliminada con éxito.', + 'delete-failed' => 'Persona no pudo ser eliminada.', + ], + ], + + 'leads' => [ + 'title' => 'Oportunidades', + 'lead' => 'Oportunidad', + 'create-title' => 'Crear Oportunidad', + 'edit-title' => 'Editar Oportunidad', + 'save-btn-title' => 'Guardar Oportunidad', + 'save' => 'Guardar', + 'upload' => 'Cargar', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'no-lead' => 'Sin Oportunidad', + 'lead-source-name' => 'Oportunidad Origen ', + 'details' => 'Detalles', + 'rotten-info' => 'Oportunidad expirada durante :days dia(s)', + 'stage' => 'Etapa', + 'new' => 'Nuevo', + 'won-lost' => 'Ganada/Perdida', + 'won' => 'Ganada', + 'lost' => 'Perdida', + 'change-stage' => 'Cambiar Etapa', + 'lost-reason' => 'Razón Perdida', + 'won-value' => 'Ganancia', + 'created-date:' => 'Creado Fecha:', + 'closed-date:' => 'Cerrado Fecha:', + 'closed-date' => 'Cerrado Fecha', + 'expected-close-date:' => 'Cierre Previsto:', + 'contact-person' => 'Persona Contacto', + 'add-tag' => 'Agregar Etiqueta', + 'search-tag' => 'Buscar Etiqueta', + 'name' => 'Nombre', + 'color' => 'Color', + 'email' => 'Email', + 'contact-numbers' => 'Teléfonos Contacto', + 'organization' => 'Organización', + 'address' => 'Dirección', + 'products' => 'Productos', + 'item' => 'Articulo', + 'price' => 'Precio', + 'quantity' => 'Cantidad', + 'amount' => 'Monto', + 'create-success' => 'Oportunidad creada con éxito.', + 'update-success' => 'Oportunidad actualizada con éxito.', + 'delete-success' => 'Oportunidad eliminada con éxito.', + 'delete-failed' => 'Oportunidad no pudo ser eliminada', + 'product-quantity-required' => 'La cantidad del producto es obligatoria cuando el ID del producto está presente.', + 'product-price-required' => 'El precio del producto es obligatorio cuando el ID del producto está presente.', + 'product-name-required' => 'El nombre del producto es obligatorio cuando el ID del producto está presente.', + 'selected-product-not-exist' => 'El ID del producto seleccionado no existe.', + 'note' => 'Nota', + 'activity' => 'Actividad', + 'title-control' => 'Titulo', + 'call' => 'Llamada', + 'meeting' => 'Reunion', + 'lunch' => 'Almuerzo', + 'file' => 'Archivo', + 'quote' => 'Presupuesto', + 'create-quote' => 'Crear Presupuesto', + 'type' => 'Tipo', + 'description' => 'Descripción', + 'schedule' => 'Agenda', + 'from' => 'De', + 'to' => 'A', + 'location' => 'Ubicación', + 'participants' => 'Participantes', + 'participant-info' => 'Introduzca el nombre', + 'users' => 'Usuarios', + 'persons' => 'Personas', + 'cc' => 'Cc', + 'bcc' => 'Bcc', + 'email-placeholder' => 'Presione enter para agregar emails', + 'file' => 'Archivo', + 'subject' => 'Asunto', + 'reply' => 'Responder', + 'send' => 'Enviar', + 'all' => 'Todos', + 'notes' => 'Notas', + 'select-type' => 'Seleccionar Tipo', + 'calls' => 'Llamadas', + 'meetings' => 'Reuniones', + 'lunches' => 'Almuerzos', + 'emails' => 'Emails', + 'files' => 'Archivos', + 'sales-owner' => 'Encargado Venta', + 'person' => 'Persona', + 'expired-at' => 'Expirado en', + 'sub-total' => 'Sub-Total', + 'discount' => 'Descuento', + 'tax' => 'Impuesto', + 'adjustment' => 'Ajuste', + 'grand-total' => 'Total General', + 'actions' => 'Acciones', + 'planned' => 'Planificado', + 'done' => 'Realizado', + 'edit' => 'Editar', + 'view' => 'Ver', + 'unlink' => 'Desvincular', + 'mark-as-done' => 'Marcar Realizado', + 'remove' => 'Remover', + 'export-to-pdf' => 'Exportar a PDF', + 'empty-planned-activities' => 'No tiene actividades planificadas.', + 'empty-done-activities' => 'No tiene actividades realizadas.', + 'note-added' => 'Nota agregada', + 'call-scheduled' => 'Llamada agendada en :from - :to', + 'meeting-scheduled' => 'Reunion agendada en :from - :to', + 'lunch-scheduled' => 'Almuerzo agendado en :from - :to', + 'file-added' => 'Archivo agregado', + 'quote-destroy-success' => 'Presupuesto eliminado con éxito.', + 'tag-create-success' => 'Etiqueta agregada con éxito.', + 'tag-destroy-success' => 'Etiqueta eliminada con éxito.', + 'edit' => 'Editar', + ], + + 'quotes' => [ + 'title' => 'Presupuestos', + 'quote' => 'Presupuesto', + 'create-title' => 'Crear Presupuesto', + 'edit-title' => 'Editar Presupuesto', + 'save-btn-title' => 'Guardar Presupuesto', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'quote-information' => 'Información de Presupuesto', + 'lead' => 'Oportunidad', + 'address-information' => 'Información de Dirección', + 'quote-items' => 'Presupuestar Artículos', + 'name' => 'Nombre', + 'quantity' => 'Cantidad', + 'price' => 'Precio', + 'amount' => 'Monto', + 'discount' => 'Descuento', + 'tax' => 'Impuesto', + 'total' => 'Total', + 'sub-total' => 'Sub-Total', + 'adjustment' => 'Ajuste', + 'grand-total' => 'Total General', + 'create-success' => 'Presupuesto creado con éxito.', + 'update-success' => 'Presupuesto actualizado con éxito.', + 'delete-success' => 'Presupuesto eliminado con éxito.', + 'delete-failed' => 'Presupuesto no pudo ser eliminado.', + 'quote-id' => 'Presupuesto Id', + 'quote-date' => 'Presupuesto Fecha', + 'valid-until' => 'Valido hasta', + 'sales-person' => 'Vendedor', + 'bill-to' => 'Facturar A', + 'ship-to' => 'Enviar A', + 'sku' => 'Sku', + 'product-name' => 'Nombre de Producto', + 'price' => 'Precio', + 'amount' => 'Monto', + 'quantity' => 'Cantidad', + 'sub-total' => 'Sub-Total', + 'tax' => 'Impuesto', + 'adjustment' => 'Ajuste', + 'grand-total' => 'Total General', + 'search' => 'Buscar..', + ], + + 'mail' => [ + 'title' => 'Correo - :type', + 'compose' => 'Redactar', + 'inbox' => 'Entrada', + 'draft' => 'Borrador', + 'outbox' => 'Salida', + 'sent' => 'Enviado', + 'trash' => 'Papelera', + 'setting' => 'Ajuste', + 'total' => 'Total', + 'link-mail' => 'Vincular Correo', + 'link-contact' => 'Vincular Contacto', + 'linked-contact' => 'Contacto Vinculado', + 'add-to-existing-contact' => 'Agregar a Contacto Existente', + 'create-new-contact' => 'Crear nuevo Contacto', + 'search-contact' => 'Buscar un Contacto', + 'link-lead' => 'Vincular Oportunidad', + 'linked-lead' => 'Oportunidad Vinculada', + 'search-lead' => 'Buscar Oportunidad', + 'link-to-existing-lead' => 'Vincular a Existente', + 'add-new-lead' => 'Agregar nueva Oportunidad', + 'send' => 'Enviar', + 'back' => 'Atrás', + 'discard' => 'Descartar', + 'from-' => 'De - ', + 'to-' => 'A - ', + 'cc-' => 'Cc - ', + 'bcc-' => 'Bcc - ', + 'reply' => 'Responder', + 'reply-all' => 'Responder a Todos', + 'forward' => 'Reenviar', + 'delete' => 'Eliminar', + 'destroy-success' => 'Emails seleccionados eliminados con éxito.', + 'save-to-draft' => 'Guardar como Borrador', + 'create-success' => 'Email enviado con éxito.', + 'update-success' => 'Email actualizado con éxito.', + 'saved-to-draft' => 'Email guardado como borrador.', + 'delete-success' => 'Email eliminado con éxito.', + 'delete-failed' => 'Email no pudo ser eliminado.', + 'mass-update-success' => 'Emails actualizado con éxito.', + + 'forget-password' => [ + 'subject' => 'Restablecer Contraseña de Usuario', + 'dear' => 'Estimado :name', + 'reset-password' => 'Restablecer Contraseña', + 'info' => 'Ha recibido este email porque hemos recibido una solicitud para Restablecer la Contraseña de su cuenta', + 'final-summary' => 'Si no ha solicitado Restablecer su Contraseña, no se requiere ninguna acción posterior', + 'thanks' => 'Gracias!', ], - 'contacts' => [ - 'organizations' => [ - 'title' => 'Organizaciones', - 'organization' => 'Organización', - 'create-title' => 'Crear Organización', - 'edit-title' => 'Editar Organización', - 'save-btn-title' => 'Guardar Organización', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'create-success' => 'Organización creada con éxito.', - 'update-success' => 'Organización actualizada con éxito.', - 'delete-success' => 'Organización eliminada con éxito.', - 'delete-failed' => 'Organización no pudo ser eliminada.', - ], - - 'persons' => [ - 'title' => 'Personas', - 'person' => 'Persona', - 'create-title' => 'Crear Persona', - 'edit-title' => 'Editar Persona', - 'save-btn-title' => 'Guardar Persona', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'create-success' => 'Persona creada con éxito.', - 'update-success' => 'Persona actualizada con éxito.', - 'delete-success' => 'Persona eliminada con éxito.', - 'delete-failed' => 'Persona no pudo ser eliminada.', - ], + 'user' => [ + 'create-subject' => 'Has sido agregado como miembro.', + 'create-body' => 'Felicidades! Ahora eres miembro de nuestro equipo.', + ], + ], + + 'activities' => [ + 'title' => 'Actividades', + 'title-control' => 'Titulo', + 'edit-title' => 'Editar Actividad', + 'save-btn-title' => 'Guardar Actividad', + 'back' => 'Atrás', + 'type' => 'Tipo', + 'note' => 'Nota', + 'call' => 'Llamada', + 'meeting' => 'Reunion', + 'lunch' => 'Almuerzo', + 'file' => 'Archivo', + 'description' => 'Descripción', + 'schedule' => 'Agenda', + 'from' => 'De', + 'to' => 'A', + 'location' => 'Ubicación', + 'participants' => 'Participantes', + 'lead' => 'Oportunidad', + 'duration-overlapping' => 'Participantes tienen otra reunion a esta hora. ¿Desea continuar?', + 'file-upload-success' => 'Archivo(s) cargado con éxito.', + 'file-upload-error' => 'Archivo(s) no puede ser cargado.', + 'create-success' => ':type creado con éxito.', + 'update-success' => ':type actualizado con éxito.', + 'mass-update-success' => 'Actividades actualizadas con éxito.', + 'mass-update-failed' => 'Actividades no pudieron ser actualizadas.', + 'destroy-success' => ':type eliminado con éxito.', + 'delete-failed' => ':type no se pudo eliminar.', + 'typing-placeholder' => 'Ingrese el nombre', + ], + + 'products' => [ + 'title' => 'Productos', + 'product' => 'Producto', + 'create-title' => 'Crear Producto', + 'edit-title' => 'Editar Producto', + 'save-btn-title' => 'Guardar Producto', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'information' => 'Información', + 'inventories' => 'Inventarios', + 'location' => 'Ubicación', + 'search' => 'Buscar..', + 'name' => 'Nombre', + 'save' => 'Guardar', + 'in-stock' => 'En stock', + 'allocated' => 'Asignado', + 'create-success' => 'Producto creado con éxito.', + 'update-success' => 'Producto actualizado con éxito.', + 'delete-success' => 'Producto eliminado con éxito.', + 'delete-failed' => 'Producto no pudo ser eliminado.', + ], + + 'sessions' => [ + 'login' => [ + 'title' => 'Iniciar Sesión', + 'welcome' => 'Bienvenido Nuevamente', + 'email' => 'Email', + 'password' => 'Contraseña', + 'login' => 'Inicio de Sesión', + 'forgot-password' => '¿Olvido su contraseña?', + 'login-error' => 'Por favor revise sus credenciales e inténtelo nuevamente.', + 'activate-warning' => 'Tu cuenta aun no ha sido activada, por favor contacte al administrador.', ], - 'leads' => [ - 'title' => 'Oportunidades', - 'lead' => 'Oportunidad', - 'create-title' => 'Crear Oportunidad', - 'edit-title' => 'Editar Oportunidad', - 'save-btn-title' => 'Guardar Oportunidad', - 'save' => 'Guardar', - 'upload' => 'Cargar', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'no-lead' => 'Sin Oportunidad', - 'lead-source-name' => 'Oportunidad Origen ', - 'details' => 'Detalles', - 'rotten-info' => 'Oportunidad expirada durante :days dia(s)', - 'stage' => 'Etapa', - 'new' => 'Nuevo', - 'won-lost' => 'Ganada/Perdida', - 'won' => 'Ganada', - 'lost' => 'Perdida', - 'change-stage' => 'Cambiar Etapa', - 'lost-reason' => 'Razón Perdida', - 'won-value' => 'Ganancia', - 'created-date:' => 'Creado Fecha:', - 'closed-date:' => 'Cerrado Fecha:', - 'closed-date' => 'Cerrado Fecha', - 'expected-close-date:' => 'Cierre Previsto:', - 'contact-person' => 'Persona Contacto', - 'add-tag' => 'Agregar Etiqueta', - 'search-tag' => 'Buscar Etiqueta', - 'name' => 'Nombre', - 'color' => 'Color', - 'email' => 'Email', - 'contact-numbers' => 'Teléfonos Contacto', - 'organization' => 'Organización', - 'address' => 'Dirección', - 'products' => 'Productos', - 'item' => 'Articulo', - 'price' => 'Precio', - 'quantity' => 'Cantidad', - 'amount' => 'Monto', - 'create-success' => 'Oportunidad creada con éxito.', - 'update-success' => 'Oportunidad actualizada con éxito.', - 'delete-success' => 'Oportunidad eliminada con éxito.', - 'delete-failed' => 'Oportunidad no pudo ser eliminada', - 'product-quantity-required' => 'La cantidad del producto es obligatoria cuando el ID del producto está presente.', - 'product-price-required' => 'El precio del producto es obligatorio cuando el ID del producto está presente.', - 'product-name-required' => 'El nombre del producto es obligatorio cuando el ID del producto está presente.', - 'selected-product-not-exist' => 'El ID del producto seleccionado no existe.', - 'note' => 'Nota', - 'activity' => 'Actividad', - 'title-control' => 'Titulo', - 'call' => 'Llamada', - 'meeting' => 'Reunion', - 'lunch' => 'Almuerzo', - 'file' => 'Archivo', - 'quote' => 'Presupuesto', - 'create-quote' => 'Crear Presupuesto', - 'type' => 'Tipo', - 'description' => 'Descripción', - 'schedule' => 'Agenda', - 'from' => 'De', - 'to' => 'A', - 'location' => 'Ubicación', - 'participants' => 'Participantes', - 'participant-info' => 'Introduzca el nombre', - 'users' => 'Usuarios', - 'persons' => 'Personas', - 'cc' => 'Cc', - 'bcc' => 'Bcc', - 'email-placeholder' => 'Presione enter para agregar emails', - 'file' => 'Archivo', - 'subject' => 'Asunto', - 'reply' => 'Responder', - 'send' => 'Enviar', - 'all' => 'Todos', - 'notes' => 'Notas', - 'select-type' => 'Seleccionar Tipo', - 'calls' => 'Llamadas', - 'meetings' => 'Reuniones', - 'lunches' => 'Almuerzos', - 'emails' => 'Emails', - 'files' => 'Archivos', - 'sales-owner' => 'Encargado Venta', - 'person' => 'Persona', - 'expired-at' => 'Expirado en', - 'sub-total' => 'Sub-Total', - 'discount' => 'Descuento', - 'tax' => 'Impuesto', - 'adjustment' => 'Ajuste', - 'grand-total' => 'Total General', - 'actions' => 'Acciones', - 'planned' => 'Planificado', - 'done' => 'Realizado', - 'edit' => 'Editar', - 'view' => 'Ver', - 'unlink' => 'Desvincular', - 'mark-as-done' => 'Marcar Realizado', - 'remove' => 'Remover', - 'export-to-pdf' => 'Exportar a PDF', - 'empty-planned-activities' => 'No tiene actividades planificadas.', - 'empty-done-activities' => 'No tiene actividades realizadas.', - 'note-added' => 'Nota agregada', - 'call-scheduled' => 'Llamada agendada en :from - :to', - 'meeting-scheduled' => 'Reunion agendada en :from - :to', - 'lunch-scheduled' => 'Almuerzo agendado en :from - :to', - 'file-added' => 'Archivo agregado', - 'quote-destroy-success' => 'Presupuesto eliminado con éxito.', - 'tag-create-success' => 'Etiqueta agregada con éxito.', - 'tag-destroy-success' => 'Etiqueta eliminada con éxito.', - 'edit' => 'Editar', + 'forgot-password' => [ + 'title' => '¿Olvido su contraseña?', + 'email' => 'Email', + 'send-reset-password-email' => 'Enviar email de Reinicio de Contraseña', + 'reset-link-sent' => 'Le hemos enviado por correo un enlace para restablecer su contraseña.', + 'email-not-exist' => 'No hemos podido encontrar un usuario con esta dirección de correo.', + 'back-to-login' => 'Volver a Inicio de Sesión', ], - 'quotes' => [ - 'title' => 'Presupuestos', - 'quote' => 'Presupuesto', - 'create-title' => 'Crear Presupuesto', - 'edit-title' => 'Editar Presupuesto', - 'save-btn-title' => 'Guardar Presupuesto', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'quote-information' => 'Información de Presupuesto', - 'lead' => 'Oportunidad', - 'address-information' => 'Información de Dirección', - 'quote-items' => 'Presupuestar Artículos', + 'reset-password' => [ + 'title' => 'Restablecer Contraseña', + 'email' => 'Email', + 'password' => 'Contraseña', + 'confirm-password' => 'Confirmar Contraseña', + 'reset-password' => 'Restablecer Contraseña', + ], + ], + + 'settings' => [ + 'title' => 'Ajustes', + + 'groups' => [ + 'title' => 'Grupos', + 'group' => 'Grupo', + 'edit-title' => 'Editar Grupo', + 'description' => 'Descripción', + 'create-title' => 'Crear Grupo', + 'save-btn-title' => 'Guardar Grupo', + 'update-btn-title' => 'Actualizar Grupo', + 'create-success' => 'Grupo creado con éxito.', + 'update-success' => 'Grupo actualizado con éxito.', + 'destroy-success' => 'Grupo eliminado con éxito.', + 'delete-failed' => 'Grupo no pudo ser eliminado.', + 'user-define-error' => 'No puede eliminar Grupo del sistema.', + ], + + 'roles' => [ + 'title' => 'Roles', + 'role' => 'Rol', + 'edit-title' => 'Editar Rol', + 'description' => 'Descripción', + 'create-title' => 'Crear Rol', + 'permission_type' => 'Permiso tipo', + 'custom' => 'Personalizado', + 'all' => 'Todos', + 'save-btn-title' => 'Guardar Rol', + 'update-btn-title' => 'Actualizar Rol', + 'create-success' => 'Rol creado con éxito.', + 'update-success' => 'Rol actualizado con éxito.', + 'delete-success' => 'Rol eliminado con éxito.', + 'delete-failed' => 'Rol no pudo ser eliminado.', + 'user-define-error' => 'No puede eliminar Rol de sistema.', + 'last-delete-error' => 'Se requiere al menos un rol.', + 'current-role-delete-error' => 'No se puede eliminar el rol asignado al usuario actual.', + 'being-used' => 'Rol no puede eliminarse, se encuentra en uso por un usuario administrador.', + ], + + 'users' => [ + 'title' => 'Usuarios', + 'create-title' => 'Crear Usuario', + 'edit-title' => 'Editar Usuario', + 'general' => 'General', + 'permission' => 'Permisos', 'name' => 'Nombre', - 'quantity' => 'Cantidad', - 'price' => 'Precio', - 'amount' => 'Monto', - 'discount' => 'Descuento', - 'tax' => 'Impuesto', - 'total' => 'Total', - 'sub-total' => 'Sub-Total', - 'adjustment' => 'Ajuste', - 'grand-total' => 'Total General', - 'create-success' => 'Presupuesto creado con éxito.', - 'update-success' => 'Presupuesto actualizado con éxito.', - 'delete-success' => 'Presupuesto eliminado con éxito.', - 'delete-failed' => 'Presupuesto no pudo ser eliminado.', - 'quote-id' => 'Presupuesto Id', - 'quote-date' => 'Presupuesto Fecha', - 'valid-until' => 'Valido hasta', - 'sales-person' => 'Vendedor', - 'bill-to' => 'Facturar A', - 'ship-to' => 'Enviar A', - 'sku' => 'Sku', - 'product-name' => 'Nombre de Producto', - 'price' => 'Precio', - 'amount' => 'Monto', - 'quantity' => 'Cantidad', - 'sub-total' => 'Sub-Total', - 'tax' => 'Impuesto', - 'adjustment' => 'Ajuste', - 'grand-total' => 'Total General', - 'search' => 'Buscar..' + 'email' => 'Email', + 'back' => 'Atrás', + 'password' => 'Contraseña', + 'groups' => 'Grupos', + 'role' => 'Rol', + 'view-permission' => 'Ver Permisos', + 'global' => 'Global', + 'group' => 'Grupo', + 'individual' => 'Individual', + 'status' => 'Estatus', + 'save-btn-title' => 'Guardar Usuario', + 'confirm_password' => 'Confirmar Contraseña', + 'create-success' => 'Usuario creado con éxito.', + 'update-success' => 'Usuario actualizado con éxito.', + 'delete-success' => 'Usuario eliminado con éxito.', + 'delete-failed' => 'Usuario no pudo ser eliminado.', + 'user-define-error' => 'No puede eliminar Usuario del sistema.', + 'last-delete-error' => 'Se requiere al menos un usuario.', + 'mass-update-success' => 'Usuarios actualizados con éxito.', + 'mass-update-failed' => 'Usuarios no pudieron ser actualizados.', + 'mass-delete-success' => 'Usuarios eliminados con éxito', + 'mass-delete-failed' => 'Usuarios no pudieron ser eliminados.', ], - 'mail' => [ - 'title' => 'Correo - :type', - 'compose' => 'Redactar', - 'inbox' => 'Entrada', - 'draft' => 'Borrador', - 'outbox' => 'Salida', - 'sent' => 'Enviado', - 'trash' => 'Papelera', - 'setting' => 'Ajuste', - 'total' => 'Total', - 'link-mail' => 'Vincular Correo', - 'link-contact' => 'Vincular Contacto', - 'linked-contact' => 'Contacto Vinculado', - 'add-to-existing-contact' => 'Agregar a Contacto Existente', - 'create-new-contact' => 'Crear nuevo Contacto', - 'search-contact' => 'Buscar un Contacto', - 'link-lead' => 'Vincular Oportunidad', - 'linked-lead' => 'Oportunidad Vinculada', - 'search-lead' => 'Buscar Oportunidad', - 'link-to-existing-lead' => 'Vincular a Existente', - 'add-new-lead' => 'Agregar nueva Oportunidad', - 'send' => 'Enviar', - 'back' => 'Atrás', - 'discard' => 'Descartar', - 'from-' => 'De - ', - 'to-' => 'A - ', - 'cc-' => 'Cc - ', - 'bcc-' => 'Bcc - ', - 'reply' => 'Responder', - 'reply-all' => 'Responder a Todos', - 'forward' => 'Reenviar', - 'delete' => 'Eliminar', - 'destroy-success' => 'Emails seleccionados eliminados con éxito.', - 'save-to-draft' => 'Guardar como Borrador', - 'create-success' => 'Email enviado con éxito.', - 'update-success' => 'Email actualizado con éxito.', - 'saved-to-draft' => 'Email guardado como borrador.', - 'delete-success' => 'Email eliminado con éxito.', - 'delete-failed' => 'Email no pudo ser eliminado.', - 'mass-update-success' => 'Emails actualizado con éxito.', - - 'forget-password' => [ - 'subject' => 'Restablecer Contraseña de Usuario', - 'dear' => 'Estimado :name', - 'reset-password' => 'Restablecer Contraseña', - 'info' => 'Ha recibido este email porque hemos recibido una solicitud para Restablecer la Contraseña de su cuenta', - 'final-summary' => 'Si no ha solicitado Restablecer su Contraseña, no se requiere ninguna acción posterior', - 'thanks' => 'Gracias!' - ], - - 'user' => [ - 'create-subject' => 'Has sido agregado como miembro.', - 'create-body' => 'Felicidades! Ahora eres miembro de nuestro equipo.', - ], + 'attributes' => [ + 'title' => 'Atributos', + 'attribute' => 'Atributo', + 'create-title' => 'Crear Atributo', + 'edit-title' => 'Editar Atributo', + 'save-btn-title' => 'Guardar Atributo', + 'back' => 'Atrás', + 'code' => 'Código', + 'name' => 'Nombre', + 'type' => 'Tipo', + 'text' => 'Texto', + 'textarea' => 'Caja-Texto', + 'price' => 'Precio', + 'boolean' => 'Booleano', + 'select' => 'Selección', + 'multiselect' => 'Multi-Selección', + 'email' => 'Email', + 'address' => 'Dirección', + 'phone' => 'Teléfono', + 'datetime' => 'FechaHora', + 'date' => 'Fecha', + 'image' => 'Imagen', + 'file' => 'Archivo', + 'entity-type' => 'Entidad Tipo', + 'lookup' => 'Búsqueda', + 'entity_type' => 'Entidad Tipo', + 'lookup-type' => 'Búsqueda Tipo', + 'checkbox' => 'Caja-Verificación', + 'is_required' => 'Requerido', + 'is_unique' => 'Único', + 'yes' => 'Si', + 'no' => 'No', + 'input_validation' => 'Validación de Entrada', + 'number' => 'Numero', + 'decimal' => 'Decimal', + 'email' => 'Email', + 'url' => 'Url', + 'options-type' => 'Opción Tipo', + 'options' => 'Opciones', + 'sort-order' => 'Ordenar', + 'add-option-btn-title' => 'Agregar Opción', + 'create-success' => 'Atributo creado con éxito.', + 'update-success' => 'Atributo actualizado con éxito.', + 'update-error' => 'No se pudo actualizar el atributo.', + 'delete-success' => 'Atributo eliminado con éxito.', + 'delete-failed' => 'Atributo no pudo ser eliminado.', + 'user-define-error' => 'No puede eliminar Atributo del sistema.', + 'mass-delete-failed' => 'Atributos no pudieron ser eliminados.', ], - 'activities' => [ - 'title' => 'Actividades', - 'title-control' => 'Titulo', - 'edit-title' => 'Editar Actividad', - 'save-btn-title' => 'Guardar Actividad', + 'pipelines' => [ + 'title' => 'Pipelines', + 'organization' => 'Pipeline', + 'create-title' => 'Crear Pipeline', + 'edit-title' => 'Editar Pipeline', + 'save-btn-title' => 'Guardar Pipeline', 'back' => 'Atrás', - 'type' => 'Tipo', - 'note' => 'Nota', - 'call' => 'Llamada', - 'meeting' => 'Reunion', - 'lunch' => 'Almuerzo', - 'file' => 'Archivo', - 'description' => 'Descripción', - 'schedule' => 'Agenda', - 'from' => 'De', - 'to' => 'A', - 'location' => 'Ubicación', - 'participants' => 'Participantes', - 'lead' => 'Oportunidad', - 'duration-overlapping' => 'Participantes tienen otra reunion a esta hora. ¿Desea continuar?', - 'file-upload-success' => 'Archivo(s) cargado con éxito.', - 'file-upload-error' => 'Archivo(s) no puede ser cargado.', - 'create-success' => ':type creado con éxito.', - 'update-success' => ':type actualizado con éxito.', - 'mass-update-success' => 'Actividades actualizadas con éxito.', - 'mass-update-failed' => 'Actividades no pudieron ser actualizadas.', - 'destroy-success' => ':type eliminado con éxito.', - 'delete-failed' => ':type no se pudo eliminar.', - 'typing-placeholder' => 'Ingrese el nombre', + 'cancel' => 'Cancelar', + 'name' => 'Nombre', + 'rotting-days' => 'Dias Expiración', + 'is-default' => 'Marcar como Predeterminada', + 'probability' => 'Probabilidad (%)', + 'add-stage-btn-title' => 'Agregar Etapa', + 'new-stage' => 'Nuevo', + 'won-stage' => 'Perdido', + 'lost-stage' => 'Ganado', + 'duplicate-name' => 'El campo "Nombre" no puede estar repetido', + 'create-success' => 'Pipeline creado con éxito.', + 'update-success' => 'Pipeline actualizado con éxito.', + 'delete-success' => 'Pipeline eliminado con éxito.', + 'delete-failed' => 'Pipeline no pudo ser eliminado.', + 'default-delete-error' => 'No se puede eliminar el Pipeline predeterminado.', ], - 'products' => [ - 'title' => 'Productos', - 'product' => 'Producto', - 'create-title' => 'Crear Producto', - 'edit-title' => 'Editar Producto', - 'save-btn-title' => 'Guardar Producto', + 'sources' => [ + 'title' => 'Orígenes', + 'organization' => 'Origan', + 'create-title' => 'Crear Origen', + 'edit-title' => 'Editar Origen', + 'save-btn-title' => 'Guardar Origen', 'back' => 'Atrás', 'cancel' => 'Cancelar', - 'information' => 'Información', - 'inventories' => 'Inventarios', - 'location' => 'Ubicación', - 'search' => 'Buscar..', - 'name' => 'Nombre', - 'save' => 'Guardar', - 'in-stock' => 'En stock', - 'allocated' => 'Asignado', - 'create-success' => 'Producto creado con éxito.', - 'update-success' => 'Producto actualizado con éxito.', - 'delete-success' => 'Producto eliminado con éxito.', - 'delete-failed' => 'Producto no pudo ser eliminado.', + 'create-success' => 'Origen creado con éxito.', + 'name-exists' => 'Ya existe un Origen con igual nombre.', + 'update-success' => 'Origen actualizado con éxito.', + 'delete-success' => 'Origen eliminado con éxito.', + 'delete-failed' => 'Origen no pudo ser eliminado.', ], - 'sessions' => [ - 'login' => [ - 'title' => 'Iniciar Sesión', - 'welcome' => 'Bienvenido Nuevamente', - 'email' => 'Email', - 'password' => 'Contraseña', - 'login' => 'Inicio de Sesión', - 'forgot-password' => '¿Olvido su contraseña?', - 'login-error' => 'Por favor revise sus credenciales e inténtelo nuevamente.', - 'activate-warning' => 'Tu cuenta aun no ha sido activada, por favor contacte al administrador.', - ], - - 'forgot-password' => [ - 'title' => '¿Olvido su contraseña?', - 'email' => 'Email', - 'send-reset-password-email' => 'Enviar email de Reinicio de Contraseña', - 'reset-link-sent' => 'Le hemos enviado por correo un enlace para restablecer su contraseña.', - 'email-not-exist' => "No hemos podido encontrar un usuario con esta dirección de correo.", - 'back-to-login' => 'Volver a Inicio de Sesión' - ], - - 'reset-password' => [ - 'title' => 'Restablecer Contraseña', - 'email' => 'Email', - 'password' => 'Contraseña', - 'confirm-password' => 'Confirmar Contraseña', - 'reset-password' => 'Restablecer Contraseña' - ] + 'types' => [ + 'title' => 'Tipos', + 'organization' => 'Tipo', + 'create-title' => 'Crear Tipo', + 'edit-title' => 'Editar Tipo', + 'save-btn-title' => 'Guardar Tipo', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'create-success' => 'Tipo creado con éxito.', + 'name-exists' => 'Ya existe un Tipo con igual nombre.', + 'update-success' => 'Tipo actualizado con éxito.', + 'delete-success' => 'Tipo eliminado con éxito.', + 'delete-failed' => 'Tipo no pudo ser eliminado.', ], - 'settings' => [ - 'title' => 'Ajustes', - - 'groups' => [ - 'title' => 'Grupos', - 'group' => 'Grupo', - 'edit-title' => 'Editar Grupo', - 'description' => 'Descripción', - 'create-title' => 'Crear Grupo', - 'save-btn-title' => 'Guardar Grupo', - 'update-btn-title' => 'Actualizar Grupo', - 'create-success' => 'Grupo creado con éxito.', - 'update-success' => 'Grupo actualizado con éxito.', - 'destroy-success' => 'Grupo eliminado con éxito.', - 'delete-failed' => 'Grupo no pudo ser eliminado.', - 'user-define-error' => 'No puede eliminar Grupo del sistema.', - ], - - 'roles' => [ - 'title' => 'Roles', - 'role' => 'Rol', - 'edit-title' => 'Editar Rol', - 'description' => 'Descripción', - 'create-title' => 'Crear Rol', - 'permission_type' => 'Permiso tipo', - 'custom' => 'Personalizado', - 'all' => 'Todos', - 'save-btn-title' => 'Guardar Rol', - 'update-btn-title' => 'Actualizar Rol', - 'create-success' => 'Rol creado con éxito.', - 'update-success' => 'Rol actualizado con éxito.', - 'delete-success' => 'Rol eliminado con éxito.', - 'delete-failed' => 'Rol no pudo ser eliminado.', - 'user-define-error' => 'No puede eliminar Rol de sistema.', - 'last-delete-error' => 'Se requiere al menos un rol.', - 'current-role-delete-error' => 'No se puede eliminar el rol asignado al usuario actual.', - 'being-used' => 'Rol no puede eliminarse, se encuentra en uso por un usuario administrador.', - ], - - 'users' => [ - 'title' => 'Usuarios', - 'create-title' => 'Crear Usuario', - 'edit-title' => 'Editar Usuario', - 'general' => 'General', - 'permission' => 'Permisos', - 'name' => 'Nombre', - 'email' => 'Email', - 'back' => 'Atrás', - 'password' => 'Contraseña', - 'groups' => 'Grupos', - 'role' => 'Rol', - 'view-permission' => 'Ver Permisos', - 'global' => 'Global', - 'group' => 'Grupo', - 'individual' => 'Individual', - 'status' => 'Estatus', - 'save-btn-title' => 'Guardar Usuario', - 'confirm_password' => 'Confirmar Contraseña', - 'create-success' => 'Usuario creado con éxito.', - 'update-success' => 'Usuario actualizado con éxito.', - 'delete-success' => 'Usuario eliminado con éxito.', - 'delete-failed' => 'Usuario no pudo ser eliminado.', - 'user-define-error' => 'No puede eliminar Usuario del sistema.', - 'last-delete-error' => 'Se requiere al menos un usuario.', - 'mass-update-success' => 'Usuarios actualizados con éxito.', - 'mass-update-failed' => 'Usuarios no pudieron ser actualizados.', - 'mass-delete-success' => 'Usuarios eliminados con éxito', - 'mass-delete-failed' => 'Usuarios no pudieron ser eliminados.', - ], - - 'attributes' => [ - 'title' => 'Atributos', - 'attribute' => 'Atributo', - 'create-title' => 'Crear Atributo', - 'edit-title' => 'Editar Atributo', - 'save-btn-title' => 'Guardar Atributo', - 'back' => 'Atrás', - 'code' => 'Código', - 'name' => 'Nombre', - 'type' => 'Tipo', - 'text' => 'Texto', - 'textarea' => 'Caja-Texto', - 'price' => 'Precio', - 'boolean' => 'Booleano', - 'select' => 'Selección', - 'multiselect' => 'Multi-Selección', - 'email' => 'Email', - 'address' => 'Dirección', - 'phone' => 'Teléfono', - 'datetime' => 'FechaHora', - 'date' => 'Fecha', - 'image' => 'Imagen', - 'file' => 'Archivo', - 'entity-type' => 'Entidad Tipo', - 'lookup' => 'Búsqueda', - 'entity_type' => 'Entidad Tipo', - 'lookup-type' => 'Búsqueda Tipo', - 'checkbox' => 'Caja-Verificación', - 'is_required' => 'Requerido', - 'is_unique' => 'Único', - 'yes' => 'Si', - 'no' => 'No', - 'input_validation' => 'Validación de Entrada', - 'number' => 'Numero', - 'decimal' => 'Decimal', - 'email' => 'Email', - 'url' => 'Url', - 'options-type' => 'Opción Tipo', - 'options' => 'Opciones', - 'sort-order' => 'Ordenar', - 'add-option-btn-title' => 'Agregar Opción', - 'create-success' => 'Atributo creado con éxito.', - 'update-success' => 'Atributo actualizado con éxito.', - 'update-error' => 'No se pudo actualizar el atributo.', - 'delete-success' => 'Atributo eliminado con éxito.', - 'delete-failed' => 'Atributo no pudo ser eliminado.', - 'user-define-error' => 'No puede eliminar Atributo del sistema.', - 'mass-delete-failed' => 'Atributos no pudieron ser eliminados.', - ], - - 'pipelines' => [ - 'title' => 'Pipelines', - 'organization' => 'Pipeline', - 'create-title' => 'Crear Pipeline', - 'edit-title' => 'Editar Pipeline', - 'save-btn-title' => 'Guardar Pipeline', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'name' => 'Nombre', - 'rotting-days' => 'Dias Expiración', - 'is-default' => 'Marcar como Predeterminada', - 'probability' => 'Probabilidad (%)', - 'add-stage-btn-title' => 'Agregar Etapa', - 'new-stage' => 'Nuevo', - 'won-stage' => 'Perdido', - 'lost-stage' => 'Ganado', - 'duplicate-name' => 'El campo "Nombre" no puede estar repetido', - 'create-success' => 'Pipeline creado con éxito.', - 'update-success' => 'Pipeline actualizado con éxito.', - 'delete-success' => 'Pipeline eliminado con éxito.', - 'delete-failed' => 'Pipeline no pudo ser eliminado.', - 'default-delete-error' => 'No se puede eliminar el Pipeline predeterminado.', - ], - - 'sources' => [ - 'title' => 'Orígenes', - 'organization' => 'Origan', - 'create-title' => 'Crear Origen', - 'edit-title' => 'Editar Origen', - 'save-btn-title' => 'Guardar Origen', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'create-success' => 'Origen creado con éxito.', - 'name-exists' => 'Ya existe un Origen con igual nombre.', - 'update-success' => 'Origen actualizado con éxito.', - 'delete-success' => 'Origen eliminado con éxito.', - 'delete-failed' => 'Origen no pudo ser eliminado.', - ], - - 'types' => [ - 'title' => 'Tipos', - 'organization' => 'Tipo', - 'create-title' => 'Crear Tipo', - 'edit-title' => 'Editar Tipo', - 'save-btn-title' => 'Guardar Tipo', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'create-success' => 'Tipo creado con éxito.', - 'name-exists' => 'Ya existe un Tipo con igual nombre.', - 'update-success' => 'Tipo actualizado con éxito.', - 'delete-success' => 'Tipo eliminado con éxito.', - 'delete-failed' => 'Tipo no pudo ser eliminado.', - ], - - 'warehouses' => [ - 'title' => 'Almacenes', - 'create-title' => 'Crear almacén', - 'edit-title' => 'Editar almacén', - 'save-btn-title' => 'Guardar como almacén', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'information' => 'Información', - 'general-information' => 'Información general', - 'contact-information' => 'Información de contacto', - 'locations' => 'Ubicaciones', - 'products' => 'Productos', - 'add-location' => 'Agregar ubicación', - 'create-success' => 'Almacén creado exitosamente.', - 'name-exists' => 'El nombre del almacén ya existe.', - 'update-success' => 'Almacén actualizado exitosamente.', - 'delete-success' => 'Almacén eliminado exitosamente.', - 'delete-failed' => 'No se puede eliminar el almacén.', - ], - - 'email-templates' => [ - 'title' => 'Plantillas de Email', - 'create-title' => 'Crear Plantilla de Email', - 'edit-title' => 'Editar Plantilla de Email', - 'save-btn-title' => 'Guardar Plantilla de Email', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'name' => 'Nombre', - 'subject' => 'Asunto', - 'content' => 'Contenido', - 'placeholders' => 'Marcadores', - 'create-success' => 'Plantilla de Email creada con éxito.', - 'update-success' => 'Plantilla de Email actualizada con éxito.', - 'delete-success' => 'Plantilla de Email eliminada con éxito.', - 'delete-failed' => 'Plantilla de Email no pudo ser eliminada.', - ], - - 'workflows' => [ - 'title' => 'Flujos de Trabajo', - 'create-title' => 'Crear Flujo de Trabajo', - 'edit-title' => 'Editar Flujo de Trabajo', - 'save-btn-title' => 'Guardar Flujo de Trabajo', - 'back' => 'Atrás', - 'cancel' => 'Cancelar', - 'information' => 'Información', - 'name' => 'Nombre', - 'description' => 'Descripción', - 'event' => 'Evento', - 'events' => 'Eventos', - 'created' => 'Creado', - 'updated' => 'Actualizado', - 'deleted' => 'Eliminado', - 'event-info' => 'Evento que dispara de manera automática para validar las condiciones y realizar las acciones que hayan sido pre-definidas', - 'conditions' => 'Condiciones', - 'condition-info' => 'Las condiciones son un conjunto de reglas que validan un escenario especifico en situaciones especificas', - 'condition-type' => 'Condición Tipo', - 'all-conditions-true' => 'Todas las Condiciones son Verdaderas', - 'any-condition-true' => 'Cualquier Condición es Verdadera', - 'add-condition' => 'Agregar Condición', - 'choose-condition-to-add' => 'Seleccione una condición...', - 'is-equal-to' => 'Es igual a', - 'is-not-equal-to' => 'No es igual a', - 'equals-or-greater-than' => 'Igual o mayor que', - 'equals-or-less-than' => 'Igual o menor que', - 'greater-than' => 'Mayor que', - 'less-than' => 'Menor que', - 'contain' => 'Contiene', - 'contains' => 'Contienen', - 'does-not-contain' => 'No contiene', - 'actions' => 'Acciones', - 'action-info' => 'Una acción no solo reduce la carga de trabajo sino que también hace mas fácil la automatización del CRM', - 'choose-action-to-add' => 'Seleccione la acción a agregar', - 'update-lead' => 'Actualizar oportunidad', - 'update-person' => 'Actualizar persona', - 'send-email-to-person' => 'Enviar email a persona', - 'send-email-to-sales-owner' => 'Enviar email a encargado venta', - 'send-email-to-participants' => 'Enviar email a participantes', - 'add-tag' => 'Agregar etiqueta', - 'add-note-as-activity' => 'Agregar nota como actividad', - 'choose-attribute' => 'Seleccionar atributo', - 'choose-option' => 'Seleccionar opción', - 'update-person' => 'Actualizar persona', - 'update-related-leads' => 'Actualizar oportunidad relacionada', - 'update-quote' => 'Actualizar presupuesto', - 'add-action' => 'Agregar Acción', - 'create-success' => 'Flujo de Trabajo creado con éxito.', - 'update-success' => 'Flujo de Trabajo actualizado con éxito.', - 'delete-success' => 'Flujo de Trabajo eliminado con éxito.', - 'delete-failed' => 'Flujo de Trabajo no pudo ser eliminado.', - 'add-webhook' => 'Disparar webhook', - 'webhook_heading' => 'Configuración del webhook', - 'webhook_url' => 'Ingresar URL', - 'request-headers' => 'Encabezados del cuerpo', - 'webhook_request_method' => 'Método de solicitud', - 'get_method' => 'GET', - 'post_method' => 'POST', - 'put_method' => 'PUT', - 'patch_method' => 'PATCH', - 'delete_method' => 'DELETE', - 'webhook_encoding' => 'Seleccionar codificación', - 'encoding_json' => 'JSON', - 'encoding_http_query' => 'X-www-form-urlencoded', - 'request_body' => 'Clave y Valor', - 'request_body_info' => 'Agregar par clave-valor en una nueva línea, es decir, clave=valor', - 'simple_body' => 'Simple', - 'raw' => 'kruda', - 'lead' => 'Prospecto', - 'person' => 'Persona', - 'quote' => 'Cita', - 'activity' => 'Actividad', - 'add_header' => 'Agregar encabezado', - 'header_key' => 'Clave', - 'header_value' => 'Valor', - ], - - 'tags' => [ - 'title' => 'Etiquetas', - 'create-title' => 'Crear Etiqueta', - 'edit-title' => 'Editar Etiqueta', - 'cancel' => 'Cancelar', - 'save-btn-title' => 'Guardar Etiqueta', - 'name' => 'Nombre', - 'color' => 'Color', - 'create-success' => 'Etiqueta creada con éxito.', - 'update-success' => 'Etiqueta actualizada con éxito.', - 'delete-success' => 'Etiqueta eliminada con éxito.', - 'delete-failed' => 'Etiqueta no pudo ser eliminada.', - ], - - 'web-forms' => [ - 'create-success' => 'Formulario Web creado con éxito', - 'update-success' => 'Formulario Web actualizado con éxito', - 'delete-success' => 'Formulario Web eliminado con éxito.' - ], + 'warehouses' => [ + 'title' => 'Almacenes', + 'create-title' => 'Crear almacén', + 'edit-title' => 'Editar almacén', + 'save-btn-title' => 'Guardar como almacén', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'information' => 'Información', + 'general-information' => 'Información general', + 'contact-information' => 'Información de contacto', + 'locations' => 'Ubicaciones', + 'products' => 'Productos', + 'add-location' => 'Agregar ubicación', + 'create-success' => 'Almacén creado exitosamente.', + 'name-exists' => 'El nombre del almacén ya existe.', + 'update-success' => 'Almacén actualizado exitosamente.', + 'delete-success' => 'Almacén eliminado exitosamente.', + 'delete-failed' => 'No se puede eliminar el almacén.', ], - 'configuration' => [ - 'title' => 'Configuración', - 'save-btn-title' => 'Guardar', - 'general' => 'General', - 'locale-settings' => 'Ajuste Localización', - 'locale' => 'Idioma', - 'timezone' => 'Zona Horaria', - 'date-time-formats' => 'Formato de Fecha y Hora', - 'save-message' => 'Configuración actualizada con éxito!', - "emails" => [ - 'email' => 'Email', - 'notification_label' => 'Notificaciones', - 'new_lead' => 'Nueva oportunidad', - ] + 'email-templates' => [ + 'title' => 'Plantillas de Email', + 'create-title' => 'Crear Plantilla de Email', + 'edit-title' => 'Editar Plantilla de Email', + 'save-btn-title' => 'Guardar Plantilla de Email', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'name' => 'Nombre', + 'subject' => 'Asunto', + 'content' => 'Contenido', + 'placeholders' => 'Marcadores', + 'create-success' => 'Plantilla de Email creada con éxito.', + 'update-success' => 'Plantilla de Email actualizada con éxito.', + 'delete-success' => 'Plantilla de Email eliminada con éxito.', + 'delete-failed' => 'Plantilla de Email no pudo ser eliminada.', ], - 'datagrid' => [ - 'id' => 'ID', - 'name' => 'Nombre', - 'code' => 'Código', - 'sku' => 'SKU', - 'type' => 'Tipo', - 'price' => 'Precio', - 'email' => 'Email', - 'attachments' => 'Adjuntos', - 'from' => 'De', - 'lead' => 'Oportunidad', - 'title' => 'Titulo', - 'subject' => 'Asunto', - 'tags' => 'Etiquetas', - 'emails' => 'Emails', - 'stage' => 'Etapa', - 'status' => 'Estatus', - 'active' => 'Active', - 'inactive' => 'Inactive', - 'address' => 'Address', - 'quantity' => 'Cantidad', - 'lead_value' => 'Oportunidad Valor', - 'comment' => 'Comentario', - 'is_done' => 'Realizado', - 'type' => 'Tipo', - 'all' => 'Todos', - 'user' => 'Usuario', - 'sales-person' => 'Persona Venta', - 'expired_quotes' => 'Presupuestos Expirados', - 'person' => 'Persona', - 'sub-total' => 'Sub Total', - 'discount' => 'Descuento', - 'tax' => 'Impuesto', - 'adjustment' => 'Ajuste', - 'grand-total' => 'Total General', - 'persons_count' => 'Personas conteo', - 'assigned_to' => 'Asignado a', - 'created_by' => 'Creado por', - 'entity_type' => 'Entidad Tipo', - 'created_at' => 'Creado Fecha', - 'expected_close_date' => 'Cierre Previsto', - 'schedule_from' => 'Agendado Desde', - 'schedule_to' => 'Agendada Hasta', - 'description' => 'Descripción', - 'update_stage' => 'Actualizar Etapa', - 'contact_person' => 'Persona Contacto', - 'contact_numbers' => 'Números Contacto', - 'permission_type' => 'Permiso Tipo', - 'organization_name' => 'Organización Nombre', - 'is-default' => 'Por Defecto', - 'rotten-days' => 'Dias Expirado', - 'rotten_lead' => 'Oportunidad Expirada', - 'yes' => 'Si', - 'no' => 'No', - 'move-to-inbox' => 'Mover a Entrada', - 'update-success' => ':resource actualizado con éxito.', - 'destroy-success' => ':resource eliminado con éxito.', - 'destroy-failed' => ':resource no pudo ser eliminado.', - 'attribute_type' => 'Atributo Tipo', - 'contact-name' => 'Nombre de contacto', - 'contact-emails' => 'Correos electrónicos de contacto', - 'contact-numbers' => 'Números de contacto', - 'in-stock' => 'En stock', - 'allocated' => 'Asignado', - 'on-hand' => 'Disponible', - 'products' => 'Productos', - 'filters' => [ - 'yesterday' => 'Ayer', - 'today' => 'Hoy', - 'tomorrow' => 'Mañana', - 'this-week' => 'Esta Semana', - 'this-month' => 'Este Mes', - 'custom' => 'Personalizado', - ] + 'workflows' => [ + 'title' => 'Flujos de Trabajo', + 'create-title' => 'Crear Flujo de Trabajo', + 'edit-title' => 'Editar Flujo de Trabajo', + 'save-btn-title' => 'Guardar Flujo de Trabajo', + 'back' => 'Atrás', + 'cancel' => 'Cancelar', + 'information' => 'Información', + 'name' => 'Nombre', + 'description' => 'Descripción', + 'event' => 'Evento', + 'events' => 'Eventos', + 'created' => 'Creado', + 'updated' => 'Actualizado', + 'deleted' => 'Eliminado', + 'event-info' => 'Evento que dispara de manera automática para validar las condiciones y realizar las acciones que hayan sido pre-definidas', + 'conditions' => 'Condiciones', + 'condition-info' => 'Las condiciones son un conjunto de reglas que validan un escenario especifico en situaciones especificas', + 'condition-type' => 'Condición Tipo', + 'all-conditions-true' => 'Todas las Condiciones son Verdaderas', + 'any-condition-true' => 'Cualquier Condición es Verdadera', + 'add-condition' => 'Agregar Condición', + 'choose-condition-to-add' => 'Seleccione una condición...', + 'is-equal-to' => 'Es igual a', + 'is-not-equal-to' => 'No es igual a', + 'equals-or-greater-than' => 'Igual o mayor que', + 'equals-or-less-than' => 'Igual o menor que', + 'greater-than' => 'Mayor que', + 'less-than' => 'Menor que', + 'contain' => 'Contiene', + 'contains' => 'Contienen', + 'does-not-contain' => 'No contiene', + 'actions' => 'Acciones', + 'action-info' => 'Una acción no solo reduce la carga de trabajo sino que también hace mas fácil la automatización del CRM', + 'choose-action-to-add' => 'Seleccione la acción a agregar', + 'update-lead' => 'Actualizar oportunidad', + 'update-person' => 'Actualizar persona', + 'send-email-to-person' => 'Enviar email a persona', + 'send-email-to-sales-owner' => 'Enviar email a encargado venta', + 'send-email-to-participants' => 'Enviar email a participantes', + 'add-tag' => 'Agregar etiqueta', + 'add-note-as-activity' => 'Agregar nota como actividad', + 'choose-attribute' => 'Seleccionar atributo', + 'choose-option' => 'Seleccionar opción', + 'update-person' => 'Actualizar persona', + 'update-related-leads' => 'Actualizar oportunidad relacionada', + 'update-quote' => 'Actualizar presupuesto', + 'add-action' => 'Agregar Acción', + 'create-success' => 'Flujo de Trabajo creado con éxito.', + 'update-success' => 'Flujo de Trabajo actualizado con éxito.', + 'delete-success' => 'Flujo de Trabajo eliminado con éxito.', + 'delete-failed' => 'Flujo de Trabajo no pudo ser eliminado.', + 'add-webhook' => 'Disparar webhook', + 'webhook_heading' => 'Configuración del webhook', + 'webhook_url' => 'Ingresar URL', + 'request-headers' => 'Encabezados del cuerpo', + 'webhook_request_method' => 'Método de solicitud', + 'get_method' => 'GET', + 'post_method' => 'POST', + 'put_method' => 'PUT', + 'patch_method' => 'PATCH', + 'delete_method' => 'DELETE', + 'webhook_encoding' => 'Seleccionar codificación', + 'encoding_json' => 'JSON', + 'encoding_http_query' => 'X-www-form-urlencoded', + 'request_body' => 'Clave y Valor', + 'request_body_info' => 'Agregar par clave-valor en una nueva línea, es decir, clave=valor', + 'simple_body' => 'Simple', + 'raw' => 'kruda', + 'lead' => 'Prospecto', + 'person' => 'Persona', + 'quote' => 'Cita', + 'activity' => 'Actividad', + 'add_header' => 'Agregar encabezado', + 'header_key' => 'Clave', + 'header_value' => 'Valor', ], - 'response' => [ - 'create-success' => ':name creado con éxito.', - 'update-success' => ':name actualizado con éxito.', - 'destroy-success'=> ':name eliminado con éxito.', - 'destroy-failed' => ':name no pudo ser eliminado.', + 'tags' => [ + 'title' => 'Etiquetas', + 'create-title' => 'Crear Etiqueta', + 'edit-title' => 'Editar Etiqueta', + 'cancel' => 'Cancelar', + 'save-btn-title' => 'Guardar Etiqueta', + 'name' => 'Nombre', + 'color' => 'Color', + 'create-success' => 'Etiqueta creada con éxito.', + 'update-success' => 'Etiqueta actualizada con éxito.', + 'delete-success' => 'Etiqueta eliminada con éxito.', + 'delete-failed' => 'Etiqueta no pudo ser eliminada.', ], - 'acl' => [ - 'leads' => 'Oportunidades', - 'lead' => 'Oportunidad', - 'quotes' => 'Presupuestos', - 'mail' => 'Correo', - 'inbox' => 'Entrada', - 'draft' => 'Borrador', - 'outbox' => 'Salida', - 'sent' => 'Enviado', - 'trash' => 'Papelera', - 'activities' => 'Actividades', - 'contacts' => 'Contactos', - 'persons' => 'Personas', - 'organizations' => 'Organizaciones', - 'products' => 'Productos', - 'settings' => 'Ajustes', - 'groups' => 'Grupos', - 'roles' => 'Roles', - 'users' => 'Usuarios', - 'user' => 'Usuario', - 'automation' => 'Automatización', - 'attributes' => 'Atributos', - 'pipelines' => 'Pipelines', - 'sources' => 'Orígenes', - 'types' => 'Tipos', - 'email-templates' => 'Plantillas de Email', - 'workflows' => 'Flujos de Trabajo', - 'other-settings' => 'Otros Ajustes', - 'tags' => 'Etiquetas', - 'configuration' => 'Configuración', - 'create' => 'Crear', - 'edit' => 'Editar', - 'view' => 'Ver', - 'print' => 'Imprimir', - 'delete' => 'Eliminar', - 'export' => 'Exportar', - 'mass-delete' => 'Eliminar Multiples', + 'web-forms' => [ + 'create-success' => 'Formulario Web creado con éxito', + 'update-success' => 'Formulario Web actualizado con éxito', + 'delete-success' => 'Formulario Web eliminado con éxito.', ], - - 'common' => [ - 'back' => 'Atrás', - 'address' => 'Dirección', - 'country' => 'País', - 'add_more' => 'Agregar Más', - 'select-country' => 'Por favor seleccione el país', - 'select-users' => 'Seleccionar Usuarios', - 'select_rotten_leads' => 'Seleccionar Oportunidades Expiradas', - 'select-organization' => 'Seleccionar Organizaciones', - 'state' => 'Estado', - 'select-state' => 'Por favor seleccione el estado', - 'city' => 'Ciudad', - 'postcode' => 'Código Postal', - 'address-validation' => 'El campo "Dirección" es requerido', - 'work' => 'Trabajo', - 'home' => 'Casa', - 'no-result-found' => 'Registros con el mismo nombre no encontrados.', - 'add-as' => 'Agregar uno Nuevo', - 'not-available' => 'No Disponible', - 'select-options' => 'Seleccionar Opciones', - 'yes' => 'Si', - 'no' => 'No', - 'delete' => 'Eliminar', - 'save' => 'Guardar', - 'locale' => 'Idioma', - 'en' => 'Inglés', - 'tr' => 'Turco', - 'ar' => 'Árabe', - 'es' => 'Español', - 'add-as' => 'Agregar como nuevo', - 'no-records-found' => 'No se encontraron registros', - 'start-typing' => 'Ingrese para buscar registros', - 'select-type' => 'Selección Tipo', - 'select-call' => 'Llamada', - 'select-meeting' => 'Reunion', - 'select-lunch' => 'Almuerzo', - 'duplicate-value' => 'El valor no puede estar repetido', - 'unauthenticated' => 'Sin Autenticar', - 'resource-not-found' => 'Recurso no encontrado', - 'forbidden-error' => '403 Error Prohibido', - 'internal-server-error' => '500 Error Interno del Servidor', - 'something-went-wrong' => 'Algo salio mal, por favor intente nuevamente.', - 'delete-confirm' => '¿Realmente desea realizar esta acción?', - 'system_attribute' => 'Sistema', - 'custom_attribute' => 'Personalizado', + ], + + 'configuration' => [ + 'title' => 'Configuración', + 'save-btn-title' => 'Guardar', + 'general' => 'General', + 'locale-settings' => 'Ajuste Localización', + 'locale' => 'Idioma', + 'timezone' => 'Zona Horaria', + 'date-time-formats' => 'Formato de Fecha y Hora', + 'save-message' => 'Configuración actualizada con éxito!', + 'emails' => [ + 'email' => 'Email', + 'notification_label' => 'Notificaciones', + 'new_lead' => 'Nueva oportunidad', ], - - 'user' => [ - 'account' => [ - 'name' => 'Nombre', - 'email' => 'Email', - 'password' => 'Contraseña', - 'my_account' => 'Mi cuenta', - 'update_details' => 'Actualizar Detalles', - 'current_password' => 'Contraseña actual', - 'confirm_password' => 'Confirmar contraseña', - 'password-match' => 'Contraseña actual no coincide.', - 'account-save' => 'Cambios en Cuenta guardados con éxito.', - 'permission-denied' => 'Permiso Denegado', - 'remove-image' => 'Remover Imagen=', - 'upload_image_pix' => 'Cargar una Imagen de Perfil (100px x 100px)', - 'upload_image_format' =>'en formato PNG ó JPG', - 'image_upload_message' => 'Solo se permiten imágenes (.jpeg, .jpg, .png, ...).' - ] + ], + + 'datagrid' => [ + 'id' => 'ID', + 'name' => 'Nombre', + 'code' => 'Código', + 'sku' => 'SKU', + 'type' => 'Tipo', + 'price' => 'Precio', + 'email' => 'Email', + 'attachments' => 'Adjuntos', + 'from' => 'De', + 'lead' => 'Oportunidad', + 'title' => 'Titulo', + 'subject' => 'Asunto', + 'tags' => 'Etiquetas', + 'emails' => 'Emails', + 'stage' => 'Etapa', + 'status' => 'Estatus', + 'active' => 'Active', + 'inactive' => 'Inactive', + 'address' => 'Address', + 'quantity' => 'Cantidad', + 'lead_value' => 'Oportunidad Valor', + 'comment' => 'Comentario', + 'is_done' => 'Realizado', + 'type' => 'Tipo', + 'all' => 'Todos', + 'user' => 'Usuario', + 'sales-person' => 'Persona Venta', + 'expired_quotes' => 'Presupuestos Expirados', + 'person' => 'Persona', + 'sub-total' => 'Sub Total', + 'discount' => 'Descuento', + 'tax' => 'Impuesto', + 'adjustment' => 'Ajuste', + 'grand-total' => 'Total General', + 'persons_count' => 'Personas conteo', + 'assigned_to' => 'Asignado a', + 'created_by' => 'Creado por', + 'entity_type' => 'Entidad Tipo', + 'created_at' => 'Creado Fecha', + 'expected_close_date' => 'Cierre Previsto', + 'schedule_from' => 'Agendado Desde', + 'schedule_to' => 'Agendada Hasta', + 'description' => 'Descripción', + 'update_stage' => 'Actualizar Etapa', + 'contact_person' => 'Persona Contacto', + 'contact_numbers' => 'Números Contacto', + 'permission_type' => 'Permiso Tipo', + 'organization_name' => 'Organización Nombre', + 'is-default' => 'Por Defecto', + 'rotten-days' => 'Dias Expirado', + 'rotten_lead' => 'Oportunidad Expirada', + 'yes' => 'Si', + 'no' => 'No', + 'move-to-inbox' => 'Mover a Entrada', + 'update-success' => ':resource actualizado con éxito.', + 'destroy-success' => ':resource eliminado con éxito.', + 'destroy-failed' => ':resource no pudo ser eliminado.', + 'attribute_type' => 'Atributo Tipo', + 'contact-name' => 'Nombre de contacto', + 'contact-emails' => 'Correos electrónicos de contacto', + 'contact-numbers' => 'Números de contacto', + 'in-stock' => 'En stock', + 'allocated' => 'Asignado', + 'on-hand' => 'Disponible', + 'products' => 'Productos', + 'filters' => [ + 'yesterday' => 'Ayer', + 'today' => 'Hoy', + 'tomorrow' => 'Mañana', + 'this-week' => 'Esta Semana', + 'this-month' => 'Este Mes', + 'custom' => 'Personalizado', + ], + ], + + 'response' => [ + 'create-success' => ':name creado con éxito.', + 'update-success' => ':name actualizado con éxito.', + 'destroy-success'=> ':name eliminado con éxito.', + 'destroy-failed' => ':name no pudo ser eliminado.', + ], + + 'acl' => [ + 'leads' => 'Oportunidades', + 'lead' => 'Oportunidad', + 'quotes' => 'Presupuestos', + 'mail' => 'Correo', + 'inbox' => 'Entrada', + 'draft' => 'Borrador', + 'outbox' => 'Salida', + 'sent' => 'Enviado', + 'trash' => 'Papelera', + 'activities' => 'Actividades', + 'contacts' => 'Contactos', + 'persons' => 'Personas', + 'organizations' => 'Organizaciones', + 'products' => 'Productos', + 'settings' => 'Ajustes', + 'groups' => 'Grupos', + 'roles' => 'Roles', + 'users' => 'Usuarios', + 'user' => 'Usuario', + 'automation' => 'Automatización', + 'attributes' => 'Atributos', + 'pipelines' => 'Pipelines', + 'sources' => 'Orígenes', + 'types' => 'Tipos', + 'email-templates' => 'Plantillas de Email', + 'workflows' => 'Flujos de Trabajo', + 'other-settings' => 'Otros Ajustes', + 'tags' => 'Etiquetas', + 'configuration' => 'Configuración', + 'create' => 'Crear', + 'edit' => 'Editar', + 'view' => 'Ver', + 'print' => 'Imprimir', + 'delete' => 'Eliminar', + 'export' => 'Exportar', + 'mass-delete' => 'Eliminar Multiples', + ], + + 'common' => [ + 'back' => 'Atrás', + 'address' => 'Dirección', + 'country' => 'País', + 'add_more' => 'Agregar Más', + 'select-country' => 'Por favor seleccione el país', + 'select-users' => 'Seleccionar Usuarios', + 'select_rotten_leads' => 'Seleccionar Oportunidades Expiradas', + 'select-organization' => 'Seleccionar Organizaciones', + 'state' => 'Estado', + 'select-state' => 'Por favor seleccione el estado', + 'city' => 'Ciudad', + 'postcode' => 'Código Postal', + 'address-validation' => 'El campo "Dirección" es requerido', + 'work' => 'Trabajo', + 'home' => 'Casa', + 'no-result-found' => 'Registros con el mismo nombre no encontrados.', + 'add-as' => 'Agregar uno Nuevo', + 'not-available' => 'No Disponible', + 'select-options' => 'Seleccionar Opciones', + 'yes' => 'Si', + 'no' => 'No', + 'delete' => 'Eliminar', + 'save' => 'Guardar', + 'locale' => 'Idioma', + 'en' => 'Inglés', + 'tr' => 'Turco', + 'ar' => 'Árabe', + 'es' => 'Español', + 'add-as' => 'Agregar como nuevo', + 'no-records-found' => 'No se encontraron registros', + 'start-typing' => 'Ingrese para buscar registros', + 'select-type' => 'Selección Tipo', + 'select-call' => 'Llamada', + 'select-meeting' => 'Reunion', + 'select-lunch' => 'Almuerzo', + 'duplicate-value' => 'El valor no puede estar repetido', + 'unauthenticated' => 'Sin Autenticar', + 'resource-not-found' => 'Recurso no encontrado', + 'forbidden-error' => '403 Error Prohibido', + 'internal-server-error' => '500 Error Interno del Servidor', + 'something-went-wrong' => 'Algo salio mal, por favor intente nuevamente.', + 'delete-confirm' => '¿Realmente desea realizar esta acción?', + 'system_attribute' => 'Sistema', + 'custom_attribute' => 'Personalizado', + ], + + 'user' => [ + 'account' => [ + 'name' => 'Nombre', + 'email' => 'Email', + 'password' => 'Contraseña', + 'my_account' => 'Mi cuenta', + 'update_details' => 'Actualizar Detalles', + 'current_password' => 'Contraseña actual', + 'confirm_password' => 'Confirmar contraseña', + 'password-match' => 'Contraseña actual no coincide.', + 'account-save' => 'Cambios en Cuenta guardados con éxito.', + 'permission-denied' => 'Permiso Denegado', + 'remove-image' => 'Remover Imagen=', + 'upload_image_pix' => 'Cargar una Imagen de Perfil (100px x 100px)', + 'upload_image_format' => 'en formato PNG ó JPG', + 'image_upload_message' => 'Solo se permiten imágenes (.jpeg, .jpg, .png, ...).', ], + ], - 'emails' => [ - 'common' => [ - 'dear' => 'Estimado :name', - 'cheers' => 'Saludos,
Equipo :app_name' - ], + 'emails' => [ + 'common' => [ + 'dear' => 'Estimado :name', + 'cheers' => 'Saludos,
Equipo :app_name', ], + ], - 'errors' => [ - '401' => 'No esta autorizado a acceder a esta pagina' - ] - ]; + 'errors' => [ + '401' => 'No esta autorizado a acceder a esta pagina', + ], +]; diff --git a/packages/Webkul/Admin/src/Resources/lang/fa/app.php b/packages/Webkul/Admin/src/Resources/lang/fa/app.php index a14a14c13..507bc16e5 100644 --- a/packages/Webkul/Admin/src/Resources/lang/fa/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/fa/app.php @@ -1,942 +1,943 @@ [ - 'title' => 'پیشخوان', - 'cards' => 'کارت‌ها', - 'column' => 'ستون', - 'done' => 'تکمیل', - 'activity' => 'فعالیت', - 'activities' => 'فعالیت‌ها', - 'top_leads' => 'سرنخ‌های برتر', - 'pipelines' => 'کاریزها', - 'quotes' => 'پیشنهادات قیمت', - 'emails' => 'ایمیل‌ها', - 'custom_card' => 'کارت شخصی سازی شده', - 'customers' => 'مشتریان', - 'top_customers' => 'برترین مشتریان', - 'leads_started' => 'سرنخ‌های شروع شده', - 'products' => 'محصولات', - 'top_products' => 'محصولات اصلی', - 'leads_over_time' => 'سرنخ‌ها در گذر زمان', - 'no_record_found' => 'رکوردی یافت نشد', - 'week' => 'هفته', + +return [ + 'dashboard' => [ + 'title' => 'پیشخوان', + 'cards' => 'کارت‌ها', + 'column' => 'ستون', + 'done' => 'تکمیل', + 'activity' => 'فعالیت', + 'activities' => 'فعالیت‌ها', + 'top_leads' => 'سرنخ‌های برتر', + 'pipelines' => 'کاریزها', + 'quotes' => 'پیشنهادات قیمت', + 'emails' => 'ایمیل‌ها', + 'custom_card' => 'کارت شخصی سازی شده', + 'customers' => 'مشتریان', + 'top_customers' => 'برترین مشتریان', + 'leads_started' => 'سرنخ‌های شروع شده', + 'products' => 'محصولات', + 'top_products' => 'محصولات اصلی', + 'leads_over_time' => 'سرنخ‌ها در گذر زمان', + 'no_record_found' => 'رکوردی یافت نشد', + 'week' => 'هفته', + ], + + 'layouts' => [ + 'app-version' => 'ورژن : :version', + 'dashboard' => 'پیشخوان', + 'leads' => 'سرنخ‌ها', + 'quotes' => 'پیشنهادات قیمت', + 'quote' => 'پیشنهاد قیمت', + 'mail' => [ + 'title' => 'ایمیل', + 'compose' => 'جدید', + 'inbox' => 'صندوق ورودی', + 'draft' => 'پیش نویس', + 'outbox' => 'صندوق خروجی', + 'sent' => 'ارسال', + 'trash' => 'سطل زباله', + 'setting' => 'تنظیمات', + ], + 'activities' => 'فعالیت‌ها', + 'contacts' => 'مخاطبان', + 'persons' => 'اشخاص', + 'person' => 'شخص', + 'organizations' => 'سازمان‌ها', + 'organization' => 'سازمان', + 'products' => 'محصولات', + 'product' => 'محصول', + 'settings' => 'تنظیمات', + 'user' => 'کاربر', + 'user-info' => 'تنطیمات مربوط به کاربران و سطوح دسترسی کاربران', + 'groups' => 'گروه‌ها', + 'groups-info' => 'افزودن و یا ویرایش گروه‌های کاربری', + 'roles' => 'نقش‌های کاربری', + 'role' => 'نقش کاربری', + 'roles-info' => 'افزودن و یا ویرایش نقش‌های کاربری', + 'users' => 'کاربران', + 'users-info' => 'افزودن و یا ویرایش کاربران', + 'lead' => 'سرنخ', + 'lead-info' => 'تنظیمات مربوط به سرنخ‌ها', + 'pipelines' => 'کاریزها', + 'pipelines-info' => 'افرودن و با ویرایش کاریزها', + 'sources' => 'منبع', + 'sources-info' => 'افزودن و یا ویرایش منبع‌ها', + 'types' => 'نوع', + 'types-info' => 'افزودن و یا ویرایش منابع', + 'automation' => 'اتوماسیون', + 'automation-info' => 'تنظیمات مربوط به اتوماسیون', + 'attributes' => 'ویژگی‌ها', + 'attribute' => 'ویژگی', + 'attributes-info' => 'افزودن و یا ویرایش ویژگی‌ها', + 'email-templates' => 'قالب ایمیل', + 'email' => 'ایمیل', + 'email-templates-info' => 'افزودن و یا ویرایش قالب‌های ایمیل', + 'workflows' => 'گردش کار', + 'workflows-info' => 'افزودن و با ویرایش گردش کار‌ها', + 'other-settings' => 'دیگر تنظیمات', + 'other-settings-info' => 'تنظیمات نرم افزار', + 'tags' => 'برچسب‌ها', + 'tags-info' => 'افزودن و یا ویرایش برچسب‌ها', + 'my-account' => 'حساب کاربری من', + 'sign-out' => 'خروج', + 'back' => 'بازگشت', + 'name' => 'نام', + 'configuration' => 'پیکربندی', + 'activities' => 'فعالیت ها', + 'howdy' => 'سلام!', + 'warehouses' => 'Almacenes', + 'warehouse' => 'Almacén', + 'warehouses-info' => 'Agregar, editar o eliminar almacenes desde CRM', + ], + + 'contacts' => [ + 'organizations' => [ + 'title' => 'سازمان‌ها', + 'organization' => 'سازمان', + 'create-title' => 'ایجاد سازمان', + 'edit-title' => 'ویرایش سازمان', + 'save-btn-title' => 'ذخیره به عنوان سازمان', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'create-success' => 'سازمان با موفقیت ایجاد شد.', + 'update-success' => 'سازمان با موفقیت بروزرسانی شد.', + 'delete-success' => 'سازمان با موفقیت حذف شد.', + 'delete-failed' => 'سازمان نمی‌تواند حذف شود.', ], - 'layouts' => [ - 'app-version' => 'ورژن : :version', - 'dashboard' => 'پیشخوان', - 'leads' => 'سرنخ‌ها', - 'quotes' => 'پیشنهادات قیمت', - 'quote' => 'پیشنهاد قیمت', - 'mail' => [ - 'title' => 'ایمیل', - 'compose' => 'جدید', - 'inbox' => 'صندوق ورودی', - 'draft' => 'پیش نویس', - 'outbox' => 'صندوق خروجی', - 'sent' => 'ارسال', - 'trash' => 'سطل زباله', - 'setting' => 'تنظیمات', - ], - 'activities' => 'فعالیت‌ها', - 'contacts' => 'مخاطبان', - 'persons' => 'اشخاص', - 'person' => 'شخص', - 'organizations' => 'سازمان‌ها', - 'organization' => 'سازمان', - 'products' => 'محصولات', - 'product' => 'محصول', - 'settings' => 'تنظیمات', - 'user' => 'کاربر', - 'user-info' => 'تنطیمات مربوط به کاربران و سطوح دسترسی کاربران', - 'groups' => 'گروه‌ها', - 'groups-info' => 'افزودن و یا ویرایش گروه‌های کاربری', - 'roles' => 'نقش‌های کاربری', - 'role' => 'نقش کاربری', - 'roles-info' => 'افزودن و یا ویرایش نقش‌های کاربری', - 'users' => 'کاربران', - 'users-info' => 'افزودن و یا ویرایش کاربران', - 'lead' => 'سرنخ', - 'lead-info' => 'تنظیمات مربوط به سرنخ‌ها', - 'pipelines' => 'کاریزها', - 'pipelines-info' => 'افرودن و با ویرایش کاریزها', - 'sources' => 'منبع', - 'sources-info' => 'افزودن و یا ویرایش منبع‌ها', - 'types' => 'نوع', - 'types-info' => 'افزودن و یا ویرایش منابع', - 'automation' => 'اتوماسیون', - 'automation-info' => 'تنظیمات مربوط به اتوماسیون', - 'attributes' => 'ویژگی‌ها', - 'attribute' => 'ویژگی', - 'attributes-info' => 'افزودن و یا ویرایش ویژگی‌ها', - 'email-templates' => 'قالب ایمیل', - 'email' => 'ایمیل', - 'email-templates-info' => 'افزودن و یا ویرایش قالب‌های ایمیل', - 'workflows' => 'گردش کار', - 'workflows-info' => 'افزودن و با ویرایش گردش کار‌ها', - 'other-settings' => 'دیگر تنظیمات', - 'other-settings-info' => 'تنظیمات نرم افزار', - 'tags' => 'برچسب‌ها', - 'tags-info' => 'افزودن و یا ویرایش برچسب‌ها', - 'my-account' => 'حساب کاربری من', - 'sign-out' => 'خروج', - 'back' => 'بازگشت', - 'name' => 'نام', - 'configuration' => 'پیکربندی', - 'activities' => 'فعالیت ها', - 'howdy' => 'سلام!', - 'warehouses' => 'Almacenes', - 'warehouse' => 'Almacén', - 'warehouses-info' => 'Agregar, editar o eliminar almacenes desde CRM', + 'persons' => [ + 'title' => 'اشخاص', + 'person' => 'شخص', + 'create-title' => 'ایجاد شخص', + 'edit-title' => 'ویرایش شخص', + 'save-btn-title' => 'ذخیره به عنوان شخص', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'create-success' => 'شخص با موفقیت ایجاد شد.', + 'update-success' => 'شخص با موفقیت بروزرسانی شد.', + 'delete-success' => 'شخص با موفقیت حذف شد.', + 'delete-failed' => 'شخص نمی‌تواند حذف شود.', + ], + ], + + 'leads' => [ + 'title' => 'سرنخ‌ها', + 'lead' => 'سرنخ', + 'create-title' => 'ایجاد سرنخ', + 'edit-title' => 'ویرایش سرنخ', + 'save-btn-title' => 'ذخیره به عنوان سرنخ', + 'save' => 'ذخیره', + 'upload' => 'آپلود', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'no-lead' => 'بدون سرنخ', + 'lead-source-name' => 'منبع سرنخ', + 'details' => 'جزئیات', + 'rotten-info' => 'سرنخ :days روز است که سوخت شده است', + 'stage' => 'مرحله', + 'new' => 'جدید', + 'won-lost' => 'برد/باخت', + 'won' => 'برد', + 'lost' => 'باخت', + 'change-stage' => 'تغییر مرحله', + 'lost-reason' => 'دلیل باخت', + 'won-value' => 'مقدار برنده', + 'created-date:' => 'تاریخ ایجاد:', + 'closed-date:' => 'تاریخ بسته شدن:', + 'closed-date' => 'تاریخ بسته شدن', + 'expected-close-date:' => 'تاریخ بسته شدن پیش بینی شده:', + 'contact-person' => 'مخاطب شخص', + 'add-tag' => 'افزودن برچسب', + 'search-tag' => 'جستجوی برچسب', + 'name' => 'نام', + 'color' => 'رنگ', + 'email' => 'ایمیل', + 'contact-numbers' => 'شماره‌های مخاطب', + 'organization' => 'سازمان', + 'address' => 'آدرس', + 'products' => 'محصولات', + 'item' => 'آیتم', + 'price' => 'قیمت', + 'quantity' => 'تعداد', + 'amount' => 'مقدار', + 'create-success' => 'سرنخ با موفقیت ایجاد شد.', + 'update-success' => 'سرنخ با موفقیت بروزرسانی شد.', + 'delete-success' => 'سرنخ با موفقیت حذف شد.', + 'delete-failed' => 'سرنخ نمی‌تواند حذف شود.', + 'product-quantity-required' => 'مقدار محصول در صورت وجود شناسه محصول مورد نیاز است.', + 'product-price-required' => 'قیمت محصول در صورت وجود شناسه محصول مورد نیاز است.', + 'product-name-required' => 'نام محصول در صورت وجود شناسه محصول مورد نیاز است.', + 'selected-product-not-exist' => 'شناسه محصول انتخاب شده وجود ندارد.', + 'note' => 'یادداشت', + 'activity' => 'فعالیت', + 'title-control' => 'عنوان', + 'call' => 'تماس', + 'meeting' => 'جلسه', + 'lunch' => 'نهار', + 'file' => 'فایل', + 'quote' => 'پیشنهاد قیمت', + 'create-quote' => 'ایجاد پیشنهاد قیمت', + 'type' => 'نوع', + 'description' => 'توضیحات', + 'schedule' => 'زمانبندی', + 'from' => 'از', + 'to' => 'تا', + 'location' => 'موقعیت مکانی', + 'participants' => 'شرکت کنندگان', + 'participant-info' => 'شروع به تایپ کنید', + 'users' => 'کاربران', + 'persons' => 'اشخاص', + 'cc' => 'Cc', + 'bcc' => 'Bcc', + 'email-placeholder' => 'برای افزودن ایمیل‌ها Enter کنید', + 'file' => 'فایل', + 'subject' => 'موضوع', + 'reply' => 'پاسخ', + 'send' => 'ارسال', + 'all' => 'همه', + 'notes' => 'یادداشت‌ها', + 'select-type' => 'انتخاب نوع', + 'calls' => 'تماس ها', + 'meetings' => 'جلسات', + 'lunches' => 'نهارها', + 'emails' => 'ایمیل‌ها', + 'files' => 'فایل‌ها', + 'sales-owner' => 'مالک فروش', + 'person' => 'شخص', + 'expired-at' => 'منقضی شده در', + 'sub-total' => 'جمع جزء', + 'discount' => 'تخفیف', + 'tax' => 'مالیات', + 'adjustment' => 'تنظیم', + 'grand-total' => 'جمع کل', + 'actions' => 'عملیات', + 'planned' => 'برنامه ریزی شده', + 'done' => 'انجام شده', + 'edit' => 'ویرایش', + 'view' => 'نمایش', + 'unlink' => 'جدا کردن', + 'mark-as-done' => 'علامبرچسبذاری به عنوان انجام شده', + 'remove' => 'جذف', + 'export-to-pdf' => 'اکسپورت به PDF', + 'empty-planned-activities' => 'هیچ فعالیت برنامه ریزی شده‌ای ندارید.', + 'empty-done-activities' => 'هیچ فعالیت انجام شده‌ای ندارید.', + 'note-added' => 'یادداشت اضافه شد', + 'call-scheduled' => 'تماس برای :from - :to برنامه ریزی شده', + 'meeting-scheduled' => 'جلسه برای :from - :to برنامه ریزی شده', + 'lunch-scheduled' => 'نهار برای :from - :to برنامه ریزی شده', + 'file-added' => 'فایل اضافه شد', + 'quote-destroy-success' => 'پیشنهاد قیمت با موفقیت حذف شد.', + 'tag-create-success' => 'برچسب با موفقیت افزوده شد.', + 'tag-destroy-success' => 'برچسب با موفقیت حذف شد.', + 'edit' => 'ویرایش کنید', + ], + + 'quotes' => [ + 'title' => 'پیشنهادات قیمت', + 'quote' => 'پیشنهاد قیمت', + 'create-title' => 'ایجاد پیشنهاد قیمت', + 'edit-title' => 'ویرایش پیشنهاد قیمت', + 'save-btn-title' => 'ذخیره به عنوان پیشنهاد قیمت', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'quote-information' => 'اطلاعات پیشنهاد قیمت', + 'lead' => 'سرنخ', + 'address-information' => 'اطلاعات ةدرس', + 'quote-items' => 'آیتم های پیشنهاد قیمت', + 'name' => 'نام', + 'quantity' => 'تعداد', + 'price' => 'قیمت', + 'amount' => 'مقدار', + 'discount' => 'تخفیف', + 'tax' => 'مالیات', + 'total' => 'جمع', + 'sub-total' => 'جمع جزء', + 'adjustment' => 'تنظیم', + 'grand-total' => 'جمع کل', + 'create-success' => 'پیشنهاد قیمت با موفقیت ایجاد شد.', + 'update-success' => 'پیشنهاد قیمت با موفقیت به روز رسانی شد.', + 'delete-success' => 'پیشنهاد قیمت با موفقیت حذف شد.', + 'delete-failed' => 'پیشنهاد قیمت حذف نمی‌شود.', + 'quote-id' => 'شناسه پیشنهاد', + 'quote-date' => 'تاریخ پیشنهاد', + 'valid-until' => 'معتبر تا', + 'sales-person' => 'فروشنده', + 'bill-to' => 'صورتحساب به', + 'ship-to' => 'حمل به', + 'sku' => 'کد محصول', + 'product-name' => 'نام محصول', + 'price' => 'قیمت', + 'amount' => 'مقدار', + 'quantity' => 'تعداد', + 'sub-total' => 'جمع جزء', + 'tax' => 'مالیات', + 'adjustment' => 'تنظیم', + 'grand-total' => 'جمع کل', + 'search' => 'جستجو..', + ], + + 'mail' => [ + 'title' => 'ایمیل - :type', + 'compose' => 'جدید', + 'inbox' => 'صندوق ورودی', + 'draft' => 'پیش نویس', + 'outbox' => 'صندوق خروجی', + 'sent' => 'ارسال شده', + 'trash' => 'سطل زباله', + 'setting' => 'تنظیمات', + 'total' => 'جمع', + 'link-mail' => 'لینک ایمیل', + 'link-contact' => 'لینک مخاطب', + 'linked-contact' => 'مخاطب لینک شده', + 'add-to-existing-contact' => 'افزودن به مخاطب موجود', + 'create-new-contact' => 'ایجاد مخاطب جدید', + 'search-contact' => 'جستجوی مخاطب', + 'link-lead' => 'لینک سرنخ', + 'linked-lead' => 'سرنخ لینک شده', + 'search-lead' => 'جستجو برای سرنخ', + 'link-to-existing-lead' => 'افزودن به سرنخ موجود', + 'add-new-lead' => 'افزودن سرنخ جدید', + 'send' => 'ارسال', + 'back' => 'بازگشت', + 'discard' => 'نادیده گرفتن', + 'from-' => 'از - ', + 'to-' => 'تا - ', + 'cc-' => 'Cc - ', + 'bcc-' => 'Bcc - ', + 'reply' => 'پاسخ', + 'reply-all' => 'پاسخ به همه', + 'forward' => 'ارجاع', + 'delete' => 'حذف', + 'destroy-success' => 'ایمیل‌های انتخاب شده با موفقیت حذف شد.', + 'save-to-draft' => 'ذخیره به عنوان پیش نویس', + 'create-success' => 'ایمیل با موفقیت ارسال شد.', + 'update-success' => 'ایمیل با موفقیت بروزرسانی شد.', + 'saved-to-draft' => 'ایمیل به عنوان پیش نویس ذخیره شد.', + 'delete-success' => 'ایمیل با موفقیت حذف شد.', + 'delete-failed' => 'ایمیل نمی‌تواند حذف شود.', + 'mass-update-success' => 'ایمیل‌ها با موفقیت بروزرسانی شد.', + + 'forget-password' => [ + 'subject' => 'بازیابی پسورد مشتری', + 'dear' => ':name عزیز', + 'reset-password' => 'بازیابی پسورد', + 'info' => 'این ایمیل را دریافت کردید زیرا ما یک درخواست بازنشانی رمز عبور برای حساب شما دریافت کردیم', + 'final-summary' => 'اگر بازنشانی رمز عبور را درخواست نکردید، هیچ اقدام دیگری لازم نیست', + 'thanks' => 'با تشکر!', ], - 'contacts' => [ - 'organizations' => [ - 'title' => 'سازمان‌ها', - 'organization' => 'سازمان', - 'create-title' => 'ایجاد سازمان', - 'edit-title' => 'ویرایش سازمان', - 'save-btn-title' => 'ذخیره به عنوان سازمان', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'create-success' => 'سازمان با موفقیت ایجاد شد.', - 'update-success' => 'سازمان با موفقیت بروزرسانی شد.', - 'delete-success' => 'سازمان با موفقیت حذف شد.', - 'delete-failed' => 'سازمان نمی‌تواند حذف شود.', - ], - - 'persons' => [ - 'title' => 'اشخاص', - 'person' => 'شخص', - 'create-title' => 'ایجاد شخص', - 'edit-title' => 'ویرایش شخص', - 'save-btn-title' => 'ذخیره به عنوان شخص', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'create-success' => 'شخص با موفقیت ایجاد شد.', - 'update-success' => 'شخص با موفقیت بروزرسانی شد.', - 'delete-success' => 'شخص با موفقیت حذف شد.', - 'delete-failed' => 'شخص نمی‌تواند حذف شود.', - ], + 'user' => [ + 'create-subject' => 'به عنوان یک کاربر اضافه شدید.', + 'create-body' => 'تبریک! حالا یکی از اعضای تیم ما هستید.', + ], + ], + + 'activities' => [ + 'title' => 'فعالیت‌ها', + 'title-control' => 'عنوان', + 'edit-title' => 'ویرایش فعالیت', + 'save-btn-title' => 'ذخیره به عنوان فعالیت', + 'back' => 'بازگشت', + 'type' => 'نوع', + 'note' => 'یادداشت', + 'call' => 'تماس', + 'meeting' => 'جلسه', + 'lunch' => 'نهار', + 'file' => 'فایل', + 'description' => 'توضیحات', + 'schedule' => 'زمانبندی', + 'from' => 'از', + 'to' => 'تا', + 'location' => 'موقعیت مکانی', + 'participants' => 'شرکت کنندگان', + 'lead' => 'سرنخ', + 'duration-overlapping' => 'شرکت کنندگان در این زمان جلسه دیگری دارند. می‌خواهید ادامه دهید؟', + 'file-upload-success' => 'فایل(ها) با موفقیت آپلود شد.', + 'file-upload-error' => 'فایل(ها) نمی‌توانند آپلود شوند.', + 'create-success' => ':type با موفقیت ایجاد شد.', + 'update-success' => ':type با موفقیت بروزرسانی شد.', + 'mass-update-success' => 'فعالیت‌ها با موفقیت بروزرسانی شد.', + 'mass-update-failed' => 'فعالیت‌ها نمی‌توانند بروزرسانی شوند.', + 'destroy-success' => ':type با موفقیت حذف شد.', + 'delete-failed' => ':type نمی‌تواند حذف شود.', + 'typing-placeholder' => 'شروع به تایپ نام کنید', + ], + + 'products' => [ + 'title' => 'محصولات', + 'product' => 'محصول', + 'create-title' => 'ایجاد محصول', + 'edit-title' => 'ویرایش محصول', + 'save-btn-title' => 'ذخیره به عنوان محصول', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'information' => 'اطلاعات', + 'inventories' => 'موجودی‌ها', + 'location' => 'مکان', + 'search' => 'جستجو..', + 'name' => 'نام', + 'save' => 'ذخیره', + 'in-stock' => 'در انبار', + 'allocated' => 'تخصیص داده شده', + 'create-success' => 'محصول با موفقیت ایجاد شد.', + 'update-success' => 'محصول با موفقیت بروزرسانی شد.', + 'delete-success' => 'محصول با موفقیت حذف شد.', + 'delete-failed' => 'محصول نمی‌تواند حذف شود.', + ], + + 'sessions' => [ + 'login' => [ + 'title' => 'ورود', + 'welcome' => 'رسیدن بخیر', + 'email' => 'ایمیل', + 'password' => 'پسورد', + 'login' => 'ورود', + 'forgot-password' => 'پسورد خود را فراموش کرده‌اید؟', + 'login-error' => 'لطفا نام کاربری و پسورد خود را بررسی کنید و دوباره امتحان کنید.', + 'activate-warning' => 'حساب شما هنوز فعال نشده است، لطفا با مدیر تماس بگیرید.', ], - 'leads' => [ - 'title' => 'سرنخ‌ها', - 'lead' => 'سرنخ', - 'create-title' => 'ایجاد سرنخ', - 'edit-title' => 'ویرایش سرنخ', - 'save-btn-title' => 'ذخیره به عنوان سرنخ', - 'save' => 'ذخیره', - 'upload' => 'آپلود', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'no-lead' => 'بدون سرنخ', - 'lead-source-name' => 'منبع سرنخ', - 'details' => 'جزئیات', - 'rotten-info' => 'سرنخ :days روز است که سوخت شده است', - 'stage' => 'مرحله', - 'new' => 'جدید', - 'won-lost' => 'برد/باخت', - 'won' => 'برد', - 'lost' => 'باخت', - 'change-stage' => 'تغییر مرحله', - 'lost-reason' => 'دلیل باخت', - 'won-value' => 'مقدار برنده', - 'created-date:' => 'تاریخ ایجاد:', - 'closed-date:' => 'تاریخ بسته شدن:', - 'closed-date' => 'تاریخ بسته شدن', - 'expected-close-date:' => 'تاریخ بسته شدن پیش بینی شده:', - 'contact-person' => 'مخاطب شخص', - 'add-tag' => 'افزودن برچسب', - 'search-tag' => 'جستجوی برچسب', - 'name' => 'نام', - 'color' => 'رنگ', - 'email' => 'ایمیل', - 'contact-numbers' => 'شماره‌های مخاطب', - 'organization' => 'سازمان', - 'address' => 'آدرس', - 'products' => 'محصولات', - 'item' => 'آیتم', - 'price' => 'قیمت', - 'quantity' => 'تعداد', - 'amount' => 'مقدار', - 'create-success' => 'سرنخ با موفقیت ایجاد شد.', - 'update-success' => 'سرنخ با موفقیت بروزرسانی شد.', - 'delete-success' => 'سرنخ با موفقیت حذف شد.', - 'delete-failed' => 'سرنخ نمی‌تواند حذف شود.', - 'product-quantity-required' => 'مقدار محصول در صورت وجود شناسه محصول مورد نیاز است.', - 'product-price-required' => 'قیمت محصول در صورت وجود شناسه محصول مورد نیاز است.', - 'product-name-required' => 'نام محصول در صورت وجود شناسه محصول مورد نیاز است.', - 'selected-product-not-exist' => 'شناسه محصول انتخاب شده وجود ندارد.', - 'note' => 'یادداشت', - 'activity' => 'فعالیت', - 'title-control' => 'عنوان', - 'call' => 'تماس', - 'meeting' => 'جلسه', - 'lunch' => 'نهار', - 'file' => 'فایل', - 'quote' => 'پیشنهاد قیمت', - 'create-quote' => 'ایجاد پیشنهاد قیمت', - 'type' => 'نوع', - 'description' => 'توضیحات', - 'schedule' => 'زمانبندی', - 'from' => 'از', - 'to' => 'تا', - 'location' => 'موقعیت مکانی', - 'participants' => 'شرکت کنندگان', - 'participant-info' => 'شروع به تایپ کنید', - 'users' => 'کاربران', - 'persons' => 'اشخاص', - 'cc' => 'Cc', - 'bcc' => 'Bcc', - 'email-placeholder' => 'برای افزودن ایمیل‌ها Enter کنید', - 'file' => 'فایل', - 'subject' => 'موضوع', - 'reply' => 'پاسخ', - 'send' => 'ارسال', - 'all' => 'همه', - 'notes' => 'یادداشت‌ها', - 'select-type' => 'انتخاب نوع', - 'calls' => 'تماس ها', - 'meetings' => 'جلسات', - 'lunches' => 'نهارها', - 'emails' => 'ایمیل‌ها', - 'files' => 'فایل‌ها', - 'sales-owner' => 'مالک فروش', - 'person' => 'شخص', - 'expired-at' => 'منقضی شده در', - 'sub-total' => 'جمع جزء', - 'discount' => 'تخفیف', - 'tax' => 'مالیات', - 'adjustment' => 'تنظیم', - 'grand-total' => 'جمع کل', - 'actions' => 'عملیات', - 'planned' => 'برنامه ریزی شده', - 'done' => 'انجام شده', - 'edit' => 'ویرایش', - 'view' => 'نمایش', - 'unlink' => 'جدا کردن', - 'mark-as-done' => 'علامبرچسبذاری به عنوان انجام شده', - 'remove' => 'جذف', - 'export-to-pdf' => 'اکسپورت به PDF', - 'empty-planned-activities' => 'هیچ فعالیت برنامه ریزی شده‌ای ندارید.', - 'empty-done-activities' => 'هیچ فعالیت انجام شده‌ای ندارید.', - 'note-added' => 'یادداشت اضافه شد', - 'call-scheduled' => 'تماس برای :from - :to برنامه ریزی شده', - 'meeting-scheduled' => 'جلسه برای :from - :to برنامه ریزی شده', - 'lunch-scheduled' => 'نهار برای :from - :to برنامه ریزی شده', - 'file-added' => 'فایل اضافه شد', - 'quote-destroy-success' => 'پیشنهاد قیمت با موفقیت حذف شد.', - 'tag-create-success' => 'برچسب با موفقیت افزوده شد.', - 'tag-destroy-success' => 'برچسب با موفقیت حذف شد.', - 'edit' => 'ویرایش کنید', + 'forgot-password' => [ + 'title' => 'فراموشی پسورد', + 'email' => 'ایمیل', + 'send-reset-password-email' => 'ارسال ایمیل بازنشانی پسورد', + 'reset-link-sent' => 'لینک بازیابی پسورد را به ایمیل‌تان ارسال کرده‌ایم.', + 'email-not-exist' => 'کاربری با این آدرس ایمیل نتوانستیم پیدا کنیم.', + 'back-to-login' => 'بازگشت به صفحه ورود', ], - 'quotes' => [ - 'title' => 'پیشنهادات قیمت', - 'quote' => 'پیشنهاد قیمت', - 'create-title' => 'ایجاد پیشنهاد قیمت', - 'edit-title' => 'ویرایش پیشنهاد قیمت', - 'save-btn-title' => 'ذخیره به عنوان پیشنهاد قیمت', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'quote-information' => 'اطلاعات پیشنهاد قیمت', - 'lead' => 'سرنخ', - 'address-information' => 'اطلاعات ةدرس', - 'quote-items' => 'آیتم های پیشنهاد قیمت', + 'reset-password' => [ + 'title' => 'بازنشانی پسورد', + 'email' => 'ایمیل', + 'password' => 'پسورد', + 'confirm-password' => 'تکرار پسورد', + 'reset-password' => 'بازنشانی پسورد', + ], + ], + + 'settings' => [ + 'title' => 'تنظیمات', + + 'groups' => [ + 'title' => 'گروه ها', + 'group' => 'گروه', + 'edit-title' => 'ویرایش گروه', + 'description' => 'توضیحات', + 'create-title' => 'ایجاد گروه', + 'save-btn-title' => 'ذخیره به عنوان گروه', + 'update-btn-title' => 'بروزرسانی گروه', + 'create-success' => 'گروه با موفقیت ایجاد شد.', + 'update-success' => 'گروه با موفقیت بروزرسانی شد.', + 'destroy-success' => 'گروه با موفقیت حذف شد.', + 'delete-failed' => 'گروه نمی‌تواند حذف شود.', + 'user-define-error' => 'گروه سیستم نمی‌تواند حذف شود.', + ], + + 'roles' => [ + 'title' => 'نقش های کاربری', + 'role' => 'نقش کاربری', + 'edit-title' => 'ویرایش نقش کاربری', + 'description' => 'توضیحات', + 'create-title' => 'ایجاد نقش کاربری', + 'permission_type' => 'نوع دسترسی', + 'custom' => 'سفارشی', + 'all' => 'همه', + 'save-btn-title' => 'ذخیره به عنوان نقش کاربری', + 'update-btn-title' => 'بروزرسانی نقش کاربری', + 'create-success' => 'نقش کاربری با موفقیت ایجاد شد.', + 'update-success' => 'نقش کاربری با موفقیت بروزرسانی شد.', + 'delete-success' => 'نقش کاربری با موفقیت حذف شد.', + 'delete-failed' => 'نقش کاربری نمی‌تواند حذف شود.', + 'user-define-error' => 'نقش کاربری سیستم نمی‌تواند حذف شود.', + 'last-delete-error' => 'حداقل یک نقش کاربری اجباری است.', + 'current-role-delete-error' => 'نقش کاربری تخصیص داده شده به کاربر جاری قابل حذف نیست.', + 'being-used' => 'نقش کاربری نمی‌تواند حذف شود, زیرا برای کاربر مدیر در حال استفاده است.', + ], + + 'users' => [ + 'title' => 'کاربران', + 'create-title' => 'ایجاد کاربر', + 'edit-title' => 'ویرایش کاربر', + 'general' => 'عمومی', + 'permission' => 'دسترسی', 'name' => 'نام', - 'quantity' => 'تعداد', - 'price' => 'قیمت', - 'amount' => 'مقدار', - 'discount' => 'تخفیف', - 'tax' => 'مالیات', - 'total' => 'جمع', - 'sub-total' => 'جمع جزء', - 'adjustment' => 'تنظیم', - 'grand-total' => 'جمع کل', - 'create-success' => 'پیشنهاد قیمت با موفقیت ایجاد شد.', - 'update-success' => 'پیشنهاد قیمت با موفقیت به روز رسانی شد.', - 'delete-success' => 'پیشنهاد قیمت با موفقیت حذف شد.', - 'delete-failed' => 'پیشنهاد قیمت حذف نمی‌شود.', - 'quote-id' => 'شناسه پیشنهاد', - 'quote-date' => 'تاریخ پیشنهاد', - 'valid-until' => 'معتبر تا', - 'sales-person' => 'فروشنده', - 'bill-to' => 'صورتحساب به', - 'ship-to' => 'حمل به', - 'sku' => 'کد محصول', - 'product-name' => 'نام محصول', - 'price' => 'قیمت', - 'amount' => 'مقدار', - 'quantity' => 'تعداد', - 'sub-total' => 'جمع جزء', - 'tax' => 'مالیات', - 'adjustment' => 'تنظیم', - 'grand-total' => 'جمع کل', - 'search' => 'جستجو..' + 'email' => 'ایمیل', + 'back' => 'بازگشت', + 'password' => 'پسورد', + 'groups' => 'گروه‌ها', + 'role' => 'نقش کاربری', + 'view-permission' => 'دیدن دسترسی', + 'global' => 'غیرانحصاری', + 'group' => 'گروه', + 'individual' => 'منحصر به فرد', + 'status' => 'وضعیت', + 'save-btn-title' => 'ذخیره به عنوان کاربر', + 'confirm_password' => 'تکرار پسورد', + 'create-success' => 'کاربر با موفقیت ایجاد شد.', + 'update-success' => 'کاربر با موفقیت بروزرسانی شد.', + 'delete-success' => 'کاربر با موفقیت حذف شد.', + 'delete-failed' => 'کاربر نمی‌تواند حذف شود.', + 'user-define-error' => 'کاربر سیستم نمی‌تواند حذف شود.', + 'last-delete-error' => 'حداقل یک کاربر اجباری است.', + 'mass-update-success' => 'کاربران با موفقیت بروزرسانی شد.', + 'mass-update-failed' => 'کاربران نمی‌توانند بروزرسانی شوند.', + 'mass-delete-success' => 'کاربران با موفقیت حذف شدند.', + 'mass-delete-failed' => 'کاربران نمی‌توانند حذف شوند.', ], - 'mail' => [ - 'title' => 'ایمیل - :type', - 'compose' => 'جدید', - 'inbox' => 'صندوق ورودی', - 'draft' => 'پیش نویس', - 'outbox' => 'صندوق خروجی', - 'sent' => 'ارسال شده', - 'trash' => 'سطل زباله', - 'setting' => 'تنظیمات', - 'total' => 'جمع', - 'link-mail' => 'لینک ایمیل', - 'link-contact' => 'لینک مخاطب', - 'linked-contact' => 'مخاطب لینک شده', - 'add-to-existing-contact' => 'افزودن به مخاطب موجود', - 'create-new-contact' => 'ایجاد مخاطب جدید', - 'search-contact' => 'جستجوی مخاطب', - 'link-lead' => 'لینک سرنخ', - 'linked-lead' => 'سرنخ لینک شده', - 'search-lead' => 'جستجو برای سرنخ', - 'link-to-existing-lead' => 'افزودن به سرنخ موجود', - 'add-new-lead' => 'افزودن سرنخ جدید', - 'send' => 'ارسال', - 'back' => 'بازگشت', - 'discard' => 'نادیده گرفتن', - 'from-' => 'از - ', - 'to-' => 'تا - ', - 'cc-' => 'Cc - ', - 'bcc-' => 'Bcc - ', - 'reply' => 'پاسخ', - 'reply-all' => 'پاسخ به همه', - 'forward' => 'ارجاع', - 'delete' => 'حذف', - 'destroy-success' => 'ایمیل‌های انتخاب شده با موفقیت حذف شد.', - 'save-to-draft' => 'ذخیره به عنوان پیش نویس', - 'create-success' => 'ایمیل با موفقیت ارسال شد.', - 'update-success' => 'ایمیل با موفقیت بروزرسانی شد.', - 'saved-to-draft' => 'ایمیل به عنوان پیش نویس ذخیره شد.', - 'delete-success' => 'ایمیل با موفقیت حذف شد.', - 'delete-failed' => 'ایمیل نمی‌تواند حذف شود.', - 'mass-update-success' => 'ایمیل‌ها با موفقیت بروزرسانی شد.', - - 'forget-password' => [ - 'subject' => 'بازیابی پسورد مشتری', - 'dear' => ':name عزیز', - 'reset-password' => 'بازیابی پسورد', - 'info' => 'این ایمیل را دریافت کردید زیرا ما یک درخواست بازنشانی رمز عبور برای حساب شما دریافت کردیم', - 'final-summary' => 'اگر بازنشانی رمز عبور را درخواست نکردید، هیچ اقدام دیگری لازم نیست', - 'thanks' => 'با تشکر!' - ], - - 'user' => [ - 'create-subject' => 'به عنوان یک کاربر اضافه شدید.', - 'create-body' => 'تبریک! حالا یکی از اعضای تیم ما هستید.', - ], + 'attributes' => [ + 'title' => 'ویژگی‌ها', + 'attribute' => 'ویژگی', + 'create-title' => 'ایجاد ویژگی', + 'edit-title' => 'ویرایش ویژگی', + 'save-btn-title' => 'ذخیره به عنوان ویژگی', + 'back' => 'بازگشت', + 'code' => 'کد', + 'name' => 'نام', + 'type' => 'نوع', + 'text' => 'تکست', + 'textarea' => 'Textarea', + 'price' => 'قیمت', + 'boolean' => 'بولین', + 'select' => 'سلکت', + 'multiselect' => 'سلکت چندتایی', + 'email' => 'ایمیل', + 'address' => 'آدرس', + 'phone' => 'تلفن', + 'datetime' => 'Datetime', + 'date' => 'تاریخ', + 'image' => 'تصویر', + 'file' => 'فایل', + 'entity-type' => 'نوع موجودیت', + 'lookup' => 'جستجو', + 'entity_type' => 'نوع موجودیت', + 'lookup-type' => 'نوع جستجو', + 'checkbox' => 'چکباکس', + 'is_required' => 'اجباری است', + 'is_unique' => 'منحصر به فرد است', + 'yes' => 'بله', + 'no' => 'بدون', + 'input_validation' => 'اعتبارسنجی input', + 'number' => 'عدد', + 'decimal' => 'اعشار', + 'email' => 'پست الکترونیک', + 'url' => 'Url', + 'options-type' => 'نوع گزینه', + 'options' => 'گزینه‌ها', + 'sort-order' => 'ترتیب', + 'add-option-btn-title' => 'افزودن گزینه', + 'create-success' => 'ویژگی با موفقیت ایجاد شد.', + 'update-success' => 'ویژگی با موفقیت بروزرسانی شد.', + 'update-error' => 'ناتوان در بروزرسانی ویژگی.', + 'delete-success' => 'ویژگی با موفقیت حذف شد.', + 'delete-failed' => 'ویژگی نمی‌تواند حذف شود.', + 'user-define-error' => 'ویژگی سیستم نمی‌تواند حذف شود.', + 'mass-delete-failed' => 'ویژگی‌ها نمی‌توانند حذف شوند.', ], - 'activities' => [ - 'title' => 'فعالیت‌ها', - 'title-control' => 'عنوان', - 'edit-title' => 'ویرایش فعالیت', - 'save-btn-title' => 'ذخیره به عنوان فعالیت', + 'pipelines' => [ + 'title' => 'کاریزها', + 'organization' => 'کاریز', + 'create-title' => 'ایجاد کاریز', + 'edit-title' => 'ویرایش کاریز', + 'save-btn-title' => 'ذخیره به عنوان کاریز', 'back' => 'بازگشت', - 'type' => 'نوع', - 'note' => 'یادداشت', - 'call' => 'تماس', - 'meeting' => 'جلسه', - 'lunch' => 'نهار', - 'file' => 'فایل', - 'description' => 'توضیحات', - 'schedule' => 'زمانبندی', - 'from' => 'از', - 'to' => 'تا', - 'location' => 'موقعیت مکانی', - 'participants' => 'شرکت کنندگان', - 'lead' => 'سرنخ', - 'duration-overlapping' => 'شرکت کنندگان در این زمان جلسه دیگری دارند. می‌خواهید ادامه دهید؟', - 'file-upload-success' => 'فایل(ها) با موفقیت آپلود شد.', - 'file-upload-error' => 'فایل(ها) نمی‌توانند آپلود شوند.', - 'create-success' => ':type با موفقیت ایجاد شد.', - 'update-success' => ':type با موفقیت بروزرسانی شد.', - 'mass-update-success' => 'فعالیت‌ها با موفقیت بروزرسانی شد.', - 'mass-update-failed' => 'فعالیت‌ها نمی‌توانند بروزرسانی شوند.', - 'destroy-success' => ':type با موفقیت حذف شد.', - 'delete-failed' => ':type نمی‌تواند حذف شود.', - 'typing-placeholder' => 'شروع به تایپ نام کنید', + 'cancel' => 'لغو', + 'name' => 'نام', + 'rotting-days' => 'روزهای سوخت شده', + 'is-default' => 'علامتگذاری به عنوان پیش فرض', + 'probability' => 'احتمال (%)', + 'add-stage-btn-title' => 'افزودن مرحله', + 'new-stage' => 'جدید', + 'won-stage' => 'برد', + 'lost-stage' => 'باخت', + 'duplicate-name' => 'فیلد "نام" نمی‌تواند تکراری باشد', + 'create-success' => 'کاریز با موفقیت ایجاد شد.', + 'update-success' => 'کاریز با موفقیت بروزرسانی شد.', + 'delete-success' => 'کاریز با موفقیت حذف شد.', + 'delete-failed' => 'کاریز نمی‌تواند حذف شود.', + 'default-delete-error' => 'کاریز پیش فرض نمی‌تواند حذف شود.', ], - 'products' => [ - 'title' => 'محصولات', - 'product' => 'محصول', - 'create-title' => 'ایجاد محصول', - 'edit-title' => 'ویرایش محصول', - 'save-btn-title' => 'ذخیره به عنوان محصول', + 'sources' => [ + 'title' => 'منابع', + 'organization' => 'منبع', + 'create-title' => 'ایجاد منبع', + 'edit-title' => 'ویرایش منبع', + 'save-btn-title' => 'ذخیره به عنوان منبع', 'back' => 'بازگشت', 'cancel' => 'لغو', - 'information' => 'اطلاعات', - 'inventories' => 'موجودی‌ها', - 'location' => 'مکان', - 'search' => 'جستجو..', - 'name' => 'نام', - 'save' => 'ذخیره', - 'in-stock' => 'در انبار', - 'allocated' => 'تخصیص داده شده', - 'create-success' => 'محصول با موفقیت ایجاد شد.', - 'update-success' => 'محصول با موفقیت بروزرسانی شد.', - 'delete-success' => 'محصول با موفقیت حذف شد.', - 'delete-failed' => 'محصول نمی‌تواند حذف شود.', + 'create-success' => 'منبع با موفقیت ایجاد شد.', + 'name-exists' => 'نام منبع قبلا ایجاد شده است.', + 'update-success' => 'منبع با موفقیت بروزرسانی شد.', + 'delete-success' => 'منبع با موفقیت حذف شد.', + 'delete-failed' => 'منبع نمی‌تواند حذف شود.', ], - 'sessions' => [ - 'login' => [ - 'title' => 'ورود', - 'welcome' => 'رسیدن بخیر', - 'email' => 'ایمیل', - 'password' => 'پسورد', - 'login' => 'ورود', - 'forgot-password' => 'پسورد خود را فراموش کرده‌اید؟', - 'login-error' => 'لطفا نام کاربری و پسورد خود را بررسی کنید و دوباره امتحان کنید.', - 'activate-warning' => 'حساب شما هنوز فعال نشده است، لطفا با مدیر تماس بگیرید.', - ], - - 'forgot-password' => [ - 'title' => 'فراموشی پسورد', - 'email' => 'ایمیل', - 'send-reset-password-email' => 'ارسال ایمیل بازنشانی پسورد', - 'reset-link-sent' => 'لینک بازیابی پسورد را به ایمیل‌تان ارسال کرده‌ایم.', - 'email-not-exist' => "کاربری با این آدرس ایمیل نتوانستیم پیدا کنیم.", - 'back-to-login' => 'بازگشت به صفحه ورود' - ], - - 'reset-password' => [ - 'title' => 'بازنشانی پسورد', - 'email' => 'ایمیل', - 'password' => 'پسورد', - 'confirm-password' => 'تکرار پسورد', - 'reset-password' => 'بازنشانی پسورد' - ] + 'types' => [ + 'title' => 'نوع‌ها', + 'organization' => 'نوع', + 'create-title' => 'ایجاد نوع', + 'edit-title' => 'ویرایش نوع', + 'save-btn-title' => 'ذخیره به عنوان نوع', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'create-success' => 'نوع با موفقیت ایجاد شد.', + 'name-exists' => 'نام نوع قبلا ایجاد شده است.', + 'update-success' => 'نوع با موفقیت بروزرسانی شد.', + 'delete-success' => 'نوع با موفقیت حذف شد.', + 'delete-failed' => 'نوع نمی‌تواند حذف شود.', ], - 'settings' => [ - 'title' => 'تنظیمات', - - 'groups' => [ - 'title' => 'گروه ها', - 'group' => 'گروه', - 'edit-title' => 'ویرایش گروه', - 'description' => 'توضیحات', - 'create-title' => 'ایجاد گروه', - 'save-btn-title' => 'ذخیره به عنوان گروه', - 'update-btn-title' => 'بروزرسانی گروه', - 'create-success' => 'گروه با موفقیت ایجاد شد.', - 'update-success' => 'گروه با موفقیت بروزرسانی شد.', - 'destroy-success' => 'گروه با موفقیت حذف شد.', - 'delete-failed' => 'گروه نمی‌تواند حذف شود.', - 'user-define-error' => 'گروه سیستم نمی‌تواند حذف شود.', - ], - - 'roles' => [ - 'title' => 'نقش های کاربری', - 'role' => 'نقش کاربری', - 'edit-title' => 'ویرایش نقش کاربری', - 'description' => 'توضیحات', - 'create-title' => 'ایجاد نقش کاربری', - 'permission_type' => 'نوع دسترسی', - 'custom' => 'سفارشی', - 'all' => 'همه', - 'save-btn-title' => 'ذخیره به عنوان نقش کاربری', - 'update-btn-title' => 'بروزرسانی نقش کاربری', - 'create-success' => 'نقش کاربری با موفقیت ایجاد شد.', - 'update-success' => 'نقش کاربری با موفقیت بروزرسانی شد.', - 'delete-success' => 'نقش کاربری با موفقیت حذف شد.', - 'delete-failed' => 'نقش کاربری نمی‌تواند حذف شود.', - 'user-define-error' => 'نقش کاربری سیستم نمی‌تواند حذف شود.', - 'last-delete-error' => 'حداقل یک نقش کاربری اجباری است.', - 'current-role-delete-error' => 'نقش کاربری تخصیص داده شده به کاربر جاری قابل حذف نیست.', - 'being-used' => 'نقش کاربری نمی‌تواند حذف شود, زیرا برای کاربر مدیر در حال استفاده است.', - ], - - 'users' => [ - 'title' => 'کاربران', - 'create-title' => 'ایجاد کاربر', - 'edit-title' => 'ویرایش کاربر', - 'general' => 'عمومی', - 'permission' => 'دسترسی', - 'name' => 'نام', - 'email' => 'ایمیل', - 'back' => 'بازگشت', - 'password' => 'پسورد', - 'groups' => 'گروه‌ها', - 'role' => 'نقش کاربری', - 'view-permission' => 'دیدن دسترسی', - 'global' => 'غیرانحصاری', - 'group' => 'گروه', - 'individual' => 'منحصر به فرد', - 'status' => 'وضعیت', - 'save-btn-title' => 'ذخیره به عنوان کاربر', - 'confirm_password' => 'تکرار پسورد', - 'create-success' => 'کاربر با موفقیت ایجاد شد.', - 'update-success' => 'کاربر با موفقیت بروزرسانی شد.', - 'delete-success' => 'کاربر با موفقیت حذف شد.', - 'delete-failed' => 'کاربر نمی‌تواند حذف شود.', - 'user-define-error' => 'کاربر سیستم نمی‌تواند حذف شود.', - 'last-delete-error' => 'حداقل یک کاربر اجباری است.', - 'mass-update-success' => 'کاربران با موفقیت بروزرسانی شد.', - 'mass-update-failed' => 'کاربران نمی‌توانند بروزرسانی شوند.', - 'mass-delete-success' => 'کاربران با موفقیت حذف شدند.', - 'mass-delete-failed' => 'کاربران نمی‌توانند حذف شوند.', - ], - - 'attributes' => [ - 'title' => 'ویژگی‌ها', - 'attribute' => 'ویژگی', - 'create-title' => 'ایجاد ویژگی', - 'edit-title' => 'ویرایش ویژگی', - 'save-btn-title' => 'ذخیره به عنوان ویژگی', - 'back' => 'بازگشت', - 'code' => 'کد', - 'name' => 'نام', - 'type' => 'نوع', - 'text' => 'تکست', - 'textarea' => 'Textarea', - 'price' => 'قیمت', - 'boolean' => 'بولین', - 'select' => 'سلکت', - 'multiselect' => 'سلکت چندتایی', - 'email' => 'ایمیل', - 'address' => 'آدرس', - 'phone' => 'تلفن', - 'datetime' => 'Datetime', - 'date' => 'تاریخ', - 'image' => 'تصویر', - 'file' => 'فایل', - 'entity-type' => 'نوع موجودیت', - 'lookup' => 'جستجو', - 'entity_type' => 'نوع موجودیت', - 'lookup-type' => 'نوع جستجو', - 'checkbox' => 'چکباکس', - 'is_required' => 'اجباری است', - 'is_unique' => 'منحصر به فرد است', - 'yes' => 'بله', - 'no' => 'بدون', - 'input_validation' => 'اعتبارسنجی input', - 'number' => 'عدد', - 'decimal' => 'اعشار', - 'email' => 'پست الکترونیک', - 'url' => 'Url', - 'options-type' => 'نوع گزینه', - 'options' => 'گزینه‌ها', - 'sort-order' => 'ترتیب', - 'add-option-btn-title' => 'افزودن گزینه', - 'create-success' => 'ویژگی با موفقیت ایجاد شد.', - 'update-success' => 'ویژگی با موفقیت بروزرسانی شد.', - 'update-error' => 'ناتوان در بروزرسانی ویژگی.', - 'delete-success' => 'ویژگی با موفقیت حذف شد.', - 'delete-failed' => 'ویژگی نمی‌تواند حذف شود.', - 'user-define-error' => 'ویژگی سیستم نمی‌تواند حذف شود.', - 'mass-delete-failed' => 'ویژگی‌ها نمی‌توانند حذف شوند.', - ], - - 'pipelines' => [ - 'title' => 'کاریزها', - 'organization' => 'کاریز', - 'create-title' => 'ایجاد کاریز', - 'edit-title' => 'ویرایش کاریز', - 'save-btn-title' => 'ذخیره به عنوان کاریز', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'name' => 'نام', - 'rotting-days' => 'روزهای سوخت شده', - 'is-default' => 'علامتگذاری به عنوان پیش فرض', - 'probability' => 'احتمال (%)', - 'add-stage-btn-title' => 'افزودن مرحله', - 'new-stage' => 'جدید', - 'won-stage' => 'برد', - 'lost-stage' => 'باخت', - 'duplicate-name' => 'فیلد "نام" نمی‌تواند تکراری باشد', - 'create-success' => 'کاریز با موفقیت ایجاد شد.', - 'update-success' => 'کاریز با موفقیت بروزرسانی شد.', - 'delete-success' => 'کاریز با موفقیت حذف شد.', - 'delete-failed' => 'کاریز نمی‌تواند حذف شود.', - 'default-delete-error' => 'کاریز پیش فرض نمی‌تواند حذف شود.', - ], - - 'sources' => [ - 'title' => 'منابع', - 'organization' => 'منبع', - 'create-title' => 'ایجاد منبع', - 'edit-title' => 'ویرایش منبع', - 'save-btn-title' => 'ذخیره به عنوان منبع', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'create-success' => 'منبع با موفقیت ایجاد شد.', - 'name-exists' => 'نام منبع قبلا ایجاد شده است.', - 'update-success' => 'منبع با موفقیت بروزرسانی شد.', - 'delete-success' => 'منبع با موفقیت حذف شد.', - 'delete-failed' => 'منبع نمی‌تواند حذف شود.', - ], - - 'types' => [ - 'title' => 'نوع‌ها', - 'organization' => 'نوع', - 'create-title' => 'ایجاد نوع', - 'edit-title' => 'ویرایش نوع', - 'save-btn-title' => 'ذخیره به عنوان نوع', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'create-success' => 'نوع با موفقیت ایجاد شد.', - 'name-exists' => 'نام نوع قبلا ایجاد شده است.', - 'update-success' => 'نوع با موفقیت بروزرسانی شد.', - 'delete-success' => 'نوع با موفقیت حذف شد.', - 'delete-failed' => 'نوع نمی‌تواند حذف شود.', - ], - - 'warehouses' => [ - 'title' => 'انبارها', - 'create-title' => 'ایجاد انبار', - 'edit-title' => 'ویرایش انبار', - 'save-btn-title' => 'ذخیره به عنوان انبار', - 'back' => 'بازگشت', - 'cancel' => 'انصراف', - 'information' => 'اطلاعات', - 'general-information' => 'اطلاعات عمومی', - 'contact-information' => 'اطلاعات تماس', - 'locations' => 'مکان‌ها', - 'products' => 'محصولات', - 'add-location' => 'افزودن مکان', - 'create-success' => 'انبار با موفقیت ایجاد شد.', - 'name-exists' => 'نام انبار از قبل موجود است.', - 'update-success' => 'انبار با موفقیت به روزرسانی شد.', - 'delete-success' => 'انبار با موفقیت حذف شد.', - 'delete-failed' => 'امکان حذف انبار وجود ندارد.', - ], - - 'email-templates' => [ - 'title' => 'قالب‌های ایمیل', - 'create-title' => 'ایجاد قالب ایمیل', - 'edit-title' => 'ویرایش قالب ایمیل', - 'save-btn-title' => 'ذخیره به عنوان قالب ایمیل', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'name' => 'نام', - 'subject' => 'موضوع', - 'content' => 'محتوا', - 'placeholders' => 'متن‌های جایگزین', - 'create-success' => 'قالب ایمیل با موفقیت ایجاد شد.', - 'update-success' => 'قالب ایمیل با موفقیت بروزرسانی شد.', - 'delete-success' => 'قالب ایمیل با موفقیت حذف شد.', - 'delete-failed' => 'قالب ایمیل نمی‌تواند حذف شود.', - ], - - 'workflows' => [ - 'title' => 'گردش کارها', - 'create-title' => 'ایجاد گردش کار', - 'edit-title' => 'ویرایش گردش کار', - 'save-btn-title' => 'ذخیره به عنوان گردش کار', - 'back' => 'بازگشت', - 'cancel' => 'لغو', - 'information' => 'اطلاعات', - 'name' => 'نام', - 'description' => 'توضیحات', - 'event' => 'رویداد', - 'events' => 'رویدادها', - 'created' => 'ایجاد شده', - 'updated' => 'بروزرسانی شده', - 'deleted' => 'حذف شده', - 'event-info' => 'یک رویداد به طور خودکار برای بررسی شرایط و اجرای مجموعه ای از عملیات از پیش تعریف شده مربوطه فعال می شود', - 'conditions' => 'شرایط', - 'condition-info' => 'شرایط مجموعه قوانینی هستند که سناریوهای خاص را بررسی می کنند و در موارد خاص اجرا می شوند', - 'condition-type' => 'نوع شرط', - 'all-conditions-true' => 'تمام شرایط صحیح هستند', - 'any-condition-true' => 'هر شرطی صحیح است', - 'add-condition' => 'افزودن شرط', - 'choose-condition-to-add' => 'انتخاب یک شرط برای افزودن', - 'is-equal-to' => 'معادل است با', - 'is-not-equal-to' => 'معادل نیست با', - 'equals-or-greater-than' => 'بزرگتر مساوی', - 'equals-or-less-than' => 'کوچکتر مساوی', - 'greater-than' => 'بزرگتر از', - 'less-than' => 'کوچکتر از', - 'contain' => 'شامل', - 'contains' => 'شامل', - 'does-not-contain' => 'شامل نیست', - 'actions' => 'عملیات', - 'action-info' => 'یک عمل نه تنها حجم کار را کاهش می دهد، بلکه کار را برای اتوماسیون CRM بسیار آسان می کند', - 'choose-action-to-add' => 'انتخاب عملیات برای افزودن', - 'update-lead' => 'بروزرسانی سرنخ', - 'update-person' => 'برورسانی شخص', - 'send-email-to-person' => 'ارسال ایمیل به شخص', - 'send-email-to-sales-owner' => 'ارسال ایمیل به مالک فروش', - 'send-email-to-participants' => 'ارسال ایمیل به شرکت کنندگان', - 'add-tag' => 'افزودن برچسب', - 'add-note-as-activity' => 'افزودن یادداشت به عنوان فعالیت', - 'choose-attribute' => 'انتخاب ویژگی', - 'choose-option' => 'انتخاب گزینه', - 'update-person' => 'به روزرسانی شخص', - 'update-related-leads' => 'به روزرسانی سرنخ‌های مرتبط', - 'update-quote' => 'به روزرسانی پیشنهاد', - 'add-action' => 'افزودن عملیات', - 'create-success' => 'گردش کار با موفقیت ایجاد شد.', - 'update-success' => 'گردش کار با موفقیت به روزرسانی شد.', - 'delete-success' => 'گردش کار با موفقیت حذف شد.', - 'delete-failed' => 'گردش کار نمی‌تواند حذف شود.', - 'add-webhook' => 'فعال‌سازی وب‌هوک', - 'webhook_heading' => 'تنظیمات وب‌هوک', - 'webhook_url' => 'آدرس URL را وارد کنید', - 'request-headers' => 'سربرگ‌های بدن', - 'webhook_request_method' => 'روش درخواست', - 'get_method' => 'GET', - 'post_method' => 'POST', - 'put_method' => 'PUT', - 'patch_method' => 'PATCH', - 'delete_method' => 'DELETE', - 'webhook_encoding' => 'انتخاب رمزگذاری', - 'encoding_json' => 'JSON', - 'encoding_http_query' => 'X-www-form-urlencoded', - 'request_body' => 'کلید و مقدار', - 'request_body_info' => 'افزودن زوج کلید و مقدار در خط جدید، یعنی، کلید=مقدار', - 'simple_body' => 'خام', - 'raw' => '', - 'lead' => 'سرنخ', - 'person' => 'شخص', - 'quote' => 'پیشنهاد', - 'activity' => 'فعالیت', - 'add_header' => 'افزودن هدر', - 'header_key' => 'کلید', - 'header_value' => 'مقدار', - ], - - 'tags' => [ - 'title' => 'برچسب‌ها', - 'create-title' => 'ایجاد برچسب', - 'edit-title' => 'ویرایش برچسب', - 'cancel' => 'لغو', - 'save-btn-title' => 'ذخیره به عنوان برچسب', - 'name' => 'نام', - 'color' => 'رنگ', - 'create-success' => 'برچسب با موفقیت ایجاد شد.', - 'update-success' => 'برچسب با موفقیت بروزرسانی شد.', - 'delete-success' => 'برچسب با موفقیت حذف شد.', - 'delete-failed' => 'برچسب نمی‌تواند حذف شود.', - ], - - 'web-forms' => [ - 'create-success' => 'وبفرم با موفقیت ایجاد شد', - 'update-success' => 'وبروز با موفقیت بروزرسانی شد', - 'delete-success' => 'وبفرم با موفقیت حذف شد' - ], + 'warehouses' => [ + 'title' => 'انبارها', + 'create-title' => 'ایجاد انبار', + 'edit-title' => 'ویرایش انبار', + 'save-btn-title' => 'ذخیره به عنوان انبار', + 'back' => 'بازگشت', + 'cancel' => 'انصراف', + 'information' => 'اطلاعات', + 'general-information' => 'اطلاعات عمومی', + 'contact-information' => 'اطلاعات تماس', + 'locations' => 'مکان‌ها', + 'products' => 'محصولات', + 'add-location' => 'افزودن مکان', + 'create-success' => 'انبار با موفقیت ایجاد شد.', + 'name-exists' => 'نام انبار از قبل موجود است.', + 'update-success' => 'انبار با موفقیت به روزرسانی شد.', + 'delete-success' => 'انبار با موفقیت حذف شد.', + 'delete-failed' => 'امکان حذف انبار وجود ندارد.', ], - 'configuration' => [ - 'title' => 'پیکربندی', - 'save-btn-title' => 'ذخیره', - 'general' => 'عمومی', - 'locale-settings' => 'تنظیمات منطقه', - 'locale' => 'منطقه', - 'timezone' => 'منطقه زمانی', - 'date-time-formats' => 'فرمت‌های تاریخ و زمان', - 'save-message' => 'پیکربندی با موفقیت بروزرسانی شد!', - "emails" => [ - 'email' => 'ایمیل', - 'notification_label' => 'اطلاعیه‌ها', - 'new_lead' => 'سرنخ جدید', - ] + 'email-templates' => [ + 'title' => 'قالب‌های ایمیل', + 'create-title' => 'ایجاد قالب ایمیل', + 'edit-title' => 'ویرایش قالب ایمیل', + 'save-btn-title' => 'ذخیره به عنوان قالب ایمیل', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'name' => 'نام', + 'subject' => 'موضوع', + 'content' => 'محتوا', + 'placeholders' => 'متن‌های جایگزین', + 'create-success' => 'قالب ایمیل با موفقیت ایجاد شد.', + 'update-success' => 'قالب ایمیل با موفقیت بروزرسانی شد.', + 'delete-success' => 'قالب ایمیل با موفقیت حذف شد.', + 'delete-failed' => 'قالب ایمیل نمی‌تواند حذف شود.', ], - 'datagrid' => [ - 'id' => 'شناسه', - 'name' => 'نام', - 'code' => 'کد', - 'sku' => 'SKU', - 'type' => 'نوع', - 'price' => 'قیمت', - 'email' => 'ایمیل', - 'attachments' => 'ضمیمه‌ها', - 'from' => 'از', - 'lead' => 'سرنخ', - 'title' => 'عنوان', - 'subject' => 'موضوع', - 'tags' => 'برچسب‌ها', - 'emails' => 'ایمیل‌ها', - 'stage' => 'مرحله', - 'status' => 'وضعیت', - 'active' => 'فعال', - 'inactive' => 'غیرفعال', - 'address' => 'آدرس', - 'quantity' => 'مقدار', - 'lead_value' => 'مقدار سرنخ', - 'comment' => 'نظر', - 'is_done' => 'انجام شده', - 'type' => 'تایپ کنید', - 'all' => 'همه', - 'user' => 'کاربر', - 'sales-person' => 'فروشنده', - 'expired_quotes' => 'پیشنهادهای قیمت منقضی شده', - 'person' => 'شخص', - 'sub-total' => 'جمع جزء', - 'discount' => 'تخفیف', - 'tax' => 'مالیات', - 'adjustment' => 'تنظیم', - 'grand-total' => 'جمع کل', - 'persons_count' => 'تعداد اشخاص', - 'assigned_to' => 'تخصیص داده شده به', - 'created_by' => 'ایجاد شده توسط', - 'entity_type' => 'نوع موجودیت', - 'created_at' => 'تاریخ ایجاد', - 'expected_close_date' => 'تاریخ بستن پیش بینی شده', - 'schedule_from' => 'زمانبندی از', - 'schedule_to' => 'زمانبندی تا', - 'description' => 'توضیحات', - 'update_stage' => 'بروزرسانی مرحله', - 'contact_person' => 'شخص مخاطب', - 'contact_numbers' => 'شماره‌های مخاطب', - 'permission_type' => 'نوع دسترسی', - 'organization_name' => 'نام سازمان', - 'is-default' => 'پیش فرض است', - 'rotten-days' => 'روزهای سوخت شده', - 'rotten_lead' => 'سرنخ سوخت شده', - 'yes' => 'بله', - 'no' => 'بدون', - 'move-to-inbox' => 'انتقال به صندوق ورودی', - 'update-success' => ':resource با موفقیت بروزرسانی شد.', - 'destroy-success' => ':resource با موفقیت حذف شد.', - 'destroy-failed' => ':resource نمی‌تواند حذف شود.', - 'attribute_type' => 'نوع ویژگی', - 'contact-name' => 'نام تماس', - 'contact-emails' => 'ایمیل‌های تماس', - 'contact-numbers' => 'شماره‌های تماس', - 'in-stock' => 'موجود در انبار', - 'allocated' => 'تخصیص یافته', - 'on-hand' => 'در دسترس', - 'products' => 'محصولات', - 'filters' => [ - 'yesterday' => 'دیروز', - 'today' => 'امروز', - 'tomorrow' => 'فردا', - 'this-week' => 'هفته جاری', - 'this-month' => 'ماه جاری', - 'custom' => 'سفارشی', - ] + 'workflows' => [ + 'title' => 'گردش کارها', + 'create-title' => 'ایجاد گردش کار', + 'edit-title' => 'ویرایش گردش کار', + 'save-btn-title' => 'ذخیره به عنوان گردش کار', + 'back' => 'بازگشت', + 'cancel' => 'لغو', + 'information' => 'اطلاعات', + 'name' => 'نام', + 'description' => 'توضیحات', + 'event' => 'رویداد', + 'events' => 'رویدادها', + 'created' => 'ایجاد شده', + 'updated' => 'بروزرسانی شده', + 'deleted' => 'حذف شده', + 'event-info' => 'یک رویداد به طور خودکار برای بررسی شرایط و اجرای مجموعه ای از عملیات از پیش تعریف شده مربوطه فعال می شود', + 'conditions' => 'شرایط', + 'condition-info' => 'شرایط مجموعه قوانینی هستند که سناریوهای خاص را بررسی می کنند و در موارد خاص اجرا می شوند', + 'condition-type' => 'نوع شرط', + 'all-conditions-true' => 'تمام شرایط صحیح هستند', + 'any-condition-true' => 'هر شرطی صحیح است', + 'add-condition' => 'افزودن شرط', + 'choose-condition-to-add' => 'انتخاب یک شرط برای افزودن', + 'is-equal-to' => 'معادل است با', + 'is-not-equal-to' => 'معادل نیست با', + 'equals-or-greater-than' => 'بزرگتر مساوی', + 'equals-or-less-than' => 'کوچکتر مساوی', + 'greater-than' => 'بزرگتر از', + 'less-than' => 'کوچکتر از', + 'contain' => 'شامل', + 'contains' => 'شامل', + 'does-not-contain' => 'شامل نیست', + 'actions' => 'عملیات', + 'action-info' => 'یک عمل نه تنها حجم کار را کاهش می دهد، بلکه کار را برای اتوماسیون CRM بسیار آسان می کند', + 'choose-action-to-add' => 'انتخاب عملیات برای افزودن', + 'update-lead' => 'بروزرسانی سرنخ', + 'update-person' => 'برورسانی شخص', + 'send-email-to-person' => 'ارسال ایمیل به شخص', + 'send-email-to-sales-owner' => 'ارسال ایمیل به مالک فروش', + 'send-email-to-participants' => 'ارسال ایمیل به شرکت کنندگان', + 'add-tag' => 'افزودن برچسب', + 'add-note-as-activity' => 'افزودن یادداشت به عنوان فعالیت', + 'choose-attribute' => 'انتخاب ویژگی', + 'choose-option' => 'انتخاب گزینه', + 'update-person' => 'به روزرسانی شخص', + 'update-related-leads' => 'به روزرسانی سرنخ‌های مرتبط', + 'update-quote' => 'به روزرسانی پیشنهاد', + 'add-action' => 'افزودن عملیات', + 'create-success' => 'گردش کار با موفقیت ایجاد شد.', + 'update-success' => 'گردش کار با موفقیت به روزرسانی شد.', + 'delete-success' => 'گردش کار با موفقیت حذف شد.', + 'delete-failed' => 'گردش کار نمی‌تواند حذف شود.', + 'add-webhook' => 'فعال‌سازی وب‌هوک', + 'webhook_heading' => 'تنظیمات وب‌هوک', + 'webhook_url' => 'آدرس URL را وارد کنید', + 'request-headers' => 'سربرگ‌های بدن', + 'webhook_request_method' => 'روش درخواست', + 'get_method' => 'GET', + 'post_method' => 'POST', + 'put_method' => 'PUT', + 'patch_method' => 'PATCH', + 'delete_method' => 'DELETE', + 'webhook_encoding' => 'انتخاب رمزگذاری', + 'encoding_json' => 'JSON', + 'encoding_http_query' => 'X-www-form-urlencoded', + 'request_body' => 'کلید و مقدار', + 'request_body_info' => 'افزودن زوج کلید و مقدار در خط جدید، یعنی، کلید=مقدار', + 'simple_body' => 'خام', + 'raw' => '', + 'lead' => 'سرنخ', + 'person' => 'شخص', + 'quote' => 'پیشنهاد', + 'activity' => 'فعالیت', + 'add_header' => 'افزودن هدر', + 'header_key' => 'کلید', + 'header_value' => 'مقدار', ], - 'response' => [ - 'create-success' => ':name با موفقیت ایجاد شد.', - 'update-success' => ':name با موفقیت بروزرسانی شد.', - 'destroy-success'=> ':name با موفقیت حذف شد.', - 'destroy-failed' => ':name نمی‌تواند حذف شود.', + 'tags' => [ + 'title' => 'برچسب‌ها', + 'create-title' => 'ایجاد برچسب', + 'edit-title' => 'ویرایش برچسب', + 'cancel' => 'لغو', + 'save-btn-title' => 'ذخیره به عنوان برچسب', + 'name' => 'نام', + 'color' => 'رنگ', + 'create-success' => 'برچسب با موفقیت ایجاد شد.', + 'update-success' => 'برچسب با موفقیت بروزرسانی شد.', + 'delete-success' => 'برچسب با موفقیت حذف شد.', + 'delete-failed' => 'برچسب نمی‌تواند حذف شود.', ], - 'acl' => [ - 'leads' => 'سرنخ‌ها', - 'lead' => 'سرنخ', - 'quotes' => 'پیشنهادات قیمت', - 'mail' => 'ایمیل', - 'inbox' => 'صندوق ورودی', - 'draft' => 'پیش نویس', - 'outbox' => 'صندوق خروجی', - 'sent' => 'ارسال', - 'trash' => 'سطل زباله', - 'activities' => 'فعالیت ها', - 'contacts' => 'مخاطبان', - 'persons' => 'اشخاص', - 'organizations' => 'سازمان‌ها', - 'products' => 'محصولات', - 'settings' => 'تنظیمات', - 'groups' => 'گروه‌ها', - 'roles' => 'نقش‌های کاربری', - 'users' => 'کاربران', - 'user' => 'کاربر', - 'automation' => 'اتوماسیون', - 'attributes' => 'ویژگی‌ها', - 'pipelines' => 'کاریزها', - 'sources' => 'منابع', - 'types' => 'نوع‌ها', - 'email-templates' => 'قالب‌های ایمیل', - 'workflows' => 'گردش کارها', - 'other-settings' => 'سایر تنظیمات', - 'tags' => 'برچسب‌ها', - 'configuration' => 'پیکربندی', - 'create' => 'ایجاد', - 'edit' => 'ویرایش', - 'view' => 'نمایش', - 'print' => 'پرینت', - 'delete' => 'حذف', - 'export' => 'اکسپورت', - 'mass-delete' => 'حذف انبوه', + 'web-forms' => [ + 'create-success' => 'وبفرم با موفقیت ایجاد شد', + 'update-success' => 'وبروز با موفقیت بروزرسانی شد', + 'delete-success' => 'وبفرم با موفقیت حذف شد', ], - - 'common' => [ - 'back' => 'بازگشت', - 'address' => 'آدرس', - 'country' => 'کشور', - 'add_more' => 'افزودن بیشتر', - 'select-country' => 'لطفا کشور را انتخاب کنید', - 'select-users' => 'انتخاب یوزرها', - 'select_rotten_leads' => 'انتخاب سرنخ‌های سوخت شده', - 'select-organization' => 'انتخاب سازمان‌ها', - 'state' => 'استان', - 'select-state' => 'لطفا استان را انتخاب کنید', - 'city' => 'شهر', - 'postcode' => 'کدپستی', - 'address-validation' => 'فیلد "آدرس" اجباری است', - 'work' => 'محل کار', - 'home' => 'خانه', - 'no-result-found' => 'رکوردی با این نام یافت نشد.', - 'add-as' => 'افزودن به عنوان جدید', - 'not-available' => 'در دسترس نیست', - 'select-options' => 'انتخاب گزینه‌ها', - 'yes' => 'بله', - 'no' => 'بدون', - 'delete' => 'حذف', - 'save' => 'ذخیره', - 'locale' => 'منطقه', - 'en' => 'English', - 'tr' => 'Türkçe', - 'ar' => 'Arabic', - 'es' => 'Spanish', - 'add-as' => 'به عنوان جدید اضافه کنید', - 'no-records-found' => 'رکوردی یافت نشد', - 'start-typing' => 'برای یافتن رکوردها شروع به تایپ کنید', - 'select-type' => 'انتخاب نوع', - 'select-call' => 'تماس', - 'select-meeting' => 'جلسه', - 'select-lunch' => 'نهار', - 'duplicate-value' => 'مقدار نمی‌تواند تکراری باشد', - 'unauthenticated' => 'احرازهویت نشده', - 'resource-not-found' => 'منبع یافت نشد', - 'forbidden-error' => 'خطای ممنوعه ۴۰۳', - 'internal-server-error' => 'خطای داخلی سرور ۵۰۰', - 'something-went-wrong' => 'مشکلی رخ داده است. لطفا بعدا دوباره امتحان کنید.', - 'delete-confirm' => 'آیا از حذف این آیتم اطمینان دارید؟', - 'system_attribute' => 'سیستم', - 'custom_attribute' => 'سفارشی', + ], + + 'configuration' => [ + 'title' => 'پیکربندی', + 'save-btn-title' => 'ذخیره', + 'general' => 'عمومی', + 'locale-settings' => 'تنظیمات منطقه', + 'locale' => 'منطقه', + 'timezone' => 'منطقه زمانی', + 'date-time-formats' => 'فرمت‌های تاریخ و زمان', + 'save-message' => 'پیکربندی با موفقیت بروزرسانی شد!', + 'emails' => [ + 'email' => 'ایمیل', + 'notification_label' => 'اطلاعیه‌ها', + 'new_lead' => 'سرنخ جدید', ], - - 'user' => [ - 'account' => [ - 'name' => 'نام', - 'email' => 'ایمیل', - 'password' => 'پسورد', - 'my_account' => 'حساب کاربری من', - 'update_details' => 'بروزرسانی مشخصات', - 'current_password' => 'پسورد فعلی', - 'confirm_password' => 'تکرار پسورد', - 'password-match' => 'پسورد فعلی صحیح نیست.', - 'account-save' => 'تغییرات حساب کاربری با موفقیت ذخیره شد.', - 'permission-denied' => 'عدم دسترسی', - 'remove-image' => 'حذف تصویر', - 'upload_image_pix' => 'آپلود یک تصویر پروفایل (100px x 100px)', - 'upload_image_format' =>'در فرمت PNG یا JPG', - 'image_upload_message' => 'تنها تصاویر (.jpeg, .jpg, .png, ..) مجاز هستند.' - ] + ], + + 'datagrid' => [ + 'id' => 'شناسه', + 'name' => 'نام', + 'code' => 'کد', + 'sku' => 'SKU', + 'type' => 'نوع', + 'price' => 'قیمت', + 'email' => 'ایمیل', + 'attachments' => 'ضمیمه‌ها', + 'from' => 'از', + 'lead' => 'سرنخ', + 'title' => 'عنوان', + 'subject' => 'موضوع', + 'tags' => 'برچسب‌ها', + 'emails' => 'ایمیل‌ها', + 'stage' => 'مرحله', + 'status' => 'وضعیت', + 'active' => 'فعال', + 'inactive' => 'غیرفعال', + 'address' => 'آدرس', + 'quantity' => 'مقدار', + 'lead_value' => 'مقدار سرنخ', + 'comment' => 'نظر', + 'is_done' => 'انجام شده', + 'type' => 'تایپ کنید', + 'all' => 'همه', + 'user' => 'کاربر', + 'sales-person' => 'فروشنده', + 'expired_quotes' => 'پیشنهادهای قیمت منقضی شده', + 'person' => 'شخص', + 'sub-total' => 'جمع جزء', + 'discount' => 'تخفیف', + 'tax' => 'مالیات', + 'adjustment' => 'تنظیم', + 'grand-total' => 'جمع کل', + 'persons_count' => 'تعداد اشخاص', + 'assigned_to' => 'تخصیص داده شده به', + 'created_by' => 'ایجاد شده توسط', + 'entity_type' => 'نوع موجودیت', + 'created_at' => 'تاریخ ایجاد', + 'expected_close_date' => 'تاریخ بستن پیش بینی شده', + 'schedule_from' => 'زمانبندی از', + 'schedule_to' => 'زمانبندی تا', + 'description' => 'توضیحات', + 'update_stage' => 'بروزرسانی مرحله', + 'contact_person' => 'شخص مخاطب', + 'contact_numbers' => 'شماره‌های مخاطب', + 'permission_type' => 'نوع دسترسی', + 'organization_name' => 'نام سازمان', + 'is-default' => 'پیش فرض است', + 'rotten-days' => 'روزهای سوخت شده', + 'rotten_lead' => 'سرنخ سوخت شده', + 'yes' => 'بله', + 'no' => 'بدون', + 'move-to-inbox' => 'انتقال به صندوق ورودی', + 'update-success' => ':resource با موفقیت بروزرسانی شد.', + 'destroy-success' => ':resource با موفقیت حذف شد.', + 'destroy-failed' => ':resource نمی‌تواند حذف شود.', + 'attribute_type' => 'نوع ویژگی', + 'contact-name' => 'نام تماس', + 'contact-emails' => 'ایمیل‌های تماس', + 'contact-numbers' => 'شماره‌های تماس', + 'in-stock' => 'موجود در انبار', + 'allocated' => 'تخصیص یافته', + 'on-hand' => 'در دسترس', + 'products' => 'محصولات', + 'filters' => [ + 'yesterday' => 'دیروز', + 'today' => 'امروز', + 'tomorrow' => 'فردا', + 'this-week' => 'هفته جاری', + 'this-month' => 'ماه جاری', + 'custom' => 'سفارشی', ], + ], + + 'response' => [ + 'create-success' => ':name با موفقیت ایجاد شد.', + 'update-success' => ':name با موفقیت بروزرسانی شد.', + 'destroy-success'=> ':name با موفقیت حذف شد.', + 'destroy-failed' => ':name نمی‌تواند حذف شود.', + ], + + 'acl' => [ + 'leads' => 'سرنخ‌ها', + 'lead' => 'سرنخ', + 'quotes' => 'پیشنهادات قیمت', + 'mail' => 'ایمیل', + 'inbox' => 'صندوق ورودی', + 'draft' => 'پیش نویس', + 'outbox' => 'صندوق خروجی', + 'sent' => 'ارسال', + 'trash' => 'سطل زباله', + 'activities' => 'فعالیت ها', + 'contacts' => 'مخاطبان', + 'persons' => 'اشخاص', + 'organizations' => 'سازمان‌ها', + 'products' => 'محصولات', + 'settings' => 'تنظیمات', + 'groups' => 'گروه‌ها', + 'roles' => 'نقش‌های کاربری', + 'users' => 'کاربران', + 'user' => 'کاربر', + 'automation' => 'اتوماسیون', + 'attributes' => 'ویژگی‌ها', + 'pipelines' => 'کاریزها', + 'sources' => 'منابع', + 'types' => 'نوع‌ها', + 'email-templates' => 'قالب‌های ایمیل', + 'workflows' => 'گردش کارها', + 'other-settings' => 'سایر تنظیمات', + 'tags' => 'برچسب‌ها', + 'configuration' => 'پیکربندی', + 'create' => 'ایجاد', + 'edit' => 'ویرایش', + 'view' => 'نمایش', + 'print' => 'پرینت', + 'delete' => 'حذف', + 'export' => 'اکسپورت', + 'mass-delete' => 'حذف انبوه', + ], + + 'common' => [ + 'back' => 'بازگشت', + 'address' => 'آدرس', + 'country' => 'کشور', + 'add_more' => 'افزودن بیشتر', + 'select-country' => 'لطفا کشور را انتخاب کنید', + 'select-users' => 'انتخاب یوزرها', + 'select_rotten_leads' => 'انتخاب سرنخ‌های سوخت شده', + 'select-organization' => 'انتخاب سازمان‌ها', + 'state' => 'استان', + 'select-state' => 'لطفا استان را انتخاب کنید', + 'city' => 'شهر', + 'postcode' => 'کدپستی', + 'address-validation' => 'فیلد "آدرس" اجباری است', + 'work' => 'محل کار', + 'home' => 'خانه', + 'no-result-found' => 'رکوردی با این نام یافت نشد.', + 'add-as' => 'افزودن به عنوان جدید', + 'not-available' => 'در دسترس نیست', + 'select-options' => 'انتخاب گزینه‌ها', + 'yes' => 'بله', + 'no' => 'بدون', + 'delete' => 'حذف', + 'save' => 'ذخیره', + 'locale' => 'منطقه', + 'en' => 'English', + 'tr' => 'Türkçe', + 'ar' => 'Arabic', + 'es' => 'Spanish', + 'add-as' => 'به عنوان جدید اضافه کنید', + 'no-records-found' => 'رکوردی یافت نشد', + 'start-typing' => 'برای یافتن رکوردها شروع به تایپ کنید', + 'select-type' => 'انتخاب نوع', + 'select-call' => 'تماس', + 'select-meeting' => 'جلسه', + 'select-lunch' => 'نهار', + 'duplicate-value' => 'مقدار نمی‌تواند تکراری باشد', + 'unauthenticated' => 'احرازهویت نشده', + 'resource-not-found' => 'منبع یافت نشد', + 'forbidden-error' => 'خطای ممنوعه ۴۰۳', + 'internal-server-error' => 'خطای داخلی سرور ۵۰۰', + 'something-went-wrong' => 'مشکلی رخ داده است. لطفا بعدا دوباره امتحان کنید.', + 'delete-confirm' => 'آیا از حذف این آیتم اطمینان دارید؟', + 'system_attribute' => 'سیستم', + 'custom_attribute' => 'سفارشی', + ], + + 'user' => [ + 'account' => [ + 'name' => 'نام', + 'email' => 'ایمیل', + 'password' => 'پسورد', + 'my_account' => 'حساب کاربری من', + 'update_details' => 'بروزرسانی مشخصات', + 'current_password' => 'پسورد فعلی', + 'confirm_password' => 'تکرار پسورد', + 'password-match' => 'پسورد فعلی صحیح نیست.', + 'account-save' => 'تغییرات حساب کاربری با موفقیت ذخیره شد.', + 'permission-denied' => 'عدم دسترسی', + 'remove-image' => 'حذف تصویر', + 'upload_image_pix' => 'آپلود یک تصویر پروفایل (100px x 100px)', + 'upload_image_format' => 'در فرمت PNG یا JPG', + 'image_upload_message' => 'تنها تصاویر (.jpeg, .jpg, .png, ..) مجاز هستند.', + ], + ], - 'emails' => [ - 'common' => [ - 'dear' => ':name عزیز', - 'cheers' => 'با تشکر,
تیم :app_name' - ], + 'emails' => [ + 'common' => [ + 'dear' => ':name عزیز', + 'cheers' => 'با تشکر,
تیم :app_name', ], + ], - 'errors' => [ - '401' => 'شما اجازه دسترسی به این صفحه را ندارید' - ] - ]; + 'errors' => [ + '401' => 'شما اجازه دسترسی به این صفحه را ندارید', + ], +]; diff --git a/packages/Webkul/Admin/src/Resources/lang/tr/app.php b/packages/Webkul/Admin/src/Resources/lang/tr/app.php index 284081ce3..a7867ec1a 100644 --- a/packages/Webkul/Admin/src/Resources/lang/tr/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/tr/app.php @@ -1,942 +1,943 @@ [ - 'title' => 'Panel', - 'cards' => 'Kartlar', - 'column' => 'Kolon', - 'done' => 'Tamamla', - 'activity' => 'Etkinlik', - 'activities' => 'Etkinlikler', - 'top_leads' => 'En İyi Talepler', - 'pipelines' => 'İşlem Hatları', - 'quotes' => 'Teklifler', - 'emails' => 'E-postalar', - 'custom_card' => 'Özel Kart', - 'customers' => 'Müşteriler', - 'top_customers' => 'En İyi Müşteriler', - 'products' => 'Ürünler', - 'top_products' => 'En İyi Ürünler', - 'leads_started' => 'Olası satışlar başladı', - 'leads_over_time' => 'Zamanla yol açar', - 'no_record_found' => 'Kayıt Bulunamadı', - 'week' => 'Hafta', + +return [ + 'dashboard' => [ + 'title' => 'Panel', + 'cards' => 'Kartlar', + 'column' => 'Kolon', + 'done' => 'Tamamla', + 'activity' => 'Etkinlik', + 'activities' => 'Etkinlikler', + 'top_leads' => 'En İyi Talepler', + 'pipelines' => 'İşlem Hatları', + 'quotes' => 'Teklifler', + 'emails' => 'E-postalar', + 'custom_card' => 'Özel Kart', + 'customers' => 'Müşteriler', + 'top_customers' => 'En İyi Müşteriler', + 'products' => 'Ürünler', + 'top_products' => 'En İyi Ürünler', + 'leads_started' => 'Olası satışlar başladı', + 'leads_over_time' => 'Zamanla yol açar', + 'no_record_found' => 'Kayıt Bulunamadı', + 'week' => 'Hafta', + ], + + 'layouts' => [ + 'app-version' => 'Sürüm : :version', + 'dashboard' => 'Panel', + 'leads' => 'Adaylar', + 'quotes' => 'Teklifler', + 'quote' => 'Teklif', + 'mail' => [ + 'title' => 'Posta', + 'compose' => 'Oluştur', + 'inbox' => 'Gelen Kutusu', + 'draft' => 'Taslak', + 'outbox' => 'Giden Kutusu', + 'sent' => 'Gönderilmiş', + 'trash' => 'Çöp', + 'setting' => 'Ayar', + ], + 'activities' => 'Faaliyetler', + 'contacts' => 'Kişiler', + 'persons' => 'Kişiler', + 'person' => 'Kişi', + 'organizations' => 'Organizasyonlar', + 'organization' => 'Organizasyon', + 'products' => 'Ürünler', + 'product' => 'Ürün', + 'settings' => 'Ayarlar', + 'user' => 'Kullanıcı', + 'user-info' => 'CRM\'deki tüm kullanıcılarınızı ve izinlerini, ne yapmalarına izin verildiğini yönetin.', + 'groups' => 'Gruplar', + 'groups-info' => 'CRM\'den grup ekleyin, düzenleyin veya silin', + 'roles' => 'Roller', + 'role' => 'Rol', + 'roles-info' => 'CRM\'den roller ekleyin, düzenleyin veya silin', + 'users' => 'Kullanıcılar', + 'users-info' => 'CRM\'den kullanıcı ekleyin, düzenleyin veya silin', + 'lead' => 'Lider', + 'lead-info' => 'Müşteri adayıyla ilgili tüm ayarlarınızı CRM\'de yönetin', + 'pipelines' => 'İşlem Hatları', + 'pipelines-info' => 'CRM\'den işlem hatları ekleyin, düzenleyin veya silin', + 'sources' => 'Kaynaklar', + 'sources-info' => 'CRM\'den kaynak ekleyin, düzenleyin veya silin', + 'types' => 'Türler', + 'types-info' => 'CRM\'den türleri ekleyin, düzenleyin veya silin', + 'automation' => 'Otomasyon', + 'automation-info' => 'Otomasyonla ilgili tüm ayarlarınızı CRM\'de yönetin', + 'attributes' => 'Özellikler', + 'attribute' => 'Özellik', + 'attributes-info' => 'CRM\'den nitelikler ekleyin, düzenleyin veya silin', + 'email-templates' => 'E-posta Şablonları', + 'email' => 'E-posta', + 'email-templates-info' => 'CRM\'den e-posta şablonları ekleyin, düzenleyin veya silin', + 'workflows' => 'İş Akışları', + 'workflows-info' => 'CRM\'den iş akışları ekleyin, düzenleyin veya silin', + 'other-settings' => 'Diğer Ayarlar', + 'other-settings-info' => 'Tüm ekstra ayarlarınızı CRM\'de yönetin', + 'tags' => 'Etiketler', + 'tags-info' => 'CRM\'den etiket ekleyin, düzenleyin veya silin', + 'my-account' => 'Hesabım', + 'sign-out' => 'Oturumu Kapat', + 'back' => 'Geri', + 'name' => 'İsim', + 'configuration' => 'Yapılandırma', + 'activities' => 'Etkinlikler', + 'howdy' => 'Merhaba!', + 'warehouses' => 'Depolar', + 'warehouse' => 'Depo', + 'warehouses-info' => 'CRM üzerinden depo ekle, düzenle veya sil', + ], + + 'contacts' => [ + 'organizations' => [ + 'title' => 'Organizasyonlar', + 'organization' => 'Organizasyon', + 'create-title' => 'Organizasyon Oluştur', + 'edit-title' => 'Organizasyonu Düzenle', + 'save-btn-title' => 'Kuruluş Olarak Kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'create-success' => 'Kuruluş başarıyla oluşturuldu.', + 'update-success' => 'Kuruluş başarıyla güncellendi.', + 'delete-success' => 'Kuruluş başarıyla silindi.', + 'delete-failed' => 'Kuruluş silinemez.', ], - 'layouts' => [ - 'app-version' => 'Sürüm : :version', - 'dashboard' => 'Panel', - 'leads' => 'Adaylar', - 'quotes' => 'Teklifler', - 'quote' => 'Teklif', - 'mail' => [ - 'title' => 'Posta', - 'compose' => 'Oluştur', - 'inbox' => 'Gelen Kutusu', - 'draft' => 'Taslak', - 'outbox' => 'Giden Kutusu', - 'sent' => 'Gönderilmiş', - 'trash' => 'Çöp', - 'setting' => 'Ayar', - ], - 'activities' => 'Faaliyetler', - 'contacts' => 'Kişiler', - 'persons' => 'Kişiler', - 'person' => 'Kişi', - 'organizations' => 'Organizasyonlar', - 'organization' => 'Organizasyon', - 'products' => 'Ürünler', - 'product' => 'Ürün', - 'settings' => 'Ayarlar', - 'user' => 'Kullanıcı', - 'user-info' => 'CRM\'deki tüm kullanıcılarınızı ve izinlerini, ne yapmalarına izin verildiğini yönetin.', - 'groups' => 'Gruplar', - 'groups-info' => 'CRM\'den grup ekleyin, düzenleyin veya silin', - 'roles' => 'Roller', - 'role' => 'Rol', - 'roles-info' => 'CRM\'den roller ekleyin, düzenleyin veya silin', - 'users' => 'Kullanıcılar', - 'users-info' => 'CRM\'den kullanıcı ekleyin, düzenleyin veya silin', - 'lead' => 'Lider', - 'lead-info' => 'Müşteri adayıyla ilgili tüm ayarlarınızı CRM\'de yönetin', - 'pipelines' => 'İşlem Hatları', - 'pipelines-info' => 'CRM\'den işlem hatları ekleyin, düzenleyin veya silin', - 'sources' => 'Kaynaklar', - 'sources-info' => 'CRM\'den kaynak ekleyin, düzenleyin veya silin', - 'types' => 'Türler', - 'types-info' => 'CRM\'den türleri ekleyin, düzenleyin veya silin', - 'automation' => 'Otomasyon', - 'automation-info' => 'Otomasyonla ilgili tüm ayarlarınızı CRM\'de yönetin', - 'attributes' => 'Özellikler', - 'attribute' => 'Özellik', - 'attributes-info' => 'CRM\'den nitelikler ekleyin, düzenleyin veya silin', - 'email-templates' => 'E-posta Şablonları', - 'email' => 'E-posta', - 'email-templates-info' => 'CRM\'den e-posta şablonları ekleyin, düzenleyin veya silin', - 'workflows' => 'İş Akışları', - 'workflows-info' => 'CRM\'den iş akışları ekleyin, düzenleyin veya silin', - 'other-settings' => 'Diğer Ayarlar', - 'other-settings-info' => 'Tüm ekstra ayarlarınızı CRM\'de yönetin', - 'tags' => 'Etiketler', - 'tags-info' => 'CRM\'den etiket ekleyin, düzenleyin veya silin', - 'my-account' => 'Hesabım', - 'sign-out' => 'Oturumu Kapat', - 'back' => 'Geri', - 'name' => 'İsim', - 'configuration' => 'Yapılandırma', - 'activities' => 'Etkinlikler', - 'howdy' => 'Merhaba!', - 'warehouses' => 'Depolar', - 'warehouse' => 'Depo', - 'warehouses-info' => 'CRM üzerinden depo ekle, düzenle veya sil', + 'persons' => [ + 'title' => 'Kişiler', + 'person' => 'Kişi', + 'create-title' => 'Kişi Oluştur', + 'edit-title' => 'Kişiyi Düzenle', + 'save-btn-title' => 'Kişi olarak kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'create-success' => 'Kişi başarıyla oluşturuldu.', + 'update-success' => 'Kişi başarıyla güncellendi.', + 'delete-success' => 'Kişi başarıyla silindi.', + 'delete-failed' => 'Kişi silinemez.', + ], + ], + + 'leads' => [ + 'title' => 'Adaylar', + 'lead' => 'Lider', + 'create-title' => 'Müşteri Adayı Oluştur', + 'edit-title' => 'Müşteri Adayını Düzenle', + 'save-btn-title' => 'Müşteri adayı olarak kaydet', + 'save' => 'Kaydet', + 'upload' => 'Yükle', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'no-lead' => 'Aday Yok', + 'lead-source-name' => 'Öncü kaynak', + 'details' => 'Detaylar', + 'rotten-info' => 'Müşteri adayı :days gün(ler)', + 'stage' => 'Sahne', + 'new' => 'Yeni', + 'won-lost' => 'Kazanan/Kaybeden', + 'won' => 'Kazanan', + 'lost' => 'Kaybetme', + 'change-stage' => 'Aşamayı Değiştir', + 'lost-reason' => 'Kayıp Sebep', + 'won-value' => 'Kazanılan Değer', + 'created-date:' => 'Oluşturma Tarihi:', + 'closed-date:' => 'Kapanış Tarihi:', + 'closed-date' => 'Kapanış Tarihi', + 'expected-close-date:' => 'Beklenen Kapanış Tarihi:', + 'contact-person' => 'İlgili Kişi', + 'add-tag' => 'Etiket Ekle', + 'search-tag' => 'Etiketi Ara', + 'name' => 'İsim', + 'color' => 'Renk', + 'email' => 'E-posta', + 'contact-numbers' => 'İletişim Numaraları', + 'organization' => 'Organizasyon', + 'address' => 'Adres', + 'products' => 'Ürünler', + 'item' => 'Kalem', + 'price' => 'Fiyat', + 'quantity' => 'Miktar', + 'amount' => 'Tutar', + 'create-success' => 'Müşteri adayı başarıyla oluşturuldu.', + 'update-success' => 'Müşteri adayı başarıyla güncellendi.', + 'delete-success' => 'Müşteri adayı başarıyla silindi.', + 'delete-failed' => 'Müşteri adayı silinemez.', + 'product-quantity-required' => 'Ürün miktarı, ürün kimliği mevcut olduğunda gereklidir.', + 'product-price-required' => 'Ürün fiyatı, ürün kimliği mevcut olduğunda gereklidir.', + 'product-name-required' => 'Ürün adı, ürün kimliği mevcut olduğunda gereklidir.', + 'selected-product-not-exist' => 'Seçilen ürün kimliği mevcut değil.', + 'note' => 'Not', + 'activity' => 'Etkinlik', + 'title-control' => 'Başlık', + 'call' => 'Arama Yap', + 'meeting' => 'Toplantı', + 'lunch' => 'Öğle Yemeği', + 'file' => 'Dosya', + 'quote' => 'Teklif', + 'create-quote' => 'Teklif Oluştur', + 'type' => 'Tip', + 'description' => 'Açıklama', + 'schedule' => 'Takvim', + 'from' => 'İtibaren', + 'to' => 'İle', + 'location' => 'Lokasyon', + 'participants' => 'Katılımcılar', + 'participant-info' => 'Adı yazmaya başla', + 'users' => 'Kullanıcılar', + 'persons' => 'Kişiler', + 'cc' => 'Bilgi', + 'bcc' => 'Gizli', + 'email-placeholder' => 'E-posta eklemek için enter\'a basın', + 'file' => 'Dosya', + 'subject' => 'Konu', + 'reply' => 'Cevapla', + 'send' => 'Gönder', + 'all' => 'Tümü', + 'notes' => 'Notlar', + 'select-type' => 'Tür Seç', + 'calls' => 'Aramalar', + 'meetings' => 'Toplantılar', + 'lunches' => 'Öğle Yemekleri', + 'emails' => 'E-postalar', + 'files' => 'Dosyalar', + 'sales-owner' => 'Satış Sahibi', + 'person' => 'Kişi', + 'expired-at' => 'Süresi Doldu', + 'sub-total' => 'Ara Toplam', + 'discount' => 'İndirim', + 'tax' => 'Vergi', + 'adjustment' => 'Ayarlama', + 'grand-total' => 'Genel Toplam', + 'actions' => 'Hareketler', + 'planned' => 'Planlı', + 'done' => 'Tamamla', + 'edit' => 'Düzenle', + 'view' => 'Görüntüle', + 'unlink' => 'Bağlantıyı Kaldır', + 'mark-as-done' => 'Tamamlandı olarak işaretle', + 'remove' => 'Kaldır', + 'export-to-pdf' => 'PDF\'ye Aktar', + 'empty-planned-activities' => 'Planlanmış bir etkinliğiniz yok.', + 'empty-done-activities' => 'Yaptığınız hiçbir Etkinlik yok.', + 'note-added' => 'Not eklendi', + 'call-scheduled' => 'Çağrı şu saatte planlandı :from - :to', + 'meeting-scheduled' => 'Toplantı :from - :to da planlandı', + 'lunch-scheduled' => 'Öğle yemeği :from - :to saatinde planlanmıştır', + 'file-added' => 'Dosya eklendi', + 'quote-destroy-success' => 'Alıntı başarıyla kaldırıldı.', + 'tag-create-success' => 'Etiket başarıyla eklendi.', + 'tag-destroy-success' => 'Etiket başarıyla kaldırıldı.', + 'edit' => 'Düzenlemek', + ], + + 'quotes' => [ + 'title' => 'Teklifler', + 'quote' => 'Teklif', + 'create-title' => 'Teklif Oluştur', + 'edit-title' => 'Teklifi Düzenle', + 'save-btn-title' => 'Teklifi Kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'quote-information' => 'Teklif Bilgileri', + 'lead' => 'Lider', + 'address-information' => 'Adres Bilgisi', + 'quote-items' => 'Teklif Öğeleri', + 'name' => 'İsim', + 'quantity' => 'Miktar', + 'price' => 'Fiyat', + 'amount' => 'Tutar', + 'discount' => 'İndirim', + 'tax' => 'Vergi', + 'total' => 'Toplam', + 'sub-total' => 'Ara Toplam', + 'adjustment' => 'Ayarlama', + 'grand-total' => 'Genel Toplam', + 'create-success' => 'Teklif başarıyla oluşturuldu.', + 'update-success' => 'Teklif başarıyla güncellendi.', + 'delete-success' => 'Teklif başarıyla silindi.', + 'delete-failed' => 'Teklif silinemez.', + 'quote-id' => 'Teklif Id', + 'quote-date' => 'Teklif Tarihi', + 'valid-until' => 'Geçerlilik Tarihi', + 'sales-person' => 'Satış Elemanı', + 'bill-to' => 'Fatura Edilen', + 'ship-to' => 'Alıcı', + 'sku' => 'Barkod', + 'product-name' => 'Ürün Adı', + 'price' => 'Fiyat', + 'amount' => 'Tutar', + 'quantity' => 'Miktar', + 'sub-total' => 'Ara Toplam', + 'tax' => 'Vergi', + 'adjustment' => 'Ayarlama', + 'grand-total' => 'Genel Toplam', + 'search' => 'Arama..', + ], + + 'mail' => [ + 'title' => 'Posta - :type', + 'compose' => 'Oluştur', + 'inbox' => 'Gelen Kutusu', + 'draft' => 'Taslak', + 'outbox' => 'Giden Kutusu', + 'sent' => 'Gönder', + 'trash' => 'Çöp', + 'setting' => 'Ayar', + 'total' => 'Toplam', + 'link-mail' => 'Posta Bağlantısı', + 'link-contact' => 'İletişim Bağlantısı', + 'linked-contact' => 'Bağlantılı Kişi', + 'add-to-existing-contact' => 'Mevcut kişiye ekle', + 'create-new-contact' => 'Yeni kişi yarat', + 'search-contact' => 'Kişi Ara', + 'link-lead' => 'Bağlantı Lideri', + 'linked-lead' => 'Bağlantılı Lider', + 'search-lead' => 'Lider Ara', + 'link-to-existing-lead' => 'Mevcut Bağlantı', + 'add-new-lead' => 'Yeni Müşteri Adayı Ekle', + 'send' => 'Gönder', + 'back' => 'Geri', + 'discard' => 'atmak', + 'from-' => 'İtibaren - ', + 'to-' => 'İle - ', + 'cc-' => 'Bilgi - ', + 'bcc-' => 'Gizli - ', + 'reply' => 'Cevapla', + 'reply-all' => 'Tümünü Cevapla', + 'forward' => 'İleri', + 'delete' => 'Sil', + 'destroy-success' => 'Seçilen e-postalar başarıyla silindi.', + 'save-to-draft' => 'Taslağa Kaydet', + 'create-success' => 'E-posta başarıyla gönderildi.', + 'update-success' => 'E-posta başarıyla güncellendi.', + 'saved-to-draft' => 'E-posta taslağa kaydedildi.', + 'delete-success' => 'E-posta başarıyla silindi.', + 'delete-failed' => 'E-posta silinemez.', + 'mass-update-success' => 'E-postalar başarıyla güncellendi.', + + 'forget-password' => [ + 'subject' => 'Müşteri Parolası Sıfırlama', + 'dear' => 'Sayın :name', + 'reset-password' => 'Şifreyi Sıfırla', + 'info' => 'Bu e-postayı, hesabınız için bir şifre sıfırlama isteği aldığımız için alıyorsunuz.', + 'final-summary' => 'Parola sıfırlama talebinde bulunmadıysanız, başka bir işlem yapmanız gerekmez', + 'thanks' => 'Teşekkürler!', ], - 'contacts' => [ - 'organizations' => [ - 'title' => 'Organizasyonlar', - 'organization' => 'Organizasyon', - 'create-title' => 'Organizasyon Oluştur', - 'edit-title' => 'Organizasyonu Düzenle', - 'save-btn-title' => 'Kuruluş Olarak Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'create-success' => 'Kuruluş başarıyla oluşturuldu.', - 'update-success' => 'Kuruluş başarıyla güncellendi.', - 'delete-success' => 'Kuruluş başarıyla silindi.', - 'delete-failed' => 'Kuruluş silinemez.', - ], - - 'persons' => [ - 'title' => 'Kişiler', - 'person' => 'Kişi', - 'create-title' => 'Kişi Oluştur', - 'edit-title' => 'Kişiyi Düzenle', - 'save-btn-title' => 'Kişi olarak kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'create-success' => 'Kişi başarıyla oluşturuldu.', - 'update-success' => 'Kişi başarıyla güncellendi.', - 'delete-success' => 'Kişi başarıyla silindi.', - 'delete-failed' => 'Kişi silinemez.', - ], + 'user' => [ + 'create-subject' => 'Üye olarak eklendiniz.', + 'create-body' => 'Tebrikler! Artık ekibimizin bir üyesisiniz.', + ], + ], + + 'activities' => [ + 'title' => 'Etkinlikler', + 'title-control' => 'Başlık', + 'edit-title' => 'Etkinlik Düzenle', + 'save-btn-title' => 'Etkinlik olarak kaydet', + 'back' => 'Geri', + 'type' => 'Tip', + 'note' => 'Not', + 'call' => 'Arama Yap', + 'meeting' => 'Toplantı', + 'lunch' => 'Öğle Yemeği', + 'file' => 'Dosya', + 'description' => 'Açıklama', + 'schedule' => 'Takvim', + 'from' => 'İtibaren', + 'to' => 'İle', + 'location' => 'Lokasyon', + 'participants' => 'Katılımcılar', + 'lead' => 'Müşteri', + 'duration-overlapping' => 'Katılımcıların şu anda başka bir toplantısı var. Devam etmek istiyor musun?', + 'file-upload-success' => 'Dosya(lar) başarıyla yüklendi.', + 'file-upload-error' => 'Dosya(lar) yüklenemiyor.', + 'create-success' => ':type başarıyla oluşturuldu.', + 'update-success' => ':type başarıyla güncellendi.', + 'mass-update-success' => 'Etkinlikler başarıyla güncellendi.', + 'mass-update-failed' => 'Etkinlikler güncellenemez.', + 'destroy-success' => ':type başarıyla silindi.', + 'delete-failed' => ':type silinemez.', + 'typing-placeholder' => 'Adı yazmaya başla', + ], + + 'products' => [ + 'title' => 'Ürünler', + 'product' => 'Ürün', + 'create-title' => 'Ürün Oluştur', + 'edit-title' => 'Ürün Düzenle', + 'save-btn-title' => 'Ürünü Kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'information' => 'Bilgi', + 'inventories' => 'Envanterler', + 'location' => 'Konum', + 'search' => 'Ara..', + 'name' => 'Ad', + 'save' => 'Kaydet', + 'in-stock' => 'Stokta', + 'allocated' => 'Tahsis Edilen', + 'create-success' => 'Ürün başarıyla oluşturuldu.', + 'update-success' => 'Ürün başarıyla güncellendi', + 'delete-success' => 'Ürün başarıyla silindi', + 'delete-failed' => 'Ürün silinemez.', + ], + + 'sessions' => [ + 'login' => [ + 'title' => 'Giriş Yap', + 'welcome' => 'Tekrar Hoşgeldiniz', + 'email' => 'E-posta', + 'password' => 'Şifre', + 'login' => 'Giriş Yap', + 'forgot-password' => 'Parolanızı mı unuttunuz?', + 'login-error' => 'Lütfen kimlik bilgilerinizi kontrol edin ve tekrar deneyin.', + 'activate-warning' => 'Hesabınız henüz etkinleştirilmedi, lütfen yönetici ile iletişime geçin.', ], - 'leads' => [ - 'title' => 'Adaylar', - 'lead' => 'Lider', - 'create-title' => 'Müşteri Adayı Oluştur', - 'edit-title' => 'Müşteri Adayını Düzenle', - 'save-btn-title' => 'Müşteri adayı olarak kaydet', - 'save' => 'Kaydet', - 'upload' => 'Yükle', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'no-lead' => 'Aday Yok', - 'lead-source-name' => 'Öncü kaynak', - 'details' => 'Detaylar', - 'rotten-info' => 'Müşteri adayı :days gün(ler)', - 'stage' => 'Sahne', - 'new' => 'Yeni', - 'won-lost' => 'Kazanan/Kaybeden', - 'won' => 'Kazanan', - 'lost' => 'Kaybetme', - 'change-stage' => 'Aşamayı Değiştir', - 'lost-reason' => 'Kayıp Sebep', - 'won-value' => 'Kazanılan Değer', - 'created-date:' => 'Oluşturma Tarihi:', - 'closed-date:' => 'Kapanış Tarihi:', - 'closed-date' => 'Kapanış Tarihi', - 'expected-close-date:' => 'Beklenen Kapanış Tarihi:', - 'contact-person' => 'İlgili Kişi', - 'add-tag' => 'Etiket Ekle', - 'search-tag' => 'Etiketi Ara', - 'name' => 'İsim', - 'color' => 'Renk', - 'email' => 'E-posta', - 'contact-numbers' => 'İletişim Numaraları', - 'organization' => 'Organizasyon', - 'address' => 'Adres', - 'products' => 'Ürünler', - 'item' => 'Kalem', - 'price' => 'Fiyat', - 'quantity' => 'Miktar', - 'amount' => 'Tutar', - 'create-success' => 'Müşteri adayı başarıyla oluşturuldu.', - 'update-success' => 'Müşteri adayı başarıyla güncellendi.', - 'delete-success' => 'Müşteri adayı başarıyla silindi.', - 'delete-failed' => 'Müşteri adayı silinemez.', - 'product-quantity-required' => 'Ürün miktarı, ürün kimliği mevcut olduğunda gereklidir.', - 'product-price-required' => 'Ürün fiyatı, ürün kimliği mevcut olduğunda gereklidir.', - 'product-name-required' => 'Ürün adı, ürün kimliği mevcut olduğunda gereklidir.', - 'selected-product-not-exist' => 'Seçilen ürün kimliği mevcut değil.', - 'note' => 'Not', - 'activity' => 'Etkinlik', - 'title-control' => 'Başlık', - 'call' => 'Arama Yap', - 'meeting' => 'Toplantı', - 'lunch' => 'Öğle Yemeği', - 'file' => 'Dosya', - 'quote' => 'Teklif', - 'create-quote' => 'Teklif Oluştur', - 'type' => 'Tip', - 'description' => 'Açıklama', - 'schedule' => 'Takvim', - 'from' => 'İtibaren', - 'to' => 'İle', - 'location' => 'Lokasyon', - 'participants' => 'Katılımcılar', - 'participant-info' => 'Adı yazmaya başla', - 'users' => 'Kullanıcılar', - 'persons' => 'Kişiler', - 'cc' => 'Bilgi', - 'bcc' => 'Gizli', - 'email-placeholder' => 'E-posta eklemek için enter\'a basın', - 'file' => 'Dosya', - 'subject' => 'Konu', - 'reply' => 'Cevapla', - 'send' => 'Gönder', - 'all' => 'Tümü', - 'notes' => 'Notlar', - 'select-type' => 'Tür Seç', - 'calls' => 'Aramalar', - 'meetings' => 'Toplantılar', - 'lunches' => 'Öğle Yemekleri', - 'emails' => 'E-postalar', - 'files' => 'Dosyalar', - 'sales-owner' => 'Satış Sahibi', - 'person' => 'Kişi', - 'expired-at' => 'Süresi Doldu', - 'sub-total' => 'Ara Toplam', - 'discount' => 'İndirim', - 'tax' => 'Vergi', - 'adjustment' => 'Ayarlama', - 'grand-total' => 'Genel Toplam', - 'actions' => 'Hareketler', - 'planned' => 'Planlı', - 'done' => 'Tamamla', - 'edit' => 'Düzenle', - 'view' => 'Görüntüle', - 'unlink' => 'Bağlantıyı Kaldır', - 'mark-as-done' => 'Tamamlandı olarak işaretle', - 'remove' => 'Kaldır', - 'export-to-pdf' => 'PDF\'ye Aktar', - 'empty-planned-activities' => 'Planlanmış bir etkinliğiniz yok.', - 'empty-done-activities' => 'Yaptığınız hiçbir Etkinlik yok.', - 'note-added' => 'Not eklendi', - 'call-scheduled' => 'Çağrı şu saatte planlandı :from - :to', - 'meeting-scheduled' => 'Toplantı :from - :to da planlandı', - 'lunch-scheduled' => 'Öğle yemeği :from - :to saatinde planlanmıştır', - 'file-added' => 'Dosya eklendi', - 'quote-destroy-success' => 'Alıntı başarıyla kaldırıldı.', - 'tag-create-success' => 'Etiket başarıyla eklendi.', - 'tag-destroy-success' => 'Etiket başarıyla kaldırıldı.', - 'edit' => 'Düzenlemek', + 'forgot-password' => [ + 'title' => 'Parolanızı mı unuttunuz?', + 'email' => 'E-posta', + 'send-reset-password-email' => 'Şifre Sıfırlama E-postası Gönder', + 'reset-link-sent' => 'Şifre sıfırlama bağlantınızı e-posta ile gönderdik.', + 'email-not-exist' => 'Bu e-posta adresine sahip bir kullanıcı bulamıyoruz.', + 'back-to-login' => 'Girişe geri dön', ], - 'quotes' => [ - 'title' => 'Teklifler', - 'quote' => 'Teklif', - 'create-title' => 'Teklif Oluştur', - 'edit-title' => 'Teklifi Düzenle', - 'save-btn-title' => 'Teklifi Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'quote-information' => 'Teklif Bilgileri', - 'lead' => 'Lider', - 'address-information' => 'Adres Bilgisi', - 'quote-items' => 'Teklif Öğeleri', + 'reset-password' => [ + 'title' => 'Şifreyi Sıfırla', + 'email' => 'E-posta', + 'password' => 'Şifre', + 'confirm-password' => 'Şifreyi Onayla', + 'reset-password' => 'Şifreyi Sıfırla', + ], + ], + + 'settings' => [ + 'title' => 'Ayarlar', + + 'groups' => [ + 'title' => 'Gruplar', + 'group' => 'Grup', + 'edit-title' => 'Grup Düzenle', + 'description' => 'Açıklama', + 'create-title' => 'Grup Oluştur', + 'save-btn-title' => 'Grubu Kaydet', + 'update-btn-title' => 'Grubu Güncelle', + 'create-success' => 'Grup başarıyla oluşturuldu', + 'update-success' => 'Grup başarıyla güncellendi', + 'destroy-success' => 'Grup başarıyla silindi', + 'delete-failed' => 'Grup silinemez.', + 'user-define-error' => 'Sistem grubu silinemez.', + ], + + 'roles' => [ + 'title' => 'Roller', + 'role' => 'Rol', + 'edit-title' => 'Rolu Düzenle', + 'description' => 'Açıklama', + 'create-title' => 'Rol Oluştur', + 'permission_type' => 'İzin Türü', + 'custom' => 'Özel', + 'all' => 'Tümü', + 'save-btn-title' => 'Rolu Kaydet', + 'update-btn-title' => 'Rolu Güncelle', + 'create-success' => 'Rol başarıyla oluşturuldu.', + 'update-success' => 'Rol başarıyla güncellendi.', + 'delete-success' => 'Rol başarıyla silindi.', + 'delete-failed' => 'Rol silinemez.', + 'user-define-error' => 'Sistem rolü silinemez.', + 'last-delete-error' => 'En az bir rol gereklidir.', + 'current-role-delete-error' => 'Geçerli kullanıcıya atanan rol silinemez.', + 'being-used' => 'Yönetici kullanıcıda kullanıldığı için rol silinemez.', + ], + + 'users' => [ + 'title' => 'Kullanıcılar', + 'create-title' => 'Kullanıcı Oluştur', + 'edit-title' => 'Kullanıcı Düzenle', + 'general' => 'Genel', + 'permission' => 'İzin', 'name' => 'İsim', - 'quantity' => 'Miktar', - 'price' => 'Fiyat', - 'amount' => 'Tutar', - 'discount' => 'İndirim', - 'tax' => 'Vergi', - 'total' => 'Toplam', - 'sub-total' => 'Ara Toplam', - 'adjustment' => 'Ayarlama', - 'grand-total' => 'Genel Toplam', - 'create-success' => 'Teklif başarıyla oluşturuldu.', - 'update-success' => 'Teklif başarıyla güncellendi.', - 'delete-success' => 'Teklif başarıyla silindi.', - 'delete-failed' => 'Teklif silinemez.', - 'quote-id' => 'Teklif Id', - 'quote-date' => 'Teklif Tarihi', - 'valid-until' => 'Geçerlilik Tarihi', - 'sales-person' => 'Satış Elemanı', - 'bill-to' => 'Fatura Edilen', - 'ship-to' => 'Alıcı', - 'sku' => 'Barkod', - 'product-name' => 'Ürün Adı', - 'price' => 'Fiyat', - 'amount' => 'Tutar', - 'quantity' => 'Miktar', - 'sub-total' => 'Ara Toplam', - 'tax' => 'Vergi', - 'adjustment' => 'Ayarlama', - 'grand-total' => 'Genel Toplam', - 'search' => 'Arama..' + 'email' => 'E-posta', + 'back' => 'Geri', + 'password' => 'Şifre', + 'groups' => 'Gruplar', + 'role' => 'Rol', + 'view-permission' => 'İzni Görüntüle', + 'global' => 'Küresel', + 'group' => 'Grup', + 'individual' => 'Bireysel', + 'status' => 'Durum', + 'save-btn-title' => 'Kullanıcıyı Kaydet', + 'confirm_password' => 'Şifreyi Onayla', + 'create-success' => 'Kullanıcı başarıyla oluşturuldu.', + 'update-success' => 'Kullanıcı başarıyla güncellendi.', + 'delete-success' => 'Kullanıcı başarıyla silindi.', + 'delete-failed' => 'Kullanıcı silinemez.', + 'user-define-error' => 'Sistem kullanıcısı silinemez.', + 'last-delete-error' => 'En az bir kullanıcı gereklidir.', + 'mass-update-success' => 'Kullanıcılar başarıyla güncellendi.', + 'mass-update-failed' => 'Kullanıcılar güncellenemez.', + 'mass-delete-success' => 'Kullanıcılar başarıyla silindi.', + 'mass-delete-failed' => 'Kullanıcılar silinemez.', ], - 'mail' => [ - 'title' => 'Posta - :type', - 'compose' => 'Oluştur', - 'inbox' => 'Gelen Kutusu', - 'draft' => 'Taslak', - 'outbox' => 'Giden Kutusu', - 'sent' => 'Gönder', - 'trash' => 'Çöp', - 'setting' => 'Ayar', - 'total' => 'Toplam', - 'link-mail' => 'Posta Bağlantısı', - 'link-contact' => 'İletişim Bağlantısı', - 'linked-contact' => 'Bağlantılı Kişi', - 'add-to-existing-contact' => 'Mevcut kişiye ekle', - 'create-new-contact' => 'Yeni kişi yarat', - 'search-contact' => 'Kişi Ara', - 'link-lead' => 'Bağlantı Lideri', - 'linked-lead' => 'Bağlantılı Lider', - 'search-lead' => 'Lider Ara', - 'link-to-existing-lead' => 'Mevcut Bağlantı', - 'add-new-lead' => 'Yeni Müşteri Adayı Ekle', - 'send' => 'Gönder', - 'back' => 'Geri', - 'discard' => 'atmak', - 'from-' => 'İtibaren - ', - 'to-' => 'İle - ', - 'cc-' => 'Bilgi - ', - 'bcc-' => 'Gizli - ', - 'reply' => 'Cevapla', - 'reply-all' => 'Tümünü Cevapla', - 'forward' => 'İleri', - 'delete' => 'Sil', - 'destroy-success' => 'Seçilen e-postalar başarıyla silindi.', - 'save-to-draft' => 'Taslağa Kaydet', - 'create-success' => 'E-posta başarıyla gönderildi.', - 'update-success' => 'E-posta başarıyla güncellendi.', - 'saved-to-draft' => 'E-posta taslağa kaydedildi.', - 'delete-success' => 'E-posta başarıyla silindi.', - 'delete-failed' => 'E-posta silinemez.', - 'mass-update-success' => 'E-postalar başarıyla güncellendi.', - - 'forget-password' => [ - 'subject' => 'Müşteri Parolası Sıfırlama', - 'dear' => 'Sayın :name', - 'reset-password' => 'Şifreyi Sıfırla', - 'info' => 'Bu e-postayı, hesabınız için bir şifre sıfırlama isteği aldığımız için alıyorsunuz.', - 'final-summary' => 'Parola sıfırlama talebinde bulunmadıysanız, başka bir işlem yapmanız gerekmez', - 'thanks' => 'Teşekkürler!' - ], - - 'user' => [ - 'create-subject' => 'Üye olarak eklendiniz.', - 'create-body' => 'Tebrikler! Artık ekibimizin bir üyesisiniz.', - ], + 'attributes' => [ + 'title' => 'Özellikler', + 'attribute' => 'Özellik', + 'create-title' => 'Özellik Oluştur', + 'edit-title' => 'Özellik Düzenle', + 'save-btn-title' => 'Özelliği Kaydet', + 'back' => 'Geri', + 'code' => 'Kod', + 'name' => 'İsim', + 'type' => 'Tip', + 'text' => 'text', + 'textarea' => 'textarea', + 'price' => 'Fiyat', + 'boolean' => 'Boolean', + 'select' => 'Seç', + 'multiselect' => 'Çoklu Seçim', + 'email' => 'E-posta', + 'address' => 'Adres', + 'phone' => 'Telefon', + 'datetime' => 'Tarih Saat', + 'date' => 'Tarih', + 'image' => 'Görüntü', + 'file' => 'Dosya', + 'entity-type' => 'Varlık Türü', + 'lookup' => 'Yukarı Bak', + 'entity_type' => 'Varlık Türü', + 'lookup-type' => 'Lookup Type', + 'checkbox' => 'Onay Kutusu', + 'is_required' => 'Gereklidir', + 'is_unique' => 'Benzersiz', + 'yes' => 'Evet', + 'no' => 'Hayır', + 'input_validation' => 'Input Validation', + 'number' => 'Number', + 'decimal' => 'Ondalık', + 'email' => 'E-posta', + 'url' => 'Url', + 'options-type' => 'Seçenek Türü', + 'options' => 'Seçenekler', + 'sort-order' => 'Sıralama düzeni', + 'add-option-btn-title' => 'Seçenek Ekle', + 'create-success' => 'Özellik başarıyla oluşturuldu.', + 'update-success' => 'Özellik başarıyla güncellendi.', + 'update-error' => 'Özellik güncellenemiyor.', + 'delete-success' => 'Özellik başarıyla silindi.', + 'delete-failed' => 'Özellik silinemez.', + 'user-define-error' => 'Sistem özelliği silinemez.', + 'mass-delete-failed' => 'Nitelikler silinemez.', ], - 'activities' => [ - 'title' => 'Etkinlikler', - 'title-control' => 'Başlık', - 'edit-title' => 'Etkinlik Düzenle', - 'save-btn-title' => 'Etkinlik olarak kaydet', + 'pipelines' => [ + 'title' => 'İşlem Hatları', + 'organization' => 'İşlem Hattı', + 'create-title' => 'İşlem Hattı Oluştur', + 'edit-title' => 'İşlem Hattını Düzenle', + 'save-btn-title' => 'İşlem Hattını Kaydet', 'back' => 'Geri', - 'type' => 'Tip', - 'note' => 'Not', - 'call' => 'Arama Yap', - 'meeting' => 'Toplantı', - 'lunch' => 'Öğle Yemeği', - 'file' => 'Dosya', - 'description' => 'Açıklama', - 'schedule' => 'Takvim', - 'from' => 'İtibaren', - 'to' => 'İle', - 'location' => 'Lokasyon', - 'participants' => 'Katılımcılar', - 'lead' => 'Müşteri', - 'duration-overlapping' => 'Katılımcıların şu anda başka bir toplantısı var. Devam etmek istiyor musun?', - 'file-upload-success' => 'Dosya(lar) başarıyla yüklendi.', - 'file-upload-error' => 'Dosya(lar) yüklenemiyor.', - 'create-success' => ':type başarıyla oluşturuldu.', - 'update-success' => ':type başarıyla güncellendi.', - 'mass-update-success' => 'Etkinlikler başarıyla güncellendi.', - 'mass-update-failed' => 'Etkinlikler güncellenemez.', - 'destroy-success' => ':type başarıyla silindi.', - 'delete-failed' => ':type silinemez.', - 'typing-placeholder' => 'Adı yazmaya başla', + 'cancel' => 'İptal', + 'name' => 'İsim', + 'rotting-days' => 'Çürüyen Günler', + 'is-default' => 'Varsayılan olarak işaretle', + 'probability' => 'Olasılık (%)', + 'add-stage-btn-title' => 'Aşama Ekle', + 'new-stage' => 'yeni', + 'won-stage' => 'kazanmak', + 'lost-stage' => 'kayıp', + 'duplicate-name' => '"Ad" alanı yinelenemez', + 'create-success' => 'İşlem hattı başarıyla oluşturuldu.', + 'update-success' => 'İşlem hattı başarıyla güncellendi.', + 'delete-success' => 'İşlem hattı başarıyla silindi.', + 'delete-failed' => 'Boru hattı silinemez.', + 'default-delete-error' => 'Varsayılan işlem hattı silinemez.', ], - 'products' => [ - 'title' => 'Ürünler', - 'product' => 'Ürün', - 'create-title' => 'Ürün Oluştur', - 'edit-title' => 'Ürün Düzenle', - 'save-btn-title' => 'Ürünü Kaydet', + 'sources' => [ + 'title' => 'Kaynaklar', + 'organization' => 'Kaynak', + 'create-title' => 'Kaynak Oluştur', + 'edit-title' => 'Kaynağı Düzenle', + 'save-btn-title' => 'Kaynağı Kaydet', 'back' => 'Geri', 'cancel' => 'İptal', - 'information' => 'Bilgi', - 'inventories' => 'Envanterler', - 'location' => 'Konum', - 'search' => 'Ara..', - 'name' => 'Ad', - 'save' => 'Kaydet', - 'in-stock' => 'Stokta', - 'allocated' => 'Tahsis Edilen', - 'create-success' => 'Ürün başarıyla oluşturuldu.', - 'update-success' => 'Ürün başarıyla güncellendi', - 'delete-success' => 'Ürün başarıyla silindi', - 'delete-failed' => 'Ürün silinemez.', + 'create-success' => 'Kaynak başarıyla oluşturuldu.', + 'name-exists' => 'Kaynak adı zaten var.', + 'update-success' => 'Kaynak başarıyla güncellendi.', + 'delete-success' => 'Kaynak başarıyla silindi.', + 'delete-failed' => 'Kaynak silinemez.', ], - 'sessions' => [ - 'login' => [ - 'title' => 'Giriş Yap', - 'welcome' => 'Tekrar Hoşgeldiniz', - 'email' => 'E-posta', - 'password' => 'Şifre', - 'login' => 'Giriş Yap', - 'forgot-password' => 'Parolanızı mı unuttunuz?', - 'login-error' => 'Lütfen kimlik bilgilerinizi kontrol edin ve tekrar deneyin.', - 'activate-warning' => 'Hesabınız henüz etkinleştirilmedi, lütfen yönetici ile iletişime geçin.', - ], - - 'forgot-password' => [ - 'title' => 'Parolanızı mı unuttunuz?', - 'email' => 'E-posta', - 'send-reset-password-email' => 'Şifre Sıfırlama E-postası Gönder', - 'reset-link-sent' => 'Şifre sıfırlama bağlantınızı e-posta ile gönderdik.', - 'email-not-exist' => "Bu e-posta adresine sahip bir kullanıcı bulamıyoruz.", - 'back-to-login' => 'Girişe geri dön' - ], - - 'reset-password' => [ - 'title' => 'Şifreyi Sıfırla', - 'email' => 'E-posta', - 'password' => 'Şifre', - 'confirm-password' => 'Şifreyi Onayla', - 'reset-password' => 'Şifreyi Sıfırla' - ] + 'types' => [ + 'title' => 'Türler', + 'organization' => 'Tür', + 'create-title' => 'Tür Oluştur', + 'edit-title' => 'Türü Düzenle', + 'save-btn-title' => 'Türü Kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'create-success' => 'Tür başarıyla oluşturuldu.', + 'name-exists' => 'Tür adı zaten var.', + 'update-success' => 'Tür başarıyla güncellendi.', + 'delete-success' => 'Tür başarıyla silindi.', + 'delete-failed' => 'Tür silinemez.', ], - 'settings' => [ - 'title' => 'Ayarlar', - - 'groups' => [ - 'title' => 'Gruplar', - 'group' => 'Grup', - 'edit-title' => 'Grup Düzenle', - 'description' => 'Açıklama', - 'create-title' => 'Grup Oluştur', - 'save-btn-title' => 'Grubu Kaydet', - 'update-btn-title' => 'Grubu Güncelle', - 'create-success' => 'Grup başarıyla oluşturuldu', - 'update-success' => 'Grup başarıyla güncellendi', - 'destroy-success' => 'Grup başarıyla silindi', - 'delete-failed' => 'Grup silinemez.', - 'user-define-error' => 'Sistem grubu silinemez.', - ], - - 'roles' => [ - 'title' => 'Roller', - 'role' => 'Rol', - 'edit-title' => 'Rolu Düzenle', - 'description' => 'Açıklama', - 'create-title' => 'Rol Oluştur', - 'permission_type' => 'İzin Türü', - 'custom' => 'Özel', - 'all' => 'Tümü', - 'save-btn-title' => 'Rolu Kaydet', - 'update-btn-title' => 'Rolu Güncelle', - 'create-success' => 'Rol başarıyla oluşturuldu.', - 'update-success' => 'Rol başarıyla güncellendi.', - 'delete-success' => 'Rol başarıyla silindi.', - 'delete-failed' => 'Rol silinemez.', - 'user-define-error' => 'Sistem rolü silinemez.', - 'last-delete-error' => 'En az bir rol gereklidir.', - 'current-role-delete-error' => 'Geçerli kullanıcıya atanan rol silinemez.', - 'being-used' => 'Yönetici kullanıcıda kullanıldığı için rol silinemez.', - ], - - 'users' => [ - 'title' => 'Kullanıcılar', - 'create-title' => 'Kullanıcı Oluştur', - 'edit-title' => 'Kullanıcı Düzenle', - 'general' => 'Genel', - 'permission' => 'İzin', - 'name' => 'İsim', - 'email' => 'E-posta', - 'back' => 'Geri', - 'password' => 'Şifre', - 'groups' => 'Gruplar', - 'role' => 'Rol', - 'view-permission' => 'İzni Görüntüle', - 'global' => 'Küresel', - 'group' => 'Grup', - 'individual' => 'Bireysel', - 'status' => 'Durum', - 'save-btn-title' => 'Kullanıcıyı Kaydet', - 'confirm_password' => 'Şifreyi Onayla', - 'create-success' => 'Kullanıcı başarıyla oluşturuldu.', - 'update-success' => 'Kullanıcı başarıyla güncellendi.', - 'delete-success' => 'Kullanıcı başarıyla silindi.', - 'delete-failed' => 'Kullanıcı silinemez.', - 'user-define-error' => 'Sistem kullanıcısı silinemez.', - 'last-delete-error' => 'En az bir kullanıcı gereklidir.', - 'mass-update-success' => 'Kullanıcılar başarıyla güncellendi.', - 'mass-update-failed' => 'Kullanıcılar güncellenemez.', - 'mass-delete-success' => 'Kullanıcılar başarıyla silindi.', - 'mass-delete-failed' => 'Kullanıcılar silinemez.', - ], - - 'attributes' => [ - 'title' => 'Özellikler', - 'attribute' => 'Özellik', - 'create-title' => 'Özellik Oluştur', - 'edit-title' => 'Özellik Düzenle', - 'save-btn-title' => 'Özelliği Kaydet', - 'back' => 'Geri', - 'code' => 'Kod', - 'name' => 'İsim', - 'type' => 'Tip', - 'text' => 'text', - 'textarea' => 'textarea', - 'price' => 'Fiyat', - 'boolean' => 'Boolean', - 'select' => 'Seç', - 'multiselect' => 'Çoklu Seçim', - 'email' => 'E-posta', - 'address' => 'Adres', - 'phone' => 'Telefon', - 'datetime' => 'Tarih Saat', - 'date' => 'Tarih', - 'image' => 'Görüntü', - 'file' => 'Dosya', - 'entity-type' => 'Varlık Türü', - 'lookup' => 'Yukarı Bak', - 'entity_type' => 'Varlık Türü', - 'lookup-type' => 'Lookup Type', - 'checkbox' => 'Onay Kutusu', - 'is_required' => 'Gereklidir', - 'is_unique' => 'Benzersiz', - 'yes' => 'Evet', - 'no' => 'Hayır', - 'input_validation' => 'Input Validation', - 'number' => 'Number', - 'decimal' => 'Ondalık', - 'email' => 'E-posta', - 'url' => 'Url', - 'options-type' => 'Seçenek Türü', - 'options' => 'Seçenekler', - 'sort-order' => 'Sıralama düzeni', - 'add-option-btn-title' => 'Seçenek Ekle', - 'create-success' => 'Özellik başarıyla oluşturuldu.', - 'update-success' => 'Özellik başarıyla güncellendi.', - 'update-error' => 'Özellik güncellenemiyor.', - 'delete-success' => 'Özellik başarıyla silindi.', - 'delete-failed' => 'Özellik silinemez.', - 'user-define-error' => 'Sistem özelliği silinemez.', - 'mass-delete-failed' => 'Nitelikler silinemez.', - ], - - 'pipelines' => [ - 'title' => 'İşlem Hatları', - 'organization' => 'İşlem Hattı', - 'create-title' => 'İşlem Hattı Oluştur', - 'edit-title' => 'İşlem Hattını Düzenle', - 'save-btn-title' => 'İşlem Hattını Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'name' => 'İsim', - 'rotting-days' => 'Çürüyen Günler', - 'is-default' => 'Varsayılan olarak işaretle', - 'probability' => 'Olasılık (%)', - 'add-stage-btn-title' => 'Aşama Ekle', - 'new-stage' => 'yeni', - 'won-stage' => 'kazanmak', - 'lost-stage' => 'kayıp', - 'duplicate-name' => '"Ad" alanı yinelenemez', - 'create-success' => 'İşlem hattı başarıyla oluşturuldu.', - 'update-success' => 'İşlem hattı başarıyla güncellendi.', - 'delete-success' => 'İşlem hattı başarıyla silindi.', - 'delete-failed' => 'Boru hattı silinemez.', - 'default-delete-error' => 'Varsayılan işlem hattı silinemez.', - ], - - 'sources' => [ - 'title' => 'Kaynaklar', - 'organization' => 'Kaynak', - 'create-title' => 'Kaynak Oluştur', - 'edit-title' => 'Kaynağı Düzenle', - 'save-btn-title' => 'Kaynağı Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'create-success' => 'Kaynak başarıyla oluşturuldu.', - 'name-exists' => 'Kaynak adı zaten var.', - 'update-success' => 'Kaynak başarıyla güncellendi.', - 'delete-success' => 'Kaynak başarıyla silindi.', - 'delete-failed' => 'Kaynak silinemez.', - ], - - 'types' => [ - 'title' => 'Türler', - 'organization' => 'Tür', - 'create-title' => 'Tür Oluştur', - 'edit-title' => 'Türü Düzenle', - 'save-btn-title' => 'Türü Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'create-success' => 'Tür başarıyla oluşturuldu.', - 'name-exists' => 'Tür adı zaten var.', - 'update-success' => 'Tür başarıyla güncellendi.', - 'delete-success' => 'Tür başarıyla silindi.', - 'delete-failed' => 'Tür silinemez.', - ], - - 'warehouses' => [ - 'title' => 'Depolar', - 'create-title' => 'Depo Oluştur', - 'edit-title' => 'Depo Düzenle', - 'save-btn-title' => 'Depo Olarak Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'information' => 'Bilgi', - 'general-information' => 'Genel Bilgi', - 'contact-information' => 'İletişim Bilgisi', - 'locations' => 'Konumlar', - 'products' => 'Ürünler', - 'add-location' => 'Konum Ekle', - 'create-success' => 'Depo başarıyla oluşturuldu.', - 'name-exists' => 'Depo adı zaten mevcut.', - 'update-success' => 'Depo başarıyla güncellendi.', - 'delete-success' => 'Depo başarıyla silindi.', - 'delete-failed' => 'Depo silinemedi.', - ], - - 'email-templates' => [ - 'title' => 'E-posta Şablonları', - 'create-title' => 'E-posta Şablonu Oluştur', - 'edit-title' => 'E-posta Şablonunu Düzenle', - 'save-btn-title' => 'E-posta Şablonu Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'name' => 'İsim', - 'subject' => 'Konu', - 'content' => 'İçerik', - 'placeholders' => 'yYer Tutucular', - 'create-success' => 'E-posta Şablonu başarıyla oluşturuldu.', - 'update-success' => 'E-posta Şablonu başarıyla güncellendi.', - 'delete-success' => 'E-posta Şablonu başarıyla silindi.', - 'delete-failed' => 'E-posta Şablonu silinemez.', - ], - - 'workflows' => [ - 'title' => 'İş Akışları', - 'create-title' => 'İş Akışı Oluştur', - 'edit-title' => 'İş Akışını Düzenle', - 'save-btn-title' => 'İş Akışını Kaydet', - 'back' => 'Geri', - 'cancel' => 'İptal', - 'information' => 'Bilgi', - 'name' => 'İsim', - 'description' => 'Açıklama', - 'event' => 'Etkinlik', - 'events' => 'Etkinlikler', - 'created' => 'Oluşturuldu', - 'updated' => 'Güncellendi', - 'deleted' => 'Silindi', - 'event-info' => 'Bir olay, koşulları kontrol etmek ve ilgili önceden tanımlanmış bir dizi eylemi gerçekleştirmek için otomatik olarak tetiklenir', - 'conditions' => 'Koşullar', - 'condition-info' => 'Koşullar, belirli senaryoları kontrol eden ve belirli durumlarda tetiklenen kurallar dizisidir.', - 'condition-type' => 'Koşul Türü', - 'all-conditions-true' => 'Tüm Koşullar Doğru', - 'any-condition-true' => 'Her Koşul Doğrudur', - 'add-condition' => 'Koşul Ekle', - 'choose-condition-to-add' => 'Eklemek için bir koşul seçin', - 'is-equal-to' => 'Eşittir', - 'is-not-equal-to' => 'Eşit değildir', - 'equals-or-greater-than' => 'Eşit veya daha büyük', - 'equals-or-less-than' => 'Eşit veya daha az', - 'greater-than' => 'Daha büyük', - 'less-than' => 'Daha az', - 'contain' => 'İçerir', - 'contains' => 'İçerir', - 'does-not-contain' => 'İçermiyor', - 'actions' => 'Hareketler', - 'action-info' => 'Bir eylem yalnızca iş yükünü azaltmakla kalmaz, aynı zamanda CRM otomasyonunu oldukça kolaylaştırır', - 'choose-action-to-add' => 'Eklenecek eylemi seçin', - 'update-lead' => 'Müşteriyi güncelle', - 'update-person' => 'Kişiyi Güncelle', - 'send-email-to-person' => 'Kişiye e-posta gönder', - 'send-email-to-sales-owner' => 'Satış sahibine e-posta gönder', - 'send-email-to-participants' => 'Katılımcılara e-posta gönder', - 'add-tag' => 'Etiket Ekle', - 'add-note-as-activity' => 'Etkinlik olarak not ekle', - 'choose-attribute' => 'Özelliği Seçin', - 'choose-option' => 'Seçeneği Seçin', - 'update-person' => 'Kişiyi Güncelle', - 'update-related-leads' => 'İlgili müşteri adaylarını güncelle', - 'update-quote' => 'Teklifi Güncelle', - 'add-action' => 'Eylem Ekle', - 'create-success' => 'İş akışı başarıyla oluşturuldu.', - 'update-success' => 'İş akışı başarıyla güncellendi.', - 'delete-success' => 'İş akışı başarıyla silindi.', - 'delete-failed' => 'İş akışı silinemez.', - 'add-webhook' => 'Web kancası tetikle', - 'webhook_heading' => 'Web kancası ayarları', - 'webhook_url' => 'URL girin', - 'request-headers' => 'Vücut Başlıkları', - 'webhook_request_method' => 'İstek yöntemi', - 'get_method' => 'GET', - 'post_method' => 'POST', - 'put_method' => 'PUT', - 'patch_method' => 'PATCH', - 'delete_method' => 'DELETE', - 'webhook_encoding' => 'Kodlamayı seçin', - 'encoding_json' => 'JSON', - 'encoding_http_query' => 'X-www-form-urlencoded', - 'request_body' => 'Anahtar ve Değer', - 'request_body_info' => 'Yeni bir satırda anahtar-değer çifti ekleyin, yani, anahtar=değer', - 'simple_body' => 'Basit', - 'raw' => 'çiğ', - 'lead' => 'Potansiyel müşteri', - 'person' => 'Kişi', - 'quote' => 'Alıntı', - 'activity' => 'Etkinlik', - 'add_header' => 'Başlık ekle', - 'header_key' => 'Anahtar', - 'header_value' => 'Değer', - ], - - 'tags' => [ - 'title' => 'Etiketler', - 'create-title' => 'Etiket Oluştur', - 'edit-title' => 'Etiketi Düzenle', - 'cancel' => 'İptal', - 'save-btn-title' => 'Etiketi Kaydet', - 'name' => 'İsim', - 'color' => 'Renk', - 'create-success' => 'Etiket başarıyla oluşturuldu.', - 'update-success' => 'Etiket başarıyla güncellendi.', - 'delete-success' => 'Etiket başarıyla silindi.', - 'delete-failed' => 'Etiket silinemez', - ], - - 'web-forms' => [ - 'create-success' => 'Web form başarıyla oluşturuldu', - 'update-success' => 'Web form başarıyla güncellendi', - 'delete-success' => 'Web form başarıyla silindi' - ], + 'warehouses' => [ + 'title' => 'Depolar', + 'create-title' => 'Depo Oluştur', + 'edit-title' => 'Depo Düzenle', + 'save-btn-title' => 'Depo Olarak Kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'information' => 'Bilgi', + 'general-information' => 'Genel Bilgi', + 'contact-information' => 'İletişim Bilgisi', + 'locations' => 'Konumlar', + 'products' => 'Ürünler', + 'add-location' => 'Konum Ekle', + 'create-success' => 'Depo başarıyla oluşturuldu.', + 'name-exists' => 'Depo adı zaten mevcut.', + 'update-success' => 'Depo başarıyla güncellendi.', + 'delete-success' => 'Depo başarıyla silindi.', + 'delete-failed' => 'Depo silinemedi.', ], - 'configuration' => [ - 'title' => 'Yapılandırma', - 'save-btn-title' => 'Kaydet', - 'general' => 'Genel', - 'locale-settings' => 'Yerel Ayarlar', - 'locale' => 'Yerelleştirme', - 'timezone' => 'Saat Dilimi', - 'date-time-formats' => 'Tarih ve Saat Formatları', - 'save-message' => 'Yapılandırma başarıyla güncellendi!', - "emails" => [ - 'email' => 'E-posta', - 'notification_label' => 'Bildirimler', - 'new_lead' => 'Yeni müşteri adayı', - ] + 'email-templates' => [ + 'title' => 'E-posta Şablonları', + 'create-title' => 'E-posta Şablonu Oluştur', + 'edit-title' => 'E-posta Şablonunu Düzenle', + 'save-btn-title' => 'E-posta Şablonu Kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'name' => 'İsim', + 'subject' => 'Konu', + 'content' => 'İçerik', + 'placeholders' => 'yYer Tutucular', + 'create-success' => 'E-posta Şablonu başarıyla oluşturuldu.', + 'update-success' => 'E-posta Şablonu başarıyla güncellendi.', + 'delete-success' => 'E-posta Şablonu başarıyla silindi.', + 'delete-failed' => 'E-posta Şablonu silinemez.', ], - 'datagrid' => [ - 'id' => 'ID', - 'name' => 'İsim', - 'code' => 'Kod', - 'sku' => 'Barkod', - 'type' => 'Tür', - 'price' => 'Fiyat', - 'email' => 'E-posta', - 'attachments' => 'Ekler', - 'from' => 'İtibarem', - 'lead' => 'Lider', - 'title' => 'Başlık', - 'subject' => 'Konu', - 'tags' => 'Etiketler', - 'emails' => 'E-postalar', - 'stage' => 'Sahne', - 'status' => 'Durum', - 'active' => 'Etkin', - 'inactive' => 'Etkin Değil', - 'address' => 'Adres', - 'quantity' => 'Miktar', - 'lead_value' => 'Lider Değeri', - 'comment' => 'Yorum', - 'is_done' => 'Tamamlandı', - 'type' => 'Tür', - 'all' => 'Tümü', - 'user' => 'Kullanıcı', - 'sales-person' => 'Satış Elemanı', - 'expired_quotes' => 'Süresi Dolmuş Alıntılar', - 'person' => 'Kişi', - 'sub-total' => 'Ara Toplam', - 'discount' => 'İndirim', - 'tax' => 'Vergi', - 'adjustment' => 'Ayarlama', - 'grand-total' => 'Genel Toplam', - 'persons_count' => 'Kişi Sayısı', - 'assigned_to' => 'Atandı', - 'created_by' => 'Tarafından oluşturuldu', - 'entity_type' => 'Varlık Türü', - 'created_at' => 'Oluşturulma Tarihi', - 'expected_close_date' => 'Beklenen Kapanış Tarihi', - 'schedule_from' => 'Başlangıç Zamanı', - 'schedule_to' => 'Planla', - 'description' => 'Açıklama', - 'update_stage' => 'Aşamayı Güncelle', - 'contact_person' => 'İlgili kişi', - 'contact_numbers' => 'İletişim numaraları', - 'permission_type' => 'İzin Türü', - 'organization_name' => 'Kuruluş Adı', - 'is-default' => 'Varsayılan', - 'rotten-days' => 'Çürük Günler', - 'rotten_lead' => 'çürük kurşun', - 'yes' => 'Evet', - 'no' => 'Hayır', - 'move-to-inbox' => 'Gelen Kutusuna Taşı', - 'update-success' => ':resource başarıyla güncellendi.', - 'destroy-success' => ':resource başarıyla silindi', - 'destroy-failed' => ':resource silinemez', - 'attribute_type' => 'Özellik Türü', - 'contact-name' => 'İrtibat Adı', - 'contact-emails' => 'İrtibat E-postaları', - 'contact-numbers' => 'İrtibat Numaraları', - 'in-stock' => 'Stokta', - 'allocated' => 'Tahsis Edilen', - 'on-hand' => 'Eldeki', - 'products' => 'Ürünler', - 'filters' => [ - 'yesterday' => 'Dün', - 'today' => 'Bugün', - 'tomorrow' => 'Yarın', - 'this-week' => 'Bu Hafta', - 'this-month' => 'Bu Ay', - 'custom' => 'Özel', - ] + 'workflows' => [ + 'title' => 'İş Akışları', + 'create-title' => 'İş Akışı Oluştur', + 'edit-title' => 'İş Akışını Düzenle', + 'save-btn-title' => 'İş Akışını Kaydet', + 'back' => 'Geri', + 'cancel' => 'İptal', + 'information' => 'Bilgi', + 'name' => 'İsim', + 'description' => 'Açıklama', + 'event' => 'Etkinlik', + 'events' => 'Etkinlikler', + 'created' => 'Oluşturuldu', + 'updated' => 'Güncellendi', + 'deleted' => 'Silindi', + 'event-info' => 'Bir olay, koşulları kontrol etmek ve ilgili önceden tanımlanmış bir dizi eylemi gerçekleştirmek için otomatik olarak tetiklenir', + 'conditions' => 'Koşullar', + 'condition-info' => 'Koşullar, belirli senaryoları kontrol eden ve belirli durumlarda tetiklenen kurallar dizisidir.', + 'condition-type' => 'Koşul Türü', + 'all-conditions-true' => 'Tüm Koşullar Doğru', + 'any-condition-true' => 'Her Koşul Doğrudur', + 'add-condition' => 'Koşul Ekle', + 'choose-condition-to-add' => 'Eklemek için bir koşul seçin', + 'is-equal-to' => 'Eşittir', + 'is-not-equal-to' => 'Eşit değildir', + 'equals-or-greater-than' => 'Eşit veya daha büyük', + 'equals-or-less-than' => 'Eşit veya daha az', + 'greater-than' => 'Daha büyük', + 'less-than' => 'Daha az', + 'contain' => 'İçerir', + 'contains' => 'İçerir', + 'does-not-contain' => 'İçermiyor', + 'actions' => 'Hareketler', + 'action-info' => 'Bir eylem yalnızca iş yükünü azaltmakla kalmaz, aynı zamanda CRM otomasyonunu oldukça kolaylaştırır', + 'choose-action-to-add' => 'Eklenecek eylemi seçin', + 'update-lead' => 'Müşteriyi güncelle', + 'update-person' => 'Kişiyi Güncelle', + 'send-email-to-person' => 'Kişiye e-posta gönder', + 'send-email-to-sales-owner' => 'Satış sahibine e-posta gönder', + 'send-email-to-participants' => 'Katılımcılara e-posta gönder', + 'add-tag' => 'Etiket Ekle', + 'add-note-as-activity' => 'Etkinlik olarak not ekle', + 'choose-attribute' => 'Özelliği Seçin', + 'choose-option' => 'Seçeneği Seçin', + 'update-person' => 'Kişiyi Güncelle', + 'update-related-leads' => 'İlgili müşteri adaylarını güncelle', + 'update-quote' => 'Teklifi Güncelle', + 'add-action' => 'Eylem Ekle', + 'create-success' => 'İş akışı başarıyla oluşturuldu.', + 'update-success' => 'İş akışı başarıyla güncellendi.', + 'delete-success' => 'İş akışı başarıyla silindi.', + 'delete-failed' => 'İş akışı silinemez.', + 'add-webhook' => 'Web kancası tetikle', + 'webhook_heading' => 'Web kancası ayarları', + 'webhook_url' => 'URL girin', + 'request-headers' => 'Vücut Başlıkları', + 'webhook_request_method' => 'İstek yöntemi', + 'get_method' => 'GET', + 'post_method' => 'POST', + 'put_method' => 'PUT', + 'patch_method' => 'PATCH', + 'delete_method' => 'DELETE', + 'webhook_encoding' => 'Kodlamayı seçin', + 'encoding_json' => 'JSON', + 'encoding_http_query' => 'X-www-form-urlencoded', + 'request_body' => 'Anahtar ve Değer', + 'request_body_info' => 'Yeni bir satırda anahtar-değer çifti ekleyin, yani, anahtar=değer', + 'simple_body' => 'Basit', + 'raw' => 'çiğ', + 'lead' => 'Potansiyel müşteri', + 'person' => 'Kişi', + 'quote' => 'Alıntı', + 'activity' => 'Etkinlik', + 'add_header' => 'Başlık ekle', + 'header_key' => 'Anahtar', + 'header_value' => 'Değer', ], - 'response' => [ - 'create-success' => ':name başarıyla oluşturuldu.', - 'update-success' => ':name başarıyla güncellendi.', - 'destroy-success'=> ':name başarıyla silindi.', - 'destroy-failed' => ':name silinemez.', + 'tags' => [ + 'title' => 'Etiketler', + 'create-title' => 'Etiket Oluştur', + 'edit-title' => 'Etiketi Düzenle', + 'cancel' => 'İptal', + 'save-btn-title' => 'Etiketi Kaydet', + 'name' => 'İsim', + 'color' => 'Renk', + 'create-success' => 'Etiket başarıyla oluşturuldu.', + 'update-success' => 'Etiket başarıyla güncellendi.', + 'delete-success' => 'Etiket başarıyla silindi.', + 'delete-failed' => 'Etiket silinemez', ], - 'acl' => [ - 'leads' => 'Liderler', - 'lead' => 'Lider', - 'quotes' => 'Teklifler', - 'mail' => 'Posta', - 'inbox' => 'Gelen Kutusu', - 'draft' => 'Taslak', - 'outbox' => 'Giden Kutusu', - 'sent' => 'Gönder', - 'trash' => 'Çöp', - 'activities' => 'Aktiviteler', - 'contacts' => 'Kişiler', - 'persons' => 'Kişiler', - 'organizations' => 'Organizasyonlar', - 'products' => 'Ürünler', - 'settings' => 'Ayarlar', - 'groups' => 'Gruplar', - 'roles' => 'Roller', - 'users' => 'Kullanıcılar', - 'user' => 'Kullanıcı', - 'automation' => 'Otomasyon', - 'attributes' => 'Özellikler', - 'pipelines' => 'İşlem Hatları', - 'sources' => 'Kaynaklar', - 'types' => 'Türler', - 'email-templates' => 'E-posta Şablonları', - 'workflows' => 'İş Akışları', - 'other-settings' => 'Diğer Ayarlar', - 'tags' => 'Etiketler', - 'configuration' => 'Yapılandırma', - 'create' => 'Oluştur', - 'edit' => 'Düzenle', - 'view' => 'Görüntüle', - 'print' => 'Yazdır', - 'delete' => 'Kaldır', - 'export' => 'Dışa Aktar', - 'mass-delete' => 'Toplu Silme', + 'web-forms' => [ + 'create-success' => 'Web form başarıyla oluşturuldu', + 'update-success' => 'Web form başarıyla güncellendi', + 'delete-success' => 'Web form başarıyla silindi', ], - - 'common' => [ - 'back' => 'Geri', - 'address' => 'Adres', - 'country' => 'Ülke', - 'add_more' => 'Daha Fazla Ekle', - 'select-country' => 'Lütfen ülke seçin', - 'select-users' => 'Kullanıcıları Seçin', - 'select_rotten_leads' => 'Rotten Leadsi seçin', - 'select-organization' => 'Kuruluşları Seçin', - 'state' => 'İlçe', - 'select-state' => 'Lütfen ilçe seçin', - 'city' => 'Şehir', - 'postcode' => 'Posta Kodu', - 'address-validation' => '"Adres" alanı zorunludur', - 'work' => 'İş', - 'home' => 'Ev', - 'no-result-found' => 'Aynı isimde kayıt bulunamadı.', - 'add-as' => 'Yeni Ekle', - 'not-available' => 'Müsait değil', - 'select-options' => 'Seçenekler', - 'yes' => 'Evet', - 'no' => 'Hayır', - 'delete' => 'Kaldır', - 'save' => 'Kaydet', - 'locale' => 'yerel ayar', - 'en' => 'ingilizce', - 'tr' => 'Türkçe', - 'ar' => 'Arapça', - 'es' => 'Spanish', - 'add-as' => 'Yeni olarak ekle', - 'no-records-found' => 'Kayıt bulunamadı', - 'start-typing' => 'Kayıtları aramak için yazmaya başlayın', - 'select-type' => 'Türü Seç', - 'select-call' => 'Arama Yap', - 'select-meeting' => 'Toplantı', - 'select-lunch' => 'Öğle Yemeği', - 'duplicate-value' => 'Değer yinelenemez', - 'unauthenticated' => 'Kimliği doğrulanmamış', - 'resource-not-found' => 'Kaynak bulunamadı', - 'forbidden-error' => '403 yasak hatası', - 'internal-server-error' => '500 Dahili Sunucu Hatası', - 'something-went-wrong' => 'Bir ÅŸeyler yanlış oldu. Lütfen sonra tekrar deneyiniz.', - 'delete-confirm' => 'Bu eylemi gerçekten yapmak istiyor musunuz?', - 'system_attribute' => 'sistem', - 'custom_attribute' => 'Gelenek', + ], + + 'configuration' => [ + 'title' => 'Yapılandırma', + 'save-btn-title' => 'Kaydet', + 'general' => 'Genel', + 'locale-settings' => 'Yerel Ayarlar', + 'locale' => 'Yerelleştirme', + 'timezone' => 'Saat Dilimi', + 'date-time-formats' => 'Tarih ve Saat Formatları', + 'save-message' => 'Yapılandırma başarıyla güncellendi!', + 'emails' => [ + 'email' => 'E-posta', + 'notification_label' => 'Bildirimler', + 'new_lead' => 'Yeni müşteri adayı', ], - - 'user' => [ - 'account' => [ - 'name' => 'İsim', - 'email' => 'E-posta', - 'password' => 'Şifre', - 'my_account' => 'Hesabım', - 'update_details' => 'Detayları Güncelle', - 'current_password' => 'Mevcut Şifre', - 'confirm_password' => 'Şifreyi Onayla', - 'password-match' => 'Mevcut şifre eşleşmiyor.', - 'account-save' => 'Hesap değişiklikleri başarıyla kaydedildi.', - 'permission-denied' => 'İzin Reddedildi', - 'remove-image' => 'Görüntüyü Kaldır', - 'upload_image_pix' => 'Bir Profil Resmi Yükleyin (100px x 100px)', - 'upload_image_format' =>'PNG veya JPG Formatında', - 'image_upload_message' => 'Yalnızca resimlere (.jpeg, .jpg, .png, ..) izin verilir.' - ] + ], + + 'datagrid' => [ + 'id' => 'ID', + 'name' => 'İsim', + 'code' => 'Kod', + 'sku' => 'Barkod', + 'type' => 'Tür', + 'price' => 'Fiyat', + 'email' => 'E-posta', + 'attachments' => 'Ekler', + 'from' => 'İtibarem', + 'lead' => 'Lider', + 'title' => 'Başlık', + 'subject' => 'Konu', + 'tags' => 'Etiketler', + 'emails' => 'E-postalar', + 'stage' => 'Sahne', + 'status' => 'Durum', + 'active' => 'Etkin', + 'inactive' => 'Etkin Değil', + 'address' => 'Adres', + 'quantity' => 'Miktar', + 'lead_value' => 'Lider Değeri', + 'comment' => 'Yorum', + 'is_done' => 'Tamamlandı', + 'type' => 'Tür', + 'all' => 'Tümü', + 'user' => 'Kullanıcı', + 'sales-person' => 'Satış Elemanı', + 'expired_quotes' => 'Süresi Dolmuş Alıntılar', + 'person' => 'Kişi', + 'sub-total' => 'Ara Toplam', + 'discount' => 'İndirim', + 'tax' => 'Vergi', + 'adjustment' => 'Ayarlama', + 'grand-total' => 'Genel Toplam', + 'persons_count' => 'Kişi Sayısı', + 'assigned_to' => 'Atandı', + 'created_by' => 'Tarafından oluşturuldu', + 'entity_type' => 'Varlık Türü', + 'created_at' => 'Oluşturulma Tarihi', + 'expected_close_date' => 'Beklenen Kapanış Tarihi', + 'schedule_from' => 'Başlangıç Zamanı', + 'schedule_to' => 'Planla', + 'description' => 'Açıklama', + 'update_stage' => 'Aşamayı Güncelle', + 'contact_person' => 'İlgili kişi', + 'contact_numbers' => 'İletişim numaraları', + 'permission_type' => 'İzin Türü', + 'organization_name' => 'Kuruluş Adı', + 'is-default' => 'Varsayılan', + 'rotten-days' => 'Çürük Günler', + 'rotten_lead' => 'çürük kurşun', + 'yes' => 'Evet', + 'no' => 'Hayır', + 'move-to-inbox' => 'Gelen Kutusuna Taşı', + 'update-success' => ':resource başarıyla güncellendi.', + 'destroy-success' => ':resource başarıyla silindi', + 'destroy-failed' => ':resource silinemez', + 'attribute_type' => 'Özellik Türü', + 'contact-name' => 'İrtibat Adı', + 'contact-emails' => 'İrtibat E-postaları', + 'contact-numbers' => 'İrtibat Numaraları', + 'in-stock' => 'Stokta', + 'allocated' => 'Tahsis Edilen', + 'on-hand' => 'Eldeki', + 'products' => 'Ürünler', + 'filters' => [ + 'yesterday' => 'Dün', + 'today' => 'Bugün', + 'tomorrow' => 'Yarın', + 'this-week' => 'Bu Hafta', + 'this-month' => 'Bu Ay', + 'custom' => 'Özel', ], + ], + + 'response' => [ + 'create-success' => ':name başarıyla oluşturuldu.', + 'update-success' => ':name başarıyla güncellendi.', + 'destroy-success'=> ':name başarıyla silindi.', + 'destroy-failed' => ':name silinemez.', + ], + + 'acl' => [ + 'leads' => 'Liderler', + 'lead' => 'Lider', + 'quotes' => 'Teklifler', + 'mail' => 'Posta', + 'inbox' => 'Gelen Kutusu', + 'draft' => 'Taslak', + 'outbox' => 'Giden Kutusu', + 'sent' => 'Gönder', + 'trash' => 'Çöp', + 'activities' => 'Aktiviteler', + 'contacts' => 'Kişiler', + 'persons' => 'Kişiler', + 'organizations' => 'Organizasyonlar', + 'products' => 'Ürünler', + 'settings' => 'Ayarlar', + 'groups' => 'Gruplar', + 'roles' => 'Roller', + 'users' => 'Kullanıcılar', + 'user' => 'Kullanıcı', + 'automation' => 'Otomasyon', + 'attributes' => 'Özellikler', + 'pipelines' => 'İşlem Hatları', + 'sources' => 'Kaynaklar', + 'types' => 'Türler', + 'email-templates' => 'E-posta Şablonları', + 'workflows' => 'İş Akışları', + 'other-settings' => 'Diğer Ayarlar', + 'tags' => 'Etiketler', + 'configuration' => 'Yapılandırma', + 'create' => 'Oluştur', + 'edit' => 'Düzenle', + 'view' => 'Görüntüle', + 'print' => 'Yazdır', + 'delete' => 'Kaldır', + 'export' => 'Dışa Aktar', + 'mass-delete' => 'Toplu Silme', + ], + + 'common' => [ + 'back' => 'Geri', + 'address' => 'Adres', + 'country' => 'Ülke', + 'add_more' => 'Daha Fazla Ekle', + 'select-country' => 'Lütfen ülke seçin', + 'select-users' => 'Kullanıcıları Seçin', + 'select_rotten_leads' => 'Rotten Leadsi seçin', + 'select-organization' => 'Kuruluşları Seçin', + 'state' => 'İlçe', + 'select-state' => 'Lütfen ilçe seçin', + 'city' => 'Şehir', + 'postcode' => 'Posta Kodu', + 'address-validation' => '"Adres" alanı zorunludur', + 'work' => 'İş', + 'home' => 'Ev', + 'no-result-found' => 'Aynı isimde kayıt bulunamadı.', + 'add-as' => 'Yeni Ekle', + 'not-available' => 'Müsait değil', + 'select-options' => 'Seçenekler', + 'yes' => 'Evet', + 'no' => 'Hayır', + 'delete' => 'Kaldır', + 'save' => 'Kaydet', + 'locale' => 'yerel ayar', + 'en' => 'ingilizce', + 'tr' => 'Türkçe', + 'ar' => 'Arapça', + 'es' => 'Spanish', + 'add-as' => 'Yeni olarak ekle', + 'no-records-found' => 'Kayıt bulunamadı', + 'start-typing' => 'Kayıtları aramak için yazmaya başlayın', + 'select-type' => 'Türü Seç', + 'select-call' => 'Arama Yap', + 'select-meeting' => 'Toplantı', + 'select-lunch' => 'Öğle Yemeği', + 'duplicate-value' => 'Değer yinelenemez', + 'unauthenticated' => 'Kimliği doğrulanmamış', + 'resource-not-found' => 'Kaynak bulunamadı', + 'forbidden-error' => '403 yasak hatası', + 'internal-server-error' => '500 Dahili Sunucu Hatası', + 'something-went-wrong' => 'Bir ÅŸeyler yanlış oldu. Lütfen sonra tekrar deneyiniz.', + 'delete-confirm' => 'Bu eylemi gerçekten yapmak istiyor musunuz?', + 'system_attribute' => 'sistem', + 'custom_attribute' => 'Gelenek', + ], + + 'user' => [ + 'account' => [ + 'name' => 'İsim', + 'email' => 'E-posta', + 'password' => 'Şifre', + 'my_account' => 'Hesabım', + 'update_details' => 'Detayları Güncelle', + 'current_password' => 'Mevcut Şifre', + 'confirm_password' => 'Şifreyi Onayla', + 'password-match' => 'Mevcut şifre eşleşmiyor.', + 'account-save' => 'Hesap değişiklikleri başarıyla kaydedildi.', + 'permission-denied' => 'İzin Reddedildi', + 'remove-image' => 'Görüntüyü Kaldır', + 'upload_image_pix' => 'Bir Profil Resmi Yükleyin (100px x 100px)', + 'upload_image_format' => 'PNG veya JPG Formatında', + 'image_upload_message' => 'Yalnızca resimlere (.jpeg, .jpg, .png, ..) izin verilir.', + ], + ], - 'emails' => [ - 'common' => [ - 'dear' => 'Sayın :name', - 'cheers' => 'Tebrikler,
Takım :app_name' - ], + 'emails' => [ + 'common' => [ + 'dear' => 'Sayın :name', + 'cheers' => 'Tebrikler,
Takım :app_name', ], + ], - 'errors' => [ - '401' => 'Bu sayfaya erişmek için yetkiniz yok' - ] - ]; + 'errors' => [ + '401' => 'Bu sayfaya erişmek için yetkiniz yok', + ], +]; diff --git a/packages/Webkul/Admin/src/Traits/ProvideDropdownOptions.php b/packages/Webkul/Admin/src/Traits/ProvideDropdownOptions.php index 46ffdea56..545cd6fec 100644 --- a/packages/Webkul/Admin/src/Traits/ProvideDropdownOptions.php +++ b/packages/Webkul/Admin/src/Traits/ProvideDropdownOptions.php @@ -15,14 +15,13 @@ trait ProvideDropdownOptions */ public $booleanDropdownChoices = [ 'active_inactive', - 'yes_no' + 'yes_no', ]; /** * Is boolean dropdown choice exists. * * @param string $choice - * @return bool */ public function isBooleanDropdownChoiceExists($choice): bool { @@ -33,7 +32,6 @@ public function isBooleanDropdownChoiceExists($choice): bool * Get boolean dropdown options. * * @param string $choice - * @return array */ public function getBooleanDropdownOptions($choice = 'active_inactive'): array { @@ -44,8 +42,6 @@ public function getBooleanDropdownOptions($choice = 'active_inactive'): array /** * Get active/inactive dropdown options. - * - * @return array */ public function getActiveInactiveDropdownOptions(): array { @@ -72,8 +68,6 @@ public function getActiveInactiveDropdownOptions(): array /** * Get yes/no dropdown options. - * - * @return array */ public function getYesNoDropdownOptions(): array { @@ -94,14 +88,12 @@ public function getYesNoDropdownOptions(): array 'label' => __('admin::app.common.yes'), 'disabled' => false, 'selected' => false, - ] + ], ]; } /** * Get user dropdown options. - * - * @return array */ public function getUserDropdownOptions(): array { @@ -123,14 +115,12 @@ public function getUserDropdownOptions(): array 'disabled' => true, 'selected' => true, ], - ...$options + ...$options, ]; } /** * Get lead source options. - * - * @return array */ public function getLeadSourcesOptions(): array { @@ -152,14 +142,12 @@ public function getLeadSourcesOptions(): array 'disabled' => true, 'selected' => true, ], - ...$options + ...$options, ]; } /** * Get organization dropdown options. - * - * @return array */ public function getOrganizationDropdownOptions(): array { @@ -181,14 +169,12 @@ public function getOrganizationDropdownOptions(): array 'disabled' => true, 'selected' => true, ], - ...$options + ...$options, ]; } /** * Get role dropdown options. - * - * @return array */ public function getRoleDropdownOptions(): array { @@ -209,8 +195,6 @@ public function getRoleDropdownOptions(): array /** * Get activity type dropdown options. - * - * @return array */ public function getActivityTypeDropdownOptions(): array { @@ -241,8 +225,6 @@ public function getActivityTypeDropdownOptions(): array /** * Get attribute type dropdown options. - * - * @return array */ public function getAttributeTypeDropdownOptions(): array { @@ -252,13 +234,13 @@ public function getAttributeTypeDropdownOptions(): array 'value' => '', 'disabled' => true, 'selected' => true, - ], + ], [ 'label' => trans('admin::app.common.system_attribute'), 'value' => '0', 'disabled' => false, 'selected' => false, - ], + ], [ 'label' => trans('admin::app.common.custom_attribute'), 'value' => '1', @@ -270,8 +252,6 @@ public function getAttributeTypeDropdownOptions(): array /** * Get organization dropdown options. - * - * @return array */ public function getWarehouseDropdownOptions(): array { @@ -293,7 +273,7 @@ public function getWarehouseDropdownOptions(): array 'disabled' => true, 'selected' => true, ], - ...$options + ...$options, ]; } } diff --git a/packages/Webkul/Attribute/src/Config/attribute_lookups.php b/packages/Webkul/Attribute/src/Config/attribute_lookups.php index 05e0b10eb..ca5d8ed54 100644 --- a/packages/Webkul/Attribute/src/Config/attribute_lookups.php +++ b/packages/Webkul/Attribute/src/Config/attribute_lookups.php @@ -1,4 +1,5 @@ attributeRepository->scopeQuery(function($query){ + $attributes = $this->attributeRepository->scopeQuery(function ($query) { $query = $query->whereIn('code', array_keys(request()->all())) ->where('entity_type', request('entity_type')); @@ -58,29 +57,29 @@ public function rules() if ($attribute->type == 'boolean') { continue; - } else if ($attribute->type == 'address') { + } elseif ($attribute->type == 'address') { if (! $attribute->is_required) { continue; } $validations = [ - $attribute->code . '.address' => 'required', - $attribute->code . '.country' => 'required', - $attribute->code . '.state' => 'required', - $attribute->code . '.city' => 'required', - $attribute->code . '.postcode' => 'required', + $attribute->code.'.address' => 'required', + $attribute->code.'.country' => 'required', + $attribute->code.'.state' => 'required', + $attribute->code.'.city' => 'required', + $attribute->code.'.postcode' => 'required', ]; - } else if ($attribute->type == 'email') { + } elseif ($attribute->type == 'email') { $validations = [ - $attribute->code => [$attribute->is_required ? 'required' : 'nullable'], - $attribute->code . '.*.value' => [$attribute->is_required ? 'required' : 'nullable', 'email'], - $attribute->code . '.*.label' => $attribute->is_required ? 'required' : 'nullable', + $attribute->code => [$attribute->is_required ? 'required' : 'nullable'], + $attribute->code.'.*.value' => [$attribute->is_required ? 'required' : 'nullable', 'email'], + $attribute->code.'.*.label' => $attribute->is_required ? 'required' : 'nullable', ]; - } else if ($attribute->type == 'phone') { + } elseif ($attribute->type == 'phone') { $validations = [ - $attribute->code => [$attribute->is_required ? 'required' : 'nullable'], - $attribute->code . '.*.value' => [$attribute->is_required ? 'required' : 'nullable'], - $attribute->code . '.*.label' => $attribute->is_required ? 'required' : 'nullable', + $attribute->code => [$attribute->is_required ? 'required' : 'nullable'], + $attribute->code.'.*.value' => [$attribute->is_required ? 'required' : 'nullable'], + $attribute->code.'.*.label' => $attribute->is_required ? 'required' : 'nullable', ]; } else { $validations[$attribute->code] = [$attribute->is_required ? 'required' : 'nullable']; @@ -97,14 +96,14 @@ public function rules() array_push($validations[$attribute->code], new Decimal); } - if ($attribute->type == 'image' && ! request($attribute->code . '.delete')) { + if ($attribute->type == 'image' && ! request($attribute->code.'.delete')) { array_push($validations[$attribute->code], 'mimes:bmp,jpeg,jpg,png,webp'); } } if ($attribute->is_unique) { array_push($validations[in_array($attribute->type, ['email', 'phone']) - ? $attribute->code . '.*.value' + ? $attribute->code.'.*.value' : $attribute->code ], function ($field, $value, $fail) use ($attribute) { if (! $this->attributeValueRepository->isValueUnique($this->id, $attribute->entity_type, $attribute, request($field))) { diff --git a/packages/Webkul/Attribute/src/Models/AttributeOption.php b/packages/Webkul/Attribute/src/Models/AttributeOption.php index c23780c4f..2ec062214 100644 --- a/packages/Webkul/Attribute/src/Models/AttributeOption.php +++ b/packages/Webkul/Attribute/src/Models/AttributeOption.php @@ -8,7 +8,7 @@ class AttributeOption extends Model implements AttributeOptionContract { public $timestamps = false; - + /** * The attributes that are mass assignable. * diff --git a/packages/Webkul/Attribute/src/Models/AttributeOptionProxy.php b/packages/Webkul/Attribute/src/Models/AttributeOptionProxy.php index 5a2a4c102..63de852b9 100644 --- a/packages/Webkul/Attribute/src/Models/AttributeOptionProxy.php +++ b/packages/Webkul/Attribute/src/Models/AttributeOptionProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class AttributeOptionProxy extends ModelProxy -{ - -} \ No newline at end of file +class AttributeOptionProxy extends ModelProxy {} diff --git a/packages/Webkul/Attribute/src/Models/AttributeProxy.php b/packages/Webkul/Attribute/src/Models/AttributeProxy.php index f7878a8a1..fd6e2073b 100644 --- a/packages/Webkul/Attribute/src/Models/AttributeProxy.php +++ b/packages/Webkul/Attribute/src/Models/AttributeProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class AttributeProxy extends ModelProxy -{ - -} \ No newline at end of file +class AttributeProxy extends ModelProxy {} diff --git a/packages/Webkul/Attribute/src/Models/AttributeValue.php b/packages/Webkul/Attribute/src/Models/AttributeValue.php index c036d61aa..9be30437f 100755 --- a/packages/Webkul/Attribute/src/Models/AttributeValue.php +++ b/packages/Webkul/Attribute/src/Models/AttributeValue.php @@ -62,4 +62,4 @@ public function entity() { return $this->morphTo(); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Attribute/src/Models/AttributeValueProxy.php b/packages/Webkul/Attribute/src/Models/AttributeValueProxy.php index c7838a514..777a768f0 100644 --- a/packages/Webkul/Attribute/src/Models/AttributeValueProxy.php +++ b/packages/Webkul/Attribute/src/Models/AttributeValueProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class AttributeValueProxy extends ModelProxy -{ - -} \ No newline at end of file +class AttributeValueProxy extends ModelProxy {} diff --git a/packages/Webkul/Attribute/src/Providers/AttributeServiceProvider.php b/packages/Webkul/Attribute/src/Providers/AttributeServiceProvider.php index 789d4778e..51c767a40 100644 --- a/packages/Webkul/Attribute/src/Providers/AttributeServiceProvider.php +++ b/packages/Webkul/Attribute/src/Providers/AttributeServiceProvider.php @@ -2,10 +2,8 @@ namespace Webkul\Attribute\Providers; -use Illuminate\Support\ServiceProvider; -use Illuminate\Foundation\AliasLoader; use Illuminate\Routing\Router; -use Illuminate\Support\Facades\Event; +use Illuminate\Support\ServiceProvider; class AttributeServiceProvider extends ServiceProvider { @@ -16,7 +14,7 @@ class AttributeServiceProvider extends ServiceProvider */ public function boot(Router $router) { - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); } /** @@ -28,7 +26,7 @@ public function register() { $this->registerConfig(); } - + /** * Register package config. * @@ -37,7 +35,7 @@ public function register() protected function registerConfig() { $this->mergeConfigFrom( - dirname(__DIR__) . '/Config/attribute_lookups.php', 'attribute_lookups' + dirname(__DIR__).'/Config/attribute_lookups.php', 'attribute_lookups' ); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Attribute/src/Providers/ModuleServiceProvider.php b/packages/Webkul/Attribute/src/Providers/ModuleServiceProvider.php index f63823c2d..6f363b4a9 100644 --- a/packages/Webkul/Attribute/src/Providers/ModuleServiceProvider.php +++ b/packages/Webkul/Attribute/src/Providers/ModuleServiceProvider.php @@ -11,4 +11,4 @@ class ModuleServiceProvider extends BaseModuleServiceProvider \Webkul\Attribute\Models\AttributeOption::class, \Webkul\Attribute\Models\AttributeValue::class, ]; -} \ No newline at end of file +} diff --git a/packages/Webkul/Attribute/src/Repositories/AttributeOptionRepository.php b/packages/Webkul/Attribute/src/Repositories/AttributeOptionRepository.php index 38b96070c..a1b508659 100755 --- a/packages/Webkul/Attribute/src/Repositories/AttributeOptionRepository.php +++ b/packages/Webkul/Attribute/src/Repositories/AttributeOptionRepository.php @@ -11,8 +11,8 @@ class AttributeOptionRepository extends Repository * * @return mixed */ - function model() + public function model() { return 'Webkul\Attribute\Contracts\AttributeOption'; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php index 6522a2ffe..0b75c1cf6 100755 --- a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php +++ b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php @@ -16,8 +16,7 @@ class AttributeRepository extends Repository public function __construct( protected AttributeOptionRepository $attributeOptionRepository, Container $container - ) - { + ) { parent::__construct($container); } @@ -26,13 +25,12 @@ public function __construct( * * @return mixed */ - function model() + public function model() { return 'Webkul\Attribute\Contracts\Attribute'; } /** - * @param array $data * @return \Webkul\Attribute\Contracts\Attribute */ public function create(array $data) @@ -47,7 +45,7 @@ public function create(array $data) foreach ($options as $optionInputs) { $this->attributeOptionRepository->create(array_merge([ 'attribute_id' => $attribute->id, - 'sort_order' => $sortOrder++, + 'sort_order' => $sortOrder++, ], $optionInputs)); } } @@ -56,12 +54,11 @@ public function create(array $data) } /** - * @param array $data - * @param int $id + * @param int $id * @param string $attribute * @return \Webkul\Attribute\Contracts\Attribute */ - public function update(array $data, $id, $attribute = "id") + public function update(array $data, $id, $attribute = 'id') { $attribute = $this->find($id); @@ -113,27 +110,27 @@ public function getAttributeByCode($code) } /** - * @param integer $lookup + * @param int $lookup * @param string $query * @param array $columns * @return array */ public function getLookUpOptions($lookup, $query = '', $columns = []) { - $lookup = config('attribute_lookups.' . $lookup); + $lookup = config('attribute_lookups.'.$lookup); if (! count($columns)) { - $columns = [($lookup['value_column'] ?? 'id') . ' as id' , ($lookup['label_column'] ?? 'name') . ' as name']; + $columns = [($lookup['value_column'] ?? 'id').' as id', ($lookup['label_column'] ?? 'name').' as name']; } if (Str::contains($lookup['repository'], 'UserRepository')) { $userRepository = app($lookup['repository']); - + $currentUser = auth()->guard('user')->user(); - + if ($currentUser->view_permission === 'group') { return $userRepository->leftJoin('user_groups', 'users.id', '=', 'user_groups.user_id') - ->where('users.name', 'like', '%' . urldecode($query) . '%') + ->where('users.name', 'like', '%'.urldecode($query).'%') ->get(); } elseif ($currentUser->view_permission === 'individual') { return $userRepository->findByField('users.id', $currentUser->id); @@ -141,13 +138,13 @@ public function getLookUpOptions($lookup, $query = '', $columns = []) } return app($lookup['repository'])->findWhere([ - [$lookup['label_column'] ?? 'name', 'like', '%' . urldecode($query) . '%'] + [$lookup['label_column'] ?? 'name', 'like', '%'.urldecode($query).'%'], ], $columns); } /** * @param string $lookup - * @param integer|array $entityId + * @param int|array $entityId * @param array $columns * @return mixed */ @@ -157,10 +154,10 @@ public function getLookUpEntity($lookup, $entityId = null, $columns = []) return; } - $lookup = config('attribute_lookups.' . $lookup); + $lookup = config('attribute_lookups.'.$lookup); if (! count($columns)) { - $columns = [($lookup['value_column'] ?? 'id') . ' as id' , ($lookup['label_column'] ?? 'name') . ' as name']; + $columns = [($lookup['value_column'] ?? 'id').' as id', ($lookup['label_column'] ?? 'name').' as name']; } if (is_array($entityId)) { @@ -173,4 +170,4 @@ public function getLookUpEntity($lookup, $entityId = null, $columns = []) return app($lookup['repository'])->find($entityId, $columns); } } -} \ No newline at end of file +} diff --git a/packages/Webkul/Attribute/src/Repositories/AttributeValueRepository.php b/packages/Webkul/Attribute/src/Repositories/AttributeValueRepository.php index f946e9731..3d6d38641 100755 --- a/packages/Webkul/Attribute/src/Repositories/AttributeValueRepository.php +++ b/packages/Webkul/Attribute/src/Repositories/AttributeValueRepository.php @@ -25,14 +25,13 @@ public function __construct( * * @return mixed */ - function model() + public function model() { return 'Webkul\Attribute\Contracts\AttributeValue'; } /** - * @param array $data - * @param int $entityId + * @param int $entityId * @return void */ public function save(array $data, $entityId) @@ -42,12 +41,12 @@ public function save(array $data, $entityId) if (isset($data['quick_add'])) { $conditions['quick_add'] = 1; } - + $attributes = $this->attributeRepository->findWhere($conditions); foreach ($attributes as $attribute) { $typeColumn = $this->model::$attributeTypeFields[$attribute->type]; - + if ($attribute->type === 'boolean') { $data[$attribute->code] = isset($data[$attribute->code]) && $data[$attribute->code] ? 1 : 0; } @@ -77,7 +76,7 @@ public function save(array $data, $entityId) if ($attribute->type === 'image' || $attribute->type === 'file') { $data[$attribute->code] = gettype($data[$attribute->code]) === 'object' - ? request()->file($attribute->code)->store($data['entity_type'] . '/' . $entityId) + ? request()->file($attribute->code)->store($data['entity_type'].'/'.$entityId) : null; } @@ -111,7 +110,7 @@ public function save(array $data, $entityId) * @param string $entityType * @param \Webkul\Attribute\Contracts\Attribute $attribute * @param string $value - * @return boolean + * @return bool */ public function isValueUnique($entityId, $entityType, $attribute, $value) { @@ -131,7 +130,7 @@ public function isValueUnique($entityId, $entityType, $attribute, $value) /** * Removed null values from email and phone fields. - * + * * @param array $data * @return array */ @@ -145,4 +144,4 @@ public function sanitizeEmailAndPhone($data) return $data; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Attribute/src/Traits/CustomAttribute.php b/packages/Webkul/Attribute/src/Traits/CustomAttribute.php index c44de4b8a..acb3830dd 100644 --- a/packages/Webkul/Attribute/src/Traits/CustomAttribute.php +++ b/packages/Webkul/Attribute/src/Traits/CustomAttribute.php @@ -1,10 +1,10 @@ scopeQuery(function ($query) use($attributes) { + $attributes = app(AttributeRepository::class)->scopeQuery(function ($query) use ($attributes) { return $query->distinct() ->where('type', 'lookup') ->where('entity_type', request('entity_type')) @@ -152,7 +152,6 @@ public function newInstance($attributes = [], $exists = false) /** * Fill the model with an array of attributes. * - * @param array $attributes * @return $this * * @throws \Illuminate\Database\Eloquent\MassAssignmentException @@ -173,4 +172,4 @@ public static function boot() $entity->attribute_values()->delete(); }); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Contact/src/Contracts/Organization.php b/packages/Webkul/Contact/src/Contracts/Organization.php index 8b40fc939..50b0e1235 100644 --- a/packages/Webkul/Contact/src/Contracts/Organization.php +++ b/packages/Webkul/Contact/src/Contracts/Organization.php @@ -2,6 +2,4 @@ namespace Webkul\Contact\Contracts; -interface Organization -{ -} \ No newline at end of file +interface Organization {} diff --git a/packages/Webkul/Contact/src/Contracts/Person.php b/packages/Webkul/Contact/src/Contracts/Person.php index 568813f6c..c19b2c368 100644 --- a/packages/Webkul/Contact/src/Contracts/Person.php +++ b/packages/Webkul/Contact/src/Contracts/Person.php @@ -2,6 +2,4 @@ namespace Webkul\Contact\Contracts; -interface Person -{ -} \ No newline at end of file +interface Person {} diff --git a/packages/Webkul/Contact/src/Models/OrganizationProxy.php b/packages/Webkul/Contact/src/Models/OrganizationProxy.php index 58c875ad8..1e6d9c05f 100644 --- a/packages/Webkul/Contact/src/Models/OrganizationProxy.php +++ b/packages/Webkul/Contact/src/Models/OrganizationProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class OrganizationProxy extends ModelProxy -{ - -} \ No newline at end of file +class OrganizationProxy extends ModelProxy {} diff --git a/packages/Webkul/Contact/src/Models/Person.php b/packages/Webkul/Contact/src/Models/Person.php index 55ae3be33..abd4b707a 100644 --- a/packages/Webkul/Contact/src/Models/Person.php +++ b/packages/Webkul/Contact/src/Models/Person.php @@ -65,6 +65,6 @@ public function organization() */ protected static function newFactory() { - return PersonFactory::new (); + return PersonFactory::new(); } } diff --git a/packages/Webkul/Contact/src/Models/PersonProxy.php b/packages/Webkul/Contact/src/Models/PersonProxy.php index e74851dd2..f768f47f7 100644 --- a/packages/Webkul/Contact/src/Models/PersonProxy.php +++ b/packages/Webkul/Contact/src/Models/PersonProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class PersonProxy extends ModelProxy -{ - -} \ No newline at end of file +class PersonProxy extends ModelProxy {} diff --git a/packages/Webkul/Contact/src/Providers/ContactServiceProvider.php b/packages/Webkul/Contact/src/Providers/ContactServiceProvider.php index e103aab2f..d77b7a3ff 100644 --- a/packages/Webkul/Contact/src/Providers/ContactServiceProvider.php +++ b/packages/Webkul/Contact/src/Providers/ContactServiceProvider.php @@ -2,9 +2,8 @@ namespace Webkul\Contact\Providers; -use Illuminate\Support\ServiceProvider; -use Illuminate\Foundation\AliasLoader; use Illuminate\Routing\Router; +use Illuminate\Support\ServiceProvider; class ContactServiceProvider extends ServiceProvider { @@ -15,7 +14,7 @@ class ContactServiceProvider extends ServiceProvider */ public function boot(Router $router) { - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); } /** @@ -23,7 +22,5 @@ public function boot(Router $router) * * @return void */ - public function register() - { - } -} \ No newline at end of file + public function register() {} +} diff --git a/packages/Webkul/Contact/src/Providers/ModuleServiceProvider.php b/packages/Webkul/Contact/src/Providers/ModuleServiceProvider.php index 4ae4d6074..8d58e3faf 100644 --- a/packages/Webkul/Contact/src/Providers/ModuleServiceProvider.php +++ b/packages/Webkul/Contact/src/Providers/ModuleServiceProvider.php @@ -10,4 +10,4 @@ class ModuleServiceProvider extends BaseModuleServiceProvider \Webkul\Contact\Models\Person::class, \Webkul\Contact\Models\Organization::class, ]; -} \ No newline at end of file +} diff --git a/packages/Webkul/Contact/src/Repositories/OrganizationRepository.php b/packages/Webkul/Contact/src/Repositories/OrganizationRepository.php index 01b90d5dd..f6d34931b 100644 --- a/packages/Webkul/Contact/src/Repositories/OrganizationRepository.php +++ b/packages/Webkul/Contact/src/Repositories/OrganizationRepository.php @@ -4,8 +4,8 @@ use Illuminate\Container\Container; use Illuminate\Support\Facades\DB; -use Webkul\Core\Eloquent\Repository; use Webkul\Attribute\Repositories\AttributeValueRepository; +use Webkul\Core\Eloquent\Repository; class OrganizationRepository extends Repository { @@ -20,19 +20,18 @@ public function __construct( ) { parent::__construct($container); } - + /** * Specify Model class name * * @return mixed */ - function model() + public function model() { return 'Webkul\Contact\Contracts\Organization'; } /** - * @param array $data * @return \Webkul\Contact\Contracts\Organization */ public function create(array $data) @@ -45,12 +44,11 @@ public function create(array $data) } /** - * @param array $data - * @param int $id - * @param string $attribute + * @param int $id + * @param string $attribute * @return \Webkul\Contact\Contracts\Organization */ - public function update(array $data, $id, $attribute = "id") + public function update(array $data, $id, $attribute = 'id') { $organization = parent::update($data, $id); @@ -61,23 +59,23 @@ public function update(array $data, $id, $attribute = "id") /** * Delete organization and it's persons. - * - * @param int $id + * + * @param int $id * @return @void */ public function delete($id) { $organization = $this->findOrFail($id); - - DB::transaction(function() use($organization, $id) { + + DB::transaction(function () use ($organization, $id) { $organization->persons()->delete(); - + $this->attributeValueRepository->deleteWhere([ 'entity_id' => $id, 'entity_type' => 'organizations', ]); - + $organization->delete(); }); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Contact/src/Repositories/PersonRepository.php b/packages/Webkul/Contact/src/Repositories/PersonRepository.php index 00e1c1ab7..a47b44341 100644 --- a/packages/Webkul/Contact/src/Repositories/PersonRepository.php +++ b/packages/Webkul/Contact/src/Repositories/PersonRepository.php @@ -3,8 +3,8 @@ namespace Webkul\Contact\Repositories; use Illuminate\Container\Container; -use Webkul\Core\Eloquent\Repository; use Webkul\Attribute\Repositories\AttributeValueRepository; +use Webkul\Core\Eloquent\Repository; class PersonRepository extends Repository { @@ -19,19 +19,18 @@ public function __construct( ) { parent::__construct($container); } - + /** * Specify Model class name * * @return mixed */ - function model() + public function model() { return 'Webkul\Contact\Contracts\Person'; } /** - * @param array $data * @return \Webkul\Contact\Contracts\Person */ public function create(array $data) @@ -44,12 +43,11 @@ public function create(array $data) } /** - * @param array $data - * @param int $id - * @param string $attribute + * @param int $id + * @param string $attribute * @return \Webkul\Contact\Contracts\Person */ - public function update(array $data, $id, $attribute = "id") + public function update(array $data, $id, $attribute = 'id') { $person = parent::update($data, $id); @@ -66,8 +64,8 @@ public function update(array $data, $id, $attribute = "id") public function getCustomerCount($startDate, $endDate) { return $this - ->whereBetween('created_at', [$startDate, $endDate]) - ->get() - ->count(); + ->whereBetween('created_at', [$startDate, $endDate]) + ->get() + ->count(); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Config/concord.php b/packages/Webkul/Core/src/Config/concord.php index 1096800bf..5524f2382 100644 --- a/packages/Webkul/Core/src/Config/concord.php +++ b/packages/Webkul/Core/src/Config/concord.php @@ -18,5 +18,5 @@ \Webkul\WebForm\Providers\ModuleServiceProvider::class, \Webkul\Workflow\Providers\ModuleServiceProvider::class, ], - 'register_route_models' => true + 'register_route_models' => true, ]; diff --git a/packages/Webkul/Core/src/Config/cors.php b/packages/Webkul/Core/src/Config/cors.php index ddaaf2839..4222c1143 100644 --- a/packages/Webkul/Core/src/Config/cors.php +++ b/packages/Webkul/Core/src/Config/cors.php @@ -22,7 +22,7 @@ * Example: ['api/*'] */ 'paths' => [ - 'admin/web-forms/forms/*' + 'admin/web-forms/forms/*', ], /* diff --git a/packages/Webkul/Core/src/Config/sanctum.php b/packages/Webkul/Core/src/Config/sanctum.php index a5a9aa536..c6c6045e8 100644 --- a/packages/Webkul/Core/src/Config/sanctum.php +++ b/packages/Webkul/Core/src/Config/sanctum.php @@ -59,7 +59,7 @@ 'middleware' => [ 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, - 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, + 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, ], ]; diff --git a/packages/Webkul/Core/src/Console/Commands/Version.php b/packages/Webkul/Core/src/Console/Commands/Version.php index 9207d35cb..f999ccfe6 100644 --- a/packages/Webkul/Core/src/Console/Commands/Version.php +++ b/packages/Webkul/Core/src/Console/Commands/Version.php @@ -37,6 +37,6 @@ public function __construct() */ public function handle() { - $this->comment('v' . config('app.version')); + $this->comment('v'.config('app.version')); } } diff --git a/packages/Webkul/Core/src/Contracts/CoreConfig.php b/packages/Webkul/Core/src/Contracts/CoreConfig.php index 4ea3968ba..6d89520a4 100644 --- a/packages/Webkul/Core/src/Contracts/CoreConfig.php +++ b/packages/Webkul/Core/src/Contracts/CoreConfig.php @@ -2,6 +2,4 @@ namespace Webkul\Core\Contracts; -interface CoreConfig -{ -} \ No newline at end of file +interface CoreConfig {} diff --git a/packages/Webkul/Core/src/Contracts/Country.php b/packages/Webkul/Core/src/Contracts/Country.php index 693c35db4..1e33ca4bb 100644 --- a/packages/Webkul/Core/src/Contracts/Country.php +++ b/packages/Webkul/Core/src/Contracts/Country.php @@ -2,6 +2,4 @@ namespace Webkul\Core\Contracts; -interface Country -{ -} \ No newline at end of file +interface Country {} diff --git a/packages/Webkul/Core/src/Contracts/CountryState.php b/packages/Webkul/Core/src/Contracts/CountryState.php index e2a66ed97..28bec07ca 100644 --- a/packages/Webkul/Core/src/Contracts/CountryState.php +++ b/packages/Webkul/Core/src/Contracts/CountryState.php @@ -2,6 +2,4 @@ namespace Webkul\Core\Contracts; -interface CountryState -{ -} \ No newline at end of file +interface CountryState {} diff --git a/packages/Webkul/Core/src/Contracts/Validations/Code.php b/packages/Webkul/Core/src/Contracts/Validations/Code.php index 8fbb98da0..9ba39d5b6 100755 --- a/packages/Webkul/Core/src/Contracts/Validations/Code.php +++ b/packages/Webkul/Core/src/Contracts/Validations/Code.php @@ -27,4 +27,4 @@ public function message() { return trans('This value must be valid.'); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Contracts/Validations/Decimal.php b/packages/Webkul/Core/src/Contracts/Validations/Decimal.php index 595f5d6fb..1b7c8b318 100755 --- a/packages/Webkul/Core/src/Contracts/Validations/Decimal.php +++ b/packages/Webkul/Core/src/Contracts/Validations/Decimal.php @@ -27,4 +27,4 @@ public function message() { return trans('core::validation.decimal'); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Core.php b/packages/Webkul/Core/src/Core.php index 6cef8f7dc..b3c8f62a7 100644 --- a/packages/Webkul/Core/src/Core.php +++ b/packages/Webkul/Core/src/Core.php @@ -4,8 +4,8 @@ use Carbon\Carbon; use Illuminate\Support\Facades\Config; -use Webkul\Core\Repositories\CountryRepository; use Webkul\Core\Repositories\CoreConfigRepository; +use Webkul\Core\Repositories\CountryRepository; use Webkul\Core\Repositories\CountryStateRepository; class Core @@ -19,8 +19,7 @@ public function __construct( protected CountryRepository $countryRepository, protected CoreConfigRepository $coreConfigRepository, protected CountryStateRepository $countryStateRepository - ) { - } + ) {} /** * Retrieve all timezones. @@ -61,8 +60,7 @@ public function countries() /** * Returns country name by code. * - * @param string $code - * + * @param string $code * @return string */ public function country_name($code) @@ -75,8 +73,7 @@ public function country_name($code) /** * Returns state name by code. * - * @param string $code - * + * @param string $code * @return string */ public function state_name($code) @@ -89,8 +86,7 @@ public function state_name($code) /** * Retrieve all country states. * - * @param string $countryCode - * + * @param string $countryCode * @return \Illuminate\Support\Collection */ public function states($countryCode) @@ -125,7 +121,7 @@ public function findStateByCountryCode($countryCode = null, $stateCode = null) $collection = $this->countryStateRepository->findByField([ 'country_code' => $countryCode, - 'code' => $stateCode + 'code' => $stateCode, ]); if (count($collection)) { @@ -138,8 +134,7 @@ public function findStateByCountryCode($countryCode = null, $stateCode = null) /** * Method to sort through the acl items and put them in order. * - * @param array $items - * + * @param array $items * @return array */ public function sortItems($items) @@ -160,12 +155,11 @@ public function sortItems($items) return $this->convertToAssociativeArray($items); } - + /** - * @param array $items - * @param string $key - * @param string|int|float $value - * + * @param array $items + * @param string $key + * @param string|int|float $value * @return array */ public function array_set(&$array, $key, $value) @@ -199,8 +193,7 @@ public function array_set(&$array, $key, $value) } /** - * @param array $items - * + * @param array $items * @return array */ public function convertToAssociativeArray($items) @@ -233,9 +226,6 @@ public function convertToAssociativeArray($items) } /** - * @param array $array1 - * @param array $array2 - * * @return array */ protected function arrayMerge(array &$array1, array &$array2) @@ -256,7 +246,7 @@ protected function arrayMerge(array &$array1, array &$array2) /** * Create singleton object through single facade. * - * @param string $className + * @param string $className * @return mixed */ public function getSingletonInstance($className) @@ -283,13 +273,12 @@ public function formatDate($date, $format = 'd M Y h:iA') /** * Return currency symbol from currency code. * - * @param float $price - * + * @param float $price * @return string */ public function currencySymbol($code) { - $formatter = new \NumberFormatter(app()->getLocale() . '@currency=' . $code, \NumberFormatter::CURRENCY); + $formatter = new \NumberFormatter(app()->getLocale().'@currency='.$code, \NumberFormatter::CURRENCY); return $formatter->getSymbol(\NumberFormatter::CURRENCY_SYMBOL); } @@ -298,8 +287,7 @@ public function currencySymbol($code) * Format price with base currency symbol. This method also give ability to encode * the base currency symbol and its optional. * - * @param float $price - * + * @param float $price * @return string */ public function formatBasePrice($price) @@ -314,8 +302,7 @@ public function formatBasePrice($price) } /** - * @param string $fieldName - * + * @param string $fieldName * @return array */ public function getConfigField($fieldName) @@ -323,7 +310,7 @@ public function getConfigField($fieldName) foreach (config('core_config') as $coreData) { if (isset($coreData['fields'])) { foreach ($coreData['fields'] as $field) { - $name = $coreData['key'] . '.' . $field['name']; + $name = $coreData['key'].'.'.$field['name']; if ($name == $fieldName) { return $field; @@ -336,10 +323,9 @@ public function getConfigField($fieldName) /** * Retrieve information for configuration * - * @param string $field - * @param int|string|null $channelId - * @param string|null $locale - * + * @param string $field + * @param int|string|null $channelId + * @param string|null $locale * @return mixed */ public function getConfigData($field) @@ -351,15 +337,15 @@ public function getConfigData($field) ]); if (! $coreConfigValue) { - $fields = explode(".", $field); + $fields = explode('.', $field); array_shift($fields); - $field = implode(".", $fields); + $field = implode('.', $fields); return Config::get($field); } return $coreConfigValue->value; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Database/Migrations/2021_03_12_060658_create_core_config_table.php b/packages/Webkul/Core/src/Database/Migrations/2021_03_12_060658_create_core_config_table.php index e0feed45c..8a96691cc 100755 --- a/packages/Webkul/Core/src/Database/Migrations/2021_03_12_060658_create_core_config_table.php +++ b/packages/Webkul/Core/src/Database/Migrations/2021_03_12_060658_create_core_config_table.php @@ -1,8 +1,8 @@ string('country_code'); $table->string('code'); $table->string('name'); - + $table->integer('country_id')->unsigned(); $table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade'); }); diff --git a/packages/Webkul/Core/src/Eloquent/Repository.php b/packages/Webkul/Core/src/Eloquent/Repository.php index ea2bef402..8e83d4829 100755 --- a/packages/Webkul/Core/src/Eloquent/Repository.php +++ b/packages/Webkul/Core/src/Eloquent/Repository.php @@ -2,14 +2,12 @@ namespace Webkul\Core\Eloquent; -use Illuminate\Database\Eloquent\Model; -use Illuminate\Container\Container as App; +use Prettus\Repository\Contracts\CacheableInterface; use Prettus\Repository\Eloquent\BaseRepository; use Prettus\Repository\Traits\CacheableRepository; -use Prettus\Repository\Contracts\CacheableInterface; - -abstract class Repository extends BaseRepository implements CacheableInterface { +abstract class Repository extends BaseRepository implements CacheableInterface +{ use CacheableRepository; /** @@ -76,10 +74,9 @@ public function findOrFail($id, $columns = ['*']) return $this->parserResult($model); } - /** + /** * Count results of repository * - * @param array $where * @param string $columns * @return int */ diff --git a/packages/Webkul/Core/src/Eloquent/TranslatableModel.php b/packages/Webkul/Core/src/Eloquent/TranslatableModel.php index 14b74c854..8d824c731 100755 --- a/packages/Webkul/Core/src/Eloquent/TranslatableModel.php +++ b/packages/Webkul/Core/src/Eloquent/TranslatableModel.php @@ -2,8 +2,8 @@ namespace Webkul\Core\Eloquent; -use Illuminate\Database\Eloquent\Model; use Astrotomic\Translatable\Translatable; +use Illuminate\Database\Eloquent\Model; class TranslatableModel extends Model { @@ -20,4 +20,4 @@ protected function locale() return config('translatable.locale') ?: app()->make('translator')->getLocale(); } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Facades/Core.php b/packages/Webkul/Core/src/Facades/Core.php index b1ae6af34..b14ad6558 100755 --- a/packages/Webkul/Core/src/Facades/Core.php +++ b/packages/Webkul/Core/src/Facades/Core.php @@ -15,4 +15,4 @@ protected static function getFacadeAccessor() { return 'core'; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Facades/Menu.php b/packages/Webkul/Core/src/Facades/Menu.php index fe1ce6c99..bd001bf89 100644 --- a/packages/Webkul/Core/src/Facades/Menu.php +++ b/packages/Webkul/Core/src/Facades/Menu.php @@ -15,4 +15,4 @@ protected static function getFacadeAccessor() { return 'menu'; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Helpers/Helper.php b/packages/Webkul/Core/src/Helpers/Helper.php index 865dea663..9cfeeb849 100644 --- a/packages/Webkul/Core/src/Helpers/Helper.php +++ b/packages/Webkul/Core/src/Helpers/Helper.php @@ -5,23 +5,23 @@ class Helper { /** - * @param string $packageName + * @param string $packageName * @return array */ public function jsonTranslations($packageName) { $currentLocale = app()->getLocale(); - $path = __DIR__ . "/../../../$packageName/src/Resources/lang/$currentLocale/app.php"; + $path = __DIR__."/../../../$packageName/src/Resources/lang/$currentLocale/app.php"; if (is_string($path) && is_readable($path)) { return include $path; } else { - $currentLocale = "en"; + $currentLocale = 'en'; - $path = __DIR__ . "/../../../$packageName/src/Resources/lang/$currentLocale/app.php"; + $path = __DIR__."/../../../$packageName/src/Resources/lang/$currentLocale/app.php"; return include $path; } } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Http/Controllers/CoreController.php b/packages/Webkul/Core/src/Http/Controllers/CoreController.php index d5ef5499d..6741e038c 100644 --- a/packages/Webkul/Core/src/Http/Controllers/CoreController.php +++ b/packages/Webkul/Core/src/Http/Controllers/CoreController.php @@ -2,10 +2,10 @@ namespace Webkul\Core\Http\Controllers; +use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; -use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; -use Illuminate\Foundation\Auth\Access\AuthorizesRequests; +use Illuminate\Routing\Controller as BaseController; class CoreController extends BaseController { diff --git a/packages/Webkul/Core/src/Http/helpers.php b/packages/Webkul/Core/src/Http/helpers.php index 40eb31c3d..c3d1f3a74 100755 --- a/packages/Webkul/Core/src/Http/helpers.php +++ b/packages/Webkul/Core/src/Http/helpers.php @@ -1,9 +1,9 @@ render(); } } -?> \ No newline at end of file diff --git a/packages/Webkul/Core/src/Menu.php b/packages/Webkul/Core/src/Menu.php index c4769be96..101e705c1 100644 --- a/packages/Webkul/Core/src/Menu.php +++ b/packages/Webkul/Core/src/Menu.php @@ -80,7 +80,7 @@ public function getItems(?string $area = null, string $key = ''): Collection $this->prepareMenuItems(); } - $items = collect($this->items)->sortBy(fn($item) => $item->getPosition()); + $items = collect($this->items)->sortBy(fn ($item) => $item->getPosition()); return $items; } @@ -93,9 +93,9 @@ public function getAdminMenuByKey(array|string $keys): mixed $items = $this->getItems('admin'); $keysArray = (array) $keys; - - $filteredItems = $items->filter(fn($item) => in_array($item->getKey(), $keysArray)); - + + $filteredItems = $items->filter(fn ($item) => in_array($item->getKey(), $keysArray)); + return is_array($keys) ? $filteredItems : $filteredItems->first(); } diff --git a/packages/Webkul/Core/src/Menu/MenuItem.php b/packages/Webkul/Core/src/Menu/MenuItem.php index d17698c4e..c18548898 100644 --- a/packages/Webkul/Core/src/Menu/MenuItem.php +++ b/packages/Webkul/Core/src/Menu/MenuItem.php @@ -53,7 +53,8 @@ public function setPosition(int $sort): self /** * Get position of menu item. */ - public function getPosition() { + public function getPosition() + { return $this->sort; } diff --git a/packages/Webkul/Core/src/Models/CoreConfig.php b/packages/Webkul/Core/src/Models/CoreConfig.php index 1ce6a6b99..dca3c85af 100755 --- a/packages/Webkul/Core/src/Models/CoreConfig.php +++ b/packages/Webkul/Core/src/Models/CoreConfig.php @@ -12,7 +12,6 @@ class CoreConfig extends Model implements CoreConfigContract * * @var array */ - protected $table = 'core_config'; protected $fillable = [ @@ -22,4 +21,4 @@ class CoreConfig extends Model implements CoreConfigContract ]; protected $hidden = ['token']; -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Models/CoreConfigProxy.php b/packages/Webkul/Core/src/Models/CoreConfigProxy.php index 23d266443..2cb2ffe4e 100644 --- a/packages/Webkul/Core/src/Models/CoreConfigProxy.php +++ b/packages/Webkul/Core/src/Models/CoreConfigProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class CoreConfigProxy extends ModelProxy -{ - -} \ No newline at end of file +class CoreConfigProxy extends ModelProxy {} diff --git a/packages/Webkul/Core/src/Models/Country.php b/packages/Webkul/Core/src/Models/Country.php index 3933a543d..d9aed1b1d 100755 --- a/packages/Webkul/Core/src/Models/Country.php +++ b/packages/Webkul/Core/src/Models/Country.php @@ -8,4 +8,4 @@ class Country extends Model implements CountryContract { public $timestamps = false; -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Models/CountryProxy.php b/packages/Webkul/Core/src/Models/CountryProxy.php index 2c5646d87..a577386d6 100644 --- a/packages/Webkul/Core/src/Models/CountryProxy.php +++ b/packages/Webkul/Core/src/Models/CountryProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class CountryProxy extends ModelProxy -{ - -} \ No newline at end of file +class CountryProxy extends ModelProxy {} diff --git a/packages/Webkul/Core/src/Models/CountryState.php b/packages/Webkul/Core/src/Models/CountryState.php index f02691f63..0aff6376e 100755 --- a/packages/Webkul/Core/src/Models/CountryState.php +++ b/packages/Webkul/Core/src/Models/CountryState.php @@ -8,4 +8,4 @@ class CountryState extends Model implements CountryStateContract { public $timestamps = false; -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Models/CountryStateProxy.php b/packages/Webkul/Core/src/Models/CountryStateProxy.php index 7c23b746a..329775d96 100644 --- a/packages/Webkul/Core/src/Models/CountryStateProxy.php +++ b/packages/Webkul/Core/src/Models/CountryStateProxy.php @@ -4,7 +4,4 @@ use Konekt\Concord\Proxies\ModelProxy; -class CountryStateProxy extends ModelProxy -{ - -} \ No newline at end of file +class CountryStateProxy extends ModelProxy {} diff --git a/packages/Webkul/Core/src/Providers/BaseModuleServiceProvider.php b/packages/Webkul/Core/src/Providers/BaseModuleServiceProvider.php index b24a79b2d..bc1ba449a 100644 --- a/packages/Webkul/Core/src/Providers/BaseModuleServiceProvider.php +++ b/packages/Webkul/Core/src/Providers/BaseModuleServiceProvider.php @@ -7,7 +7,7 @@ class BaseModuleServiceProvider extends ConcordBaseModuleServiceProvider { /** - * @inheritdoc + * {@inheritdoc} */ public function boot() { @@ -29,4 +29,4 @@ public function boot() $this->registerRoutes($routes); } } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Providers/CoreServiceProvider.php b/packages/Webkul/Core/src/Providers/CoreServiceProvider.php index e86247290..a084e70e2 100644 --- a/packages/Webkul/Core/src/Providers/CoreServiceProvider.php +++ b/packages/Webkul/Core/src/Providers/CoreServiceProvider.php @@ -4,13 +4,13 @@ use Illuminate\Foundation\AliasLoader; use Illuminate\Support\ServiceProvider; -use Webkul\Core\Console\Commands\Version; use Webkul\Core\Acl; +use Webkul\Core\Console\Commands\Version; use Webkul\Core\Core; -use Webkul\Core\Menu; use Webkul\Core\Facades\Acl as AclFacade; use Webkul\Core\Facades\Core as CoreFacade; use Webkul\Core\Facades\Menu as MenuFacade; +use Webkul\Core\Menu; class CoreServiceProvider extends ServiceProvider { @@ -18,22 +18,23 @@ class CoreServiceProvider extends ServiceProvider * Bootstrap services. * * @return void + * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ public function boot() { - include __DIR__ . '/../Http/helpers.php'; + include __DIR__.'/../Http/helpers.php'; - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); - $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'core'); + $this->loadTranslationsFrom(__DIR__.'/../Resources/lang', 'core'); - $this->loadViewsFrom(__DIR__ . '/../Resources/views', 'core'); + $this->loadViewsFrom(__DIR__.'/../Resources/views', 'core'); $this->publishes([ - dirname(__DIR__) . '/Config/concord.php' => config_path('concord.php'), - dirname(__DIR__) . '/Config/cors.php' => config_path('cors.php'), - dirname(__DIR__) . '/Config/sanctum.php' => config_path('sanctum.php'), + dirname(__DIR__).'/Config/concord.php' => config_path('concord.php'), + dirname(__DIR__).'/Config/cors.php' => config_path('cors.php'), + dirname(__DIR__).'/Config/sanctum.php' => config_path('sanctum.php'), ]); } @@ -73,8 +74,6 @@ protected function registerFacades() /** * Register the console commands of this package - * - * @return void */ protected function registerCommands(): void { diff --git a/packages/Webkul/Core/src/Providers/ModuleServiceProvider.php b/packages/Webkul/Core/src/Providers/ModuleServiceProvider.php index e69a2eabe..fb94d3f90 100644 --- a/packages/Webkul/Core/src/Providers/ModuleServiceProvider.php +++ b/packages/Webkul/Core/src/Providers/ModuleServiceProvider.php @@ -9,4 +9,4 @@ class ModuleServiceProvider extends BaseModuleServiceProvider \Webkul\Core\Models\Country::class, \Webkul\Core\Models\CountryState::class, ]; -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Repositories/CoreConfigRepository.php b/packages/Webkul/Core/src/Repositories/CoreConfigRepository.php index 6a964e164..9c18ec958 100755 --- a/packages/Webkul/Core/src/Repositories/CoreConfigRepository.php +++ b/packages/Webkul/Core/src/Repositories/CoreConfigRepository.php @@ -2,9 +2,9 @@ namespace Webkul\Core\Repositories; -use Webkul\Core\Eloquent\Repository; use Illuminate\Support\Facades\Storage; use Prettus\Repository\Traits\CacheableRepository; +use Webkul\Core\Eloquent\Repository; class CoreConfigRepository extends Repository { @@ -15,13 +15,12 @@ class CoreConfigRepository extends Repository * * @return mixed */ - function model() + public function model() { return 'Webkul\Core\Contracts\CoreConfig'; } /** - * @param array $data * @return \Webkul\Core\Contracts\CoreConfig */ public function create(array $data) @@ -29,18 +28,18 @@ public function create(array $data) unset($data['_token']); foreach ($data as $method => $fieldData) { - $recurssiveData = $this->recuressiveArray($fieldData , $method); + $recurssiveData = $this->recuressiveArray($fieldData, $method); foreach ($recurssiveData as $fieldName => $value) { $field = core()->getConfigField($fieldName); - if (getType($value) == 'array' && ! isset($value['delete'])) { - $value = implode(",", $value); + if (gettype($value) == 'array' && ! isset($value['delete'])) { + $value = implode(',', $value); } $coreConfigValue = $this->model - ->where('code', $fieldName) - ->get(); + ->where('code', $fieldName) + ->get(); if (request()->hasFile($fieldName)) { $value = request()->file($fieldName)->store('configuration'); @@ -55,7 +54,7 @@ public function create(array $data) foreach ($coreConfigValue as $coreConfig) { Storage::delete($coreConfig['value']); - if(isset($value['delete'])) { + if (isset($value['delete'])) { $this->model->destroy($coreConfig['id']); } else { $coreConfig->update([ @@ -70,17 +69,17 @@ public function create(array $data) } /** - * @param array $formData * @param string $method * @return array */ - public function recuressiveArray(array $formData, $method) { + public function recuressiveArray(array $formData, $method) + { static $data = []; static $recuressiveArrayData = []; foreach ($formData as $form => $formValue) { - $value = $method . '.' . $form; + $value = $method.'.'.$form; if (is_array($formValue)) { $dim = $this->countDim($formValue); @@ -100,7 +99,7 @@ public function recuressiveArray(array $formData, $method) { $recuressiveArrayData[$key] = $value; } else { foreach ($value as $key1 => $val) { - $recuressiveArrayData[$key . '.' . $key1] = $val; + $recuressiveArrayData[$key.'.'.$key1] = $val; } } } @@ -113,7 +112,7 @@ public function recuressiveArray(array $formData, $method) { * * @param array $array * @return int - */ + */ public function countDim($array) { if (is_array(reset($array))) { diff --git a/packages/Webkul/Core/src/Repositories/CountryRepository.php b/packages/Webkul/Core/src/Repositories/CountryRepository.php index 8fe6d6899..17b52c37f 100755 --- a/packages/Webkul/Core/src/Repositories/CountryRepository.php +++ b/packages/Webkul/Core/src/Repositories/CountryRepository.php @@ -2,8 +2,8 @@ namespace Webkul\Core\Repositories; -use Webkul\Core\Eloquent\Repository; use Prettus\Repository\Traits\CacheableRepository; +use Webkul\Core\Eloquent\Repository; class CountryRepository extends Repository { @@ -14,8 +14,8 @@ class CountryRepository extends Repository * * @return mixed */ - function model() + public function model() { return 'Webkul\Core\Contracts\Country'; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Repositories/CountryStateRepository.php b/packages/Webkul/Core/src/Repositories/CountryStateRepository.php index e4b0ab4a8..73a628ad8 100755 --- a/packages/Webkul/Core/src/Repositories/CountryStateRepository.php +++ b/packages/Webkul/Core/src/Repositories/CountryStateRepository.php @@ -2,8 +2,8 @@ namespace Webkul\Core\Repositories; -use Webkul\Core\Eloquent\Repository; use Prettus\Repository\Traits\CacheableRepository; +use Webkul\Core\Eloquent\Repository; class CountryStateRepository extends Repository { @@ -14,8 +14,8 @@ class CountryStateRepository extends Repository * * @return mixed */ - function model() + public function model() { return 'Webkul\Core\Contracts\CountryState'; } -} \ No newline at end of file +} diff --git a/packages/Webkul/Core/src/Tree.php b/packages/Webkul/Core/src/Tree.php index 069c2ef28..83e854663 100755 --- a/packages/Webkul/Core/src/Tree.php +++ b/packages/Webkul/Core/src/Tree.php @@ -2,64 +2,64 @@ namespace Webkul\Core; -class Tree { - +class Tree +{ /** * Contains tree item * * @var array */ - public $items = []; + public $items = []; /** * Contains acl roles * * @var array */ - public $roles = []; + public $roles = []; + + /** + * Shortcut method for create a Config with a callback. + * This will allow you to do things like fire an event on creation. + * + * @param callable $callback Callback to use after the Config creation + * @return object + */ + public static function create($callback = null) + { + $tree = new Tree(); - /** - * Shortcut method for create a Config with a callback. - * This will allow you to do things like fire an event on creation. - * - * @param callable $callback Callback to use after the Config creation - * @return object - */ - public static function create($callback = null) - { - $tree = new Tree(); + if ($callback) { + $callback($tree); + } - if ($callback) { - $callback($tree); - } + return $tree; + } - return $tree; - } + /** + * Add a Config item to the item stack + * + * @param string $item + * @return void + */ + public function add($item, $type = '') + { + $item['children'] = []; - /** - * Add a Config item to the item stack - * - * @param string $item - * @return void - */ - public function add($item, $type = '') - { - $item['children'] = []; - - $item['name'] = trans($item['name']); + $item['name'] = trans($item['name']); - $children = str_replace('.', '.children.', $item['key']); + $children = str_replace('.', '.children.', $item['key']); - if ($type == 'acl') { - if (is_array($item['route'])) { - foreach ($item['route'] as $route) { - $this->roles[$route] = $item['key']; - } - } else { - $this->roles[$item['route']] = $item['key']; - } - } + if ($type == 'acl') { + if (is_array($item['route'])) { + foreach ($item['route'] as $route) { + $this->roles[$route] = $item['key']; + } + } else { + $this->roles[$item['route']] = $item['key']; + } + } - core()->array_set($this->items, $children, $item); - } + core()->array_set($this->items, $children, $item); + } } diff --git a/packages/Webkul/Core/src/ViewRenderEventManager.php b/packages/Webkul/Core/src/ViewRenderEventManager.php index 90408ea43..4c646b6f5 100755 --- a/packages/Webkul/Core/src/ViewRenderEventManager.php +++ b/packages/Webkul/Core/src/ViewRenderEventManager.php @@ -49,7 +49,6 @@ public function getParams() /** * get param * - * @param $name * @return mixed */ public function getParam($name) @@ -75,11 +74,11 @@ public function addTemplate($template) */ public function render() { - $string = ""; + $string = ''; foreach ($this->templates as $template) { if (view()->exists($template)) { - $string .= view($template , $this->params)->render(); + $string .= view($template, $this->params)->render(); } elseif (is_string($template)) { $string .= $template; } diff --git a/packages/Webkul/Email/src/Contracts/Attachment.php b/packages/Webkul/Email/src/Contracts/Attachment.php index d8b812da3..7aa97f79c 100644 --- a/packages/Webkul/Email/src/Contracts/Attachment.php +++ b/packages/Webkul/Email/src/Contracts/Attachment.php @@ -2,6 +2,4 @@ namespace Webkul\Email\Contracts; -interface Attachment -{ -} \ No newline at end of file +interface Attachment {} diff --git a/packages/Webkul/Email/src/Contracts/Email.php b/packages/Webkul/Email/src/Contracts/Email.php index 22c415744..80df642bd 100644 --- a/packages/Webkul/Email/src/Contracts/Email.php +++ b/packages/Webkul/Email/src/Contracts/Email.php @@ -2,6 +2,4 @@ namespace Webkul\Email\Contracts; -interface Email -{ -} \ No newline at end of file +interface Email {} diff --git a/packages/Webkul/Email/src/Helpers/Attachment.php b/packages/Webkul/Email/src/Helpers/Attachment.php index f84b96018..b55a09007 100644 --- a/packages/Webkul/Email/src/Helpers/Attachment.php +++ b/packages/Webkul/Email/src/Helpers/Attachment.php @@ -5,13 +5,13 @@ class Attachment { /** - * @var $content File Content - */ + * @var File Content + */ private $content; /** - * @var $extension Filename extension - */ + * @var Filename extension + */ private $extension; /** @@ -69,10 +69,10 @@ public function getContentID() } /** - * Retrieve the Attachment Headers - * - * @return string - */ + * Retrieve the Attachment Headers + * + * @return string + */ public function getHeaders() { return $this->headers; @@ -82,7 +82,7 @@ public function getHeaders() * Read the contents a few bytes at a time until completed * Once read to completion, it always returns false * - * @param integer $bytes + * @param int $bytes * @return string */ public function read($bytes = 2082) diff --git a/packages/Webkul/Email/src/Helpers/Charset.php b/packages/Webkul/Email/src/Helpers/Charset.php index 9e03ba504..9ff0478f9 100644 --- a/packages/Webkul/Email/src/Helpers/Charset.php +++ b/packages/Webkul/Email/src/Helpers/Charset.php @@ -10,306 +10,306 @@ class Charset implements CharsetManager * Charset Aliases */ private $charsetAlias = [ - 'ascii' => 'us-ascii', - 'us-ascii' => 'us-ascii', - 'ansi_x3.4-1968' => 'us-ascii', - '646' => 'us-ascii', - 'iso-8859-1' => 'ISO-8859-1', - 'iso-8859-2' => 'ISO-8859-2', - 'iso-8859-3' => 'ISO-8859-3', - 'iso-8859-4' => 'ISO-8859-4', - 'iso-8859-5' => 'ISO-8859-5', - 'iso-8859-6' => 'ISO-8859-6', - 'iso-8859-6-i' => 'ISO-8859-6-I', - 'iso-8859-6-e' => 'ISO-8859-6-E', - 'iso-8859-7' => 'ISO-8859-7', - 'iso-8859-8' => 'ISO-8859-8', - 'iso-8859-8-i' => 'ISO-8859-8-I', - 'iso-8859-8-e' => 'ISO-8859-8-E', - 'iso-8859-9' => 'ISO-8859-9', - 'iso-8859-10' => 'ISO-8859-10', - 'iso-8859-11' => 'ISO-8859-11', - 'iso-8859-13' => 'ISO-8859-13', - 'iso-8859-14' => 'ISO-8859-14', - 'iso-8859-15' => 'ISO-8859-15', - 'iso-8859-16' => 'ISO-8859-16', - 'iso-ir-111' => 'ISO-IR-111', - 'iso-2022-cn' => 'ISO-2022-CN', - 'iso-2022-cn-ext' => 'ISO-2022-CN', - 'iso-2022-kr' => 'ISO-2022-KR', - 'iso-2022-jp' => 'ISO-2022-JP', - 'utf-16be' => 'UTF-16BE', - 'utf-16le' => 'UTF-16LE', - 'utf-16' => 'UTF-16', - 'windows-1250' => 'windows-1250', - 'windows-1251' => 'windows-1251', - 'windows-1252' => 'windows-1252', - 'windows-1253' => 'windows-1253', - 'windows-1254' => 'windows-1254', - 'windows-1255' => 'windows-1255', - 'windows-1256' => 'windows-1256', - 'windows-1257' => 'windows-1257', - 'windows-1258' => 'windows-1258', - 'ibm866' => 'IBM866', - 'ibm850' => 'IBM850', - 'ibm852' => 'IBM852', - 'ibm855' => 'IBM855', - 'ibm857' => 'IBM857', - 'ibm862' => 'IBM862', - 'ibm864' => 'IBM864', - 'utf-8' => 'UTF-8', - 'utf-7' => 'UTF-7', - 'shift_jis' => 'Shift_JIS', - 'big5' => 'Big5', - 'euc-jp' => 'EUC-JP', - 'euc-kr' => 'EUC-KR', - 'gb2312' => 'GB2312', - 'gb18030' => 'gb18030', - 'viscii' => 'VISCII', - 'koi8-r' => 'KOI8-R', - 'koi8_r' => 'KOI8-R', - 'cskoi8r' => 'KOI8-R', - 'koi' => 'KOI8-R', - 'koi8' => 'KOI8-R', - 'koi8-u' => 'KOI8-U', - 'tis-620' => 'TIS-620', - 't.61-8bit' => 'T.61-8bit', - 'hz-gb-2312' => 'HZ-GB-2312', - 'big5-hkscs' => 'Big5-HKSCS', - 'gbk' => 'gbk', - 'cns11643' => 'x-euc-tw', - 'x-imap4-modified-utf7' => 'x-imap4-modified-utf7', - 'x-euc-tw' => 'x-euc-tw', - 'x-mac-ce' => 'x-mac-ce', - 'x-mac-turkish' => 'x-mac-turkish', - 'x-mac-greek' => 'x-mac-greek', - 'x-mac-icelandic' => 'x-mac-icelandic', - 'x-mac-croatian' => 'x-mac-croatian', - 'x-mac-romanian' => 'x-mac-romanian', - 'x-mac-cyrillic' => 'x-mac-cyrillic', - 'x-mac-ukrainian' => 'x-mac-cyrillic', - 'x-mac-hebrew' => 'x-mac-hebrew', - 'x-mac-arabic' => 'x-mac-arabic', - 'x-mac-farsi' => 'x-mac-farsi', - 'x-mac-devanagari' => 'x-mac-devanagari', - 'x-mac-gujarati' => 'x-mac-gujarati', - 'x-mac-gurmukhi' => 'x-mac-gurmukhi', - 'armscii-8' => 'armscii-8', - 'x-viet-tcvn5712' => 'x-viet-tcvn5712', - 'x-viet-vps' => 'x-viet-vps', - 'iso-10646-ucs-2' => 'UTF-16BE', - 'x-iso-10646-ucs-2-be' => 'UTF-16BE', - 'x-iso-10646-ucs-2-le' => 'UTF-16LE', - 'x-user-defined' => 'x-user-defined', - 'x-johab' => 'x-johab', - 'latin1' => 'ISO-8859-1', - 'iso_8859-1' => 'ISO-8859-1', - 'iso8859-1' => 'ISO-8859-1', - 'iso8859-2' => 'ISO-8859-2', - 'iso8859-3' => 'ISO-8859-3', - 'iso8859-4' => 'ISO-8859-4', - 'iso8859-5' => 'ISO-8859-5', - 'iso8859-6' => 'ISO-8859-6', - 'iso8859-7' => 'ISO-8859-7', - 'iso8859-8' => 'ISO-8859-8', - 'iso8859-9' => 'ISO-8859-9', - 'iso8859-10' => 'ISO-8859-10', - 'iso8859-11' => 'ISO-8859-11', - 'iso8859-13' => 'ISO-8859-13', - 'iso8859-14' => 'ISO-8859-14', - 'iso8859-15' => 'ISO-8859-15', - 'iso_8859-1:1987' => 'ISO-8859-1', - 'iso-ir-100' => 'ISO-8859-1', - 'l1' => 'ISO-8859-1', - 'ibm819' => 'ISO-8859-1', - 'cp819' => 'ISO-8859-1', - 'csisolatin1' => 'ISO-8859-1', - 'latin2' => 'ISO-8859-2', - 'iso_8859-2' => 'ISO-8859-2', - 'iso_8859-2:1987' => 'ISO-8859-2', - 'iso-ir-101' => 'ISO-8859-2', - 'l2' => 'ISO-8859-2', - 'csisolatin2' => 'ISO-8859-2', - 'latin3' => 'ISO-8859-3', - 'iso_8859-3' => 'ISO-8859-3', - 'iso_8859-3:1988' => 'ISO-8859-3', - 'iso-ir-109' => 'ISO-8859-3', - 'l3' => 'ISO-8859-3', - 'csisolatin3' => 'ISO-8859-3', - 'latin4' => 'ISO-8859-4', - 'iso_8859-4' => 'ISO-8859-4', - 'iso_8859-4:1988' => 'ISO-8859-4', - 'iso-ir-110' => 'ISO-8859-4', - 'l4' => 'ISO-8859-4', - 'csisolatin4' => 'ISO-8859-4', - 'cyrillic' => 'ISO-8859-5', - 'iso_8859-5' => 'ISO-8859-5', - 'iso_8859-5:1988' => 'ISO-8859-5', - 'iso-ir-144' => 'ISO-8859-5', - 'csisolatincyrillic' => 'ISO-8859-5', - 'arabic' => 'ISO-8859-6', - 'iso_8859-6' => 'ISO-8859-6', - 'iso_8859-6:1987' => 'ISO-8859-6', - 'iso-ir-127' => 'ISO-8859-6', - 'ecma-114' => 'ISO-8859-6', - 'asmo-708' => 'ISO-8859-6', - 'csisolatinarabic' => 'ISO-8859-6', - 'csiso88596i' => 'ISO-8859-6-I', - 'csiso88596e' => 'ISO-8859-6-E', - 'greek' => 'ISO-8859-7', - 'greek8' => 'ISO-8859-7', - 'sun_eu_greek' => 'ISO-8859-7', - 'iso_8859-7' => 'ISO-8859-7', - 'iso_8859-7:1987' => 'ISO-8859-7', - 'iso-ir-126' => 'ISO-8859-7', - 'elot_928' => 'ISO-8859-7', - 'ecma-118' => 'ISO-8859-7', - 'csisolatingreek' => 'ISO-8859-7', - 'hebrew' => 'ISO-8859-8', - 'iso_8859-8' => 'ISO-8859-8', - 'visual' => 'ISO-8859-8', - 'iso_8859-8:1988' => 'ISO-8859-8', - 'iso-ir-138' => 'ISO-8859-8', - 'csisolatinhebrew' => 'ISO-8859-8', - 'csiso88598i' => 'ISO-8859-8-I', - 'iso-8859-8i' => 'ISO-8859-8-I', - 'logical' => 'ISO-8859-8-I', - 'csiso88598e' => 'ISO-8859-8-E', - 'latin5' => 'ISO-8859-9', - 'iso_8859-9' => 'ISO-8859-9', - 'iso_8859-9:1989' => 'ISO-8859-9', - 'iso-ir-148' => 'ISO-8859-9', - 'l5' => 'ISO-8859-9', - 'csisolatin5' => 'ISO-8859-9', - 'unicode-1-1-utf-8' => 'UTF-8', - 'utf8' => 'UTF-8', - 'x-sjis' => 'Shift_JIS', - 'shift-jis' => 'Shift_JIS', - 'ms_kanji' => 'Shift_JIS', - 'csshiftjis' => 'Shift_JIS', - 'windows-31j' => 'Shift_JIS', - 'cp932' => 'Shift_JIS', - 'sjis' => 'Shift_JIS', - 'cseucpkdfmtjapanese' => 'EUC-JP', - 'x-euc-jp' => 'EUC-JP', - 'csiso2022jp' => 'ISO-2022-JP', - 'iso-2022-jp-2' => 'ISO-2022-JP', - 'csiso2022jp2' => 'ISO-2022-JP', - 'csbig5' => 'Big5', - 'cn-big5' => 'Big5', - 'x-x-big5' => 'Big5', - 'zh_tw-big5' => 'Big5', - 'cseuckr' => 'EUC-KR', - 'ks_c_5601-1987' => 'EUC-KR', - 'iso-ir-149' => 'EUC-KR', - 'ks_c_5601-1989' => 'EUC-KR', - 'ksc_5601' => 'EUC-KR', - 'ksc5601' => 'EUC-KR', - 'korean' => 'EUC-KR', - 'csksc56011987' => 'EUC-KR', - '5601' => 'EUC-KR', - 'windows-949' => 'EUC-KR', - 'gb_2312-80' => 'GB2312', - 'iso-ir-58' => 'GB2312', - 'chinese' => 'GB2312', - 'csiso58gb231280' => 'GB2312', - 'csgb2312' => 'GB2312', - 'zh_cn.euc' => 'GB2312', - 'gb_2312' => 'GB2312', - 'x-cp1250' => 'windows-1250', - 'x-cp1251' => 'windows-1251', - 'x-cp1252' => 'windows-1252', - 'x-cp1253' => 'windows-1253', - 'x-cp1254' => 'windows-1254', - 'x-cp1255' => 'windows-1255', - 'x-cp1256' => 'windows-1256', - 'x-cp1257' => 'windows-1257', - 'x-cp1258' => 'windows-1258', - 'windows-874' => 'windows-874', - 'ibm874' => 'windows-874', - 'dos-874' => 'windows-874', - 'macintosh' => 'macintosh', - 'x-mac-roman' => 'macintosh', - 'mac' => 'macintosh', - 'csmacintosh' => 'macintosh', - 'cp866' => 'IBM866', - 'cp-866' => 'IBM866', - '866' => 'IBM866', - 'csibm866' => 'IBM866', - 'cp850' => 'IBM850', - '850' => 'IBM850', - 'csibm850' => 'IBM850', - 'cp852' => 'IBM852', - '852' => 'IBM852', - 'csibm852' => 'IBM852', - 'cp855' => 'IBM855', - '855' => 'IBM855', - 'csibm855' => 'IBM855', - 'cp857' => 'IBM857', - '857' => 'IBM857', - 'csibm857' => 'IBM857', - 'cp862' => 'IBM862', - '862' => 'IBM862', - 'csibm862' => 'IBM862', - 'cp864' => 'IBM864', - '864' => 'IBM864', - 'csibm864' => 'IBM864', - 'ibm-864' => 'IBM864', - 't.61' => 'T.61-8bit', - 'iso-ir-103' => 'T.61-8bit', - 'csiso103t618bit' => 'T.61-8bit', - 'x-unicode-2-0-utf-7' => 'UTF-7', - 'unicode-2-0-utf-7' => 'UTF-7', - 'unicode-1-1-utf-7' => 'UTF-7', - 'csunicode11utf7' => 'UTF-7', - 'csunicode' => 'UTF-16BE', - 'csunicode11' => 'UTF-16BE', - 'iso-10646-ucs-basic' => 'UTF-16BE', - 'csunicodeascii' => 'UTF-16BE', + 'ascii' => 'us-ascii', + 'us-ascii' => 'us-ascii', + 'ansi_x3.4-1968' => 'us-ascii', + '646' => 'us-ascii', + 'iso-8859-1' => 'ISO-8859-1', + 'iso-8859-2' => 'ISO-8859-2', + 'iso-8859-3' => 'ISO-8859-3', + 'iso-8859-4' => 'ISO-8859-4', + 'iso-8859-5' => 'ISO-8859-5', + 'iso-8859-6' => 'ISO-8859-6', + 'iso-8859-6-i' => 'ISO-8859-6-I', + 'iso-8859-6-e' => 'ISO-8859-6-E', + 'iso-8859-7' => 'ISO-8859-7', + 'iso-8859-8' => 'ISO-8859-8', + 'iso-8859-8-i' => 'ISO-8859-8-I', + 'iso-8859-8-e' => 'ISO-8859-8-E', + 'iso-8859-9' => 'ISO-8859-9', + 'iso-8859-10' => 'ISO-8859-10', + 'iso-8859-11' => 'ISO-8859-11', + 'iso-8859-13' => 'ISO-8859-13', + 'iso-8859-14' => 'ISO-8859-14', + 'iso-8859-15' => 'ISO-8859-15', + 'iso-8859-16' => 'ISO-8859-16', + 'iso-ir-111' => 'ISO-IR-111', + 'iso-2022-cn' => 'ISO-2022-CN', + 'iso-2022-cn-ext' => 'ISO-2022-CN', + 'iso-2022-kr' => 'ISO-2022-KR', + 'iso-2022-jp' => 'ISO-2022-JP', + 'utf-16be' => 'UTF-16BE', + 'utf-16le' => 'UTF-16LE', + 'utf-16' => 'UTF-16', + 'windows-1250' => 'windows-1250', + 'windows-1251' => 'windows-1251', + 'windows-1252' => 'windows-1252', + 'windows-1253' => 'windows-1253', + 'windows-1254' => 'windows-1254', + 'windows-1255' => 'windows-1255', + 'windows-1256' => 'windows-1256', + 'windows-1257' => 'windows-1257', + 'windows-1258' => 'windows-1258', + 'ibm866' => 'IBM866', + 'ibm850' => 'IBM850', + 'ibm852' => 'IBM852', + 'ibm855' => 'IBM855', + 'ibm857' => 'IBM857', + 'ibm862' => 'IBM862', + 'ibm864' => 'IBM864', + 'utf-8' => 'UTF-8', + 'utf-7' => 'UTF-7', + 'shift_jis' => 'Shift_JIS', + 'big5' => 'Big5', + 'euc-jp' => 'EUC-JP', + 'euc-kr' => 'EUC-KR', + 'gb2312' => 'GB2312', + 'gb18030' => 'gb18030', + 'viscii' => 'VISCII', + 'koi8-r' => 'KOI8-R', + 'koi8_r' => 'KOI8-R', + 'cskoi8r' => 'KOI8-R', + 'koi' => 'KOI8-R', + 'koi8' => 'KOI8-R', + 'koi8-u' => 'KOI8-U', + 'tis-620' => 'TIS-620', + 't.61-8bit' => 'T.61-8bit', + 'hz-gb-2312' => 'HZ-GB-2312', + 'big5-hkscs' => 'Big5-HKSCS', + 'gbk' => 'gbk', + 'cns11643' => 'x-euc-tw', + 'x-imap4-modified-utf7' => 'x-imap4-modified-utf7', + 'x-euc-tw' => 'x-euc-tw', + 'x-mac-ce' => 'x-mac-ce', + 'x-mac-turkish' => 'x-mac-turkish', + 'x-mac-greek' => 'x-mac-greek', + 'x-mac-icelandic' => 'x-mac-icelandic', + 'x-mac-croatian' => 'x-mac-croatian', + 'x-mac-romanian' => 'x-mac-romanian', + 'x-mac-cyrillic' => 'x-mac-cyrillic', + 'x-mac-ukrainian' => 'x-mac-cyrillic', + 'x-mac-hebrew' => 'x-mac-hebrew', + 'x-mac-arabic' => 'x-mac-arabic', + 'x-mac-farsi' => 'x-mac-farsi', + 'x-mac-devanagari' => 'x-mac-devanagari', + 'x-mac-gujarati' => 'x-mac-gujarati', + 'x-mac-gurmukhi' => 'x-mac-gurmukhi', + 'armscii-8' => 'armscii-8', + 'x-viet-tcvn5712' => 'x-viet-tcvn5712', + 'x-viet-vps' => 'x-viet-vps', + 'iso-10646-ucs-2' => 'UTF-16BE', + 'x-iso-10646-ucs-2-be' => 'UTF-16BE', + 'x-iso-10646-ucs-2-le' => 'UTF-16LE', + 'x-user-defined' => 'x-user-defined', + 'x-johab' => 'x-johab', + 'latin1' => 'ISO-8859-1', + 'iso_8859-1' => 'ISO-8859-1', + 'iso8859-1' => 'ISO-8859-1', + 'iso8859-2' => 'ISO-8859-2', + 'iso8859-3' => 'ISO-8859-3', + 'iso8859-4' => 'ISO-8859-4', + 'iso8859-5' => 'ISO-8859-5', + 'iso8859-6' => 'ISO-8859-6', + 'iso8859-7' => 'ISO-8859-7', + 'iso8859-8' => 'ISO-8859-8', + 'iso8859-9' => 'ISO-8859-9', + 'iso8859-10' => 'ISO-8859-10', + 'iso8859-11' => 'ISO-8859-11', + 'iso8859-13' => 'ISO-8859-13', + 'iso8859-14' => 'ISO-8859-14', + 'iso8859-15' => 'ISO-8859-15', + 'iso_8859-1:1987' => 'ISO-8859-1', + 'iso-ir-100' => 'ISO-8859-1', + 'l1' => 'ISO-8859-1', + 'ibm819' => 'ISO-8859-1', + 'cp819' => 'ISO-8859-1', + 'csisolatin1' => 'ISO-8859-1', + 'latin2' => 'ISO-8859-2', + 'iso_8859-2' => 'ISO-8859-2', + 'iso_8859-2:1987' => 'ISO-8859-2', + 'iso-ir-101' => 'ISO-8859-2', + 'l2' => 'ISO-8859-2', + 'csisolatin2' => 'ISO-8859-2', + 'latin3' => 'ISO-8859-3', + 'iso_8859-3' => 'ISO-8859-3', + 'iso_8859-3:1988' => 'ISO-8859-3', + 'iso-ir-109' => 'ISO-8859-3', + 'l3' => 'ISO-8859-3', + 'csisolatin3' => 'ISO-8859-3', + 'latin4' => 'ISO-8859-4', + 'iso_8859-4' => 'ISO-8859-4', + 'iso_8859-4:1988' => 'ISO-8859-4', + 'iso-ir-110' => 'ISO-8859-4', + 'l4' => 'ISO-8859-4', + 'csisolatin4' => 'ISO-8859-4', + 'cyrillic' => 'ISO-8859-5', + 'iso_8859-5' => 'ISO-8859-5', + 'iso_8859-5:1988' => 'ISO-8859-5', + 'iso-ir-144' => 'ISO-8859-5', + 'csisolatincyrillic' => 'ISO-8859-5', + 'arabic' => 'ISO-8859-6', + 'iso_8859-6' => 'ISO-8859-6', + 'iso_8859-6:1987' => 'ISO-8859-6', + 'iso-ir-127' => 'ISO-8859-6', + 'ecma-114' => 'ISO-8859-6', + 'asmo-708' => 'ISO-8859-6', + 'csisolatinarabic' => 'ISO-8859-6', + 'csiso88596i' => 'ISO-8859-6-I', + 'csiso88596e' => 'ISO-8859-6-E', + 'greek' => 'ISO-8859-7', + 'greek8' => 'ISO-8859-7', + 'sun_eu_greek' => 'ISO-8859-7', + 'iso_8859-7' => 'ISO-8859-7', + 'iso_8859-7:1987' => 'ISO-8859-7', + 'iso-ir-126' => 'ISO-8859-7', + 'elot_928' => 'ISO-8859-7', + 'ecma-118' => 'ISO-8859-7', + 'csisolatingreek' => 'ISO-8859-7', + 'hebrew' => 'ISO-8859-8', + 'iso_8859-8' => 'ISO-8859-8', + 'visual' => 'ISO-8859-8', + 'iso_8859-8:1988' => 'ISO-8859-8', + 'iso-ir-138' => 'ISO-8859-8', + 'csisolatinhebrew' => 'ISO-8859-8', + 'csiso88598i' => 'ISO-8859-8-I', + 'iso-8859-8i' => 'ISO-8859-8-I', + 'logical' => 'ISO-8859-8-I', + 'csiso88598e' => 'ISO-8859-8-E', + 'latin5' => 'ISO-8859-9', + 'iso_8859-9' => 'ISO-8859-9', + 'iso_8859-9:1989' => 'ISO-8859-9', + 'iso-ir-148' => 'ISO-8859-9', + 'l5' => 'ISO-8859-9', + 'csisolatin5' => 'ISO-8859-9', + 'unicode-1-1-utf-8' => 'UTF-8', + 'utf8' => 'UTF-8', + 'x-sjis' => 'Shift_JIS', + 'shift-jis' => 'Shift_JIS', + 'ms_kanji' => 'Shift_JIS', + 'csshiftjis' => 'Shift_JIS', + 'windows-31j' => 'Shift_JIS', + 'cp932' => 'Shift_JIS', + 'sjis' => 'Shift_JIS', + 'cseucpkdfmtjapanese' => 'EUC-JP', + 'x-euc-jp' => 'EUC-JP', + 'csiso2022jp' => 'ISO-2022-JP', + 'iso-2022-jp-2' => 'ISO-2022-JP', + 'csiso2022jp2' => 'ISO-2022-JP', + 'csbig5' => 'Big5', + 'cn-big5' => 'Big5', + 'x-x-big5' => 'Big5', + 'zh_tw-big5' => 'Big5', + 'cseuckr' => 'EUC-KR', + 'ks_c_5601-1987' => 'EUC-KR', + 'iso-ir-149' => 'EUC-KR', + 'ks_c_5601-1989' => 'EUC-KR', + 'ksc_5601' => 'EUC-KR', + 'ksc5601' => 'EUC-KR', + 'korean' => 'EUC-KR', + 'csksc56011987' => 'EUC-KR', + '5601' => 'EUC-KR', + 'windows-949' => 'EUC-KR', + 'gb_2312-80' => 'GB2312', + 'iso-ir-58' => 'GB2312', + 'chinese' => 'GB2312', + 'csiso58gb231280' => 'GB2312', + 'csgb2312' => 'GB2312', + 'zh_cn.euc' => 'GB2312', + 'gb_2312' => 'GB2312', + 'x-cp1250' => 'windows-1250', + 'x-cp1251' => 'windows-1251', + 'x-cp1252' => 'windows-1252', + 'x-cp1253' => 'windows-1253', + 'x-cp1254' => 'windows-1254', + 'x-cp1255' => 'windows-1255', + 'x-cp1256' => 'windows-1256', + 'x-cp1257' => 'windows-1257', + 'x-cp1258' => 'windows-1258', + 'windows-874' => 'windows-874', + 'ibm874' => 'windows-874', + 'dos-874' => 'windows-874', + 'macintosh' => 'macintosh', + 'x-mac-roman' => 'macintosh', + 'mac' => 'macintosh', + 'csmacintosh' => 'macintosh', + 'cp866' => 'IBM866', + 'cp-866' => 'IBM866', + '866' => 'IBM866', + 'csibm866' => 'IBM866', + 'cp850' => 'IBM850', + '850' => 'IBM850', + 'csibm850' => 'IBM850', + 'cp852' => 'IBM852', + '852' => 'IBM852', + 'csibm852' => 'IBM852', + 'cp855' => 'IBM855', + '855' => 'IBM855', + 'csibm855' => 'IBM855', + 'cp857' => 'IBM857', + '857' => 'IBM857', + 'csibm857' => 'IBM857', + 'cp862' => 'IBM862', + '862' => 'IBM862', + 'csibm862' => 'IBM862', + 'cp864' => 'IBM864', + '864' => 'IBM864', + 'csibm864' => 'IBM864', + 'ibm-864' => 'IBM864', + 't.61' => 'T.61-8bit', + 'iso-ir-103' => 'T.61-8bit', + 'csiso103t618bit' => 'T.61-8bit', + 'x-unicode-2-0-utf-7' => 'UTF-7', + 'unicode-2-0-utf-7' => 'UTF-7', + 'unicode-1-1-utf-7' => 'UTF-7', + 'csunicode11utf7' => 'UTF-7', + 'csunicode' => 'UTF-16BE', + 'csunicode11' => 'UTF-16BE', + 'iso-10646-ucs-basic' => 'UTF-16BE', + 'csunicodeascii' => 'UTF-16BE', 'iso-10646-unicode-latin1' => 'UTF-16BE', - 'csunicodelatin1' => 'UTF-16BE', - 'iso-10646' => 'UTF-16BE', - 'iso-10646-j-1' => 'UTF-16BE', - 'latin6' => 'ISO-8859-10', - 'iso-ir-157' => 'ISO-8859-10', - 'l6' => 'ISO-8859-10', - 'csisolatin6' => 'ISO-8859-10', - 'iso_8859-15' => 'ISO-8859-15', - 'csisolatin9' => 'ISO-8859-15', - 'l9' => 'ISO-8859-15', - 'ecma-cyrillic' => 'ISO-IR-111', - 'csiso111ecmacyrillic' => 'ISO-IR-111', - 'csiso2022kr' => 'ISO-2022-KR', - 'csviscii' => 'VISCII', - 'zh_tw-euc' => 'x-euc-tw', - 'iso88591' => 'ISO-8859-1', - 'iso88592' => 'ISO-8859-2', - 'iso88593' => 'ISO-8859-3', - 'iso88594' => 'ISO-8859-4', - 'iso88595' => 'ISO-8859-5', - 'iso88596' => 'ISO-8859-6', - 'iso88597' => 'ISO-8859-7', - 'iso88598' => 'ISO-8859-8', - 'iso88599' => 'ISO-8859-9', - 'iso885910' => 'ISO-8859-10', - 'iso885911' => 'ISO-8859-11', - 'iso885912' => 'ISO-8859-12', - 'iso885913' => 'ISO-8859-13', - 'iso885914' => 'ISO-8859-14', - 'iso885915' => 'ISO-8859-15', - 'tis620' => 'TIS-620', - 'cp1250' => 'windows-1250', - 'cp1251' => 'windows-1251', - 'cp1252' => 'windows-1252', - 'cp1253' => 'windows-1253', - 'cp1254' => 'windows-1254', - 'cp1255' => 'windows-1255', - 'cp1256' => 'windows-1256', - 'cp1257' => 'windows-1257', - 'cp1258' => 'windows-1258', - 'x-gbk' => 'gbk', - 'windows-936' => 'gbk', - 'ansi-1251' => 'windows-1251' + 'csunicodelatin1' => 'UTF-16BE', + 'iso-10646' => 'UTF-16BE', + 'iso-10646-j-1' => 'UTF-16BE', + 'latin6' => 'ISO-8859-10', + 'iso-ir-157' => 'ISO-8859-10', + 'l6' => 'ISO-8859-10', + 'csisolatin6' => 'ISO-8859-10', + 'iso_8859-15' => 'ISO-8859-15', + 'csisolatin9' => 'ISO-8859-15', + 'l9' => 'ISO-8859-15', + 'ecma-cyrillic' => 'ISO-IR-111', + 'csiso111ecmacyrillic' => 'ISO-IR-111', + 'csiso2022kr' => 'ISO-2022-KR', + 'csviscii' => 'VISCII', + 'zh_tw-euc' => 'x-euc-tw', + 'iso88591' => 'ISO-8859-1', + 'iso88592' => 'ISO-8859-2', + 'iso88593' => 'ISO-8859-3', + 'iso88594' => 'ISO-8859-4', + 'iso88595' => 'ISO-8859-5', + 'iso88596' => 'ISO-8859-6', + 'iso88597' => 'ISO-8859-7', + 'iso88598' => 'ISO-8859-8', + 'iso88599' => 'ISO-8859-9', + 'iso885910' => 'ISO-8859-10', + 'iso885911' => 'ISO-8859-11', + 'iso885912' => 'ISO-8859-12', + 'iso885913' => 'ISO-8859-13', + 'iso885914' => 'ISO-8859-14', + 'iso885915' => 'ISO-8859-15', + 'tis620' => 'TIS-620', + 'cp1250' => 'windows-1250', + 'cp1251' => 'windows-1251', + 'cp1252' => 'windows-1252', + 'cp1253' => 'windows-1253', + 'cp1254' => 'windows-1254', + 'cp1255' => 'windows-1255', + 'cp1256' => 'windows-1256', + 'cp1257' => 'windows-1257', + 'cp1258' => 'windows-1258', + 'x-gbk' => 'gbk', + 'windows-936' => 'gbk', + 'ansi-1251' => 'windows-1251', // '' => 'UTF-8', ]; diff --git a/packages/Webkul/Email/src/Helpers/Contracts/CharsetManager.php b/packages/Webkul/Email/src/Helpers/Contracts/CharsetManager.php index c803b3004..3b4dea22f 100644 --- a/packages/Webkul/Email/src/Helpers/Contracts/CharsetManager.php +++ b/packages/Webkul/Email/src/Helpers/Contracts/CharsetManager.php @@ -1,20 +1,22 @@ -'; + $fulltag = ''; } else { - $fulltag = '<' . $tagname; - if (is_array($attary) && sizeof($attary)) { + $fulltag = '<'.$tagname; + if (is_array($attary) && count($attary)) { $atts = []; - while (list($attname, $attvalue) = each($attary)) { + while ([$attname, $attvalue] = each($attary)) { array_push($atts, "$attname=$attvalue"); } - $fulltag .= ' ' . join(' ', $atts); + $fulltag .= ' '.implode(' ', $atts); } if ($tagtype == 3) { @@ -34,7 +34,7 @@ public function tln_tagprint($tagname, $attary, $tagtype) * A small helper function to use with array_walk. Modifies a by-ref * value and makes it lowercase. * - * @param string $val a value passed by-ref. + * @param string $val a value passed by-ref. * @return void since it modifies a by-ref value. */ public function tln_casenormalize(&$val) @@ -46,21 +46,21 @@ public function tln_casenormalize(&$val) * This function skips any whitespace from the current position within * a string and to the next non-whitespace value. * - * @param string $body the string - * @param integer $offset the offset within the string where we should start - * looking for the next non-whitespace character. - * @return integer the location within the $body where the next non-whitespace char is located. + * @param string $body the string + * @param int $offset the offset within the string where we should start + * looking for the next non-whitespace character. + * @return int the location within the $body where the next non-whitespace char is located. */ public function tln_skipspace($body, $offset) { preg_match('/^(\s*)/s', substr($body, $offset), $matches); try { - if (sizeof($matches[1])) { + if (count($matches[1])) { $count = strlen($matches[1]); $offset += $count; } - } catch(\Exception $e) { + } catch (\Exception $e) { // Do nothing ... } @@ -72,10 +72,10 @@ public function tln_skipspace($body, $offset) * really just a glorified "strpos", except it catches the failures * nicely. * - * @param string $body The string to look for needle in. - * @param integer $offset Start looking from this position. - * @param string $needle The character/string to look for. - * @return integer location of the next occurrence of the needle, or strlen($body) if needle wasn't found. + * @param string $body The string to look for needle in. + * @param int $offset Start looking from this position. + * @param string $needle The character/string to look for. + * @return int location of the next occurrence of the needle, or strlen($body) if needle wasn't found. */ public function tln_findnxstr($body, $offset, $needle) { @@ -92,20 +92,20 @@ public function tln_findnxstr($body, $offset, $needle) * This function takes a PCRE-style regexp and tries to match it * within the string. * - * @param string $body The string to look for needle in. - * @param integer $offset Start looking from here. - * @param string $reg A PCRE-style regex to match. - * @return array|boolean Returns a false if no matches found, or an array - * with the following members: - * - integer with the location of the match within $body - * - string with whatever content between offset and the match - * - string with whatever it is we matched + * @param string $body The string to look for needle in. + * @param int $offset Start looking from here. + * @param string $reg A PCRE-style regex to match. + * @return array|bool Returns a false if no matches found, or an array + * with the following members: + * - integer with the location of the match within $body + * - string with whatever content between offset and the match + * - string with whatever it is we matched */ public function tln_findnxreg($body, $offset, $reg) { $matches = $retarr = []; - $preg_rule = '%^(.*?)(' . $reg . ')%s'; + $preg_rule = '%^(.*?)('.$reg.')%s'; preg_match($preg_rule, substr($body, $offset), $matches); @@ -125,16 +125,16 @@ public function tln_findnxreg($body, $offset, $reg) /** * This function looks for the next tag. * - * @param string $body String where to look for the next tag. - * @param integer $offset Start looking from here. - * @return array|boolean false if no more tags exist in the body, or - * an array with the following members: - * - string with the name of the tag - * - array with attributes and their values - * - integer with tag type (1, 2, or 3) - * - integer where the tag starts (starting "<") - * - integer where the tag ends (ending ">") - * first three members will be false, if the tag is invalid. + * @param string $body String where to look for the next tag. + * @param int $offset Start looking from here. + * @return array|bool false if no more tags exist in the body, or + * an array with the following members: + * - string with the name of the tag + * - array with attributes and their values + * - integer with tag type (1, 2, or 3) + * - integer where the tag starts (starting "<") + * - integer where the tag ends (ending ">") + * first three members will be false, if the tag is invalid. */ public function tln_getnxtag($body, $offset) { @@ -213,7 +213,7 @@ public function tln_getnxtag($body, $offset) return [false, false, false, $lt, strlen($body)]; } - list($pos, $tagname, $match) = $regary; + [$pos, $tagname, $match] = $regary; $tagname = strtolower($tagname); @@ -243,7 +243,7 @@ public function tln_getnxtag($body, $offset) return $retary; } - //intentional fall-through + //intentional fall-through case '>': return [$tagname, false, $tagtype, $lt, $pos]; break; @@ -252,7 +252,7 @@ public function tln_getnxtag($body, $offset) /** * Check if it's whitespace */ - if (!preg_match('/\s/', $match)) { + if (! preg_match('/\s/', $match)) { /** * This is an invalid tag! Look for the next closing ">". */ @@ -328,10 +328,10 @@ public function tln_getnxtag($body, $offset) return [false, false, false, $lt, strlen($body)]; } - list($pos, $attname, $match) = $regary; + [$pos, $attname, $match] = $regary; $attname = strtolower($attname); - + /** * We arrived at the end of attribute name. Several things possible * here: @@ -353,13 +353,14 @@ public function tln_getnxtag($body, $offset) } else { $gt = $this->tln_findnxstr($body, $pos, '>'); $retary = [false, false, false, $lt, $gt]; + return $retary; } - //intentional fall-through + //intentional fall-through case '>': $attary[$attname] = '"yes"'; - + return [$tagname, $attary, $tagtype, $lt, $pos]; break; @@ -389,7 +390,7 @@ public function tln_getnxtag($body, $offset) * everything else is the content of tag type 3 */ $quot = substr($body, $pos, 1); - + if ($quot == '\'') { $regary = $this->tln_findnxreg($body, $pos + 1, '\''); @@ -397,11 +398,11 @@ public function tln_getnxtag($body, $offset) return [false, false, false, $lt, strlen($body)]; } - list($pos, $attval, $match) = $regary; + [$pos, $attval, $match] = $regary; $pos++; - $attary[$attname] = '\'' . $attval . '\''; + $attary[$attname] = '\''.$attval.'\''; } elseif ($quot == '"') { $regary = $this->tln_findnxreg($body, $pos + 1, '\"'); @@ -409,11 +410,11 @@ public function tln_getnxtag($body, $offset) return [false, false, false, $lt, strlen($body)]; } - list($pos, $attval, $match) = $regary; + [$pos, $attval, $match] = $regary; $pos++; - $attary[$attname] = '"' . $attval . '"'; + $attary[$attname] = '"'.$attval.'"'; } else { /** * These are hateful. Look for \s, or >. @@ -424,14 +425,14 @@ public function tln_getnxtag($body, $offset) return [false, false, false, $lt, strlen($body)]; } - list($pos, $attval, $match) = $regary; + [$pos, $attval, $match] = $regary; /** * If it's ">" it will be caught at the top. */ $attval = preg_replace('/\"/s', '"', $attval); - $attary[$attname] = '"' . $attval . '"'; + $attary[$attname] = '"'.$attval.'"'; } } elseif (preg_match('|[\w/>]|', $char)) { /** @@ -460,19 +461,19 @@ public function tln_getnxtag($body, $offset) /** * Translates entities into literal values so they can be checked. * - * @param string $attvalue the by-ref value to check. - * @param string $regex the regular expression to check against. - * @param boolean $hex whether the entites are hexadecimal. - * @return boolean True or False depending on whether there were matches. + * @param string $attvalue the by-ref value to check. + * @param string $regex the regular expression to check against. + * @param bool $hex whether the entites are hexadecimal. + * @return bool True or False depending on whether there were matches. */ public function tln_deent(&$attvalue, $regex, $hex = false) { preg_match_all($regex, $attvalue, $matches); - if (is_array($matches) && sizeof($matches[0]) > 0) { + if (is_array($matches) && count($matches[0]) > 0) { $repl = []; - for ($i = 0; $i < sizeof($matches[0]); $i++) { + for ($i = 0; $i < count($matches[0]); $i++) { $numval = $matches[1][$i]; if ($hex) { @@ -481,7 +482,7 @@ public function tln_deent(&$attvalue, $regex, $hex = false) $repl[$matches[0][$i]] = chr($numval); } - + $attvalue = strtr($attvalue, $repl); return true; @@ -495,8 +496,8 @@ public function tln_deent(&$attvalue, $regex, $hex = false) * and returns them translated into 8-bit strings so we can run * checks on them. * - * @param string $attvalue A string to run entity check against. - * @return Void, modifies a reference value. + * @param string $attvalue A string to run entity check against. + * @return Void, modifies a reference value. */ public function tln_defang(&$attvalue) { @@ -524,14 +525,14 @@ public function tln_defang(&$attvalue) * makers of the browser with 95% market value decided that it'd * be funny to make "java[tab]script" be just as good as "javascript". * - * @param string $attvalue The attribute value before extraneous spaces removed. - * @return Void, modifies a reference value. + * @param string $attvalue The attribute value before extraneous spaces removed. + * @return Void, modifies a reference value. */ public function tln_unspace(&$attvalue) { if (strcspn($attvalue, "\t\r\n\0 ") != strlen($attvalue)) { $attvalue = str_replace( - ["\t", "\r", "\n", "\0", " "], + ["\t", "\r", "\n", "\0", ' '], ['', '', '', '', ''], $attvalue ); @@ -541,14 +542,14 @@ public function tln_unspace(&$attvalue) /** * This function runs various checks against the attributes. * - * @param string $tagname String with the name of the tag. - * @param array $attary Array with all tag attributes. - * @param array $rm_attnames See description for tln_sanitize - * @param array $bad_attvals See description for tln_sanitize - * @param array $add_attr_to_tag See description for tln_sanitize - * @param string $trans_image_path - * @param boolean $block_external_images - * @return Array with modified attributes. + * @param string $tagname String with the name of the tag. + * @param array $attary Array with all tag attributes. + * @param array $rm_attnames See description for tln_sanitize + * @param array $bad_attvals See description for tln_sanitize + * @param array $add_attr_to_tag See description for tln_sanitize + * @param string $trans_image_path + * @param bool $block_external_images + * @return array with modified attributes. */ public function tln_fixatts( $tagname, @@ -559,7 +560,7 @@ public function tln_fixatts( $trans_image_path, $block_external_images ) { - while (list($attname, $attvalue) = each($attary)) { + while ([$attname, $attvalue] = each($attary)) { /** * See if this attribute should be removed. */ @@ -568,6 +569,7 @@ public function tln_fixatts( foreach ($matchattrs as $matchattr) { if (preg_match($matchattr, $attname)) { unset($attary[$attname]); + continue; } } @@ -603,7 +605,7 @@ public function tln_fixatts( * First is matches. * Second one is replacements */ - list($valmatch, $valrepl) = $valary; + [$valmatch, $valrepl] = $valary; $newvalue = preg_replace($valmatch, $valrepl, $attvalue); @@ -649,11 +651,11 @@ public function tln_fixurl($attname, &$attvalue, $trans_image_path, $block_exter $attvalue = trim($attvalue); - if ($attvalue && ($attvalue[0] =='"'|| $attvalue[0] == "'")) { + if ($attvalue && ($attvalue[0] == '"' || $attvalue[0] == "'")) { // remove the double quotes $sQuote = $attvalue[0]; - $attvalue = trim(substr($attvalue,1,-1)); + $attvalue = trim(substr($attvalue, 1, -1)); } /** @@ -663,53 +665,53 @@ public function tln_fixurl($attname, &$attvalue, $trans_image_path, $block_exter * IE from being kicked off when src for img tags are not set */ if ($attvalue == '') { - $attvalue = $sQuote . $trans_image_path . $sQuote; + $attvalue = $sQuote.$trans_image_path.$sQuote; } else { // first, disallow 8 bit characters and control characters - if (preg_match('/[\0-\37\200-\377]+/',$attvalue)) { + if (preg_match('/[\0-\37\200-\377]+/', $attvalue)) { switch ($attname) { case 'href': - $attvalue = $sQuote . 'http://invalid-stuff-detected.example.com' . $sQuote; + $attvalue = $sQuote.'http://invalid-stuff-detected.example.com'.$sQuote; break; default: - $attvalue = $sQuote . $trans_image_path . $sQuote; + $attvalue = $sQuote.$trans_image_path.$sQuote; break; } } else { $aUrl = parse_url($attvalue); if (isset($aUrl['scheme'])) { - switch(strtolower($aUrl['scheme'])) { + switch (strtolower($aUrl['scheme'])) { case 'mailto': case 'http': case 'https': case 'ftp': if ($attname != 'href') { if ($block_external_images == true) { - $attvalue = $sQuote . $trans_image_path . $sQuote; + $attvalue = $sQuote.$trans_image_path.$sQuote; } else { - if (!isset($aUrl['path'])) { - $attvalue = $sQuote . $trans_image_path . $sQuote; + if (! isset($aUrl['path'])) { + $attvalue = $sQuote.$trans_image_path.$sQuote; } } } else { - $attvalue = $sQuote . $attvalue . $sQuote; + $attvalue = $sQuote.$attvalue.$sQuote; } break; case 'outbind': - $attvalue = $sQuote . $attvalue . $sQuote; + $attvalue = $sQuote.$attvalue.$sQuote; break; case 'cid': - $attvalue = $sQuote . $attvalue . $sQuote; + $attvalue = $sQuote.$attvalue.$sQuote; break; default: - $attvalue = $sQuote . $trans_image_path . $sQuote; + $attvalue = $sQuote.$trans_image_path.$sQuote; break; } } else { if (! isset($aUrl['path']) || $aUrl['path'] != $trans_image_path) { - $$attvalue = $sQuote . $trans_image_path . $sQuote; + $$attvalue = $sQuote.$trans_image_path.$sQuote; } } } @@ -731,7 +733,7 @@ public function tln_fixstyle($body, $pos, $trans_image_path, $block_external_ima $bEndTag = false; - for ($i=$pos,$iCount=strlen($body);$i<$iCount;++$i) { + for ($i = $pos,$iCount = strlen($body); $i < $iCount; $i++) { $char = $body[$i]; switch ($char) { @@ -739,17 +741,17 @@ public function tln_fixstyle($body, $pos, $trans_image_path, $block_external_ima $sToken = $char; break; case '/': - if ($sToken == '<') { + if ($sToken == '<') { $sToken .= $char; $bEndTag = true; - } else { + } else { $content .= $char; - } - break; + } + break; case '>': - if ($bEndTag) { + if ($bEndTag) { $sToken .= $char; - if (preg_match('/\<\/\s*style\s*\>/i',$sToken,$aMatch)) { + if (preg_match('/\<\/\s*style\s*\>/i', $sToken, $aMatch)) { $newpos = $i + 1; $bSucces = true; break 2; @@ -757,15 +759,15 @@ public function tln_fixstyle($body, $pos, $trans_image_path, $block_external_ima $content .= $sToken; } $bEndTag = false; - } else { + } else { $content .= $char; - } - break; + } + break; case '!': if ($sToken == '<') { // possible comment - if (isset($body[$i+2]) && substr($body,$i,3) == '!--') { - $i = strpos($body,'-->',$i+3); + if (isset($body[$i + 2]) && substr($body, $i, 3) == '!--') { + $i = strpos($body, '-->', $i + 3); if ($i === false) { // no end comment $i = strlen($body); } @@ -785,53 +787,52 @@ public function tln_fixstyle($body, $pos, $trans_image_path, $block_external_ima } } - if ($bSucces == FALSE){ - return [FALSE, strlen($body)]; + if ($bSucces == false) { + return [false, strlen($body)]; } - - /** * First look for general BODY style declaration, which would be * like so: * body {background: blah-blah} * and change it to .bodyclass so we can just assign it to a
*/ - $content = preg_replace("|body(\s*\{.*?\})|si", ".bodyclass\\1", $content); + $content = preg_replace("|body(\s*\{.*?\})|si", '.bodyclass\\1', $content); $trans_image_path = $trans_image_path; /** - * Fix url('blah') declarations. - */ + * Fix url('blah') declarations. + */ // $content = preg_replace("|url\s*\(\s*([\'\"])\s*\S+script\s*:.*?([\'\"])\s*\)|si", // "url(\\1$trans_image_path\\2)", $content); // first check for 8bit sequences and disallowed control characters - if (preg_match('/[\16-\37\200-\377]+/',$content)) { + if (preg_match('/[\16-\37\200-\377]+/', $content)) { $content = ''; + return [$content, $newpos]; } // remove @import line - $content = preg_replace("/^\s*(@import.*)$/mi","\n\n",$content); + $content = preg_replace("/^\s*(@import.*)$/mi", "\n\n", $content); - $content = preg_replace("/(\\\\)?u(\\\\)?r(\\\\)?l(\\\\)?/i", 'url', $content); + $content = preg_replace('/(\\\\)?u(\\\\)?r(\\\\)?l(\\\\)?/i', 'url', $content); - preg_match_all("/url\s*\((.+)\)/si",$content,$aMatch); + preg_match_all("/url\s*\((.+)\)/si", $content, $aMatch); if (count($aMatch)) { $aValue = $aReplace = []; - foreach($aMatch[1] as $sMatch) { + foreach ($aMatch[1] as $sMatch) { // url value $urlvalue = $sMatch; - $this->tln_fixurl('style',$urlvalue, $trans_image_path, $block_external_images); + $this->tln_fixurl('style', $urlvalue, $trans_image_path, $block_external_images); $aValue[] = $sMatch; $aReplace[] = $urlvalue; } - $content = str_replace($aValue,$aReplace,$content); + $content = str_replace($aValue, $aReplace, $content); } /** @@ -841,16 +842,16 @@ public function tln_fixstyle($body, $pos, $trans_image_path, $block_external_ima $this->tln_defang($contentTemp); $this->tln_unspace($contentTemp); - $match = Array('/\/\*.*\*\//', - '/expression/i', - '/behaviou*r/i', - '/binding/i', - '/include-source/i', - '/javascript/i', - '/script/i', - '/position/i'); + $match = ['/\/\*.*\*\//', + '/expression/i', + '/behaviou*r/i', + '/binding/i', + '/include-source/i', + '/javascript/i', + '/script/i', + '/position/i']; - $replace = Array('','idiocy', 'idiocy', 'idiocy', 'idiocy', 'idiocy', 'idiocy', ''); + $replace = ['', 'idiocy', 'idiocy', 'idiocy', 'idiocy', 'idiocy', 'idiocy', '']; $contentNew = preg_replace($match, $replace, $contentTemp); @@ -865,7 +866,7 @@ public function tln_body2div($attary, $trans_image_path) { $me = 'tln_body2div'; - $divattary = array('class' => "'bodyclass'"); + $divattary = ['class' => "'bodyclass'"]; $text = '#000000'; @@ -873,13 +874,13 @@ public function tln_body2div($attary, $trans_image_path) $styledef = ''; - if (is_array($attary) && sizeof($attary) > 0){ - foreach ($attary as $attname=>$attvalue){ + if (is_array($attary) && count($attary) > 0) { + foreach ($attary as $attname => $attvalue) { $quotchar = substr($attvalue, 0, 1); - $attvalue = str_replace($quotchar, "", $attvalue); + $attvalue = str_replace($quotchar, '', $attvalue); - switch ($attname){ + switch ($attname) { case 'background': $styledef .= "background-image: url('$trans_image_path'); "; break; @@ -896,12 +897,12 @@ public function tln_body2div($attary, $trans_image_path) // Outlook defines a white bgcolor and no text color. This can lead to // white text on a white bg with certain themes. - if ($has_bgc_stl && !$has_txt_stl) { + if ($has_bgc_stl && ! $has_txt_stl) { $styledef .= "color: $text; "; } - if (strlen($styledef) > 0){ - $divattary["style"] = "\"$styledef\""; + if (strlen($styledef) > 0) { + $divattary['style'] = "\"$styledef\""; } } @@ -909,19 +910,17 @@ public function tln_body2div($attary, $trans_image_path) } /** - * - * @param string $body The HTML you wish to filter - * @param array $tag_list see description above - * @param array $rm_tags_with_content see description above - * @param array $self_closing_tags see description above - * @param boolean $force_tag_closing see description above - * @param array $rm_attnames see description above - * @param array $bad_attvals see description above - * @param array $add_attr_to_tag see description above - * @param string $trans_image_path - * @param boolean $block_external_images - - * @return string Sanitized html safe to show on your pages. + * @param string $body The HTML you wish to filter + * @param array $tag_list see description above + * @param array $rm_tags_with_content see description above + * @param array $self_closing_tags see description above + * @param bool $force_tag_closing see description above + * @param array $rm_attnames see description above + * @param array $bad_attvals see description above + * @param array $add_attr_to_tag see description above + * @param string $trans_image_path + * @param bool $block_external_images + * @return string Sanitized html safe to show on your pages. */ public function tln_sanitize( $body, @@ -953,7 +952,7 @@ public function tln_sanitize( */ $curpos = 0; $open_tags = []; - $trusted = ""; + $trusted = ''; $skip_content = false; /** @@ -963,39 +962,41 @@ public function tln_sanitize( $body = preg_replace('/&(\{.*?\};)/si', '&\\1', $body); while (($curtag = $this->tln_getnxtag($body, $curpos)) != false) { - list($tagname, $attary, $tagtype, $lt, $gt) = $curtag; - $free_content = substr($body, $curpos, $lt-$curpos); + [$tagname, $attary, $tagtype, $lt, $gt] = $curtag; + $free_content = substr($body, $curpos, $lt - $curpos); /** * Take care of