repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Models/Country.php
packages/Webkul/Core/src/Models/Country.php
<?php namespace Webkul\Core\Models; use Illuminate\Database\Eloquent\Model; use Webkul\Core\Contracts\Country as CountryContract; class Country extends Model implements CountryContract { public $timestamps = false; }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Models/CountryProxy.php
packages/Webkul/Core/src/Models/CountryProxy.php
<?php namespace Webkul\Core\Models; use Konekt\Concord\Proxies\ModelProxy; class CountryProxy extends ModelProxy {}
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Models/CoreConfig.php
packages/Webkul/Core/src/Models/CoreConfig.php
<?php namespace Webkul\Core\Models; use Illuminate\Database\Eloquent\Model; use Webkul\Core\Contracts\CoreConfig as CoreConfigContract; class CoreConfig extends Model implements CoreConfigContract { /** * The attributes that are mass assignable. * * @var array */ protected $table = 'core_config'; protected $fillable = [ 'code', 'value', 'locale', ]; protected $hidden = ['token']; }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Repositories/CountryRepository.php
packages/Webkul/Core/src/Repositories/CountryRepository.php
<?php namespace Webkul\Core\Repositories; use Prettus\Repository\Traits\CacheableRepository; use Webkul\Core\Eloquent\Repository; class CountryRepository extends Repository { use CacheableRepository; /** * Specify Model class name * * @return mixed */ public function model() { return 'Webkul\Core\Contracts\Country'; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Repositories/CountryStateRepository.php
packages/Webkul/Core/src/Repositories/CountryStateRepository.php
<?php namespace Webkul\Core\Repositories; use Prettus\Repository\Traits\CacheableRepository; use Webkul\Core\Eloquent\Repository; class CountryStateRepository extends Repository { use CacheableRepository; /** * Specify Model class name * * @return mixed */ public function model() { return 'Webkul\Core\Contracts\CountryState'; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Repositories/CoreConfigRepository.php
packages/Webkul/Core/src/Repositories/CoreConfigRepository.php
<?php namespace Webkul\Core\Repositories; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use Webkul\Core\Contracts\CoreConfig; use Webkul\Core\Eloquent\Repository; class CoreConfigRepository extends Repository { /** * Specify model class name. */ public function model(): string { return CoreConfig::class; } /** * Get the configuration title. */ protected function getTranslatedTitle(mixed $configuration): string { if ( method_exists($configuration, 'getTitle') && ! is_null($configuration->getTitle()) ) { return trans($configuration->getTitle()); } if ( method_exists($configuration, 'getName') && ! is_null($configuration->getName()) ) { return trans($configuration->getName()); } return ''; } /** * Get children and fields. */ protected function getChildrenAndFields(mixed $configuration, string $searchTerm, array $path, array &$results): void { if ( method_exists($configuration, 'getChildren') || method_exists($configuration, 'getFields') ) { $children = $configuration->haveChildren() ? $configuration->getChildren() : $configuration->getFields(); $tempPath = array_merge($path, [[ 'key' => $configuration->getKey() ?? null, 'title' => $this->getTranslatedTitle($configuration), ]]); $results = array_merge($results, $this->search($children, $searchTerm, $tempPath)); } } /** * Search configuration. * * @param array $items */ public function search(Collection $items, string $searchTerm, array $path = []): array { $results = []; foreach ($items as $configuration) { $title = $this->getTranslatedTitle($configuration); if ( stripos($title, $searchTerm) !== false && count($path) ) { $queryParam = $path[1]['key'] ?? $configuration->getKey(); $results[] = [ 'title' => implode(' > ', [...Arr::pluck($path, 'title'), $title]), 'url' => route('admin.configuration.index', Str::replace('.', '/', $queryParam)), ]; } $this->getChildrenAndFields($configuration, $searchTerm, $path, $results); } return $results; } /** * Create core configuration. */ public function create(array $data): void { unset($data['_token']); $preparedData = []; foreach ($data as $method => $fieldData) { $recursiveData = $this->recursiveArray($fieldData, $method); foreach ($recursiveData as $fieldName => $value) { if ( is_array($value) && isset($value['delete']) ) { $coreConfigValues = $this->model->where('code', $fieldName)->get(); if ($coreConfigValues->isNotEmpty()) { foreach ($coreConfigValues as $coreConfig) { if (! empty($coreConfig['value'])) { Storage::delete($coreConfig['value']); } parent::delete($coreConfig['id']); } } continue; } } foreach ($recursiveData as $fieldName => $value) { if (is_array($value)) { foreach ($value as $key => $val) { $fieldNameWithKey = $fieldName.'.'.$key; $coreConfigValues = $this->model->where('code', $fieldNameWithKey)->get(); if (request()->hasFile($fieldNameWithKey)) { $val = request()->file($fieldNameWithKey)->store('configuration'); } if ($coreConfigValues->isNotEmpty()) { foreach ($coreConfigValues as $coreConfig) { if (request()->hasFile($fieldNameWithKey)) { Storage::delete($coreConfig['value']); } parent::update(['code' => $fieldNameWithKey, 'value' => $val], $coreConfig->id); } } else { parent::create(['code' => $fieldNameWithKey, 'value' => $val]); } } } else { if (request()->hasFile($fieldName)) { $value = request()->file($fieldName)->store('configuration'); } $preparedData[] = [ 'code' => $fieldName, 'value' => $value, ]; } } } if (! empty($preparedData)) { foreach ($preparedData as $dataItem) { $coreConfigValues = $this->model->where('code', $dataItem['code'])->get(); if ($coreConfigValues->isNotEmpty()) { foreach ($coreConfigValues as $coreConfig) { parent::update($dataItem, $coreConfig->id); } } else { parent::create($dataItem); } } } Event::dispatch('core.configuration.save.after'); } /** * Recursive array. */ public function recursiveArray(array $formData, string $method): array { static $data = []; static $recursiveArrayData = []; foreach ($formData as $form => $formValue) { $value = $method.'.'.$form; if (is_array($formValue)) { $dim = $this->countDim($formValue); if ($dim > 1) { $this->recursiveArray($formValue, $value); } elseif ($dim == 1) { $data[$value] = $formValue; } } } foreach ($data as $key => $value) { $field = core()->getConfigField($key); if ($field) { $recursiveArrayData[$key] = $value; } else { foreach ($value as $key1 => $val) { $recursiveArrayData[$key.'.'.$key1] = $val; } } } return $recursiveArrayData; } /** * Return dimension of the array. */ public function countDim(array|string $array): int { if (is_array(reset($array))) { $return = $this->countDim(reset($array)) + 1; } else { $return = 1; } return $return; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Providers/CoreServiceProvider.php
packages/Webkul/Core/src/Providers/CoreServiceProvider.php
<?php namespace Webkul\Core\Providers; use Illuminate\Foundation\AliasLoader; use Illuminate\Support\ServiceProvider; use Webkul\Core\Acl; use Webkul\Core\Console\Commands\Version; use Webkul\Core\Core; use Webkul\Core\Facades\Acl as AclFacade; use Webkul\Core\Facades\Core as CoreFacade; use Webkul\Core\Facades\Menu as MenuFacade; use Webkul\Core\Facades\SystemConfig as SystemConfigFacade; use Webkul\Core\Menu; use Webkul\Core\SystemConfig; class CoreServiceProvider extends ServiceProvider { /** * Bootstrap services. * * @return void * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ public function boot() { include __DIR__.'/../Http/helpers.php'; $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); $this->loadTranslationsFrom(__DIR__.'/../Resources/lang', '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'), ]); } /** * Register services. * * @return void */ public function register() { $this->registerCommands(); $this->registerFacades(); } /** * Register Bouncer as a singleton. * * @return void */ protected function registerFacades() { $loader = AliasLoader::getInstance(); $loader->alias('acl', AclFacade::class); $loader->alias('core', CoreFacade::class); $loader->alias('system_config', SystemConfigFacade::class); $loader->alias('menu', MenuFacade::class); $this->app->singleton('acl', fn () => app(Acl::class)); $this->app->singleton('core', fn () => app(Core::class)); $this->app->singleton('system_config', fn () => app()->make(SystemConfig::class)); $this->app->singleton('menu', fn () => app()->make(Menu::class)); } /** * Register the console commands of this package. */ protected function registerCommands(): void { if ($this->app->runningInConsole()) { $this->commands([ Version::class, ]); } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Providers/ModuleServiceProvider.php
packages/Webkul/Core/src/Providers/ModuleServiceProvider.php
<?php namespace Webkul\Core\Providers; class ModuleServiceProvider extends BaseModuleServiceProvider { protected $models = [ \Webkul\Core\Models\CoreConfig::class, \Webkul\Core\Models\Country::class, \Webkul\Core\Models\CountryState::class, ]; }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Providers/BaseModuleServiceProvider.php
packages/Webkul/Core/src/Providers/BaseModuleServiceProvider.php
<?php namespace Webkul\Core\Providers; use Konekt\Concord\BaseModuleServiceProvider as ConcordBaseModuleServiceProvider; class BaseModuleServiceProvider extends ConcordBaseModuleServiceProvider { /** * {@inheritdoc} */ public function boot() { if ($this->areMigrationsEnabled()) { $this->registerMigrations(); } if ($this->areModelsEnabled()) { $this->registerModels(); $this->registerEnums(); $this->registerRequestTypes(); } if ($this->areViewsEnabled()) { $this->registerViews(); } if ($routes = $this->config('routes', true)) { $this->registerRoutes($routes); } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Eloquent/Repository.php
packages/Webkul/Core/src/Eloquent/Repository.php
<?php namespace Webkul\Core\Eloquent; use Prettus\Repository\Contracts\CacheableInterface; use Prettus\Repository\Eloquent\BaseRepository; use Prettus\Repository\Traits\CacheableRepository; abstract class Repository extends BaseRepository implements CacheableInterface { use CacheableRepository; /** * Find data by field and value * * @param string $field * @param string $value * @param array $columns * @return mixed */ public function findOneByField($field, $value = null, $columns = ['*']) { $model = $this->findByField($field, $value, $columns = ['*']); return $model->first(); } /** * Find data by field and value * * @param string $field * @param string $value * @param array $columns * @return mixed */ public function findOneWhere(array $where, $columns = ['*']) { $model = $this->findWhere($where, $columns); return $model->first(); } /** * Find data by id * * @param int $id * @param array $columns * @return mixed */ public function find($id, $columns = ['*']) { $this->applyCriteria(); $this->applyScope(); $model = $this->model->find($id, $columns); $this->resetModel(); return $this->parserResult($model); } /** * Find data by id * * @param int $id * @param array $columns * @return mixed */ public function findOrFail($id, $columns = ['*']) { $this->applyCriteria(); $this->applyScope(); $model = $this->model->findOrFail($id, $columns); $this->resetModel(); return $this->parserResult($model); } /** * Count results of repository * * @param string $columns * @return int */ public function count(array $where = [], $columns = '*') { $this->applyCriteria(); $this->applyScope(); if ($where) { $this->applyConditions($where); } $result = $this->model->count($columns); $this->resetModel(); $this->resetScope(); return $result; } /** * @param string $columns * @return mixed */ public function sum($columns) { $this->applyCriteria(); $this->applyScope(); $sum = $this->model->sum($columns); $this->resetModel(); return $sum; } /** * @param string $columns * @return mixed */ public function avg($columns) { $this->applyCriteria(); $this->applyScope(); $avg = $this->model->avg($columns); $this->resetModel(); return $avg; } /** * @return mixed */ public function getModel($data = []) { return $this->model; } /** * @throws RepositoryException */ public function resetModel() { $this->makeModel(); return $this; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Core/src/Eloquent/TranslatableModel.php
packages/Webkul/Core/src/Eloquent/TranslatableModel.php
<?php namespace Webkul\Core\Eloquent; use Astrotomic\Translatable\Translatable; use Illuminate\Database\Eloquent\Model; class TranslatableModel extends Model { use Translatable; /** * @return string */ protected function locale() { if ($this->defaultLocale) { return $this->defaultLocale; } return config('translatable.locale') ?: app()->make('translator')->getLocale(); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Helpers/Entity.php
packages/Webkul/Automation/src/Helpers/Entity.php
<?php namespace Webkul\Automation\Helpers; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\EmailTemplate\Repositories\EmailTemplateRepository; class Entity { /** * Create a new repository instance. * * @return void */ public function __construct( protected AttributeRepository $attributeRepository, protected EmailTemplateRepository $emailTemplateRepository ) {} /** * Returns events to match for the entity * * @return array */ public function getEvents() { $entities = config('workflows.trigger_entities'); $events = []; foreach ($entities as $key => $entity) { $object = app($entity['class']); $events[$key] = [ 'id' => $key, 'name' => $entity['name'], 'events' => $entity['events'], ]; } return $events; } /** * Returns conditions to match for the entity * * @return array */ public function getConditions() { $entities = config('workflows.trigger_entities'); $conditions = []; foreach ($entities as $key => $entity) { $object = app($entity['class']); $conditions[$key] = $object->getConditions(); } return $conditions; } /** * Returns workflow actions * * @return array */ public function getActions() { $entities = config('workflows.trigger_entities'); $conditions = []; foreach ($entities as $key => $entity) { $object = app($entity['class']); $conditions[$key] = $object->getActions(); } return $conditions; } /** * Returns placeholders for email templates * * @return array */ public function getEmailTemplatePlaceholders() { $entities = config('workflows.trigger_entities'); $placeholders = []; foreach ($entities as $key => $entity) { $object = app($entity['class']); $placeholders[] = $object->getEmailTemplatePlaceholders($entity); } return $placeholders; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Helpers/Validator.php
packages/Webkul/Automation/src/Helpers/Validator.php
<?php namespace Webkul\Automation\Helpers; class Validator { /** * Validate workflow for condition * * @param \Webkul\Automation\Contracts\Workflow $workflow * @param mixed $entity * @return bool */ public function validate($workflow, $entity) { if (! $workflow->conditions) { return true; } $validConditionCount = $totalConditionCount = 0; foreach ($workflow->conditions as $condition) { if (! $condition['attribute'] || ! isset($condition['value']) || is_null($condition['value']) || $condition['value'] == '' ) { continue; } $totalConditionCount++; if ($workflow->condition_type == 'and') { if (! $this->validateEntity($condition, $entity)) { return false; } else { $validConditionCount++; } } else { if ($this->validateEntity($condition, $entity)) { return true; } } } return $validConditionCount == $totalConditionCount ? true : false; } /** * Validate object * * @param array $condition * @param mixed $entity * @return bool */ private function validateEntity($condition, $entity) { return $this->validateAttribute( $condition, $this->getAttributeValue($condition, $entity) ); } /** * Return value for the attribute * * @param array $condition * @param mixed $entity * @return bool */ public function getAttributeValue($condition, $entity) { $value = $entity->{$condition['attribute']}; if (! in_array($condition['attribute_type'], ['multiselect', 'checkbox'])) { return $value; } return $value ? explode(',', $value) : []; } /** * Validate attribute value for condition * * @param array $condition * @param mixed $attributeValue * @return bool */ public function validateAttribute($condition, $attributeValue) { switch ($condition['operator']) { case '==': case '!=': if (is_array($condition['value'])) { if (! is_array($attributeValue)) { return false; } $result = ! empty(array_intersect($condition['value'], $attributeValue)); } elseif (is_object($attributeValue)) { $result = $attributeValue->value == $condition['value']; } else { if (is_array($attributeValue)) { $result = count($attributeValue) == 1 && array_shift($attributeValue) == $condition['value']; } else { $result = $attributeValue == $condition['value']; } } break; case '<=': case '>': if (! is_scalar($attributeValue)) { return false; } $result = $attributeValue <= $condition['value']; break; case '>=': case '<': if (! is_scalar($attributeValue)) { return false; } $result = $attributeValue >= $condition['value']; break; case '{}': case '!{}': if (is_scalar($attributeValue) && is_array($condition['value'])) { foreach ($condition['value'] as $item) { if (stripos($attributeValue, $item) !== false) { $result = true; break; } } } elseif (is_array($condition['value'])) { if (! is_array($attributeValue)) { return false; } $result = ! empty(array_intersect($condition['value'], $attributeValue)); } else { if (is_array($attributeValue)) { $result = self::validateArrayValues($attributeValue, $condition['value']); } else { $result = strpos($attributeValue, $condition['value']) !== false; } } break; } if (in_array($condition['operator'], ['!=', '>', '<', '!{}'])) { $result = ! $result; } return $result; } /** * Validate the condition value against a multi dimensional array recursively */ private static function validateArrayValues(array $attributeValue, string $conditionValue): bool { if (in_array($conditionValue, $attributeValue, true) === true) { return true; } foreach ($attributeValue as $subValue) { if (! is_array($subValue)) { continue; } if (self::validateArrayValues($subValue, $conditionValue) === true) { return true; } } return false; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Helpers/Entity/Lead.php
packages/Webkul/Automation/src/Helpers/Entity/Lead.php
<?php namespace Webkul\Automation\Helpers\Entity; use Illuminate\Support\Facades\Mail; use Webkul\Activity\Repositories\ActivityRepository; use Webkul\Admin\Notifications\Common; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Automation\Repositories\WebhookRepository; use Webkul\Automation\Services\WebhookService; use Webkul\Contact\Repositories\PersonRepository; use Webkul\EmailTemplate\Repositories\EmailTemplateRepository; use Webkul\Lead\Contracts\Lead as ContractsLead; use Webkul\Lead\Repositories\LeadRepository; use Webkul\Tag\Repositories\TagRepository; class Lead extends AbstractEntity { /** * Define the entity type. */ protected string $entityType = 'leads'; /** * Create a new repository instance. * * @return void */ public function __construct( protected AttributeRepository $attributeRepository, protected EmailTemplateRepository $emailTemplateRepository, protected LeadRepository $leadRepository, protected ActivityRepository $activityRepository, protected PersonRepository $personRepository, protected TagRepository $tagRepository, protected WebhookRepository $webhookRepository, protected WebhookService $webhookService ) {} /** * Listing of the entities. */ public function getEntity(mixed $entity) { if (! $entity instanceof ContractsLead) { $entity = $this->leadRepository->find($entity); } return $entity; } /** * Returns attributes. */ public function getAttributes(string $entityType, array $skipAttributes = ['textarea', 'image', 'file', 'address']): array { return parent::getAttributes($entityType, $skipAttributes); } /** * Returns workflow actions. */ public function getActions(): array { $emailTemplates = $this->emailTemplateRepository->all(['id', 'name']); $webhooksOptions = $this->webhookRepository->all(['id', 'name']); return [ [ 'id' => 'update_lead', 'name' => trans('admin::app.settings.workflows.helpers.update-lead'), 'attributes' => $this->getAttributes('leads'), ], [ 'id' => 'update_person', 'name' => trans('admin::app.settings.workflows.helpers.update-person'), 'attributes' => $this->getAttributes('persons'), ], [ 'id' => 'send_email_to_person', 'name' => trans('admin::app.settings.workflows.helpers.send-email-to-person'), 'options' => $emailTemplates, ], [ 'id' => 'send_email_to_sales_owner', 'name' => trans('admin::app.settings.workflows.helpers.send-email-to-sales-owner'), 'options' => $emailTemplates, ], [ 'id' => 'add_tag', 'name' => trans('admin::app.settings.workflows.helpers.add-tag'), ], [ 'id' => 'add_note_as_activity', 'name' => trans('admin::app.settings.workflows.helpers.add-note-as-activity'), ], [ 'id' => 'trigger_webhook', 'name' => trans('admin::app.settings.workflows.helpers.add-webhook'), 'options' => $webhooksOptions, ], ]; } /** * Execute workflow actions. */ public function executeActions(mixed $workflow, mixed $lead): void { foreach ($workflow->actions as $action) { switch ($action['id']) { case 'update_lead': $this->leadRepository->update( [ 'entity_type' => 'leads', $action['attribute'] => $action['value'], ], $lead->id, [$action['attribute']] ); break; case 'update_person': $this->personRepository->update([ 'entity_type' => 'persons', $action['attribute'] => $action['value'], ], $lead->person_id); break; case 'send_email_to_person': $emailTemplate = $this->emailTemplateRepository->find($action['value']); if (! $emailTemplate) { break; } try { Mail::queue(new Common([ 'to' => data_get($lead->person->emails, '*.value'), 'subject' => $this->replacePlaceholders($lead, $emailTemplate->subject), 'body' => $this->replacePlaceholders($lead, $emailTemplate->content), ])); } catch (\Exception $e) { } break; case 'send_email_to_sales_owner': $emailTemplate = $this->emailTemplateRepository->find($action['value']); if (! $emailTemplate) { break; } try { Mail::queue(new Common([ 'to' => $lead->user->email, 'subject' => $this->replacePlaceholders($lead, $emailTemplate->subject), 'body' => $this->replacePlaceholders($lead, $emailTemplate->content), ])); } catch (\Exception $e) { } break; case 'add_tag': $colors = [ '#337CFF', '#FEBF00', '#E5549F', '#27B6BB', '#FB8A3F', '#43AF52', ]; if (! $tag = $this->tagRepository->findOneByField('name', $action['value'])) { $tag = $this->tagRepository->create([ 'name' => $action['value'], 'color' => $colors[rand(0, 5)], 'user_id' => auth()->guard('user')->user()->id, ]); } if (! $lead->tags->contains($tag->id)) { $lead->tags()->attach($tag->id); } break; case 'add_note_as_activity': $activity = $this->activityRepository->create([ 'type' => 'note', 'comment' => $action['value'], 'is_done' => 1, 'user_id' => auth()->guard('user')->user()->id, ]); $lead->activities()->attach($activity->id); break; case 'trigger_webhook': try { $this->triggerWebhook($action['value'], $lead); } catch (\Exception $e) { report($e); } break; } } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Helpers/Entity/Activity.php
packages/Webkul/Automation/src/Helpers/Entity/Activity.php
<?php namespace Webkul\Automation\Helpers\Entity; use Carbon\Carbon; use Illuminate\Support\Facades\Mail; use Webkul\Activity\Contracts\Activity as ContractsActivity; use Webkul\Activity\Repositories\ActivityRepository; use Webkul\Admin\Notifications\Common; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Automation\Repositories\WebhookRepository; use Webkul\Automation\Services\WebhookService; use Webkul\Contact\Repositories\PersonRepository; use Webkul\EmailTemplate\Repositories\EmailTemplateRepository; use Webkul\Lead\Repositories\LeadRepository; class Activity extends AbstractEntity { /** * Define the entity type. * * @var string */ protected $entityType = 'activities'; /** * Create a new repository instance. * * @return void */ public function __construct( protected AttributeRepository $attributeRepository, protected EmailTemplateRepository $emailTemplateRepository, protected LeadRepository $leadRepository, protected PersonRepository $personRepository, protected ActivityRepository $activityRepository, protected WebhookRepository $webhookRepository, protected WebhookService $webhookService ) {} /** * Get the attributes for workflow conditions. */ public function getAttributes(string $entityType, array $skipAttributes = []): array { $attributes = [ [ 'id' => 'title', 'type' => 'text', 'name' => 'Title', 'lookup_type' => null, 'options' => collect(), ], [ 'id' => 'type', 'type' => 'multiselect', 'name' => 'Type', 'lookup_type' => null, 'options' => collect([ (object) [ 'id' => 'note', 'name' => 'Note', ], (object) [ 'id' => 'call', 'name' => 'Call', ], (object) [ 'id' => 'meeting', 'name' => 'Meeting', ], (object) [ 'id' => 'lunch', 'name' => 'Lunch', ], (object) [ 'id' => 'file', 'name' => 'File', ], ]), ], [ 'id' => 'location', 'type' => 'text', 'name' => 'Location', 'lookup_type' => null, 'options' => collect(), ], [ 'id' => 'comment', 'type' => 'textarea', 'name' => 'Comment', 'lookup_type' => null, 'options' => collect(), ], [ 'id' => 'schedule_from', 'type' => 'datetime', 'name' => 'Schedule From', 'lookup_type' => null, 'options' => collect(), ], [ 'id' => 'schedule_to', 'type' => 'datetime', 'name' => 'Schedule To', 'lookup_type' => null, 'options' => collect(), ], [ 'id' => 'user_id', 'type' => 'select', 'name' => 'User', 'lookup_type' => 'users', 'options' => $this->attributeRepository->getLookUpOptions('users'), ], ]; return $attributes; } /** * Returns placeholders for email templates. */ public function getEmailTemplatePlaceholders(array $entity): array { $emailTemplates = parent::getEmailTemplatePlaceholders($entity); $emailTemplates['menu'][] = [ 'text' => 'Participants', 'value' => '{%activities.participants%}', ]; return $emailTemplates; } /** * Replace placeholders with values. */ public function replacePlaceholders(mixed $entity, string $content): string { $content = parent::replacePlaceholders($entity, $content); $value = '<ul style="padding-left: 18px;margin: 0;">'; foreach ($entity->participants as $participant) { $value .= '<li>'.($participant->user ? $participant->user->name : $participant->person->name).'</li>'; } $value .= '</ul>'; return strtr($content, [ '{%'.$this->entityType.'.participants%}' => $value, '{% '.$this->entityType.'.participants %}' => $value, ]); } /** * Listing of the entities. */ public function getEntity(mixed $entity): mixed { if (! $entity instanceof ContractsActivity) { $entity = $this->activityRepository->find($entity); } return $entity; } /** * Returns workflow actions. */ public function getActions(): array { $emailTemplates = $this->emailTemplateRepository->all(['id', 'name']); $webhooksOptions = $this->webhookRepository->all(['id', 'name']); return [ [ 'id' => 'update_related_leads', 'name' => trans('admin::app.settings.workflows.helpers.update-related-leads'), 'attributes' => $this->getAttributes('leads'), ], [ 'id' => 'send_email_to_sales_owner', 'name' => trans('admin::app.settings.workflows.helpers.send-email-to-sales-owner'), 'options' => $emailTemplates, ], [ 'id' => 'send_email_to_participants', 'name' => trans('admin::app.settings.workflows.helpers.send-email-to-participants'), 'options' => $emailTemplates, ], [ 'id' => 'trigger_webhook', 'name' => trans('admin::app.settings.workflows.helpers.add-webhook'), 'options' => $webhooksOptions, ], ]; } /** * Execute workflow actions. */ public function executeActions(mixed $workflow, mixed $activity): void { foreach ($workflow->actions as $action) { switch ($action['id']) { case 'update_related_leads': $leadIds = $this->activityRepository->getModel() ->leftJoin('lead_activities', 'activities.id', 'lead_activities.activity_id') ->leftJoin('leads', 'lead_activities.lead_id', 'leads.id') ->addSelect('leads.id') ->where('activities.id', $activity->id) ->pluck('id'); foreach ($leadIds as $leadId) { $this->leadRepository->update( [ 'entity_type' => 'leads', $action['attribute'] => $action['value'], ], $leadId, [$action['attribute']] ); } break; case 'send_email_to_sales_owner': $emailTemplate = $this->emailTemplateRepository->find($action['value']); if (! $emailTemplate) { break; } try { Mail::queue(new Common([ 'to' => $activity->user->email, 'subject' => $this->replacePlaceholders($activity, $emailTemplate->subject), 'body' => $this->replacePlaceholders($activity, $emailTemplate->content), 'attachments' => [ [ 'name' => 'invite.ics', 'mime' => 'text/calendar', 'content' => $this->getICSContent($activity), ], ], ])); } catch (\Exception $e) { } break; case 'send_email_to_participants': $emailTemplate = $this->emailTemplateRepository->find($action['value']); if (! $emailTemplate) { break; } try { foreach ($activity->participants as $participant) { Mail::queue(new Common([ 'to' => $participant->user ? $participant->user->email : data_get($participant->person->emails, '*.value'), 'subject' => $this->replacePlaceholders($activity, $emailTemplate->subject), 'body' => $this->replacePlaceholders($activity, $emailTemplate->content), 'attachments' => [ [ 'name' => 'invite.ics', 'mime' => 'text/calendar', 'content' => $this->getICSContent($activity), ], ], ])); } } catch (\Exception $e) { } break; case 'trigger_webhook': try { $this->triggerWebhook($action['value'], $activity); } catch (\Exception $e) { report($e); } break; } } } /** * Returns .ics file for attachments. */ public function getICSContent(ContractsActivity $activity): string { $content = [ 'BEGIN:VCALENDAR', 'VERSION:2.0', 'PRODID:-//Krayincrm//Krayincrm//EN', 'BEGIN:VEVENT', 'UID:'.time().'-'.$activity->id, 'DTSTAMP:'.Carbon::now()->format('YmdTHis'), 'CREATED:'.$activity->created_at->format('YmdTHis'), 'SEQUENCE:1', 'ORGANIZER;CN='.$activity->user->name.':MAILTO:'.$activity->user->email, ]; foreach ($activity->participants as $participant) { if ($participant->user) { $content[] = 'ATTENDEE;ROLE=REQ-PARTICIPANT;CN='.$participant->user->name.';PARTSTAT=NEEDS-ACTION:MAILTO:'.$participant->user->email; } else { foreach (data_get($participant->person->emails, '*.value') as $email) { $content[] = 'ATTENDEE;ROLE=REQ-PARTICIPANT;CN='.$participant->person->name.';PARTSTAT=NEEDS-ACTION:MAILTO:'.$email; } } } $content = array_merge($content, [ 'DTSTART:'.$activity->schedule_from->format('YmdTHis'), 'DTEND:'.$activity->schedule_to->format('YmdTHis'), 'SUMMARY:'.$activity->title, 'LOCATION:'.$activity->location, 'DESCRIPTION:'.$activity->comment, 'END:VEVENT', 'END:VCALENDAR', ]); return implode("\r\n", $content); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Helpers/Entity/AbstractEntity.php
packages/Webkul/Automation/src/Helpers/Entity/AbstractEntity.php
<?php namespace Webkul\Automation\Helpers\Entity; use Carbon\Carbon; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Automation\Repositories\WebhookRepository; use Webkul\Automation\Services\WebhookService; abstract class AbstractEntity { /** * Attribute repository instance. */ protected AttributeRepository $attributeRepository; /** * Create a new repository instance. */ public function __construct( protected WebhookService $webhookService, protected WebhookRepository $webhookRepository, ) {} /** * Listing of the entities. */ abstract public function getEntity(mixed $entity); /** * Returns workflow actions. */ abstract public function getActions(); /** * Execute workflow actions. */ abstract public function executeActions(mixed $workflow, mixed $entity): void; /** * Returns attributes for workflow conditions. */ public function getConditions(): array { return $this->getAttributes($this->entityType); } /** * Get attributes for entity. */ public function getAttributes(string $entityType, array $skipAttributes = ['textarea', 'image', 'file', 'address']): array { $attributes = []; foreach ($this->attributeRepository->findByField('entity_type', $entityType) as $attribute) { if (in_array($attribute->type, $skipAttributes)) { continue; } if ($attribute->lookup_type) { $options = []; } else { $options = $attribute->options; } $attributes[] = [ 'id' => $attribute->code, 'type' => $attribute->type, 'name' => $attribute->name, 'lookup_type' => $attribute->lookup_type, 'options' => $options, ]; } return $attributes; } /** * Returns placeholders for email templates. */ public function getEmailTemplatePlaceholders(array $entity): array { $menuItems = []; foreach ($this->getAttributes($this->entityType) as $attribute) { $menuItems[] = [ 'text' => $attribute['name'], 'value' => '{%'.$this->entityType.'.'.$attribute['id'].'%}', ]; } return [ 'text' => $entity['name'], 'menu' => $menuItems, ]; } /** * Replace placeholders with values. */ public function replacePlaceholders(mixed $entity, string $content): string { foreach ($this->getAttributes($this->entityType, []) as $attribute) { $value = ''; switch ($attribute['type']) { case 'price': $value = core()->formatBasePrice($entity->{$attribute['id']}); break; case 'boolean': $value = $entity->{$attribute['id']} ? __('admin::app.common.yes') : __('admin::app.common.no'); break; case 'select': case 'radio': case 'lookup': if ($attribute['lookup_type']) { $option = $this->attributeRepository->getLookUpEntity($attribute['lookup_type'], $entity->{$attribute['id']}); } else { $option = $attribute['options']->where('id', $entity->{$attribute['id']})->first(); } $value = $option ? $option->name : ''; break; case 'multiselect': case 'checkbox': if ($attribute['lookup_type']) { $options = $this->attributeRepository->getLookUpEntity($attribute['lookup_type'], explode(',', $entity->{$attribute['id']})); } else { $options = $attribute['options']->whereIn('id', explode(',', $entity->{$attribute['id']})); } $optionsLabels = []; foreach ($options as $key => $option) { $optionsLabels[] = $option->name; } $value = implode(', ', $optionsLabels); break; case 'email': case 'phone': if (! is_array($entity->{$attribute['id']})) { break; } $optionsLabels = []; foreach ($entity->{$attribute['id']} as $item) { $optionsLabels[] = $item['value'].' ('.$item['label'].')'; } $value = implode(', ', $optionsLabels); break; case 'address': if (! $entity->{$attribute['id']} || ! count(array_filter($entity->{$attribute['id']}))) { break; } $value = $entity->{$attribute['id']}['address'].'<br>' .$entity->{$attribute['id']}['postcode'].' '.$entity->{$attribute['id']}['city'].'<br>' .core()->state_name($entity->{$attribute['id']}['state']).'<br>' .core()->country_name($entity->{$attribute['id']}['country']).'<br>'; break; case 'date': if ($entity->{$attribute['id']}) { $value = ! is_object($entity->{$attribute['id']}) ? Carbon::parse($entity->{$attribute['id']}) : $entity->{$attribute['id']}->format('D M d, Y'); } else { $value = 'N/A'; } break; case 'datetime': if ($entity->{$attribute['id']}) { $value = ! is_object($entity->{$attribute['id']}) ? Carbon::parse($entity->{$attribute['id']}) : $entity->{$attribute['id']}->format('D M d, Y H:i A'); } else { $value = 'N/A'; } break; default: $value = $entity->{$attribute['id']}; break; } $content = strtr($content, [ '{%'.$this->entityType.'.'.$attribute['id'].'%}' => $value, '{% '.$this->entityType.'.'.$attribute['id'].' %}' => $value, ]); } return $content; } /** * Trigger webhook. * * @return void */ public function triggerWebhook(int $webhookId, mixed $entity) { $webhook = $this->webhookRepository->findOrFail($webhookId); $payload = [ 'method' => $webhook->method, 'query_params' => $this->replacePlaceholders($entity, json_encode($webhook->query_params)), 'end_point' => $this->replacePlaceholders($entity, $webhook->end_point), 'payload' => $this->replacePlaceholders($entity, json_encode($webhook->payload)), 'headers' => $this->replacePlaceholders($entity, json_encode($webhook->headers)), ]; $this->webhookService->triggerWebhook($payload); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Helpers/Entity/Quote.php
packages/Webkul/Automation/src/Helpers/Entity/Quote.php
<?php namespace Webkul\Automation\Helpers\Entity; use Illuminate\Support\Facades\Mail; use Webkul\Admin\Notifications\Common; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Automation\Repositories\WebhookRepository; use Webkul\Automation\Services\WebhookService; use Webkul\Contact\Repositories\PersonRepository; use Webkul\EmailTemplate\Repositories\EmailTemplateRepository; use Webkul\Lead\Repositories\LeadRepository; use Webkul\Quote\Contracts\Quote as ContractsQuote; use Webkul\Quote\Repositories\QuoteRepository; class Quote extends AbstractEntity { /** * Define the entity type. */ protected string $entityType = 'quotes'; /** * Create a new repository instance. * * @return void */ public function __construct( protected AttributeRepository $attributeRepository, protected EmailTemplateRepository $emailTemplateRepository, protected QuoteRepository $quoteRepository, protected LeadRepository $leadRepository, protected PersonRepository $personRepository, protected WebhookRepository $webhookRepository, protected WebhookService $webhookService ) {} /** * Listing of the entities. */ public function getEntity(mixed $entity): mixed { if (! $entity instanceof ContractsQuote) { $entity = $this->quoteRepository->find($entity); } return $entity; } /** * Returns workflow actions. */ public function getActions(): array { $emailTemplates = $this->emailTemplateRepository->all(['id', 'name']); $webhookOptions = $this->webhookRepository->all(['id', 'name']); return [ [ 'id' => 'update_quote', 'name' => trans('admin::app.settings.workflows.helpers.update-quote'), 'attributes' => $this->getAttributes('quotes'), ], [ 'id' => 'update_person', 'name' => trans('admin::app.settings.workflows.helpers.update-person'), 'attributes' => $this->getAttributes('persons'), ], [ 'id' => 'update_related_leads', 'name' => trans('admin::app.settings.workflows.helpers.update-related-leads'), 'attributes' => $this->getAttributes('leads'), ], [ 'id' => 'send_email_to_person', 'name' => trans('admin::app.settings.workflows.helpers.send-email-to-person'), 'options' => $emailTemplates, ], [ 'id' => 'send_email_to_sales_owner', 'name' => trans('admin::app.settings.workflows.helpers.send-email-to-sales-owner'), 'options' => $emailTemplates, ], [ 'id' => 'trigger_webhook', 'name' => trans('admin::app.settings.workflows.helpers.add-webhook'), 'options' => $webhookOptions, ], ]; } /** * Execute workflow actions. */ public function executeActions(mixed $workflow, mixed $quote): void { foreach ($workflow->actions as $action) { switch ($action['id']) { case 'update_quote': $this->quoteRepository->update([ 'entity_type' => 'quotes', $action['attribute'] => $action['value'], ], $quote->id); break; case 'update_person': $this->personRepository->update([ 'entity_type' => 'persons', $action['attribute'] => $action['value'], ], $quote->person_id); break; case 'update_related_leads': foreach ($quote->leads as $lead) { $this->leadRepository->update( [ 'entity_type' => 'leads', $action['attribute'] => $action['value'], ], $lead->id, [$action['attribute']] ); } break; case 'send_email_to_person': $emailTemplate = $this->emailTemplateRepository->find($action['value']); if (! $emailTemplate) { break; } try { Mail::queue(new Common([ 'to' => data_get($quote->person->emails, '*.value'), 'subject' => $this->replacePlaceholders($quote, $emailTemplate->subject), 'body' => $this->replacePlaceholders($quote, $emailTemplate->content), ])); } catch (\Exception $e) { } break; case 'send_email_to_sales_owner': $emailTemplate = $this->emailTemplateRepository->find($action['value']); if (! $emailTemplate) { break; } try { Mail::queue(new Common([ 'to' => $quote->user->email, 'subject' => $this->replacePlaceholders($quote, $emailTemplate->subject), 'body' => $this->replacePlaceholders($quote, $emailTemplate->content), ])); } catch (\Exception $e) { } break; case 'trigger_webhook': try { $this->triggerWebhook($action['value'], $quote); } catch (\Exception $e) { report($e); } break; } } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Helpers/Entity/Person.php
packages/Webkul/Automation/src/Helpers/Entity/Person.php
<?php namespace Webkul\Automation\Helpers\Entity; use Illuminate\Support\Facades\Mail; use Webkul\Admin\Notifications\Common; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Automation\Contracts\Workflow; use Webkul\Automation\Repositories\WebhookRepository; use Webkul\Automation\Services\WebhookService; use Webkul\Contact\Contracts\Person as PersonContract; use Webkul\Contact\Repositories\PersonRepository; use Webkul\EmailTemplate\Repositories\EmailTemplateRepository; use Webkul\Lead\Repositories\LeadRepository; class Person extends AbstractEntity { /** * Define the entity type. */ protected string $entityType = 'persons'; /** * Create a new repository instance. * * @return void */ public function __construct( protected AttributeRepository $attributeRepository, protected EmailTemplateRepository $emailTemplateRepository, protected LeadRepository $leadRepository, protected PersonRepository $personRepository, protected WebhookRepository $webhookRepository, protected WebhookService $webhookService ) {} /** * Listing of the entities. */ public function getEntity(mixed $entity): mixed { if (! $entity instanceof PersonContract) { $entity = $this->personRepository->find($entity); } return $entity; } /** * Returns workflow actions. */ public function getActions(): array { $emailTemplates = $this->emailTemplateRepository->all(['id', 'name']); $webhooksOptions = $this->webhookRepository->all(['id', 'name']); return [ [ 'id' => 'update_person', 'name' => trans('admin::app.settings.workflows.helpers.update-person'), 'attributes' => $this->getAttributes('persons'), ], [ 'id' => 'update_related_leads', 'name' => trans('admin::app.settings.workflows.helpers.update-related-leads'), 'attributes' => $this->getAttributes('leads'), ], [ 'id' => 'send_email_to_person', 'name' => trans('admin::app.settings.workflows.helpers.send-email-to-person'), 'options' => $emailTemplates, ], [ 'id' => 'trigger_webhook', 'name' => trans('admin::app.settings.workflows.helpers.add-webhook'), 'options' => $webhooksOptions, ], ]; } /** * Execute workflow actions. */ public function executeActions(mixed $workflow, mixed $person): void { foreach ($workflow->actions as $action) { switch ($action['id']) { case 'update_person': $this->personRepository->update([ 'entity_type' => 'persons', $action['attribute'] => $action['value'], ], $person->id); break; case 'update_related_leads': $leads = $this->leadRepository->findByField('person_id', $person->id); foreach ($leads as $lead) { $this->leadRepository->update( [ 'entity_type' => 'leads', $action['attribute'] => $action['value'], ], $lead->id, [$action['attribute']] ); } break; case 'send_email_to_person': $emailTemplate = $this->emailTemplateRepository->find($action['value']); if (! $emailTemplate) { break; } try { Mail::queue(new Common([ 'to' => data_get($person->emails, '*.value'), 'subject' => $this->replacePlaceholders($person, $emailTemplate->subject), 'body' => $this->replacePlaceholders($person, $emailTemplate->content), ])); } catch (\Exception $e) { report($e); } break; case 'trigger_webhook': try { $this->triggerWebhook($action['value'], $person); } catch (\Exception $e) { report($e); } break; } } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Listeners/Entity.php
packages/Webkul/Automation/src/Listeners/Entity.php
<?php namespace Webkul\Automation\Listeners; use Webkul\Automation\Helpers\Validator; use Webkul\Automation\Repositories\WorkflowRepository; class Entity { /** * Create a new repository instance. * * @return void */ public function __construct( protected WorkflowRepository $workflowRepository, protected Validator $validator ) {} /** * @param string $eventName * @param mixed $entity * @return void */ public function process($eventName, $entity) { $workflows = $this->workflowRepository->findByField('event', $eventName); foreach ($workflows as $workflow) { $workflowEntity = app(config('workflows.trigger_entities.'.$workflow->entity_type.'.class')); $entity = $workflowEntity->getEntity($entity); if (! $this->validator->validate($workflow, $entity)) { continue; } try { $workflowEntity->executeActions($workflow, $entity); } catch (\Exception $e) { logger()->error($e->getMessage()); } } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Services/WebhookService.php
packages/Webkul/Automation/src/Services/WebhookService.php
<?php namespace Webkul\Automation\Services; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Psr7\Message; use Webkul\Contact\Repositories\PersonRepository; class WebhookService { /** * The GuzzleHttp client instance. */ protected Client $client; /** * Create a new webhook service instance. */ public function __construct(protected PersonRepository $personRepository) { $this->client = new Client([ 'timeout' => 30, 'connect_timeout' => 10, 'verify' => true, 'http_errors' => false, ]); } /** * Trigger the webhook. */ public function triggerWebhook(mixed $data): array { if ( ! isset($data['method']) || ! isset($data['end_point']) ) { return [ 'status' => 'error', 'response' => 'Missing required fields: method or end_point', ]; } $headers = isset($data['headers']) ? $this->parseJsonField($data['headers']) : []; $payload = isset($data['payload']) ? $data['payload'] : null; $data['end_point'] = $this->appendQueryParams($data['end_point'], $data['query_params'] ?? ''); $formattedHeaders = $this->formatHeaders($headers); $options = $this->buildRequestOptions($data['method'], $formattedHeaders, $payload); try { $response = $this->client->request( strtoupper($data['method']), $data['end_point'], $options, ); return [ 'status' => 'success', 'response' => $response->getBody()->getContents(), 'status_code' => $response->getStatusCode(), 'headers' => $response->getHeaders(), ]; } catch (RequestException $e) { return [ 'status' => 'error', 'response' => $e->hasResponse() ? Message::toString($e->getResponse()) : $e->getMessage(), 'status_code' => $e->hasResponse() ? $e->getResponse()->getStatusCode() : null, ]; } } /** * Parse JSON field safely. */ protected function parseJsonField(mixed $field): array { if (is_array($field)) { return $field; } if (is_string($field)) { $decoded = json_decode($field, true); if ( json_last_error() === JSON_ERROR_NONE && is_array($decoded) ) { return $decoded; } } return []; } /** * Build request options based on method and content type. */ protected function buildRequestOptions(string $method, array $headers, mixed $payload): array { $options = []; if (! empty($headers)) { $options['headers'] = $headers; } if ( $payload !== null && ! in_array(strtoupper($method), ['GET', 'HEAD']) ) { $contentType = $this->getContentType($headers); switch ($contentType) { case 'application/json': $options['json'] = $this->prepareJsonPayload($payload); break; case 'application/x-www-form-urlencoded': $options['form_params'] = $this->prepareFormPayload($payload); break; case 'multipart/form-data': $options['multipart'] = $this->prepareMultipartPayload($payload); break; case 'text/plain': case 'text/xml': case 'application/xml': $options['body'] = $this->prepareRawPayload($payload); break; default: $options = array_merge($options, $this->autoDetectPayloadFormat($payload)); break; } } return $options; } /** * Prepare JSON payload. */ protected function prepareJsonPayload(mixed $payload): mixed { if (is_string($payload)) { $decoded = json_decode($payload, true); if (json_last_error() === JSON_ERROR_NONE) { return $decoded; } return $payload; } if (is_array($payload)) { return $this->formatPayload($payload); } return $payload; } /** * Prepare form payload. */ protected function prepareFormPayload(mixed $payload): array { if (is_string($payload)) { $decoded = json_decode($payload, true); if ( json_last_error() === JSON_ERROR_NONE && is_array($decoded) ) { return $this->formatPayload($decoded); } parse_str($payload, $parsed); return $parsed ?: []; } if (is_array($payload)) { return $this->formatPayload($payload); } return []; } /** * Prepare multipart payload. */ protected function prepareMultipartPayload(mixed $payload): array { $formattedPayload = $this->prepareFormPayload($payload); return $this->buildMultipartData($formattedPayload); } /** * Prepare raw payload. */ protected function prepareRawPayload(mixed $payload): string { if (is_string($payload)) { return $payload; } if (is_array($payload)) { return json_encode($payload); } return (string) $payload; } /** * Auto-detect payload format when no content-type is specified. */ protected function autoDetectPayloadFormat(mixed $payload): array { if (is_string($payload)) { $decoded = json_decode($payload, true); if (json_last_error() === JSON_ERROR_NONE) { return ['json' => $decoded]; } if ( strpos($payload, '=') !== false && strpos($payload, '&') !== false ) { parse_str($payload, $parsed); return ['form_params' => $parsed]; } return ['body' => $payload]; } if (is_array($payload)) { $formatted = $this->formatPayload($payload); return ['json' => $formatted]; } return ['body' => (string) $payload]; } /** * Get content type from headers. */ protected function getContentType(array $headers): string { foreach ($headers as $key => $value) { if (strtolower($key) === 'content-type') { $contentType = strtolower(trim(explode(';', $value)[0])); return $contentType; } } return ''; } /** * Build multipart data array. */ protected function buildMultipartData(array $payload): array { $multipart = []; foreach ($payload as $key => $value) { $multipart[] = [ 'name' => $key, 'contents' => is_array($value) ? json_encode($value) : (string) $value, ]; } return $multipart; } /** * Format headers array. */ protected function formatHeaders(array $headers): array { if (empty($headers)) { return []; } $formattedHeaders = []; if ($this->isKeyValuePairArray($headers)) { foreach ($headers as $header) { if ( isset($header['key']) && array_key_exists('value', $header) ) { if ( isset($header['disabled']) && $header['disabled'] ) { continue; } if ( isset($header['enabled']) && ! $header['enabled'] ) { continue; } $formattedHeaders[$header['key']] = $header['value']; } } } else { $formattedHeaders = $headers; } return $formattedHeaders; } /** * Format any incoming payload into a clean associative array. */ protected function formatPayload(mixed $payload): array { if (empty($payload)) { return []; } if ( is_array($payload) && isset($payload['key']) && array_key_exists('value', $payload) ) { return [$payload['key'] => $payload['value']]; } if ( is_array($payload) && array_is_list($payload) && $this->isKeyValuePairArray($payload) ) { $formatted = []; foreach ($payload as $item) { if ( isset($item['key']) && array_key_exists('value', $item) ) { if ( isset($item['disabled']) && $item['disabled'] ) { continue; } if ( isset($item['enabled']) && ! $item['enabled'] ) { continue; } $formatted[$item['key']] = $item['value']; } } return $formatted; } return is_array($payload) ? $payload : []; } /** * Check if array is a key-value pair array. */ protected function isKeyValuePairArray(array $array): bool { if (empty($array)) { return false; } if ( isset($array['key']) && array_key_exists('value', $array) ) { return true; } if (array_is_list($array)) { return collect($array)->every(fn ($item) => is_array($item) && isset($item['key']) && array_key_exists('value', $item) ); } return false; } /** * Append query parameters to the endpoint URL. */ protected function appendQueryParams(string $endPoint, string $queryParamsJson): string { $queryParams = json_decode($queryParamsJson, true); if ( json_last_error() !== JSON_ERROR_NONE || ! is_array($queryParams) ) { return $endPoint; } $queryArray = []; foreach ($queryParams as $param) { if ( isset($param['key']) && array_key_exists('value', $param) ) { $queryArray[$param['key']] = $param['value']; } } $queryString = http_build_query($queryArray); $glue = str_contains($endPoint, '?') ? '&' : '?'; return $endPoint.($queryString ? $glue.$queryString : ''); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Contracts/Webhook.php
packages/Webkul/Automation/src/Contracts/Webhook.php
<?php namespace Webkul\Automation\Contracts; interface Webhook {}
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Contracts/Workflow.php
packages/Webkul/Automation/src/Contracts/Workflow.php
<?php namespace Webkul\Automation\Contracts; interface Workflow {}
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Database/Migrations/2024_07_24_150821_create_webhooks_table.php
packages/Webkul/Automation/src/Database/Migrations/2024_07_24_150821_create_webhooks_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('webhooks', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('entity_type'); $table->string('description')->nullable(); $table->string('method'); $table->string('end_point'); $table->json('query_params')->nullable(); $table->json('headers')->nullable(); $table->string('payload_type'); $table->string('raw_payload_type'); $table->json('payload')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('webhooks'); } };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Database/Migrations/2021_08_26_133538_create_workflows_table.php
packages/Webkul/Automation/src/Database/Migrations/2021_08_26_133538_create_workflows_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('workflows', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('description')->nullable(); $table->string('entity_type'); $table->string('event'); $table->string('condition_type')->default('and'); $table->json('conditions')->nullable(); $table->json('actions')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('workflows'); } };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Config/workflows.php
packages/Webkul/Automation/src/Config/workflows.php
<?php return [ 'trigger_entities' => [ 'leads' => [ 'name' => 'Leads', 'class' => 'Webkul\Automation\Helpers\Entity\Lead', 'events' => [ [ 'event' => 'lead.create.after', 'name' => 'Created', ], [ 'event' => 'lead.update.after', 'name' => 'Updated', ], [ 'event' => 'lead.delete.before', 'name' => 'Deleted', ], ], ], 'activities' => [ 'name' => 'Activities', 'class' => 'Webkul\Automation\Helpers\Entity\Activity', 'events' => [ [ 'event' => 'activity.create.after', 'name' => 'Created', ], [ 'event' => 'activity.update.after', 'name' => 'Updated', ], [ 'event' => 'activity.delete.before', 'name' => 'Deleted', ], ], ], 'persons' => [ 'name' => 'Persons', 'class' => 'Webkul\Automation\Helpers\Entity\Person', 'events' => [ [ 'event' => 'contacts.person.create.after', 'name' => 'Created', ], [ 'event' => 'contacts.person.update.after', 'name' => 'Updated', ], [ 'event' => 'contacts.person.delete.before', 'name' => 'Deleted', ], ], ], 'quotes' => [ 'name' => 'Quotes', 'class' => 'Webkul\Automation\Helpers\Entity\Quote', 'events' => [ [ 'event' => 'quote.create.after', 'name' => 'Created', ], [ 'event' => 'quote.update.after', 'name' => 'Updated', ], [ 'event' => 'quote.delete.before', 'name' => 'Deleted', ], ], ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Models/Webhook.php
packages/Webkul/Automation/src/Models/Webhook.php
<?php namespace Webkul\Automation\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Webkul\Automation\Contracts\Webhook as ContractsWebhook; class Webhook extends Model implements ContractsWebhook { use HasFactory; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'name', 'entity_type', 'description', 'method', 'end_point', 'query_params', 'headers', 'payload_type', 'raw_payload_type', 'payload', ]; /** * The attributes that should be cast to native types. * * @var array<string, string> */ protected $casts = [ 'query_params' => 'array', 'headers' => 'array', 'payload' => 'array', ]; }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Models/WorkflowProxy.php
packages/Webkul/Automation/src/Models/WorkflowProxy.php
<?php namespace Webkul\Automation\Models; use Konekt\Concord\Proxies\ModelProxy; class WorkflowProxy extends ModelProxy {}
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Models/Workflow.php
packages/Webkul/Automation/src/Models/Workflow.php
<?php namespace Webkul\Automation\Models; use Illuminate\Database\Eloquent\Model; use Webkul\Automation\Contracts\Workflow as WorkflowContract; class Workflow extends Model implements WorkflowContract { protected $casts = [ 'conditions' => 'array', 'actions' => 'array', ]; protected $fillable = [ 'name', 'description', 'entity_type', 'event', 'condition_type', 'conditions', 'actions', ]; }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Models/WebhookProxy.php
packages/Webkul/Automation/src/Models/WebhookProxy.php
<?php namespace Webkul\Automation\Models; use Konekt\Concord\Proxies\ModelProxy; class WebhookProxy extends ModelProxy {}
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Repositories/WebhookRepository.php
packages/Webkul/Automation/src/Repositories/WebhookRepository.php
<?php namespace Webkul\Automation\Repositories; use Webkul\Automation\Contracts\Webhook; use Webkul\Core\Eloquent\Repository; class WebhookRepository extends Repository { /** * Specify Model class name. */ public function model(): string { return Webhook::class; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Repositories/WorkflowRepository.php
packages/Webkul/Automation/src/Repositories/WorkflowRepository.php
<?php namespace Webkul\Automation\Repositories; use Webkul\Automation\Contracts\Workflow; use Webkul\Core\Eloquent\Repository; class WorkflowRepository extends Repository { /** * Specify Model class name. */ public function model(): string { return Workflow::class; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Providers/WorkflowServiceProvider.php
packages/Webkul/Automation/src/Providers/WorkflowServiceProvider.php
<?php namespace Webkul\Automation\Providers; use Illuminate\Support\Facades\Event; use Illuminate\Support\ServiceProvider; class WorkflowServiceProvider extends ServiceProvider { /** * Bootstrap services. * * @return void */ public function boot() { $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); Event::listen('*', function ($eventName, array $data) { if (! in_array($eventName, data_get(config('workflows.trigger_entities'), '*.events.*.event'))) { return; } app(\Webkul\Automation\Listeners\Entity::class)->process($eventName, current($data)); }); } /** * Register services. * * @return void */ public function register() { $this->registerConfig(); } /** * Register package config. * * @return void */ protected function registerConfig() { $this->mergeConfigFrom(dirname(__DIR__).'/Config/workflows.php', 'workflows'); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Automation/src/Providers/ModuleServiceProvider.php
packages/Webkul/Automation/src/Providers/ModuleServiceProvider.php
<?php namespace Webkul\Automation\Providers; use Webkul\Automation\Models\Webhook; use Webkul\Automation\Models\Workflow; use Webkul\Core\Providers\BaseModuleServiceProvider; class ModuleServiceProvider extends BaseModuleServiceProvider { /** * Define the modals to map with this module. * * @var array */ protected $models = [ Workflow::class, Webhook::class, ]; }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Templates/on-boarding.php
packages/Webkul/Installer/src/Templates/on-boarding.php
_ __ _ | | / / (_) | |/ / _ __ __ _ _ _ _ _ __ | \| '__/ _` | | | | | '_ \ | |\ \ | | (_| | |_| | | | | | \_| \_/_| \__,_|\__, |_|_| |_| __/ | |___/ </> Welcome to the <info>Krayin</info> project! Krayin Community is an <comment>open-source CRM solution</comment> which is built on top of Laravel and Vue.js. Made with 💖 by the Krayin Team. Happy helping :)
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Helpers/EnvironmentManager.php
packages/Webkul/Installer/src/Helpers/EnvironmentManager.php
<?php namespace Webkul\Installer\Helpers; use Exception; class EnvironmentManager { /** * Create a helper instance. * * @return void */ public function __construct(protected DatabaseManager $databaseManager) {} /** * Generate ENV File and Installation. * * @param [object] $request */ public function generateEnv($request) { $envExamplePath = base_path('.env.example'); $envPath = base_path('.env'); if (! file_exists($envPath)) { if (file_exists($envExamplePath)) { copy($envExamplePath, $envPath); } else { touch($envPath); } } try { $response = $this->setEnvConfiguration($request->all()); $this->databaseManager->generateKey(); return $response; } catch (Exception $e) { return $e; } } /** * Set the ENV file configuration. * * @return string */ public function setEnvConfiguration(array $request) { $envDBParams = []; /** * Update params with form-data. */ if (isset($request['db_hostname'])) { $envDBParams['DB_HOST'] = $request['db_hostname']; $envDBParams['DB_DATABASE'] = $request['db_name']; $envDBParams['DB_PREFIX'] = $request['db_prefix'] ?? ''; $envDBParams['DB_USERNAME'] = $request['db_username']; $envDBParams['DB_PASSWORD'] = $request['db_password']; $envDBParams['DB_CONNECTION'] = $request['db_connection']; $envDBParams['DB_PORT'] = (int) $request['db_port']; } if (isset($request['app_name'])) { $envDBParams['APP_NAME'] = $request['app_name'] ?? null; $envDBParams['APP_URL'] = $request['app_url']; $envDBParams['APP_LOCALE'] = $request['app_locale']; $envDBParams['APP_TIMEZONE'] = $request['app_timezone']; $envDBParams['APP_CURRENCY'] = $request['app_currency']; } $data = file_get_contents(base_path('.env')); foreach ($envDBParams as $key => $value) { if (preg_match('/\s/', $value)) { $value = '"'.$value.'"'; } $data = preg_replace("/$key=(.*)/", "$key=$value", $data); } try { file_put_contents(base_path('.env'), $data); } catch (Exception $e) { return false; } return true; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Helpers/ServerRequirements.php
packages/Webkul/Installer/src/Helpers/ServerRequirements.php
<?php namespace Webkul\Installer\Helpers; class ServerRequirements { /** * Minimum PHP Version Supported (Override is in installer.php config file). * * @var string */ private $minPhpVersion = '8.1.0'; /** * Check for the server requirements. */ public function validate(): array { // Server Requirements $requirements = [ 'php' => [ 'calendar', 'ctype', 'curl', 'dom', 'fileinfo', 'filter', 'gd', 'hash', 'intl', 'json', 'mbstring', 'openssl', 'pcre', 'pdo', 'session', 'tokenizer', 'xml', ], ]; $results = []; foreach ($requirements as $type => $requirement) { foreach ($requirement as $item) { $results['requirements'][$type][$item] = true; if (! extension_loaded($item)) { $results['requirements'][$type][$item] = false; $results['errors'] = true; } } } return $results; } /** * Check PHP version requirement. * * @return array */ public function checkPHPversion(?string $minPhpVersion = null) { $minVersionPhp = $minPhpVersion ?? $this->minPhpVersion; $currentPhpVersion = $this->getPhpVersionInfo(); $supported = version_compare($currentPhpVersion['version'], $minVersionPhp) >= 0; return [ 'full' => $currentPhpVersion['full'], 'current' => $currentPhpVersion['version'], 'minimum' => $minVersionPhp, 'supported' => $supported, ]; } /** * Get current Php version information. * * @return array */ private static function getPhpVersionInfo() { $currentVersionFull = PHP_VERSION; preg_match("#^\d+(\.\d+)*#", $currentVersionFull, $filtered); return [ 'full' => $currentVersionFull, 'version' => $filtered[0] ?? $currentVersionFull, ]; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Helpers/DatabaseManager.php
packages/Webkul/Installer/src/Helpers/DatabaseManager.php
<?php namespace Webkul\Installer\Helpers; use Exception; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; use Webkul\Installer\Database\Seeders\DatabaseSeeder as KrayinDatabaseSeeder; class DatabaseManager { /** * Check Database Connection. */ public function isInstalled() { if (! file_exists(base_path('.env'))) { return false; } try { DB::connection()->getPDO(); $isConnected = (bool) DB::connection()->getDatabaseName(); if (! $isConnected) { return false; } $hasUserTable = Schema::hasTable('users'); if (! $hasUserTable) { return false; } $userCount = DB::table('users')->count(); if (! $userCount) { return false; } return true; } catch (Exception $e) { return false; } } /** * Drop all the tables and migrate in the database * * @return void|string */ public function migration() { try { Artisan::call('migrate:fresh'); return response()->json([ 'success' => true, 'message' => 'Tables is migrated successfully.', ]); } catch (Exception $e) { return response()->json([ 'error' => $e->getMessage(), ], 500); } } /** * Seed the database. * * @return void|string */ public function seeder($data) { try { app(KrayinDatabaseSeeder::class)->run([ 'default_locale' => $data['parameter']['default_locales'], 'default_currency' => $data['parameter']['default_currency'], ]); $this->storageLink(); } catch (Exception $e) { return $e->getMessage(); } } /** * Storage Link. */ private function storageLink() { Artisan::call('storage:link'); } /** * Generate New Application Key */ public function generateKey() { try { Artisan::call('key:generate'); } catch (Exception $e) { } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Http/Controllers/InstallerController.php
packages/Webkul/Installer/src/Http/Controllers/InstallerController.php
<?php namespace Webkul\Installer\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\File; use Webkul\Installer\Helpers\DatabaseManager; use Webkul\Installer\Helpers\EnvironmentManager; use Webkul\Installer\Helpers\ServerRequirements; class InstallerController extends Controller { /** * Const Variable For Min PHP Version * * @var string */ const MIN_PHP_VERSION = '8.1.0'; /** * Const Variable for Static Customer Id * * @var int */ const USER_ID = 1; /** * Create a new controller instance * * @return void */ public function __construct( protected ServerRequirements $serverRequirements, protected EnvironmentManager $environmentManager, protected DatabaseManager $databaseManager ) {} /** * Installer View Root Page */ public function index() { $phpVersion = $this->serverRequirements->checkPHPversion(self::MIN_PHP_VERSION); $requirements = $this->serverRequirements->validate(); if (request()->has('locale')) { return redirect()->route('installer.index'); } return view('installer::installer.index', compact('requirements', 'phpVersion')); } /** * ENV File Setup */ public function envFileSetup(Request $request): JsonResponse { $message = $this->environmentManager->generateEnv($request); return new JsonResponse(['data' => $message]); } /** * Run Migration */ public function runMigration(): mixed { return $this->databaseManager->migration(); } /** * Run Seeder. * * @return void|string */ public function runSeeder() { $allParameters = request()->allParameters; $parameter = [ 'parameter' => [ 'default_locales' => $allParameters['app_locale'] ?? null, 'default_currency' => $allParameters['app_currency'] ?? null, ], ]; $response = $this->environmentManager->setEnvConfiguration($allParameters); if ($response) { $seeder = $this->databaseManager->seeder($parameter); return $seeder; } } /** * Admin Configuration Setup. */ public function adminConfigSetup(): bool { $password = password_hash(request()->input('password'), PASSWORD_BCRYPT, ['cost' => 10]); try { DB::table('users')->updateOrInsert( [ 'id' => self::USER_ID, ], [ 'name' => request()->input('admin'), 'email' => request()->input('email'), 'password' => $password, 'role_id' => 1, 'status' => 1, ] ); $this->smtpConfigSetup(); return true; } catch (\Throwable $th) { report($th); return false; } } /** * SMTP connection setup for Mail */ private function smtpConfigSetup() { $filePath = storage_path('installed'); File::put($filePath, 'Your Krayin App is Successfully Installed'); Event::dispatch('krayin.installed'); return $filePath; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Http/Controllers/ImageCacheController.php
packages/Webkul/Installer/src/Http/Controllers/ImageCacheController.php
<?php namespace Webkul\Installer\Http\Controllers; use Illuminate\Http\Response as IlluminateResponse; use Illuminate\Support\Facades\Cache; class ImageCacheController { /** * Cache template * * @var string */ protected $template; /** * Logo * * @var string */ const KRAYIN_LOGO = 'https://updates.krayincrm.com/krayin.png'; /** * Get HTTP response of template applied image file * * @param string $filename * @return Illuminate\Http\Response */ public function getImage($filename) { try { $content = Cache::remember('krayin-logo', 10080, function () { return $this->getImageFromUrl(self::KRAYIN_LOGO); }); } catch (\Exception $e) { $content = ''; } return $this->buildResponse($content); } /** * Init from given URL * * @param string $url * @return \Intervention\Image\Image */ public function getImageFromUrl($url) { $domain = config('app.url'); $options = [ 'http' => [ 'method' => 'GET', 'protocol_version' => 1.1, // force use HTTP 1.1 for service mesh environment with envoy 'header' => "Accept-language: en\r\n". "Domain: $domain\r\n". "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36\r\n", ], ]; $context = stream_context_create($options); if ($data = @file_get_contents($url, false, $context)) { return $data; } throw new \Exception( 'Unable to init from given url ('.$url.').' ); } /** * Builds HTTP response from given image data * * @param string $content * @return Illuminate\Http\Response */ protected function buildResponse($content) { /** * Define mime type */ $mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), $content); /** * Respond with 304 not modified if browser has the image cached */ $eTag = md5($content); $notModified = isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] == $eTag; $content = $notModified ? null : $content; $statusCode = $notModified ? 304 : 200; /** * Return http response */ return new IlluminateResponse($content, $statusCode, [ 'Content-Type' => $mime, 'Cache-Control' => 'max-age=10080, public', 'Content-Length' => strlen($content), 'Etag' => $eTag, ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Http/Controllers/Controller.php
packages/Webkul/Installer/src/Http/Controllers/Controller.php
<?php namespace Webkul\Installer\Http\Controllers; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use DispatchesJobs, ValidatesRequests; }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Http/Middleware/CanInstall.php
packages/Webkul/Installer/src/Http/Middleware/CanInstall.php
<?php namespace Webkul\Installer\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Event; use Illuminate\Support\Str; use Webkul\Installer\Helpers\DatabaseManager; class CanInstall { /** * Handles Requests if application is already installed then redirect to dashboard else to installer. */ public function handle(Request $request, Closure $next): mixed { if (Str::contains($request->getPathInfo(), '/install')) { if ($this->isAlreadyInstalled() && ! $request->ajax()) { return redirect()->route('admin.dashboard.index'); } } else { if (! $this->isAlreadyInstalled()) { return redirect()->route('installer.index'); } } return $next($request); } /** * Check if application is already installed. */ public function isAlreadyInstalled(): bool { if (file_exists(storage_path('installed'))) { return true; } if (app(DatabaseManager::class)->isInstalled()) { touch(storage_path('installed')); Event::dispatch('krayin.installed'); return true; } return false; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Http/Middleware/Locale.php
packages/Webkul/Installer/src/Http/Middleware/Locale.php
<?php namespace Webkul\Installer\Http\Middleware; use Closure; class Locale { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @return mixed */ public function handle($request, Closure $next) { if ($localeCode = $request->query('locale')) { app()->setLocale($localeCode); session()->put('installer_locale', $localeCode); } else { app()->setLocale(session()->get('installer_locale') ?? config('app.locale')); } return $next($request); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Listeners/Installer.php
packages/Webkul/Installer/src/Listeners/Installer.php
<?php namespace Webkul\Installer\Listeners; use GuzzleHttp\Client; use Webkul\User\Repositories\UserRepository; class Installer { /** * Api endpoint * * @var string */ protected const API_ENDPOINT = 'https://updates.krayincrm.com/api/updates'; /** * Create a new listener instance. * * @return void */ public function __construct(protected UserRepository $userRepository) {} /** * After Krayin is successfully installed * * @return void */ public function installed() { $user = $this->userRepository->first(); $httpClient = new Client; try { $httpClient->request('POST', self::API_ENDPOINT, [ 'headers' => [ 'Accept' => 'application/json', ], 'json' => [ 'domain' => config('app.url'), 'email' => $user?->email, 'name' => $user?->name, 'country_code' => config('app.default_country') ?? 'IN', ], ]); } catch (\Exception $e) { /** * Skip the error */ } } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Migrations/2024_08_21_153011_add_leads_stage_and_pipeline_attributes.php
packages/Webkul/Installer/src/Database/Migrations/2024_08_21_153011_add_leads_stage_and_pipeline_attributes.php
<?php use Carbon\Carbon; use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. */ public function up(): void { $now = Carbon::now(); DB::table('attributes') ->insert([ [ 'code' => 'lead_pipeline_id', 'name' => trans('installer::app.seeders.attributes.leads.pipeline'), 'type' => 'lookup', 'entity_type' => 'leads', 'lookup_type' => 'lead_pipelines', 'validation' => null, 'sort_order' => '9', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'lead_pipeline_stage_id', 'name' => trans('installer::app.seeders.attributes.leads.stage'), 'type' => 'lookup', 'entity_type' => 'leads', 'lookup_type' => 'lead_pipeline_stages', 'validation' => null, 'sort_order' => '10', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], ]); } /** * Reverse the migrations. */ public function down(): void { // } };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Migrations/2024_07_31_093605_add_person_sales_owner_attribute_in_attributes_table.php
packages/Webkul/Installer/src/Database/Migrations/2024_07_31_093605_add_person_sales_owner_attribute_in_attributes_table.php
<?php use Carbon\Carbon; use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. */ public function up(): void { $now = Carbon::now(); DB::table('attributes') ->insert([ [ 'code' => 'user_id', 'name' => trans('installer::app.seeders.attributes.persons.sales-owner'), 'type' => 'lookup', 'entity_type' => 'persons', 'lookup_type' => 'users', 'validation' => null, 'sort_order' => '5', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], ]); } /** * Reverse the migrations. */ public function down(): void {} };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Migrations/2024_07_31_093603_add_organization_sales_owner_attribute_in_attributes_table.php
packages/Webkul/Installer/src/Database/Migrations/2024_07_31_093603_add_organization_sales_owner_attribute_in_attributes_table.php
<?php use Carbon\Carbon; use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. */ public function up(): void { $now = Carbon::now(); DB::table('attributes') ->insert([ [ 'code' => 'user_id', 'name' => trans('installer::app.seeders.attributes.organizations.sales-owner'), 'type' => 'lookup', 'entity_type' => 'organizations', 'lookup_type' => 'users', 'validation' => null, 'sort_order' => '5', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], ]); } /** * Reverse the migrations. */ public function down(): void {} };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Migrations/2024_06_24_174241_insert_warehouse_attributes_in_attributes_table.php
packages/Webkul/Installer/src/Database/Migrations/2024_06_24_174241_insert_warehouse_attributes_in_attributes_table.php
<?php use Carbon\Carbon; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { $now = Carbon::now(); DB::table('attributes') ->insert([ [ 'code' => 'name', 'name' => trans('installer::app.seeders.attributes.warehouses.name'), 'type' => 'text', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '1', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'description', 'name' => trans('installer::app.seeders.attributes.warehouses.description'), 'type' => 'textarea', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '2', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_name', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-name'), 'type' => 'text', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '3', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_emails', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-emails'), 'type' => 'email', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '4', 'is_required' => '1', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_numbers', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-numbers'), 'type' => 'phone', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => 'numeric', 'sort_order' => '5', 'is_required' => '0', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_address', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-address'), 'type' => 'address', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '6', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], ]); } /** * Reverse the migrations. */ public function down(): void { Schema::table('attributes', function (Blueprint $table) { // }); } };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Migrations/2024_07_31_093605_add_person_job_title_attribute_in_attributes_table.php
packages/Webkul/Installer/src/Database/Migrations/2024_07_31_093605_add_person_job_title_attribute_in_attributes_table.php
<?php use Carbon\Carbon; use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. */ public function up(): void { $now = Carbon::now(); DB::table('attributes') ->insert([ [ 'code' => 'job_title', 'name' => trans('installer::app.seeders.attributes.persons.job-title'), 'type' => 'text', 'entity_type' => 'persons', 'lookup_type' => null, 'validation' => null, 'sort_order' => '4', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], ]); } /** * Reverse the migrations. */ public function down(): void {} };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/DatabaseSeeder.php
packages/Webkul/Installer/src/Database/Seeders/DatabaseSeeder.php
<?php namespace Webkul\Installer\Database\Seeders; use Illuminate\Database\Seeder; use Webkul\Installer\Database\Seeders\Attribute\DatabaseSeeder as AttributeSeeder; use Webkul\Installer\Database\Seeders\Core\DatabaseSeeder as CoreSeeder; use Webkul\Installer\Database\Seeders\EmailTemplate\DatabaseSeeder as EmailTemplateSeeder; use Webkul\Installer\Database\Seeders\Lead\DatabaseSeeder as LeadSeeder; use Webkul\Installer\Database\Seeders\User\DatabaseSeeder as UserSeeder; use Webkul\Installer\Database\Seeders\Workflow\DatabaseSeeder as WorkflowSeeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { $this->call(AttributeSeeder::class, false, ['parameters' => $parameters]); $this->call(CoreSeeder::class, false, ['parameters' => $parameters]); $this->call(EmailTemplateSeeder::class, false, ['parameters' => $parameters]); $this->call(LeadSeeder::class, false, ['parameters' => $parameters]); $this->call(UserSeeder::class, false, ['parameters' => $parameters]); $this->call(WorkflowSeeder::class, false, ['parameters' => $parameters]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Lead/PipelineSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Lead/PipelineSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Lead; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class PipelineSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('lead_pipelines')->delete(); DB::table('lead_pipeline_stages')->delete(); $now = Carbon::now(); $defaultLocale = $parameters['locale'] ?? config('app.locale'); DB::table('lead_pipelines')->insert([ [ 'id' => 1, 'name' => trans('installer::app.seeders.lead.pipeline.default', [], $defaultLocale), 'is_default' => 1, 'created_at' => $now, 'updated_at' => $now, ], ]); DB::table('lead_pipeline_stages')->insert($data = [ [ 'id' => 1, 'code' => 'new', 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.new', [], $defaultLocale), 'probability' => 100, 'sort_order' => 1, 'lead_pipeline_id' => 1, ], [ 'id' => 2, 'code' => 'follow-up', 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.follow-up', [], $defaultLocale), 'probability' => 100, 'sort_order' => 2, 'lead_pipeline_id' => 1, ], [ 'id' => 3, 'code' => 'prospect', 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.prospect', [], $defaultLocale), 'probability' => 100, 'sort_order' => 3, 'lead_pipeline_id' => 1, ], [ 'id' => 4, 'code' => 'negotiation', 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.negotiation', [], $defaultLocale), 'probability' => 100, 'sort_order' => 4, 'lead_pipeline_id' => 1, ], [ 'id' => 5, 'code' => 'won', 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.won', [], $defaultLocale), 'probability' => 100, 'sort_order' => 5, 'lead_pipeline_id' => 1, ], [ 'id' => 6, 'code' => 'lost', 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.lost', [], $defaultLocale), 'probability' => 0, 'sort_order' => 6, 'lead_pipeline_id' => 1, ], ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Lead/SourceSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Lead/SourceSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Lead; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class SourceSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('lead_sources')->delete(); $now = Carbon::now(); $defaultLocale = $parameters['locale'] ?? config('app.locale'); DB::table('lead_sources')->insert([ [ 'id' => 1, 'name' => trans('installer::app.seeders.lead.source.email', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 2, 'name' => trans('installer::app.seeders.lead.source.web', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 3, 'name' => trans('installer::app.seeders.lead.source.web-form', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 4, 'name' => trans('installer::app.seeders.lead.source.phone', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 5, 'name' => trans('installer::app.seeders.lead.source.direct', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Lead/DatabaseSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Lead/DatabaseSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Lead; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { $this->call(PipelineSeeder::class, false, ['parameters' => $parameters]); $this->call(TypeSeeder::class, false, ['parameters' => $parameters]); $this->call(SourceSeeder::class, false, ['parameters' => $parameters]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Lead/TypeSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Lead/TypeSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Lead; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class TypeSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('lead_types')->delete(); $now = Carbon::now(); $defaultLocale = $parameters['locale'] ?? config('app.locale'); DB::table('lead_types')->insert([ [ 'id' => 1, 'name' => trans('installer::app.seeders.lead.type.new-business', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 2, 'name' => trans('installer::app.seeders.lead.type.existing-business', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/User/UserSeeder.php
packages/Webkul/Installer/src/Database/Seeders/User/UserSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; class UserSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('users')->delete(); DB::table('users')->insert([ 'id' => 1, 'name' => 'Example Admin', 'email' => 'admin@example.com', 'password' => bcrypt('admin123'), // 'api_token' => Str::random(80), 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s'), 'status' => 1, 'role_id' => 1, 'view_permission' => 'global', ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/User/RoleSeeder.php
packages/Webkul/Installer/src/Database/Seeders/User/RoleSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class RoleSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('users')->delete(); DB::table('roles')->delete(); $defaultLocale = $parameters['locale'] ?? config('app.locale'); DB::table('roles')->insert([ 'id' => 1, 'name' => trans('installer::app.seeders.user.role.administrator', [], $defaultLocale), 'description' => trans('installer::app.seeders.user.role.administrator-role', [], $defaultLocale), 'permission_type' => 'all', ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/User/DatabaseSeeder.php
packages/Webkul/Installer/src/Database/Seeders/User/DatabaseSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\User; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { $this->call(RoleSeeder::class, false, ['parameters' => $parameters]); $this->call(UserSeeder::class, false, ['parameters' => $parameters]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/DatabaseSeeder.php
packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/DatabaseSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\EmailTemplate; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { $this->call(EmailTemplateSeeder::class, false, ['parameters' => $parameters]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/EmailTemplateSeeder.php
packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/EmailTemplateSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\EmailTemplate; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class EmailTemplateSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('email_templates')->delete(); $now = Carbon::now(); $defaultLocale = $parameters['locale'] ?? config('app.locale'); DB::table('email_templates')->insert([ [ 'id' => 1, 'name' => trans('installer::app.seeders.email.activity-created', [], $defaultLocale), 'subject' => trans('installer::app.seeders.email.activity-created', [], $defaultLocale).': {%activities.title%}', 'created_at' => $now, 'updated_at' => $now, 'content' => '<p style="font-size: 16px; color: #5e5e5e;">'.trans('installer::app.seeders.email.new-activity', [], $defaultLocale).':</p> <p><strong style="font-size: 16px;">Details</strong></p> <table style="height: 97px; width: 952px;"> <tbody> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px;">'.trans('installer::app.seeders.email.title', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.title%}</td> </tr> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px;">'.trans('installer::app.seeders.email.type', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.type%}</td> </tr> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px;">'.trans('installer::app.seeders.email.date', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.schedule_from%} to&nbsp;{%activities.schedule_to%}</td> </tr> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px; vertical-align: text-top;">'.trans('installer::app.seeders.email.participants', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.participants%}</td> </tr> </tbody> </table>', ], [ 'id' => 2, 'name' => trans('installer::app.seeders.email.activity-modified', [], $defaultLocale), 'subject' => trans('installer::app.seeders.email.activity-modified', [], $defaultLocale).': {%activities.title%}', 'created_at' => $now, 'updated_at' => $now, 'content' => '<p style="font-size: 16px; color: #5e5e5e;">'.trans('installer::app.seeders.email.new-activity-modified', [], $defaultLocale).':</p> <p><strong style="font-size: 16px;">Details</strong></p> <table style="height: 97px; width: 952px;"> <tbody> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px;">'.trans('installer::app.seeders.email.title', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.title%}</td> </tr> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px;">'.trans('installer::app.seeders.email.type', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.type%}</td> </tr> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px;">'.trans('installer::app.seeders.email.date', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.schedule_from%} to&nbsp;{%activities.schedule_to%}</td> </tr> <tr> <td style="width: 116.953px; color: #546e7a; font-size: 16px; vertical-align: text-top;">'.trans('installer::app.seeders.email.participants', [], $defaultLocale).'</td> <td style="width: 770.047px; font-size: 16px;">{%activities.participants%}</td> </tr> </tbody> </table>', ], ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Attribute/DatabaseSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Attribute/DatabaseSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Attribute; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { $this->call(AttributeSeeder::class, false, ['parameters' => $parameters]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Attribute/AttributeSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Attribute/AttributeSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Attribute; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class AttributeSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('attributes')->delete(); $now = Carbon::now(); $defaultLocale = $parameters['locale'] ?? config('app.locale'); DB::table('attributes')->insert([ /** * Leads Attributes */ [ 'code' => 'title', 'name' => trans('installer::app.seeders.attributes.leads.title', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'leads', 'lookup_type' => null, 'validation' => null, 'sort_order' => '1', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'description', 'name' => trans('installer::app.seeders.attributes.leads.description', [], $defaultLocale), 'type' => 'textarea', 'entity_type' => 'leads', 'lookup_type' => null, 'validation' => null, 'sort_order' => '2', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'lead_value', 'name' => trans('installer::app.seeders.attributes.leads.lead-value', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'leads', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '3', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'lead_source_id', 'name' => trans('installer::app.seeders.attributes.leads.source', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'leads', 'lookup_type' => 'lead_sources', 'validation' => null, 'sort_order' => '4', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'lead_type_id', 'name' => trans('installer::app.seeders.attributes.leads.type', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'leads', 'lookup_type' => 'lead_types', 'validation' => null, 'sort_order' => '5', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'user_id', 'name' => trans('installer::app.seeders.attributes.leads.sales-owner', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'leads', 'lookup_type' => 'users', 'validation' => null, 'sort_order' => '7', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'expected_close_date', 'name' => trans('installer::app.seeders.attributes.leads.expected-close-date', [], $defaultLocale), 'type' => 'date', 'entity_type' => 'leads', 'lookup_type' => null, 'validation' => null, 'sort_order' => '8', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'lead_pipeline_id', 'name' => trans('installer::app.seeders.attributes.leads.pipeline', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'leads', 'lookup_type' => 'lead_pipelines', 'validation' => null, 'sort_order' => '9', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'lead_pipeline_stage_id', 'name' => trans('installer::app.seeders.attributes.leads.stage', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'leads', 'lookup_type' => 'lead_pipeline_stages', 'validation' => null, 'sort_order' => '10', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], /** * Persons Attributes */ [ 'code' => 'name', 'name' => trans('installer::app.seeders.attributes.persons.name', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'persons', 'lookup_type' => null, 'validation' => null, 'sort_order' => '1', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'emails', 'name' => trans('installer::app.seeders.attributes.persons.emails', [], $defaultLocale), 'type' => 'email', 'entity_type' => 'persons', 'lookup_type' => null, 'validation' => null, 'sort_order' => '2', 'is_required' => '1', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_numbers', 'name' => trans('installer::app.seeders.attributes.persons.contact-numbers', [], $defaultLocale), 'type' => 'phone', 'entity_type' => 'persons', 'lookup_type' => null, 'validation' => 'numeric', 'sort_order' => '3', 'is_required' => '0', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'job_title', 'name' => trans('installer::app.seeders.attributes.persons.job-title', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'persons', 'lookup_type' => null, 'validation' => null, 'sort_order' => '4', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'user_id', 'name' => trans('installer::app.seeders.attributes.persons.sales-owner', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'persons', 'lookup_type' => 'users', 'validation' => null, 'sort_order' => '5', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'organization_id', 'name' => trans('installer::app.seeders.attributes.persons.organization', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'persons', 'lookup_type' => 'organizations', 'validation' => null, 'sort_order' => '6', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], /** * Organizations Attributes */ [ 'code' => 'name', 'name' => trans('installer::app.seeders.attributes.organizations.name', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'organizations', 'lookup_type' => null, 'validation' => null, 'sort_order' => '1', 'is_required' => '1', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'address', 'name' => trans('installer::app.seeders.attributes.organizations.address', [], $defaultLocale), 'type' => 'address', 'entity_type' => 'organizations', 'lookup_type' => null, 'validation' => null, 'sort_order' => '2', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'user_id', 'name' => trans('installer::app.seeders.attributes.organizations.sales-owner', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'organizations', 'lookup_type' => 'users', 'validation' => null, 'sort_order' => '3', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], /** * Products Attributes */ [ 'code' => 'name', 'name' => trans('installer::app.seeders.attributes.products.name', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'products', 'lookup_type' => null, 'validation' => null, 'sort_order' => '1', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'description', 'name' => trans('installer::app.seeders.attributes.products.description', [], $defaultLocale), 'type' => 'textarea', 'entity_type' => 'products', 'lookup_type' => null, 'validation' => null, 'sort_order' => '2', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'sku', 'name' => trans('installer::app.seeders.attributes.products.sku', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'products', 'lookup_type' => null, 'validation' => null, 'sort_order' => '3', 'is_required' => '1', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'quantity', 'name' => trans('installer::app.seeders.attributes.products.quantity', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'products', 'lookup_type' => null, 'validation' => 'numeric', 'sort_order' => '4', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'price', 'name' => trans('installer::app.seeders.attributes.products.price', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'products', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '5', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], /** * Quotes Attributes */ [ 'code' => 'user_id', 'name' => trans('installer::app.seeders.attributes.quotes.sales-owner', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'quotes', 'lookup_type' => 'users', 'validation' => null, 'sort_order' => '1', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'subject', 'name' => trans('installer::app.seeders.attributes.quotes.subject', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => null, 'sort_order' => '2', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'description', 'name' => trans('installer::app.seeders.attributes.quotes.description', [], $defaultLocale), 'type' => 'textarea', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => null, 'sort_order' => '3', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'billing_address', 'name' => trans('installer::app.seeders.attributes.quotes.billing-address', [], $defaultLocale), 'type' => 'address', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => null, 'sort_order' => '4', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'shipping_address', 'name' => trans('installer::app.seeders.attributes.quotes.shipping-address', [], $defaultLocale), 'type' => 'address', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => null, 'sort_order' => '5', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'discount_percent', 'name' => trans('installer::app.seeders.attributes.quotes.discount-percent', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '6', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'discount_amount', 'name' => trans('installer::app.seeders.attributes.quotes.discount-amount', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '7', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'tax_amount', 'name' => trans('installer::app.seeders.attributes.quotes.tax-amount', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '8', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'adjustment_amount', 'name' => trans('installer::app.seeders.attributes.quotes.adjustment-amount', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '9', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'sub_total', 'name' => trans('installer::app.seeders.attributes.quotes.sub-total', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '10', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'grand_total', 'name' => trans('installer::app.seeders.attributes.quotes.grand-total', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => 'decimal', 'sort_order' => '11', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'expired_at', 'name' => trans('installer::app.seeders.attributes.quotes.expired-at', [], $defaultLocale), 'type' => 'date', 'entity_type' => 'quotes', 'lookup_type' => null, 'validation' => null, 'sort_order' => '12', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'person_id', 'name' => trans('installer::app.seeders.attributes.quotes.person', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'quotes', 'lookup_type' => 'persons', 'validation' => null, 'sort_order' => '13', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], /** * Warehouses Attributes */ [ 'code' => 'name', 'name' => trans('installer::app.seeders.attributes.warehouses.name'), 'type' => 'text', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '1', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'description', 'name' => trans('installer::app.seeders.attributes.warehouses.description'), 'type' => 'textarea', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '2', 'is_required' => '0', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_name', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-name'), 'type' => 'text', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '3', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_emails', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-emails'), 'type' => 'email', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '4', 'is_required' => '1', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_numbers', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-numbers'), 'type' => 'phone', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => 'numeric', 'sort_order' => '5', 'is_required' => '0', 'is_unique' => '1', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], [ 'code' => 'contact_address', 'name' => trans('installer::app.seeders.attributes.warehouses.contact-address'), 'type' => 'address', 'entity_type' => 'warehouses', 'lookup_type' => null, 'validation' => null, 'sort_order' => '6', 'is_required' => '1', 'is_unique' => '0', 'quick_add' => '1', 'is_user_defined' => '0', 'created_at' => $now, 'updated_at' => $now, ], ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Core/StatesSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Core/StatesSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Core; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class StatesSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('country_states')->delete(); $states = json_decode(file_get_contents(__DIR__.'/../../../Data/states.json'), true); DB::table('country_states')->insert($states); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Core/DatabaseSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Core/DatabaseSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Core; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { $this->call(CountriesSeeder::class, false, ['parameters' => $parameters]); $this->call(StatesSeeder::class, false, ['parameters' => $parameters]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Core/CountriesSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Core/CountriesSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Core; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class CountriesSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('countries')->delete(); $countries = json_decode(file_get_contents(__DIR__.'/../../../Data/countries.json'), true); DB::table('countries')->insert($countries); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Workflow/WorkflowSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Workflow/WorkflowSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Workflow; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class WorkflowSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { DB::table('workflows')->delete(); $now = Carbon::now(); $defaultLocale = $parameters['locale'] ?? config('app.locale'); DB::table('workflows')->insert([ [ 'id' => 1, 'name' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-creation', [], $defaultLocale), 'description' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-creation', [], $defaultLocale), 'entity_type' => 'activities', 'event' => 'activity.create.after', 'condition_type' => 'and', 'conditions' => '[{"value": ["call", "meeting", "lunch"], "operator": "{}", "attribute": "type", "attribute_type": "multiselect"}]', 'actions' => '[{"id": "send_email_to_participants", "value": "1"}]', 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 2, 'name' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-updation', [], $defaultLocale), 'description' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-updation', [], $defaultLocale), 'entity_type' => 'activities', 'event' => 'activity.update.after', 'condition_type' => 'and', 'conditions' => '[{"value": ["call", "meeting", "lunch"], "operator": "{}", "attribute": "type", "attribute_type": "multiselect"}]', 'actions' => '[{"id": "send_email_to_participants", "value": "2"}]', 'created_at' => $now, 'updated_at' => $now, ], ]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Database/Seeders/Workflow/DatabaseSeeder.php
packages/Webkul/Installer/src/Database/Seeders/Workflow/DatabaseSeeder.php
<?php namespace Webkul\Installer\Database\Seeders\Workflow; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @param array $parameters * @return void */ public function run($parameters = []) { $this->call(WorkflowSeeder::class, false, ['parameters' => $parameters]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Console/Commands/Installer.php
packages/Webkul/Installer/src/Console/Commands/Installer.php
<?php namespace Webkul\Installer\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\File; use Webkul\Core\Providers\CoreServiceProvider; use Webkul\Installer\Database\Seeders\DatabaseSeeder as KrayinDatabaseSeeder; use Webkul\Installer\Events\ComposerEvents; use function Laravel\Prompts\password; use function Laravel\Prompts\select; use function Laravel\Prompts\text; class Installer extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'krayin-crm:install { --skip-env-check : Skip env check. } { --skip-admin-creation : Skip admin creation. }'; /** * The console command description. * * @var string */ protected $description = 'krayin installer.'; /** * Locales list. * * @var array */ protected $locales = [ 'ar' => 'Arabic', 'en' => 'English', 'tr' => 'Turkish', 'es' => 'Spanish', 'fa' => 'Persian', 'pt_BR' => 'Portuguese', ]; /** * Currencies list. * * @var array */ protected $currencies = [ 'AED' => 'United Arab Emirates Dirham', 'ARS' => 'Argentine Peso', 'AUD' => 'Australian Dollar', 'BDT' => 'Bangladeshi Taka', 'BRL' => 'Brazilian Real', 'CAD' => 'Canadian Dollar', 'CHF' => 'Swiss Franc', 'CLP' => 'Chilean Peso', 'CNY' => 'Chinese Yuan', 'COP' => 'Colombian Peso', 'CZK' => 'Czech Koruna', 'DKK' => 'Danish Krone', 'DZD' => 'Algerian Dinar', 'EGP' => 'Egyptian Pound', 'EUR' => 'Euro', 'FJD' => 'Fijian Dollar', 'GBP' => 'British Pound Sterling', 'HKD' => 'Hong Kong Dollar', 'HUF' => 'Hungarian Forint', 'IDR' => 'Indonesian Rupiah', 'ILS' => 'Israeli New Shekel', 'INR' => 'Indian Rupee', 'JOD' => 'Jordanian Dinar', 'JPY' => 'Japanese Yen', 'KRW' => 'South Korean Won', 'KWD' => 'Kuwaiti Dinar', 'KZT' => 'Kazakhstani Tenge', 'LBP' => 'Lebanese Pound', 'LKR' => 'Sri Lankan Rupee', 'LYD' => 'Libyan Dinar', 'MAD' => 'Moroccan Dirham', 'MUR' => 'Mauritian Rupee', 'MXN' => 'Mexican Peso', 'MYR' => 'Malaysian Ringgit', 'NGN' => 'Nigerian Naira', 'NOK' => 'Norwegian Krone', 'NPR' => 'Nepalese Rupee', 'NZD' => 'New Zealand Dollar', 'OMR' => 'Omani Rial', 'PAB' => 'Panamanian Balboa', 'PEN' => 'Peruvian Nuevo Sol', 'PHP' => 'Philippine Peso', 'PKR' => 'Pakistani Rupee', 'PLN' => 'Polish Zloty', 'PYG' => 'Paraguayan Guarani', 'QAR' => 'Qatari Rial', 'RON' => 'Romanian Leu', 'RUB' => 'Russian Ruble', 'SAR' => 'Saudi Riyal', 'SEK' => 'Swedish Krona', 'SGD' => 'Singapore Dollar', 'THB' => 'Thai Baht', 'TND' => 'Tunisian Dinar', 'TRY' => 'Turkish Lira', 'TWD' => 'New Taiwan Dollar', 'UAH' => 'Ukrainian Hryvnia', 'USD' => 'United States Dollar', 'UZS' => 'Uzbekistani Som', 'VEF' => 'Venezuelan Bolívar', 'VND' => 'Vietnamese Dong', 'XAF' => 'CFA Franc BEAC', 'XOF' => 'CFA Franc BCEAO', 'ZAR' => 'South African Rand', 'ZMW' => 'Zambian Kwacha', ]; /** * Install and configure krayin. */ public function handle() { $applicationDetails = ! $this->option('skip-env-check') ? $this->checkForEnvFile() : []; $this->loadEnvConfigAtRuntime(); $this->warn('Step: Generating key...'); $this->call('key:generate'); $this->warn('Step: Migrating all tables...'); $this->call('migrate:fresh'); $this->warn('Step: Seeding basic data for Krayin kickstart...'); $this->info(app(KrayinDatabaseSeeder::class)->run([ 'locale' => $applicationDetails['locale'] ?? 'en', 'currency' => $applicationDetails['currency'] ?? 'USD', ])); $this->warn('Step: Publishing assets and configurations...'); $result = $this->call('vendor:publish', ['--provider' => CoreServiceProvider::class, '--force' => true]); $this->info($result); $this->warn('Step: Linking storage directory...'); $this->call('storage:link'); $this->warn('Step: Clearing cached bootstrap files...'); $this->call('optimize:clear'); if (! $this->option('skip-admin-creation')) { $this->warn('Step: Create admin credentials...'); $this->createAdminCredentials(); } ComposerEvents::postCreateProject(); } /** * Checking .env file and if not found then create .env file * * @return ?array */ protected function checkForEnvFile() { if (! file_exists(base_path('.env'))) { $this->info('Creating the environment configuration file.'); File::copy('.env.example', '.env'); } else { $this->info('Great! your environment configuration file already exists.'); } return $this->createEnvFile(); } /** * Create a new .env file. Afterwards, request environment configuration details and set them * in the .env file to facilitate the migration to our database. * * @return ?array */ protected function createEnvFile() { try { $applicationDetails = $this->askForApplicationDetails(); $this->askForDatabaseDetails(); return $applicationDetails; } catch (\Exception $e) { $this->error('Error in creating .env file, please create it manually and then run `php artisan migrate` again.'); } } /** * Ask for application details. * * @return void */ protected function askForApplicationDetails() { $this->updateEnvVariable( 'APP_NAME', 'Please enter the application name', env('APP_NAME', 'Krayin CRM') ); $this->updateEnvVariable( 'APP_URL', 'Please enter the application URL', env('APP_URL', 'http://localhost:8000') ); $this->envUpdate( 'APP_TIMEZONE', date_default_timezone_get() ); $this->info('Your Default Timezone is '.date_default_timezone_get()); $locale = $this->updateEnvChoice( 'APP_LOCALE', 'Please select the default application locale', $this->locales ); $currency = $this->updateEnvChoice( 'APP_CURRENCY', 'Please select the default currency', $this->currencies ); return [ 'locale' => $locale, 'currency' => $currency, ]; } /** * Add the database credentials to the .env file. */ protected function askForDatabaseDetails() { $databaseDetails = [ 'DB_CONNECTION' => select( 'Please select the database connection', ['mysql', 'pgsql', 'sqlsrv'] ), 'DB_HOST' => text( label: 'Please enter the database host', default: env('DB_HOST', '127.0.0.1'), required: true ), 'DB_PORT' => text( label: 'Please enter the database port', default: env('DB_PORT', '3306'), required: true ), 'DB_DATABASE' => text( label: 'Please enter the database name', default: env('DB_DATABASE', ''), required: true ), 'DB_PREFIX' => text( label: 'Please enter the database prefix', default: env('DB_PREFIX', ''), hint: 'or press enter to continue', validate: function ($value) { $input = strlen($value); if ($input && ($input < 1 || $input > 6) ) { return 'The database prefix must be between 1 and 6 characters.'; } if (preg_match('/[^a-zA-Z0-9_]/', $value)) { return 'The database prefix may only contain letters, numbers, and underscores.'; } return null; } ), 'DB_USERNAME' => text( label: 'Please enter your database username', default: env('DB_USERNAME', ''), required: true ), 'DB_PASSWORD' => password( label: 'Please enter your database password', required: true ), ]; if ( ! $databaseDetails['DB_DATABASE'] || ! $databaseDetails['DB_USERNAME'] || ! $databaseDetails['DB_PASSWORD'] ) { return $this->error('Please enter the database credentials.'); } foreach ($databaseDetails as $key => $value) { if ($value) { $this->envUpdate($key, $value); } } } /** * Create a admin credentials. * * @return mixed */ protected function createAdminCredentials() { $adminName = text( label: 'Enter the name of the admin user', default: 'Example', required: true ); $adminEmail = text( label: 'Enter the email address of the admin user', default: 'admin@example.com', validate: fn (string $value) => match (true) { ! filter_var($value, FILTER_VALIDATE_EMAIL) => 'The email address you entered is not valid please try again.', default => null } ); $adminPassword = text( label: 'Configure the password for the admin user', default: 'admin123', required: true ); $password = password_hash($adminPassword, PASSWORD_BCRYPT, ['cost' => 10]); try { DB::table('users')->updateOrInsert( ['id' => 1], [ 'name' => $adminName, 'email' => $adminEmail, 'password' => $password, 'role_id' => 1, 'status' => 1, ] ); $filePath = storage_path('installed'); File::put($filePath, 'Krayin is successfully installed'); $this->info('-----------------------------'); $this->info('Congratulations!'); $this->info('The installation has been finished and you can now use Krayin.'); $this->info('Go to '.env('APP_URL').'/admin/dashboard'.' and authenticate with:'); $this->info('Email: '.$adminEmail); $this->info('Password: '.$adminPassword); $this->info('Cheers!'); Event::dispatch('krayin.installed'); } catch (\Exception $e) { return $this->error($e->getMessage()); } } /** * Loaded Env variables for config files. */ protected function loadEnvConfigAtRuntime(): void { $this->warn('Loading configs...'); /** * Setting application environment. */ app()['env'] = $this->getEnvAtRuntime('APP_ENV'); /** * Setting application configuration. */ config([ 'app.env' => $this->getEnvAtRuntime('APP_ENV'), 'app.name' => $this->getEnvAtRuntime('APP_NAME'), 'app.url' => $this->getEnvAtRuntime('APP_URL'), 'app.timezone' => $this->getEnvAtRuntime('APP_TIMEZONE'), 'app.locale' => $this->getEnvAtRuntime('APP_LOCALE'), 'app.currency' => $this->getEnvAtRuntime('APP_CURRENCY'), ]); /** * Setting database configurations. */ $databaseConnection = $this->getEnvAtRuntime('DB_CONNECTION'); config([ "database.connections.{$databaseConnection}.host" => $this->getEnvAtRuntime('DB_HOST'), "database.connections.{$databaseConnection}.port" => $this->getEnvAtRuntime('DB_PORT'), "database.connections.{$databaseConnection}.database" => $this->getEnvAtRuntime('DB_DATABASE'), "database.connections.{$databaseConnection}.username" => $this->getEnvAtRuntime('DB_USERNAME'), "database.connections.{$databaseConnection}.password" => $this->getEnvAtRuntime('DB_PASSWORD'), "database.connections.{$databaseConnection}.prefix" => $this->getEnvAtRuntime('DB_PREFIX'), ]); DB::purge($databaseConnection); $this->info('Configuration loaded...'); } /** * Method for asking the details of .env files */ protected function updateEnvVariable(string $key, string $question, string $defaultValue): void { $input = text( label: $question, default: $defaultValue, required: true ); $this->envUpdate($key, $input ?: $defaultValue); } /** * Method for asking choice based on the list of options. * * @return string */ protected function updateEnvChoice(string $key, string $question, array $choices) { $choice = select( label: $question, options: $choices, default: env($key) ); $this->envUpdate($key, $choice); return $choice; } /** * Update the .env values. */ protected function envUpdate(string $key, string $value): void { $data = file_get_contents(base_path('.env')); // Check if $value contains spaces, and if so, add double quotes if (preg_match('/\s/', $value)) { $value = '"'.$value.'"'; } $data = preg_replace("/$key=(.*)/", "$key=$value", $data); file_put_contents(base_path('.env'), $data); } /** * Check key in `.env` file because it will help to find values at runtime. */ protected static function getEnvAtRuntime(string $key): string|bool { if ($data = file(base_path('.env'))) { foreach ($data as $line) { $line = preg_replace('/\s+/', '', $line); $rowValues = explode('=', $line); if (strlen($line) !== 0) { if (strpos($key, $rowValues[0]) !== false) { return $rowValues[1]; } } } } return false; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/lang/pt_BR/app.php
packages/Webkul/Installer/src/Resources/lang/pt_BR/app.php
<?php return [ 'seeders' => [ 'attributes' => [ 'leads' => [ 'description' => 'Descrição', 'expected-close-date' => 'Data de Fechamento Esperada', 'lead-value' => 'Valor da Oportunidade', 'sales-owner' => 'Responsável pela Venda', 'source' => 'Origem', 'title' => 'Título', 'type' => 'Tipo', 'pipeline' => 'Funil', 'stage' => 'Estágio', ], 'persons' => [ 'contact-numbers' => 'Números de Contato', 'emails' => 'E-mails', 'job-title' => 'Cargo', 'name' => 'Nome', 'organization' => 'Empresa', 'sales-owner' => 'Responsável pela Venda', ], 'organizations' => [ 'address' => 'Endereço', 'name' => 'Nome', 'sales-owner' => 'Responsável pela Venda', ], 'products' => [ 'description' => 'Descrição', 'name' => 'Nome', 'price' => 'Preço', 'quantity' => 'Quantidade', 'sku' => 'Código', ], 'quotes' => [ 'adjustment-amount' => 'Valor de Ajuste', 'billing-address' => 'Endereço de Cobrança', 'description' => 'Descrição', 'discount-amount' => 'Valor do Desconto', 'discount-percent' => 'Percentual de Desconto', 'expired-at' => 'Expira em', 'grand-total' => 'Total Geral', 'person' => 'Pessoa', 'sales-owner' => 'Responsável pela Venda', 'shipping-address' => 'Endereço de Entrega', 'sub-total' => 'Subtotal', 'subject' => 'Assunto', 'tax-amount' => 'Valor do Imposto', ], 'warehouses' => [ 'contact-address' => 'Endereço de Contato', 'contact-emails' => 'Emails de Contato', 'contact-name' => 'Nome do Contato', 'contact-numbers' => 'Números de Contato', 'description' => 'Descrição', 'name' => 'Nome', ], ], 'email' => [ 'activity-created' => 'Atividade Adicionada', 'activity-modified' => 'Atividade modificada', 'date' => 'Data', 'new-activity' => 'Você tem uma nova atividade, veja os detalhes abaixo', 'new-activity-modified' => 'Uma nova atividade foi modificada, veja os detalhes abaixo', 'participants' => 'Participantes', 'title' => 'Título', 'type' => 'Tipo', ], 'lead' => [ 'pipeline' => [ 'default' => 'Funil Padrão', 'pipeline-stages' => [ 'follow-up' => 'Acompanhamento', 'lost' => 'Perdido', 'negotiation' => 'Negociação', 'new' => 'Novo', 'prospect' => 'Qualificado', 'won' => 'Ganho', ], ], 'source' => [ 'direct' => 'Direto', 'email' => 'E-mail', 'phone' => 'Telefone', 'web' => 'Web', 'web-form' => 'Formulário Web', ], 'type' => [ 'existing-business' => 'Negócio Existente', 'new-business' => 'Novo Negócio', ], ], 'user' => [ 'role' => [ 'administrator-role' => 'Função de Administrador', 'administrator' => 'Administrador', ], ], 'workflow' => [ 'email-to-participants-after-activity-updation' => 'E-mails para participantes após atualização de atividade', 'email-to-participants-after-activity-creation' => 'E-mails para participantes após adicionar atividade', ], ], 'installer' => [ 'index' => [ 'create-administrator' => [ 'admin' => 'Administrador', 'krayin' => 'Krayin', 'confirm-password' => 'Confirmar Senha', 'email' => 'E-mail', 'email-address' => 'admin@example.com', 'password' => 'Senha', 'title' => 'Adicionar Administrador', ], 'environment-configuration' => [ 'algerian-dinar' => 'Dinar Argelino (DZD)', 'allowed-currencies' => 'Moedas Permitidas', 'allowed-locales' => 'Idiomas Permitidos', 'application-name' => 'Nome do Aplicativo', 'argentine-peso' => 'Peso Argentino (ARS)', 'australian-dollar' => 'Dólar Australiano (AUD)', 'krayin' => 'Krayin', 'bangladeshi-taka' => 'Taka de Bangladesh (BDT)', 'brazilian-real' => 'Real Brasileiro (BRL)', 'british-pound-sterling' => 'Libra Esterlina (GBP)', 'canadian-dollar' => 'Dólar Canadense (CAD)', 'cfa-franc-bceao' => 'Franco CFA BCEAO (XOF)', 'cfa-franc-beac' => 'Franco CFA BEAC (XAF)', 'chilean-peso' => 'Peso Chileno (CLP)', 'chinese-yuan' => 'Yuan Chinês (CNY)', 'colombian-peso' => 'Peso Colombiano (COP)', 'czech-koruna' => 'Coroa Checa (CZK)', 'danish-krone' => 'Coroa Dinamarquesa (DKK)', 'database-connection' => 'Conexão com Banco de Dados', 'database-hostname' => 'Nome do Host do Banco de Dados', 'database-name' => 'Nome do Banco de Dados', 'database-password' => 'Senha do Banco de Dados', 'database-port' => 'Porta do Banco de Dados', 'database-prefix' => 'Prefixo do Banco de Dados', 'database-username' => 'Usuário do Banco de Dados', 'default-currency' => 'Moeda Padrão', 'default-locale' => 'Idioma Padrão', 'default-timezone' => 'Fuso Horário Padrão', 'default-url' => 'URL Padrão', 'default-url-link' => 'https://localhost', 'euro' => 'Euro (EUR)', 'mysql' => 'MySQL', 'pgsql' => 'pgSQL', 'select-timezone' => 'Selecionar Fuso Horário', 'warning-message' => 'Atenção! As configurações de idioma e moeda padrão não podem ser alteradas após definidas.', 'united-states-dollar' => 'Dólar Americano (USD)', ], 'installation-processing' => [ 'krayin' => 'Instalação do Krayin', 'krayin-info' => 'Criando as tabelas do banco de dados, isso pode levar alguns momentos', 'title' => 'Instalação', ], 'installation-completed' => [ 'admin-panel' => 'Painel de Administração', 'krayin-forums' => 'Fórum Krayin', 'customer-panel' => 'Painel do Cliente', 'explore-krayin-extensions' => 'Explorar Extensões Krayin', 'title' => 'Instalação Concluída', 'title-info' => 'Krayin foi instalado com sucesso no seu sistema.', ], 'ready-for-installation' => [ 'create-databsae-table' => 'Adicionar tabela do banco de dados', 'install' => 'Instalação', 'start-installation' => 'Iniciar Instalação', 'title' => 'Pronto para Instalação', ], 'start' => [ 'locale' => 'Idioma', 'main' => 'Início', 'select-locale' => 'Selecionar Idioma', 'title' => 'Instalação do Krayin', 'welcome-title' => 'Bem-vindo ao Krayin', ], 'server-requirements' => [ 'php-version' => '8.1 ou superior', 'title' => 'Requisitos do Sistema', ], 'back' => 'Voltar', 'krayin' => 'Krayin', 'krayin-info' => 'um projeto comunitário de', 'krayin-logo' => 'Logotipo Krayin', 'continue' => 'Continuar', 'installation-description' => 'A instalação do Krayin geralmente envolve várias etapas. Aqui está uma visão geral do processo de instalação do Krayin', 'installation-info' => 'Estamos felizes em ver você aqui!', 'installation-title' => 'Bem-vindo à Instalação', 'installation-wizard' => 'Assistente de Instalação - Idioma', 'title' => 'Instalador do Krayin', 'webkul' => 'Webkul', ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/lang/tr/app.php
packages/Webkul/Installer/src/Resources/lang/tr/app.php
<?php return [ 'seeders' => [ 'attributes' => [ 'leads' => [ 'description' => 'Açıklama', 'expected-close-date' => 'Beklenen Kapanış Tarihi', 'lead-value' => 'Potansiyel Değeri', 'sales-owner' => 'Satış Sahibi', 'source' => 'Kaynak', 'title' => 'Başlık', 'type' => 'Tür', 'pipeline' => 'Pipeline', 'stage' => 'Aşama', ], 'persons' => [ 'contact-numbers' => 'İletişim Numaraları', 'emails' => 'E-postalar', 'job-title' => 'Görev Unvanı', 'name' => 'Ad', 'organization' => 'Organizasyon', 'sales-owner' => 'Satış Sahibi', ], 'organizations' => [ 'address' => 'Adres', 'name' => 'Ad', 'sales-owner' => 'Satış Sahibi', ], 'products' => [ 'description' => 'Açıklama', 'name' => 'Ad', 'price' => 'Fiyat', 'quantity' => 'Miktar', 'sku' => 'SKU', ], 'quotes' => [ 'adjustment-amount' => 'Düzenleme Tutarı', 'billing-address' => 'Fatura Adresi', 'description' => 'Açıklama', 'discount-amount' => 'İndirim Tutarı', 'discount-percent' => 'İndirim Yüzdesi', 'expired-at' => 'Süresi Doldu', 'grand-total' => 'Genel Toplam', 'person' => 'Kişi', 'sales-owner' => 'Satış Sahibi', 'shipping-address' => 'Teslimat Adresi', 'sub-total' => 'Ara Toplam', 'subject' => 'Konu', 'tax-amount' => 'Vergi Tutarı', ], 'warehouses' => [ 'contact-address' => 'İletişim Adresi', 'contact-emails' => 'İletişim E-postaları', 'contact-name' => 'İletişim Adı', 'contact-numbers' => 'İletişim Numaraları', 'description' => 'Açıklama', 'name' => 'Ad', ], ], 'email' => [ 'activity-created' => 'Etkinlik oluşturuldu', 'activity-modified' => 'Etkinlik değiştirildi', 'date' => 'Tarih', 'new-activity' => 'Yeni bir etkinliğiniz var, lütfen aşağıdaki detayları bulun', 'new-activity-modified' => 'Yeni bir etkinlik değiştirildi, lütfen aşağıdaki detayları bulun', 'participants' => 'Katılımcılar', 'title' => 'Başlık', 'type' => 'Tür', ], 'lead' => [ 'pipeline' => [ 'default' => 'Varsayılan Pipeline', 'pipeline-stages' => [ 'follow-up' => 'Takip', 'lost' => 'Kaybedildi', 'negotiation' => 'Müzakere', 'new' => 'Yeni', 'prospect' => 'Potansiyel', 'won' => 'Kazanıldı', ], ], 'source' => [ 'direct' => 'Doğrudan', 'email' => 'E-posta', 'phone' => 'Telefon', 'web' => 'Web', 'web-form' => 'Web Formu', ], 'type' => [ 'existing-business' => 'Mevcut İş', 'new-business' => 'Yeni İş', ], ], 'user' => [ 'role' => [ 'administrator-role' => 'Yönetici Rolü', 'administrator' => 'Yönetici', ], ], 'workflow' => [ 'email-to-participants-after-activity-updation' => 'Etkinlik güncellemesinden sonra katılımcılara e-postalar', 'email-to-participants-after-activity-creation' => 'Etkinlik oluşturulduktan sonra katılımcılara e-postalar', ], ], 'installer' => [ 'index' => [ 'create-administrator' => [ 'admin' => 'Yönetici', 'krayin' => 'Krayin', 'confirm-password' => 'Şifreyi Onayla', 'email' => 'E-posta', 'email-address' => 'admin@ornek.com', 'password' => 'Şifre', 'title' => 'Yönetici Oluştur', ], 'environment-configuration' => [ 'algerian-dinar' => 'Cezayir Dinarı (DZD)', 'allowed-currencies' => 'İzin Verilen Para Birimleri', 'allowed-locales' => 'İzin Verilen Lokaller', 'application-name' => 'Uygulama Adı', 'argentine-peso' => 'Arjantin Pezosu (ARS)', 'australian-dollar' => 'Avustralya Doları (AUD)', 'krayin' => 'Krayin', 'bangladeshi-taka' => 'Bangladeş Takası (BDT)', 'brazilian-real' => 'Brezilya Reali (BRL)', 'british-pound-sterling' => 'İngiliz Sterlini (GBP)', 'canadian-dollar' => 'Kanada Doları (CAD)', 'cfa-franc-bceao' => 'CFA Frank BCEAO (XOF)', 'cfa-franc-beac' => 'CFA Frank BEAC (XAF)', 'chilean-peso' => 'Şili Pesosu (CLP)', 'chinese-yuan' => 'Çin Yuanı (CNY)', 'colombian-peso' => 'Kolombiya Pesosu (COP)', 'czech-koruna' => 'Çek Korunası (CZK)', 'danish-krone' => 'Danimarka Kronu (DKK)', 'database-connection' => 'Veritabanı Bağlantısı', 'database-hostname' => 'Veritabanı Sunucu Adı', 'database-name' => 'Veritabanı Adı', 'database-password' => 'Veritabanı Parolası', 'database-port' => 'Veritabanı Bağlantı Noktası', 'database-prefix' => 'Veritabanı Öneki', 'database-username' => 'Veritabanı Kullanıcı Adı', 'default-currency' => 'Varsayılan Para Birimi', 'default-locale' => 'Varsayılan Lokal', 'default-timezone' => 'Varsayılan Zaman Dilimi', 'default-url' => 'Varsayılan URL', 'default-url-link' => 'https://localhost', 'egyptian-pound' => 'Mısır Lirası (EGP)', 'euro' => 'Euro (EUR)', 'fijian-dollar' => 'Fiji Doları (FJD)', 'hong-kong-dollar' => 'Hong Kong Doları (HKD)', 'hungarian-forint' => 'Macar Forinti (HUF)', 'indian-rupee' => 'Hint Rupisi (INR)', 'indonesian-rupiah' => 'Endonezya Rupisi (IDR)', 'israeli-new-shekel' => 'İsrail Yeni Şekeli (ILS)', 'japanese-yen' => 'Japon Yeni (JPY)', 'jordanian-dinar' => 'Ürdün Dinarı (JOD)', 'kazakhstani-tenge' => 'Kazakistan Tengesi (KZT)', 'kuwaiti-dinar' => 'Kuveyt Dinarı (KWD)', 'lebanese-pound' => 'Lübnan Lirası (LBP)', 'libyan-dinar' => 'Libya Dinarı (LYD)', 'malaysian-ringgit' => 'Malezya Ringiti (MYR)', 'mauritian-rupee' => 'Mauritius Rupisi (MUR)', 'mexican-peso' => 'Meksika Pesosu (MXN)', 'moroccan-dirham' => 'Fas Dirhemi (MAD)', 'mysql' => 'MySQL', 'nepalese-rupee' => 'Nepal Rupisi (NPR)', 'new-taiwan-dollar' => 'Yeni Tayvan Doları (TWD)', 'new-zealand-dollar' => 'Yeni Zelanda Doları (NZD)', 'nigerian-naira' => 'Nijerya Nairası (NGN)', 'norwegian-krone' => 'Norveç Kronu (NOK)', 'omani-rial' => 'Umman Riyali (OMR)', 'pakistani-rupee' => 'Pakistan Rupisi (PKR)', 'panamanian-balboa' => 'Panama Balboası (PAB)', 'paraguayan-guarani' => 'Paraguay Guaranisi (PYG)', 'peruvian-nuevo-sol' => 'Peru Nuevo Solu (PEN)', 'pgsql' => 'PgSQL', 'philippine-peso' => 'Filipinler Pesosu (PHP)', 'polish-zloty' => 'Polonya Zlotisi (PLN)', 'qatari-rial' => 'Katar Riyali (QAR)', 'romanian-leu' => 'Romanya Leyi (RON)', 'russian-ruble' => 'Rus Rublesi (RUB)', 'saudi-riyal' => 'Suudi Riyali (SAR)', 'select-timezone' => 'Zaman Dilimi Seç', 'singapore-dollar' => 'Singapur Doları (SGD)', 'south-african-rand' => 'Güney Afrika Randı (ZAR)', 'south-korean-won' => 'Güney Kore Wonu (KRW)', 'sqlsrv' => 'SQLSRV', 'sri-lankan-rupee' => 'Sri Lanka Rupisi (LKR)', 'swedish-krona' => 'İsveç Kronu (SEK)', 'swiss-franc' => 'İsviçre Frangı (CHF)', 'thai-baht' => 'Tayland Bahtı (THB)', 'title' => 'Mağaza Yapılandırması', 'tunisian-dinar' => 'Tunus Dinarı (TND)', 'turkish-lira' => 'Türk Lirası (TRY)', 'ukrainian-hryvnia' => 'Ukrayna Grivnası (UAH)', 'united-arab-emirates-dirham' => 'Birleşik Arap Emirlikleri Dirhemi (AED)', 'united-states-dollar' => 'Amerikan Doları (USD)', 'uzbekistani-som' => 'Özbekistan Somu (UZS)', 'venezuelan-bolívar' => 'Venezuela Bolivarı (VEF)', 'vietnamese-dong' => 'Vietnam Dongu (VND)', 'warning-message' => 'Dikkat! Varsayılan sistem dili ve varsayılan para birimi ayarları kalıcıdır ve bir kez ayarlandığında değiştirilemez.', 'zambian-kwacha' => 'Zambiya Kvaçası (ZMW)', ], 'installation-processing' => [ 'krayin' => 'Krayin Kurulumu', 'krayin-info' => 'Veritabanı tabloları oluşturuluyor, bu birkaç dakika sürebilir', 'title' => 'Kurulum', ], 'installation-completed' => [ 'admin-panel' => 'Yönetici Paneli', 'krayin-forums' => 'Krayin Forumu', 'customer-panel' => 'Müşteri Paneli', 'explore-krayin-extensions' => 'Krayin Uzantılarını Keşfedin', 'title' => 'Kurulum Tamamlandı', 'title-info' => 'Krayin sisteminize başarıyla kuruldu.', ], 'ready-for-installation' => [ 'create-databsae-table' => 'Veritabanı tablosu oluştur', 'install' => 'Yükleme', 'install-info' => 'Kurulum için Krayin', 'install-info-button' => 'Aşağıdaki düğmeye tıklayın', 'populate-database-table' => 'Veritabanı tablolarını doldur', 'start-installation' => 'Kurulumu Başlat', 'title' => 'Kurulum için Hazır', ], 'start' => [ 'locale' => 'Yerel', 'main' => 'Başlangıç', 'select-locale' => 'Yerel Seçin', 'title' => 'Krayin kurulumunuz', 'welcome-title' => 'Krayin\'ya hoş geldiniz', ], 'server-requirements' => [ 'calendar' => 'Takvim', 'ctype' => 'cType', 'curl' => 'cURL', 'dom' => 'dom', 'fileinfo' => 'Dosya Bilgisi', 'filter' => 'Filtre', 'gd' => 'GD', 'hash' => 'Hash', 'intl' => 'intl', 'json' => 'JSON', 'mbstring' => 'mbstring', 'openssl' => 'openssl', 'pcre' => 'pcre', 'pdo' => 'pdo', 'php' => 'PHP', 'php-version' => '8.1 veya üstü', 'session' => 'oturum', 'title' => 'Sunucu Gereksinimleri', 'tokenizer' => 'tokenizer', 'xml' => 'XML', ], 'back' => 'Geri', 'krayin' => 'Krayin', 'krayin-info' => 'Webkul tarafından geliştirilen bir Topluluk Projesi', 'krayin-logo' => 'Krayin Logosu', 'continue' => 'Devam Et', 'installation-description' => 'Krayin kurulumu genellikle birkaç adım içerir. İşte Krayin\'nun kurulum sürecine genel bir bakış', 'installation-info' => 'Sizi burada görmekten mutluluk duyuyoruz!', 'installation-title' => 'Kurulum\'a Hoş Geldiniz', 'installation-wizard' => 'Kurulum Sihirbazı dili', 'title' => 'Krayin Kurulum Sihirbazı', 'webkul' => 'Webkul', ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/lang/en/app.php
packages/Webkul/Installer/src/Resources/lang/en/app.php
<?php return [ 'seeders' => [ 'attributes' => [ 'leads' => [ 'description' => 'Description', 'expected-close-date' => 'Expected Close Date', 'lead-value' => 'Lead Value', 'sales-owner' => 'Sales Owner', 'source' => 'Source', 'title' => 'Title', 'type' => 'Type', 'pipeline' => 'Pipeline', 'stage' => 'Stage', ], 'persons' => [ 'contact-numbers' => 'Contact Numbers', 'emails' => 'Emails', 'job-title' => 'Job Title', 'name' => 'Name', 'organization' => 'Organization', 'sales-owner' => 'Sales Owner', ], 'organizations' => [ 'address' => 'Address', 'name' => 'Name', 'sales-owner' => 'Sales Owner', ], 'products' => [ 'description' => 'Description', 'name' => 'Name', 'price' => 'Price', 'quantity' => 'Quantity', 'sku' => 'SKU', ], 'quotes' => [ 'adjustment-amount' => 'Adjustment Amount', 'billing-address' => 'Billing Address', 'description' => 'Description', 'discount-amount' => 'Discount Amount', 'discount-percent' => 'Discount Percent', 'expired-at' => 'Expired At', 'grand-total' => 'Grand Total', 'person' => 'Person', 'sales-owner' => 'Sales Owner', 'shipping-address' => 'Shipping Address', 'sub-total' => 'Sub Total', 'subject' => 'Subject', 'tax-amount' => 'Tax Amount', ], 'warehouses' => [ 'contact-address' => 'Contact Address', 'contact-emails' => 'Contact Emails', 'contact-name' => 'Contact Name', 'contact-numbers' => 'Contact Numbers', 'description' => 'Description', 'name' => 'Name', ], ], 'email' => [ 'activity-created' => 'Activity created', 'activity-modified' => 'Activity modified', 'date' => 'Date', 'new-activity' => 'You have a new activity, please find the details bellow', 'new-activity-modified' => 'You have a new activity modified, please find the details bellow', 'participants' => 'Participants', 'title' => 'Title', 'type' => 'Type', ], 'lead' => [ 'pipeline' => [ 'default' => 'Default Pipeline', 'pipeline-stages' => [ 'follow-up' => 'Follow Up', 'lost' => 'Lost', 'negotiation' => 'Negotiation', 'new' => 'New', 'prospect' => 'Prospect', 'won' => 'Won', ], ], 'source' => [ 'direct' => 'Direct', 'email' => 'Email', 'phone' => 'Phone', 'web' => 'Web', 'web-form' => 'Web Form', ], 'type' => [ 'existing-business' => 'Existing Business', 'new-business' => 'New Business', ], ], 'user' => [ 'role' => [ 'administrator-role' => 'Administrator Role', 'administrator' => 'Administrator', ], ], 'workflow' => [ 'email-to-participants-after-activity-updation' => 'Emails to participants after activity updation', 'email-to-participants-after-activity-creation' => 'Emails to participants after activity creation', ], ], 'installer' => [ 'index' => [ 'create-administrator' => [ 'admin' => 'Admin', 'krayin' => 'Krayin', 'confirm-password' => 'Confirm Password', 'email' => 'Email', 'email-address' => 'admin@example.com', 'password' => 'Password', 'title' => 'Create Administrator', ], 'environment-configuration' => [ 'algerian-dinar' => 'Algerian Dinar (DZD)', 'allowed-currencies' => 'Allowed Currencies', 'allowed-locales' => 'Allowed Locales', 'application-name' => 'Application Name', 'argentine-peso' => 'Argentine Peso (ARS)', 'australian-dollar' => 'Australian Dollar (AUD)', 'krayin' => 'Krayin', 'bangladeshi-taka' => 'Bangladeshi Taka (BDT)', 'brazilian-real' => 'Brazilian Real (BRL)', 'british-pound-sterling' => 'British Pound Sterling (GBP)', 'canadian-dollar' => 'Canadian Dollar (CAD)', 'cfa-franc-bceao' => 'CFA Franc BCEAO (XOF)', 'cfa-franc-beac' => 'CFA Franc BEAC (XAF)', 'chilean-peso' => 'Chilean Peso (CLP)', 'chinese-yuan' => 'Chinese Yuan (CNY)', 'colombian-peso' => 'Colombian Peso (COP)', 'czech-koruna' => 'Czech Koruna (CZK)', 'danish-krone' => 'Danish Krone (DKK)', 'database-connection' => 'Database Connection', 'database-hostname' => 'Database Hostname', 'database-name' => 'Database Name', 'database-password' => 'Database Password', 'database-port' => 'Database Port', 'database-prefix' => 'Database Prefix', 'database-username' => 'Database Username', 'default-currency' => 'Default Currency', 'default-locale' => 'Default Locale', 'default-timezone' => 'Default Timezone', 'default-url' => 'Default URL', 'default-url-link' => 'https://localhost', 'egyptian-pound' => 'Egyptian Pound (EGP)', 'euro' => 'Euro (EUR)', 'fijian-dollar' => 'Fijian Dollar (FJD)', 'hong-kong-dollar' => 'Hong Kong Dollar (HKD)', 'hungarian-forint' => 'Hungarian Forint (HUF)', 'indian-rupee' => 'Indian Rupee (INR)', 'indonesian-rupiah' => 'Indonesian Rupiah (IDR)', 'israeli-new-shekel' => 'Israeli New Shekel (ILS)', 'japanese-yen' => 'Japanese Yen (JPY)', 'jordanian-dinar' => 'Jordanian Dinar (JOD)', 'kazakhstani-tenge' => 'Kazakhstani Tenge (KZT)', 'kuwaiti-dinar' => 'Kuwaiti Dinar (KWD)', 'lebanese-pound' => 'Lebanese Pound (LBP)', 'libyan-dinar' => 'Libyan Dinar (LYD)', 'malaysian-ringgit' => 'Malaysian Ringgit (MYR)', 'mauritian-rupee' => 'Mauritian Rupee (MUR)', 'mexican-peso' => 'Mexican Peso (MXN)', 'moroccan-dirham' => 'Moroccan Dirham (MAD)', 'mysql' => 'Mysql', 'nepalese-rupee' => 'Nepalese Rupee (NPR)', 'new-taiwan-dollar' => 'New Taiwan Dollar (TWD)', 'new-zealand-dollar' => 'New Zealand Dollar (NZD)', 'nigerian-naira' => 'Nigerian Naira (NGN)', 'norwegian-krone' => 'Norwegian Krone (NOK)', 'omani-rial' => 'Omani Rial (OMR)', 'pakistani-rupee' => 'Pakistani Rupee (PKR)', 'panamanian-balboa' => 'Panamanian Balboa (PAB)', 'paraguayan-guarani' => 'Paraguayan Guarani (PYG)', 'peruvian-nuevo-sol' => 'Peruvian Nuevo Sol (PEN)', 'pgsql' => 'pgSQL', 'philippine-peso' => 'Philippine Peso (PHP)', 'polish-zloty' => 'Polish Zloty (PLN)', 'qatari-rial' => 'Qatari Rial (QAR)', 'romanian-leu' => 'Romanian Leu (RON)', 'russian-ruble' => 'Russian Ruble (RUB)', 'saudi-riyal' => 'Saudi Riyal (SAR)', 'select-timezone' => 'Select Timezone', 'singapore-dollar' => 'Singapore Dollar (SGD)', 'south-african-rand' => 'South African Rand (ZAR)', 'south-korean-won' => 'South Korean Won (KRW)', 'sqlsrv' => 'SQLSRV', 'sri-lankan-rupee' => 'Sri Lankan Rupee (LKR)', 'swedish-krona' => 'Swedish Krona (SEK)', 'swiss-franc' => 'Swiss Franc (CHF)', 'thai-baht' => 'Thai Baht (THB)', 'title' => 'Store Configuration', 'tunisian-dinar' => 'Tunisian Dinar (TND)', 'turkish-lira' => 'Turkish Lira (TRY)', 'ukrainian-hryvnia' => 'Ukrainian Hryvnia (UAH)', 'united-arab-emirates-dirham' => 'United Arab Emirates Dirham (AED)', 'united-states-dollar' => 'United States Dollar (USD)', 'uzbekistani-som' => 'Uzbekistani Som (UZS)', 'venezuelan-bolívar' => 'Venezuelan Bolívar (VEF)', 'vietnamese-dong' => 'Vietnamese Dong (VND)', 'warning-message' => 'Beware! The settings for your default system language and default currency are permanent and cannot be changed once set.', 'zambian-kwacha' => 'Zambian Kwacha (ZMW)', ], 'installation-processing' => [ 'krayin' => 'Installation Krayin', 'krayin-info' => 'Creating the database tables, this can take a few moments', 'title' => 'Installation', ], 'installation-completed' => [ 'admin-panel' => 'Admin Panel', 'krayin-forums' => 'Krayin Forum', 'customer-panel' => 'Customer Panel', 'explore-krayin-extensions' => 'Explore Krayin Extension', 'title' => 'Installation Completed', 'title-info' => 'Krayin is Successfully installed on your system.', ], 'ready-for-installation' => [ 'create-databsae-table' => 'Create the database table', 'install' => 'Installation', 'install-info' => 'Krayin For Installation', 'install-info-button' => 'Click the button below to', 'populate-database-table' => 'Populate the database tables', 'start-installation' => 'Start Installation', 'title' => 'Ready for Installation', ], 'start' => [ 'locale' => 'Locale', 'main' => 'Start', 'select-locale' => 'Select Locale', 'title' => 'Your Krayin install', 'welcome-title' => 'Welcome to Krayin', ], 'server-requirements' => [ 'calendar' => 'Calendar', 'ctype' => 'cType', 'curl' => 'cURL', 'dom' => 'dom', 'fileinfo' => 'fileInfo', 'filter' => 'Filter', 'gd' => 'GD', 'hash' => 'Hash', 'intl' => 'intl', 'json' => 'JSON', 'mbstring' => 'mbstring', 'openssl' => 'openssl', 'pcre' => 'pcre', 'pdo' => 'pdo', 'php' => 'PHP', 'php-version' => '8.1 or higher', 'session' => 'session', 'title' => 'System Requirements', 'tokenizer' => 'tokenizer', 'xml' => 'XML', ], 'back' => 'Back', 'krayin' => 'Krayin', 'krayin-info' => 'a Community Project by', 'krayin-logo' => 'Krayin Logo', 'continue' => 'Continue', 'installation-description' => 'Krayin installation typically involves several steps. Here\'s a general outline of the installation process for Krayin', 'installation-info' => 'We are happy to see you here!', 'installation-title' => 'Welcome to Installation', 'installation-wizard' => 'Installation Wizard language', 'title' => 'Krayin Installer', 'webkul' => 'Webkul', ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/lang/ar/app.php
packages/Webkul/Installer/src/Resources/lang/ar/app.php
<?php return [ 'seeders' => [ 'attributes' => [ 'leads' => [ 'description' => 'الوصف', 'expected-close-date' => 'تاريخ الإغلاق المتوقع', 'lead-value' => 'قيمة العميل المحتمل', 'sales-owner' => 'مالك المبيعات', 'source' => 'المصدر', 'title' => 'العنوان', 'type' => 'النوع', 'pipeline' => 'قناة المبيعات', 'stage' => 'المرحلة', ], 'persons' => [ 'contact-numbers' => 'أرقام الاتصال', 'emails' => 'البريد الإلكتروني', 'job-title' => 'المسمى الوظيفي', 'name' => 'الاسم', 'organization' => 'المنظمة', 'sales-owner' => 'مالك المبيعات', ], 'organizations' => [ 'address' => 'العنوان', 'name' => 'الاسم', 'sales-owner' => 'مالك المبيعات', ], 'products' => [ 'description' => 'الوصف', 'name' => 'الاسم', 'price' => 'السعر', 'quantity' => 'الكمية', 'sku' => 'SKU', ], 'quotes' => [ 'adjustment-amount' => 'مبلغ التعديل', 'billing-address' => 'عنوان الفواتير', 'description' => 'الوصف', 'discount-amount' => 'مبلغ الخصم', 'discount-percent' => 'نسبة الخصم', 'expired-at' => 'منتهي في', 'grand-total' => 'الإجمالي', 'person' => 'شخص', 'sales-owner' => 'مالك المبيعات', 'shipping-address' => 'عنوان الشحن', 'sub-total' => 'الإجمالي الفرعي', 'subject' => 'الموضوع', 'tax-amount' => 'مبلغ الضريبة', ], 'warehouses' => [ 'contact-address' => 'عنوان الاتصال', 'contact-emails' => 'البريد الإلكتروني للتواصل', 'contact-name' => 'اسم الاتصال', 'contact-numbers' => 'أرقام الاتصال', 'description' => 'الوصف', 'name' => 'الاسم', ], ], 'email' => [ 'activity-created' => 'تم إنشاء النشاط', 'activity-modified' => 'تم تعديل النشاط', 'date' => 'التاريخ', 'new-activity' => 'لديك نشاط جديد، يرجى العثور على التفاصيل أدناه', 'new-activity-modified' => 'تم تعديل النشاط الجديد، يرجى العثور على التفاصيل أدناه', 'participants' => 'المشاركون', 'title' => 'العنوان', 'type' => 'النوع', ], 'lead' => [ 'pipeline' => [ 'default' => 'قناة المبيعات الافتراضية', 'pipeline-stages' => [ 'follow-up' => 'متابعة', 'lost' => 'مفقود', 'negotiation' => 'مفاوضات', 'new' => 'جديد', 'prospect' => 'عميل محتمل', 'won' => 'مُنتصر', ], ], 'source' => [ 'direct' => 'مباشر', 'email' => 'البريد الإلكتروني', 'phone' => 'الهاتف', 'web' => 'ويب', 'web-form' => 'نموذج ويب', ], 'type' => [ 'existing-business' => 'عمل موجود', 'new-business' => 'عمل جديد', ], ], 'user' => [ 'role' => [ 'administrator-role' => 'دور المسؤول', 'administrator' => 'مسؤول', ], ], 'workflow' => [ 'email-to-participants-after-activity-updation' => 'رسائل بريد إلكتروني للمشاركين بعد تحديث النشاط', 'email-to-participants-after-activity-creation' => 'رسائل بريد إلكتروني للمشاركين بعد إنشاء النشاط', ], ], 'installer' => [ 'index' => [ 'create-administrator' => [ 'admin' => 'مدير', 'krayin' => 'Krayin', 'confirm-password' => 'تأكيد كلمة المرور', 'email' => 'البريد الإلكتروني', 'email-address' => 'admin@example.com', 'password' => 'كلمة المرور', 'title' => 'إنشاء المسؤول', ], 'environment-configuration' => [ 'algerian-dinar' => 'الدينار الجزائري (DZD)', 'allowed-currencies' => 'العملات المسموح بها', 'allowed-locales' => 'اللغات المسموح بها', 'application-name' => 'اسم التطبيق', 'argentine-peso' => 'البيزو الأرجنتيني (ARS)', 'australian-dollar' => 'الدولار الأسترالي (AUD)', 'krayin' => 'Krayin', 'bangladeshi-taka' => 'التاكا البنغلاديشي (BDT)', 'brazilian-real' => 'الريال البرازيلي (BRL)', 'british-pound-sterling' => 'الجنيه الإسترليني البريطاني (GBP)', 'canadian-dollar' => 'الدولار الكندي (CAD)', 'cfa-franc-bceao' => 'فرنك CFA BCEAO (XOF)', 'cfa-franc-beac' => 'فرنك CFA BEAC (XAF)', 'chilean-peso' => 'البيزو التشيلي (CLP)', 'chinese-yuan' => 'اليوان الصيني (CNY)', 'colombian-peso' => 'البيزو الكولومبي (COP)', 'czech-koruna' => 'الكرونة التشيكية (CZK)', 'danish-krone' => 'الكرونة الدنماركية (DKK)', 'database-connection' => 'اتصال قاعدة البيانات', 'database-hostname' => 'اسم مضيف قاعدة البيانات', 'database-name' => 'اسم قاعدة البيانات', 'database-password' => 'كلمة مرور قاعدة البيانات', 'database-port' => 'منفذ قاعدة البيانات', 'database-prefix' => 'بادئة قاعدة البيانات', 'database-username' => 'اسم مستخدم قاعدة البيانات', 'default-currency' => 'العملة الافتراضية', 'default-locale' => 'اللغة الافتراضية', 'default-timezone' => 'المنطقة الزمنية الافتراضية', 'default-url' => 'الرابط الافتراضي', 'default-url-link' => 'https://localhost', 'egyptian-pound' => 'الجنيه المصري (EGP)', 'euro' => 'اليورو (EUR)', 'fijian-dollar' => 'الدولار الفيجي (FJD)', 'hong-kong-dollar' => 'الدولار الهونغ كونغي (HKD)', 'hungarian-forint' => 'الفورنت الهنغاري (HUF)', 'indian-rupee' => 'الروبية الهندية (INR)', 'indonesian-rupiah' => 'الروبية الإندونيسية (IDR)', 'israeli-new-shekel' => 'الشيكل الإسرائيلي الجديد (ILS)', 'japanese-yen' => 'الين الياباني (JPY)', 'jordanian-dinar' => 'الدينار الأردني (JOD)', 'kazakhstani-tenge' => 'التينغ الكازاخستاني (KZT)', 'kuwaiti-dinar' => 'الدينار الكويتي (KWD)', 'lebanese-pound' => 'الجنيه اللبناني (LBP)', 'libyan-dinar' => 'الدينار الليبي (LYD)', 'malaysian-ringgit' => 'الرينغيت الماليزي (MYR)', 'mauritian-rupee' => 'الروبية الموريشية (MUR)', 'mexican-peso' => 'البيزو المكسيكي (MXN)', 'moroccan-dirham' => 'الدرهم المغربي (MAD)', 'mysql' => 'MySQL', 'nepalese-rupee' => 'الروبية النيبالية (NPR)', 'new-taiwan-dollar' => 'الدولار التايواني الجديد (TWD)', 'new-zealand-dollar' => 'الدولار النيوزيلندي (NZD)', 'nigerian-naira' => 'النايرا النيجيري (NGN)', 'norwegian-krone' => 'الكرونة النرويجية (NOK)', 'omani-rial' => 'الريال العماني (OMR)', 'pakistani-rupee' => 'الروبية الباكستانية (PKR)', 'panamanian-balboa' => 'البالبوا البنمي (PAB)', 'paraguayan-guarani' => 'الغواراني الباراغواي (PYG)', 'peruvian-nuevo-sol' => 'السول البيروفي الجديد (PEN)', 'pgsql' => 'PgSQL', 'philippine-peso' => 'البيزو الفلبيني (PHP)', 'polish-zloty' => 'الزلوتي البولندي (PLN)', 'qatari-rial' => 'الريال القطري (QAR)', 'romanian-leu' => 'الليو الروماني (RON)', 'russian-ruble' => 'الروبل الروسي (RUB)', 'saudi-riyal' => 'الريال السعودي (SAR)', 'select-timezone' => 'اختر المنطقة الزمنية', 'singapore-dollar' => 'الدولار السنغافوري (SGD)', 'south-african-rand' => 'الراند الجنوب أفريقي (ZAR)', 'south-korean-won' => 'الوون الكوري الجنوبي (KRW)', 'sqlsrv' => 'SQLSRV', 'sri-lankan-rupee' => 'الروبية السريلانكية (LKR)', 'swedish-krona' => 'الكرونا السويدية (SEK)', 'swiss-franc' => 'الفرنك السويسري (CHF)', 'thai-baht' => 'الباهت التايلاندي (THB)', 'title' => 'إعدادات المتجر', 'tunisian-dinar' => 'الدينار التونسي (TND)', 'turkish-lira' => 'الليرة التركية (TRY)', 'ukrainian-hryvnia' => 'الهريفنيا الأوكرانية (UAH)', 'united-arab-emirates-dirham' => 'الدرهم الإماراتي (AED)', 'united-states-dollar' => 'الدولار الأمريكي (USD)', 'uzbekistani-som' => 'السوم الأوزبكستاني (UZS)', 'venezuelan-bolívar' => 'البوليفار الفنزويلي (VEF)', 'vietnamese-dong' => 'الدونج الفيتنامي (VND)', 'warning-message' => 'احذر! إعدادات لغة النظام الافتراضية والعملات الافتراضية دائمة ولا يمكن تغييرها بمجرد تعيينها.', 'zambian-kwacha' => 'الكواشا الزامبي (ZMW)', ], 'installation-processing' => [ 'krayin' => 'تثبيت Krayin', 'krayin-info' => 'إنشاء جداول قاعدة البيانات، وقد يستغرق ذلك بضع دقائق', 'title' => 'التثبيت', ], 'installation-completed' => [ 'admin-panel' => 'لوحة المشرف', 'krayin-forums' => 'منتديات Krayin', 'customer-panel' => 'لوحة العميل', 'explore-krayin-extensions' => 'استكشاف امتدادات Krayin', 'title' => 'اكتمال التثبيت', 'title-info' => 'تم تثبيت Krayin بنجاح على نظامك.', ], 'ready-for-installation' => [ 'create-databsae-table' => 'إنشاء جدول قاعدة البيانات', 'install' => 'التثبيت', 'install-info' => 'Krayin للتثبيت', 'install-info-button' => 'انقر على الزر أدناه ل', 'populate-database-table' => 'ملء جداول قاعدة البيانات', 'start-installation' => 'بدء التثبيت', 'title' => 'جاهز للتثبيت', ], 'start' => [ 'locale' => 'اللغة', 'main' => 'بداية', 'select-locale' => 'اختر اللغة', 'title' => 'تثبيت Krayin الخاص بك', 'welcome-title' => 'مرحبًا بك في Krayin', ], 'server-requirements' => [ 'calendar' => 'التقويم', 'ctype' => 'cType', 'curl' => 'cURL', 'dom' => 'dom', 'fileinfo' => 'معلومات الملف', 'filter' => 'المرشح', 'gd' => 'GD', 'hash' => 'التجزئة', 'intl' => 'intl', 'json' => 'JSON', 'mbstring' => 'mbstring', 'openssl' => 'openssl', 'pcre' => 'pcre', 'pdo' => 'pdo', 'php' => 'PHP', 'php-version' => '8.1 أو أعلى', 'session' => 'الجلسة', 'title' => 'متطلبات الخادم', 'tokenizer' => 'tokenizer', 'xml' => 'XML', ], 'back' => 'رجوع', 'krayin' => 'Krayin', 'krayin-info' => 'مشروع مجتمعي من قبل', 'krayin-logo' => 'شعار Krayin', 'continue' => 'متابعة', 'installation-description' => 'عادة ما تتضمن عملية تثبيت Krayin عدة خطوات. إليك نظرة عامة عامة على عملية التثبيت krayin', 'installation-info' => 'نحن سعداء برؤيتك هنا!', 'installation-title' => 'مرحبًا بك في التثبيت', 'installation-wizard' => 'لغة معالج التثبيت', 'title' => 'مثبت Krayin', 'webkul' => 'Webkul', ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/lang/vi/app.php
packages/Webkul/Installer/src/Resources/lang/vi/app.php
<?php return [ 'seeders' => [ 'attributes' => [ 'leads' => [ 'description' => 'Mô tả', 'expected-close-date' => 'Ngày dự kiến đóng', 'lead-value' => 'Giá trị cơ hội', 'sales-owner' => 'Chủ sở hữu bán hàng', 'source' => 'Nguồn', 'title' => 'Tiêu đề', 'type' => 'Loại', 'pipeline' => 'Kênh bán hàng', 'stage' => 'Giai đoạn', ], 'persons' => [ 'contact-numbers' => 'Số điện thoại liên hệ', 'emails' => 'Email', 'job-title' => 'Chức vụ', 'name' => 'Tên', 'organization' => 'Tổ chức', 'sales-owner' => 'Chủ sở hữu bán hàng', ], 'organizations' => [ 'address' => 'Địa chỉ', 'name' => 'Tên', 'sales-owner' => 'Chủ sở hữu bán hàng', ], 'products' => [ 'description' => 'Mô tả', 'name' => 'Tên', 'price' => 'Giá', 'quantity' => 'Số lượng', 'sku' => 'SKU', ], 'quotes' => [ 'adjustment-amount' => 'Số tiền điều chỉnh', 'billing-address' => 'Địa chỉ thanh toán', 'description' => 'Mô tả', 'discount-amount' => 'Số tiền giảm giá', 'discount-percent' => 'Phần trăm giảm giá', 'expired-at' => 'Hết hạn vào', 'grand-total' => 'Tổng cộng', 'person' => 'Người', 'sales-owner' => 'Chủ sở hữu bán hàng', 'shipping-address' => 'Địa chỉ giao hàng', 'sub-total' => 'Tổng phụ', 'subject' => 'Chủ đề', 'tax-amount' => 'Số tiền thuế', ], 'warehouses' => [ 'contact-address' => 'Địa chỉ liên hệ', 'contact-emails' => 'Email liên hệ', 'contact-name' => 'Tên người liên hệ', 'contact-numbers' => 'Số điện thoại liên hệ', 'description' => 'Mô tả', 'name' => 'Tên', ], ], 'email' => [ 'activity-created' => 'Hoạt động đã được tạo', 'activity-modified' => 'Hoạt động đã được chỉnh sửa', 'date' => 'Ngày', 'new-activity' => 'Bạn có một hoạt động mới, vui lòng xem chi tiết bên dưới', 'new-activity-modified' => 'Bạn có một hoạt động mới đã được chỉnh sửa, vui lòng xem chi tiết bên dưới', 'participants' => 'Người tham gia', 'title' => 'Tiêu đề', 'type' => 'Loại', ], 'lead' => [ 'pipeline' => [ 'default' => 'Kênh bán hàng mặc định', 'pipeline-stages' => [ 'follow-up' => 'Theo dõi', 'lost' => 'Mất', 'negotiation' => 'Đàm phán', 'new' => 'Mới', 'prospect' => 'Triển vọng', 'won' => 'Thắng', ], ], 'source' => [ 'direct' => 'Trực tiếp', 'email' => 'Email', 'phone' => 'Điện thoại', 'web' => 'Web', 'web-form' => 'Mẫu web', ], 'type' => [ 'existing-business' => 'Kinh doanh hiện tại', 'new-business' => 'Kinh doanh mới', ], ], 'user' => [ 'role' => [ 'administrator-role' => 'Vai trò quản trị viên', 'administrator' => 'Quản trị viên', ], ], 'workflow' => [ 'email-to-participants-after-activity-updation' => 'Email đến người tham gia sau khi cập nhật hoạt động', 'email-to-participants-after-activity-creation' => 'Email đến người tham gia sau khi tạo hoạt động', ], ], 'installer' => [ 'index' => [ 'create-administrator' => [ 'admin' => 'Administrador', 'krayin' => 'Krayin', 'confirm-password' => 'Confirmar Senha', 'email' => 'Email', 'email-address' => 'admin@exemplo.com', 'password' => 'Senha', 'title' => 'Criar Administrador', ], 'environment-configuration' => [ 'algerian-dinar' => 'Dinar Argelino (DZD)', 'allowed-currencies' => 'Moedas Permitidas', 'allowed-locales' => 'Idiomas Permitidos', 'application-name' => 'Nome da Aplicação', 'argentine-peso' => 'Peso Argentino (ARS)', 'australian-dollar' => 'Dólar Australiano (AUD)', 'krayin' => 'Krayin', 'bangladeshi-taka' => 'Taka de Bangladesh (BDT)', 'brazilian-real' => 'Real Brasileiro (BRL)', 'british-pound-sterling' => 'Libra Esterlina (GBP)', 'canadian-dollar' => 'Dólar Canadense (CAD)', 'cfa-franc-bceao' => 'Franco CFA BCEAO (XOF)', 'cfa-franc-beac' => 'Franco CFA BEAC (XAF)', 'chilean-peso' => 'Peso Chileno (CLP)', 'chinese-yuan' => 'Yuan Chinês (CNY)', 'colombian-peso' => 'Peso Colombiano (COP)', 'czech-koruna' => 'Coroa Tcheca (CZK)', 'danish-krone' => 'Coroa Dinamarquesa (DKK)', 'database-connection' => 'Conexão com o Banco de Dados', 'database-hostname' => 'Hostname do Banco de Dados', 'database-name' => 'Nome do Banco de Dados', 'database-password' => 'Senha do Banco de Dados', 'database-port' => 'Porta do Banco de Dados', 'database-prefix' => 'Prefixo do Banco de Dados', 'database-username' => 'Usuário do Banco de Dados', 'default-currency' => 'Moeda Padrão', 'default-locale' => 'Idioma Padrão', 'default-timezone' => 'Fuso Horário Padrão', 'default-url' => 'URL Padrão', 'default-url-link' => 'https://localhost', 'egyptian-pound' => 'Libra Egípcia (EGP)', 'euro' => 'Euro (EUR)', 'fijian-dollar' => 'Dólar de Fiji (FJD)', 'hong-kong-dollar' => 'Dólar de Hong Kong (HKD)', 'hungarian-forint' => 'Forint Húngaro (HUF)', 'indian-rupee' => 'Rúpia Indiana (INR)', 'indonesian-rupiah' => 'Rupia Indonésia (IDR)', 'israeli-new-shekel' => 'Novo Shekel Israelense (ILS)', 'japanese-yen' => 'Iene Japonês (JPY)', 'jordanian-dinar' => 'Dinar Jordaniano (JOD)', 'kazakhstani-tenge' => 'Tenge Cazaque (KZT)', 'kuwaiti-dinar' => 'Dinar Kuwaitiano (KWD)', 'lebanese-pound' => 'Libra Libanesa (LBP)', 'libyan-dinar' => 'Dinar Líbio (LYD)', 'malaysian-ringgit' => 'Ringgit Malaio (MYR)', 'mauritian-rupee' => 'Rúpia Mauriciana (MUR)', 'mexican-peso' => 'Peso Mexicano (MXN)', 'moroccan-dirham' => 'Dirham Marroquino (MAD)', 'mysql' => 'Mysql', 'nepalese-rupee' => 'Rúpia Nepalesa (NPR)', 'new-taiwan-dollar' => 'Novo Dólar Taiwanês (TWD)', 'new-zealand-dollar' => 'Dólar Neozelandês (NZD)', 'nigerian-naira' => 'Naira Nigeriana (NGN)', 'norwegian-krone' => 'Coroa Norueguesa (NOK)', 'omani-rial' => 'Rial Omanense (OMR)', 'pakistani-rupee' => 'Rúpia Paquistanesa (PKR)', 'panamanian-balboa' => 'Balboa Panamenho (PAB)', 'paraguayan-guarani' => 'Guarani Paraguaio (PYG)', 'peruvian-nuevo-sol' => 'Novo Sol Peruano (PEN)', 'pgsql' => 'pgSQL', 'philippine-peso' => 'Peso Filipino (PHP)', 'polish-zloty' => 'Zloty Polonês (PLN)', 'qatari-rial' => 'Rial Catariano (QAR)', 'romanian-leu' => 'Leu Romeno (RON)', 'russian-ruble' => 'Rublo Russo (RUB)', 'saudi-riyal' => 'Riyal Saudita (SAR)', 'select-timezone' => 'Selecionar Fuso Horário', 'singapore-dollar' => 'Dólar de Singapura (SGD)', 'south-african-rand' => 'Rand Sul-Africano (ZAR)', 'south-korean-won' => 'Won Sul-Coreano (KRW)', 'sqlsrv' => 'SQLSRV', 'sri-lankan-rupee' => 'Rúpia do Sri Lanka (LKR)', 'swedish-krona' => 'Coroa Sueca (SEK)', 'swiss-franc' => 'Franco Suíço (CHF)', 'thai-baht' => 'Baht Tailandês (THB)', 'title' => 'Configuração da Loja', 'tunisian-dinar' => 'Dinar Tunisiano (TND)', 'turkish-lira' => 'Lira Turca (TRY)', 'ukrainian-hryvnia' => 'Hryvnia Ucraniana (UAH)', 'united-arab-emirates-dirham' => 'Dirham dos Emirados Árabes Unidos (AED)', 'united-states-dollar' => 'Dólar dos Estados Unidos (USD)', 'uzbekistani-som' => 'Som Uzbeque (UZS)', 'venezuelan-bolívar' => 'Bolívar Venezuelano (VEF)', 'vietnamese-dong' => 'Dong Vietnamita (VND)', 'warning-message' => 'Atenção! As configurações de idioma padrão e moeda padrão são permanentes e não podem ser alteradas após definidas.', 'zambian-kwacha' => 'Kwacha Zambiano (ZMW)', ], 'installation-processing' => [ 'krayin' => 'Instalação do Krayin', 'krayin-info' => 'Criando as tabelas do banco de dados, isso pode levar alguns momentos', 'title' => 'Instalação', ], 'installation-completed' => [ 'admin-panel' => 'Painel de Administração', 'krayin-forums' => 'Fórum do Krayin', 'customer-panel' => 'Painel do Cliente', 'explore-krayin-extensions' => 'Explorar Extensões do Krayin', 'title' => 'Instalação Concluída', 'title-info' => 'O Krayin foi instalado com sucesso no seu sistema.', ], 'ready-for-installation' => [ 'create-databsae-table' => 'Criar as tabelas do banco de dados', 'install' => 'Instalar', 'install-info' => 'Krayin para Instalação', 'install-info-button' => 'Clique no botão abaixo para', 'populate-database-table' => 'Preencher as tabelas do banco de dados', 'start-installation' => 'Iniciar Instalação', 'title' => 'Pronto para Instalação', ], 'start' => [ 'locale' => 'Localidade', 'main' => 'Início', 'select-locale' => 'Selecionar Localidade', 'title' => 'Instalação do Krayin', 'welcome-title' => 'Bem-vindo ao Krayin', ], 'server-requirements' => [ 'calendar' => 'Calendário', 'ctype' => 'cType', 'curl' => 'cURL', 'dom' => 'DOM', 'fileinfo' => 'fileInfo', 'filter' => 'Filtro', 'gd' => 'GD', 'hash' => 'Hash', 'intl' => 'Intl', 'json' => 'JSON', 'mbstring' => 'mbstring', 'openssl' => 'openssl', 'pcre' => 'pcre', 'pdo' => 'pdo', 'php' => 'PHP', 'php-version' => '8.1 ou superior', 'session' => 'Sessão', 'title' => 'Requisitos do Sistema', 'tokenizer' => 'Tokenizador', 'xml' => 'XML', ], 'back' => 'Voltar', 'krayin' => 'Krayin', 'krayin-info' => 'um Projeto Comunitário por', 'krayin-logo' => 'Logotipo Krayin', 'continue' => 'Continuar', 'installation-description' => 'A instalação do Krayin geralmente envolve várias etapas. Aqui está um resumo do processo de instalação do Krayin.', 'installation-info' => 'Estamos felizes em vê-lo aqui!', 'installation-title' => 'Bem-vindo à Instalação', 'installation-wizard' => 'Assistente de Instalação - Idioma', 'title' => 'Instalador do Krayin', 'webkul' => 'Webkul', ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/lang/fa/app.php
packages/Webkul/Installer/src/Resources/lang/fa/app.php
<?php return [ 'seeders' => [ 'attributes' => [ 'leads' => [ 'description' => 'توضیحات', 'expected-close-date' => 'تاریخ بسته شدن مورد انتظار', 'lead-value' => 'ارزش سرنخ', 'sales-owner' => 'مالک فروش', 'source' => 'منبع', 'title' => 'عنوان', 'type' => 'نوع', 'pipeline' => 'پایپ لاین', 'stage' => 'مرحله', ], 'persons' => [ 'contact-numbers' => 'شماره‌های تماس', 'emails' => 'ایمیل‌ها', 'job-title' => 'عنوان شغلی', 'name' => 'نام', 'organization' => 'سازمان', 'sales-owner' => 'مالک فروش', ], 'organizations' => [ 'address' => 'آدرس', 'name' => 'نام', 'sales-owner' => 'مالک فروش', ], 'products' => [ 'description' => 'توضیحات', 'name' => 'نام', 'price' => 'قیمت', 'quantity' => 'کمیت', 'sku' => 'SKU', ], 'quotes' => [ 'adjustment-amount' => 'مقدار تنظیم', 'billing-address' => 'آدرس صورت‌حساب', 'description' => 'توضیحات', 'discount-amount' => 'مقدار تخفیف', 'discount-percent' => 'درصد تخفیف', 'expired-at' => 'منقضی شده در', 'grand-total' => 'مجموع کل', 'person' => 'شخص', 'sales-owner' => 'مالک فروش', 'shipping-address' => 'آدرس ارسال', 'sub-total' => 'جمع جزئی', 'subject' => 'موضوع', 'tax-amount' => 'مقدار مالیات', ], 'warehouses' => [ 'contact-address' => 'آدرس تماس', 'contact-emails' => 'ایمیل‌های تماس', 'contact-name' => 'نام تماس', 'contact-numbers' => 'شماره‌های تماس', 'description' => 'توضیحات', 'name' => 'نام', ], ], 'email' => [ 'activity-created' => 'فعالیت ایجاد شد', 'activity-modified' => 'فعالیت ویرایش شد', 'date' => 'تاریخ', 'new-activity' => 'شما یک فعالیت جدید دارید، لطفاً جزئیات را در زیر پیدا کنید', 'new-activity-modified' => 'شما یک فعالیت جدید ویرایش شده دارید، لطفاً جزئیات را در زیر پیدا کنید', 'participants' => 'شرکت‌کنندگان', 'title' => 'عنوان', 'type' => 'نوع', ], 'lead' => [ 'pipeline' => [ 'default' => 'پایپ لاین پیش‌فرض', 'pipeline-stages' => [ 'follow-up' => 'پیگیری', 'lost' => 'گم‌شده', 'negotiation' => 'مذاکره', 'new' => 'جدید', 'prospect' => 'مشتری بالقوه', 'won' => 'برد', ], ], 'source' => [ 'direct' => 'مستقیم', 'email' => 'ایمیل', 'phone' => 'تلفن', 'web' => 'وب', 'web-form' => 'فرم وب', ], 'type' => [ 'existing-business' => 'کسب و کار موجود', 'new-business' => 'کسب و کار جدید', ], ], 'user' => [ 'role' => [ 'administrator-role' => 'نقش مدیر', 'administrator' => 'مدیر', ], ], 'workflow' => [ 'email-to-participants-after-activity-updation' => 'ایمیل‌ها به شرکت‌کنندگان پس از به‌روزرسانی فعالیت', 'email-to-participants-after-activity-creation' => 'ایمیل‌ها به شرکت‌کنندگان پس از ایجاد فعالیت', ], ], 'installer' => [ 'index' => [ 'create-administrator' => [ 'admin' => 'مدیر', 'krayin' => 'کرایین', 'confirm-password' => 'تایید رمز عبور', 'email' => 'ایمیل', 'email-address' => 'admin@example.com', 'password' => 'رمز عبور', 'title' => 'ایجاد مدیر', ], 'environment-configuration' => [ 'algerian-dinar' => 'دینار الجزایر (DZD)', 'allowed-currencies' => 'ارزهای مجاز', 'allowed-locales' => 'زبان‌های مجاز', 'application-name' => 'نام برنامه', 'argentine-peso' => 'پزو آرژانتین (ARS)', 'australian-dollar' => 'دلار استرالیا (AUD)', 'krayin' => 'کرایین', 'bangladeshi-taka' => 'تاکا بنگلادش (BDT)', 'brazilian-real' => 'رئال برزیل (BRL)', 'british-pound-sterling' => 'پوند استرلینگ بریتانیا (GBP)', 'canadian-dollar' => 'دلار کانادا (CAD)', 'cfa-franc-bceao' => 'فرانک CFA BCEAO (XOF)', 'cfa-franc-beac' => 'فرانک CFA BEAC (XAF)', 'chilean-peso' => 'پزو شیلی (CLP)', 'chinese-yuan' => 'یوان چین (CNY)', 'colombian-peso' => 'پزو کلمبیا (COP)', 'czech-koruna' => 'کرونا چک (CZK)', 'danish-krone' => 'کرون دانمارک (DKK)', 'database-connection' => 'اتصال پایگاه داده', 'database-hostname' => 'نام میزبان پایگاه داده', 'database-name' => 'نام پایگاه داده', 'database-password' => 'رمز عبور پایگاه داده', 'database-port' => 'پورت پایگاه داده', 'database-prefix' => 'پیشوند پایگاه داده', 'database-username' => 'نام کاربری پایگاه داده', 'default-currency' => 'ارز پیش‌فرض', 'default-locale' => 'زبان پیش‌فرض', 'default-timezone' => 'منطقه زمانی پیش‌فرض', 'default-url' => 'آدرس URL پیش‌فرض', 'default-url-link' => 'https://localhost', 'egyptian-pound' => 'پوند مصر (EGP)', 'euro' => 'یورو (EUR)', 'fijian-dollar' => 'دلار فیجی (FJD)', 'hong-kong-dollar' => 'دلار هنگ کنگ (HKD)', 'hungarian-forint' => 'فورینت مجارستان (HUF)', 'indian-rupee' => 'روپیه هند (INR)', 'indonesian-rupiah' => 'روپیه اندونزی (IDR)', 'israeli-new-shekel' => 'شکل جدید اسرائیل (ILS)', 'japanese-yen' => 'ین ژاپن (JPY)', 'jordanian-dinar' => 'دینار اردن (JOD)', 'kazakhstani-tenge' => 'تنگه قزاقستان (KZT)', 'kuwaiti-dinar' => 'دینار کویت (KWD)', 'lebanese-pound' => 'پوند لبنان (LBP)', 'libyan-dinar' => 'دینار لیبی (LYD)', 'malaysian-ringgit' => 'رینگیت مالزی (MYR)', 'mauritian-rupee' => 'روپیه موریس (MUR)', 'mexican-peso' => 'پزو مکزیک (MXN)', 'moroccan-dirham' => 'درهم مراکش (MAD)', 'mysql' => 'Mysql', 'nepalese-rupee' => 'روپیه نپال (NPR)', 'new-taiwan-dollar' => 'دلار جدید تایوان (TWD)', 'new-zealand-dollar' => 'دلار نیوزیلند (NZD)', 'nigerian-naira' => 'نایرا نیجریه (NGN)', 'norwegian-krone' => 'کرون نروژ (NOK)', 'omani-rial' => 'ریال عمان (OMR)', 'pakistani-rupee' => 'روپیه پاکستان (PKR)', 'panamanian-balboa' => 'بالبوآ پاناما (PAB)', 'paraguayan-guarani' => 'گوارانی پاراگوئه (PYG)', 'peruvian-nuevo-sol' => 'سول جدید پرو (PEN)', 'pgsql' => 'pgSQL', 'philippine-peso' => 'پزو فیلیپین (PHP)', 'polish-zloty' => 'زلوتی لهستان (PLN)', 'qatari-rial' => 'ریال قطر (QAR)', 'romanian-leu' => 'لئو رومانی (RON)', 'russian-ruble' => 'روبل روسیه (RUB)', 'saudi-riyal' => 'ریال عربستان (SAR)', 'select-timezone' => 'منطقه زمانی را انتخاب کنید', 'singapore-dollar' => 'دلار سنگاپور (SGD)', 'south-african-rand' => 'راند آفریقای جنوبی (ZAR)', 'south-korean-won' => 'وون کره جنوبی (KRW)', 'sqlsrv' => 'SQLSRV', 'sri-lankan-rupee' => 'روپیه سریلانکا (LKR)', 'swedish-krona' => 'کرون سوئد (SEK)', 'swiss-franc' => 'فرانک سوئیس (CHF)', 'thai-baht' => 'بات تایلند (THB)', 'title' => 'پیکربندی فروشگاه', 'tunisian-dinar' => 'دینار تونس (TND)', 'turkish-lira' => 'لیر ترکیه (TRY)', 'ukrainian-hryvnia' => 'هریونیا اوکراین (UAH)', 'united-arab-emirates-dirham' => 'درهم امارات متحده عربی (AED)', 'united-states-dollar' => 'دلار ایالات متحده (USD)', 'uzbekistani-som' => 'سوم ازبکستان (UZS)', 'venezuelan-bolívar' => 'بولیوار ونزوئلا (VEF)', 'vietnamese-dong' => 'دونگ ویتنام (VND)', 'warning-message' => 'هشدار! تنظیمات زبان پیش‌فرض سیستم و ارز پیش‌فرض دائمی هستند و پس از تنظیم قابل تغییر نیستند.', 'zambian-kwacha' => 'کواچای زامبیا (ZMW)', ], 'installation-processing' => [ 'krayin' => 'نصب کرایین', 'krayin-info' => 'در حال ایجاد جداول پایگاه داده، این ممکن است چند لحظه طول بکشد', 'title' => 'نصب', ], 'installation-completed' => [ 'admin-panel' => 'پنل مدیریت', 'krayin-forums' => 'انجمن کرایین', 'customer-panel' => 'پنل مشتری', 'explore-krayin-extensions' => 'کاوش افزونه‌های کرایین', 'title' => 'نصب کامل شد', 'title-info' => 'کرایین با موفقیت بر روی سیستم شما نصب شد.', ], 'ready-for-installation' => [ 'create-databsae-table' => 'ایجاد جدول پایگاه داده', 'install' => 'نصب', 'install-info' => 'کرایین برای نصب', 'install-info-button' => 'برای شروع، دکمه زیر را کلیک کنید', 'populate-database-table' => 'پر کردن جداول پایگاه داده', 'start-installation' => 'شروع نصب', 'title' => 'آماده برای نصب', ], 'start' => [ 'locale' => 'زبان', 'main' => 'شروع', 'select-locale' => 'انتخاب زبان', 'title' => 'نصب کرایین شما', 'welcome-title' => 'به کرایین خوش آمدید', ], 'server-requirements' => [ 'calendar' => 'تقویم', 'ctype' => 'cType', 'curl' => 'cURL', 'dom' => 'dom', 'fileinfo' => 'fileInfo', 'filter' => 'فیلتر', 'gd' => 'GD', 'hash' => 'Hash', 'intl' => 'intl', 'json' => 'JSON', 'mbstring' => 'mbstring', 'openssl' => 'openssl', 'pcre' => 'pcre', 'pdo' => 'pdo', 'php' => 'PHP', 'php-version' => '8.1 یا بالاتر', 'session' => 'session', 'title' => 'نیازمندی‌های سیستم', 'tokenizer' => 'tokenizer', 'xml' => 'XML', ], 'back' => 'بازگشت', 'krayin' => 'کرایین', 'krayin-info' => 'یک پروژه اجتماعی توسط', 'krayin-logo' => 'لوگوی کرایین', 'continue' => 'ادامه', 'installation-description' => 'نصب کرایین معمولاً شامل چندین مرحله است. در اینجا یک طرح کلی از فرآیند نصب کرایین آمده است', 'installation-info' => 'خوشحالیم که شما را اینجا می‌بینیم!', 'installation-title' => 'به نصب خوش آمدید', 'installation-wizard' => 'زبان جادوگر نصب', 'title' => 'نصب‌کننده کرایین', 'webkul' => 'وبکول', ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/lang/es/app.php
packages/Webkul/Installer/src/Resources/lang/es/app.php
<?php return [ 'seeders' => [ 'attributes' => [ 'leads' => [ 'description' => 'Descripción', 'expected-close-date' => 'Fecha de Cierre Esperada', 'lead-value' => 'Valor del Prospecto', 'sales-owner' => 'Propietario de Ventas', 'source' => 'Fuente', 'title' => 'Título', 'type' => 'Tipo', 'pipeline' => 'Pipeline', 'stage' => 'Etapa', ], 'persons' => [ 'contact-numbers' => 'Números de Contacto', 'emails' => 'Correos Electrónicos', 'job-title' => 'Cargo', 'name' => 'Nombre', 'organization' => 'Organización', 'sales-owner' => 'Propietario de Ventas', ], 'organizations' => [ 'address' => 'Dirección', 'name' => 'Nombre', 'sales-owner' => 'Propietario de Ventas', ], 'products' => [ 'description' => 'Descripción', 'name' => 'Nombre', 'price' => 'Precio', 'quantity' => 'Cantidad', 'sku' => 'SKU', ], 'quotes' => [ 'adjustment-amount' => 'Cantidad de Ajuste', 'billing-address' => 'Dirección de Facturación', 'description' => 'Descripción', 'discount-amount' => 'Cantidad de Descuento', 'discount-percent' => 'Porcentaje de Descuento', 'expired-at' => 'Expira el', 'grand-total' => 'Total General', 'person' => 'Persona', 'sales-owner' => 'Propietario de Ventas', 'shipping-address' => 'Dirección de Envío', 'sub-total' => 'Subtotal', 'subject' => 'Asunto', 'tax-amount' => 'Cantidad de Impuestos', ], 'warehouses' => [ 'contact-address' => 'Dirección de Contacto', 'contact-emails' => 'Correos Electrónicos de Contacto', 'contact-name' => 'Nombre de Contacto', 'contact-numbers' => 'Números de Contacto', 'description' => 'Descripción', 'name' => 'Nombre', ], ], 'email' => [ 'activity-created' => 'Actividad Creada', 'activity-modified' => 'Actividad Modificada', 'date' => 'Fecha', 'new-activity' => 'Tienes una nueva actividad, encuentra los detalles a continuación', 'new-activity-modified' => 'Tienes una actividad modificada, encuentra los detalles a continuación', 'participants' => 'Participantes', 'title' => 'Título', 'type' => 'Tipo', ], 'lead' => [ 'pipeline' => [ 'default' => 'Pipeline Predeterminado', 'pipeline-stages' => [ 'follow-up' => 'Seguimiento', 'lost' => 'Perdido', 'negotiation' => 'Negociación', 'new' => 'Nuevo', 'prospect' => 'Prospecto', 'won' => 'Ganado', ], ], 'source' => [ 'direct' => 'Directo', 'email' => 'Correo Electrónico', 'phone' => 'Teléfono', 'web' => 'Web', 'web-form' => 'Formulario Web', ], 'type' => [ 'existing-business' => 'Negocio Existente', 'new-business' => 'Nuevo Negocio', ], ], 'user' => [ 'role' => [ 'administrator-role' => 'Rol de Administrador', 'administrator' => 'Administrador', ], ], 'workflow' => [ 'email-to-participants-after-activity-updation' => 'Correos electrónicos a los participantes tras la actualización de actividades', 'email-to-participants-after-activity-creation' => 'Correos electrónicos a los participantes tras la creación de actividades', ], ], 'installer' => [ 'index' => [ 'create-administrator' => [ 'admin' => 'Admin', 'krayin' => 'Krayin', 'confirm-password' => 'Confirmar Contraseña', 'email' => 'Correo Electrónico', 'email-address' => 'admin@example.com', 'password' => 'Contraseña', 'title' => 'Crear Administrador', ], 'environment-configuration' => [ 'algerian-dinar' => 'Dinar Argelino (DZD)', 'allowed-currencies' => 'Monedas Permitidas', 'allowed-locales' => 'Idiomas Permitidos', 'application-name' => 'Nombre de la Aplicación', 'argentine-peso' => 'Peso Argentino (ARS)', 'australian-dollar' => 'Dólar Australiano (AUD)', 'krayin' => 'Krayin', 'bangladeshi-taka' => 'Taka Bangladesí (BDT)', 'brazilian-real' => 'Real Brasileño (BRL)', 'british-pound-sterling' => 'Libra Esterlina (GBP)', 'canadian-dollar' => 'Dólar Canadiense (CAD)', 'cfa-franc-bceao' => 'Franco CFA BCEAO (XOF)', 'cfa-franc-beac' => 'Franco CFA BEAC (XAF)', 'chilean-peso' => 'Peso Chileno (CLP)', 'chinese-yuan' => 'Yuan Chino (CNY)', 'colombian-peso' => 'Peso Colombiano (COP)', 'czech-koruna' => 'Corona Checa (CZK)', 'danish-krone' => 'Corona Danesa (DKK)', 'database-connection' => 'Conexión de Base de Datos', 'database-hostname' => 'Nombre del Host de la Base de Datos', 'database-name' => 'Nombre de la Base de Datos', 'database-password' => 'Contraseña de la Base de Datos', 'database-port' => 'Puerto de la Base de Datos', 'database-prefix' => 'Prefijo de la Base de Datos', 'database-username' => 'Usuario de la Base de Datos', 'default-currency' => 'Moneda Predeterminada', 'default-locale' => 'Idioma Predeterminado', 'default-timezone' => 'Zona Horaria Predeterminada', 'default-url' => 'URL Predeterminada', 'default-url-link' => 'https://localhost', 'egyptian-pound' => 'Libra Egipcia (EGP)', 'euro' => 'Euro (EUR)', 'fijian-dollar' => 'Dólar Fiyiano (FJD)', 'hong-kong-dollar' => 'Dólar de Hong Kong (HKD)', 'hungarian-forint' => 'Forinto Húngaro (HUF)', 'indian-rupee' => 'Rupia India (INR)', 'indonesian-rupiah' => 'Rupia Indonesia (IDR)', 'israeli-new-shekel' => 'Nuevo Shekel Israelí (ILS)', 'japanese-yen' => 'Yen Japonés (JPY)', 'jordanian-dinar' => 'Dinar Jordano (JOD)', 'kazakhstani-tenge' => 'Tenge Kazajo (KZT)', 'kuwaiti-dinar' => 'Dinar Kuwaití (KWD)', 'lebanese-pound' => 'Libra Libanesa (LBP)', 'libyan-dinar' => 'Dinar Libio (LYD)', 'malaysian-ringgit' => 'Ringgit Malayo (MYR)', 'mauritian-rupee' => 'Rupia de Mauricio (MUR)', 'mexican-peso' => 'Peso Mexicano (MXN)', 'moroccan-dirham' => 'Dirham Marroquí (MAD)', 'mysql' => 'Mysql', 'nepalese-rupee' => 'Rupia Nepalesa (NPR)', 'new-taiwan-dollar' => 'Nuevo Dólar Taiwanés (TWD)', 'new-zealand-dollar' => 'Dólar Neozelandés (NZD)', 'nigerian-naira' => 'Naira Nigeriana (NGN)', 'norwegian-krone' => 'Corona Noruega (NOK)', 'omani-rial' => 'Rial Omaní (OMR)', 'pakistani-rupee' => 'Rupia Paquistaní (PKR)', 'panamanian-balboa' => 'Balboa Panameño (PAB)', 'paraguayan-guarani' => 'Guaraní Paraguayo (PYG)', 'peruvian-nuevo-sol' => 'Nuevo Sol Peruano (PEN)', 'pgsql' => 'pgSQL', 'philippine-peso' => 'Peso Filipino (PHP)', 'polish-zloty' => 'Zloty Polaco (PLN)', 'qatari-rial' => 'Rial Catarí (QAR)', 'romanian-leu' => 'Leu Rumano (RON)', 'russian-ruble' => 'Rublo Ruso (RUB)', 'saudi-riyal' => 'Riyal Saudí (SAR)', 'select-timezone' => 'Seleccionar Zona Horaria', 'singapore-dollar' => 'Dólar de Singapur (SGD)', 'south-african-rand' => 'Rand Sudafricano (ZAR)', 'south-korean-won' => 'Won Surcoreano (KRW)', 'sqlsrv' => 'SQLSRV', 'sri-lankan-rupee' => 'Rupia de Sri Lanka (LKR)', 'swedish-krona' => 'Corona Sueca (SEK)', 'swiss-franc' => 'Franco Suizo (CHF)', 'thai-baht' => 'Baht Tailandés (THB)', 'title' => 'Configuración de la Tienda', 'tunisian-dinar' => 'Dinar Tunecino (TND)', 'turkish-lira' => 'Lira Turca (TRY)', 'ukrainian-hryvnia' => 'Grivna Ucraniana (UAH)', 'united-arab-emirates-dirham' => 'Dírham de los Emiratos Árabes Unidos (AED)', 'united-states-dollar' => 'Dólar Estadounidense (USD)', 'uzbekistani-som' => 'Som Uzbeko (UZS)', 'venezuelan-bolívar' => 'Bolívar Venezolano (VEF)', 'vietnamese-dong' => 'Dong Vietnamita (VND)', 'warning-message' => '¡Atención! Los ajustes de idioma y moneda predeterminados son permanentes y no se pueden cambiar una vez configurados.', 'zambian-kwacha' => 'Kwacha de Zambia (ZMW)', ], 'installation-processing' => [ 'krayin' => 'Instalación de Krayin', 'krayin-info' => 'Creando las tablas de la base de datos, esto puede tardar unos momentos', 'title' => 'Instalación', ], 'installation-completed' => [ 'admin-panel' => 'Panel de Administración', 'krayin-forums' => 'Foro de Krayin', 'customer-panel' => 'Panel de Clientes', 'explore-krayin-extensions' => 'Explorar Extensiones de Krayin', 'title' => 'Instalación Completada', 'title-info' => 'Krayin se ha instalado correctamente en su sistema.', ], 'ready-for-installation' => [ 'create-databsae-table' => 'Crear tabla de base de datos', 'install' => 'Instalación', 'install-info' => 'Krayin Para la Instalación', 'install-info-button' => 'Haga clic en el botón a continuación para', 'populate-database-table' => 'Rellenar las tablas de la base de datos', 'start-installation' => 'Iniciar Instalación', 'title' => 'Listo para la Instalación', ], 'start' => [ 'locale' => 'Idioma', 'main' => 'Iniciar', 'select-locale' => 'Seleccionar Idioma', 'title' => 'Instalación de Krayin', 'welcome-title' => 'Bienvenido a Krayin', ], 'server-requirements' => [ 'calendar' => 'Calendario', 'ctype' => 'cType', 'curl' => 'cURL', 'dom' => 'dom', 'fileinfo' => 'fileInfo', 'filter' => 'Filtro', 'gd' => 'GD', 'hash' => 'Hash', 'intl' => 'intl', 'json' => 'JSON', 'mbstring' => 'mbstring', 'openssl' => 'openssl', 'pcre' => 'pcre', 'pdo' => 'pdo', 'php' => 'PHP', 'php-version' => '8.1 o superior', 'session' => 'sesión', 'title' => 'Requisitos del Sistema', 'tokenizer' => 'tokenizador', 'xml' => 'XML', ], 'back' => 'Atrás', 'krayin' => 'Krayin', 'krayin-info' => 'un Proyecto Comunitario de', 'krayin-logo' => 'Logotipo de Krayin', 'continue' => 'Continuar', 'installation-description' => 'La instalación de Krayin generalmente implica varios pasos. Aquí hay un esquema general del proceso de instalación de Krayin.', 'installation-info' => '¡Estamos encantados de verte aquí!', 'installation-title' => 'Bienvenido a la Instalación', 'asistente-de-instalación' => 'Idioma del Asistente de Instalación', 'title' => 'Instalador de Krayin', 'webkul' => 'Webkul', ], ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/views/components/button/index.blade.php
packages/Webkul/Installer/src/Resources/views/components/button/index.blade.php
<v-button {{ $attributes }}></v-button> @pushOnce('scripts') <script type="text/x-template" id="v-button-template" > <button v-if="! loading" :class="[buttonClass, '']" > @{{ title }} </button> <button v-else :class="[buttonClass, '']" > <!-- Spinner --> <svg class="absolute h-5 w-5 animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" viewBox="0 0 24 24" > <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" > </circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" > </path> </svg> <span class="realative h-full w-full opacity-0"> @{{ title }} </span> </button> </script> <script type="module"> app.component('v-button', { template: '#v-button-template', props: { loading: Boolean, buttonType: String, title: String, buttonClass: String, }, }); </script> @endPushOnce
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/views/components/form/index.blade.php
packages/Webkul/Installer/src/Resources/views/components/form/index.blade.php
<!-- If a component has the `as` attribute, it indicates that it uses the ajaxified form or some customized slot form. --> @if ($attributes->has('as')) <v-form {{ $attributes }}> {{ $slot }} </v-form> <!-- Otherwise, a traditional form will be provided with a minimal set of configurations. --> @else @props(['method' => 'POST']) @php $method = strtoupper($method); @endphp <v-form method="{{ $method === 'GET' ? 'GET' : 'POST' }}" v-slot="{ meta, errors, setValues }" {{ $attributes }} > @unless(in_array($method, ['HEAD', 'GET', 'OPTIONS'])) @csrf @endunless @if (! in_array($method, ['GET', 'POST'])) @method($method) @endif {{ $slot }} </v-form> @endif
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/views/components/form/control-group/control.blade.php
packages/Webkul/Installer/src/Resources/views/components/form/control-group/control.blade.php
@props([ 'type' => 'text', 'name' => '', ]) @switch($type) @case('hidden') @case('text') @case('email') @case('password') @case('number') <v-field name="{{ $name }}" v-slot="{ field }" {{ $attributes->only(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label']) }} > <input type="{{ $type }}" name="{{ $name }}" v-bind="field" :class="[errors['{{ $name }}'] ? 'border border-red-600 hover:border-red-600' : '']" {{ $attributes->except(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label'])->merge(['class' => 'w-full appearance-none rounded-md border px-3 py-2 text-sm text-gray-600 transition-all hover:border-gray-400']) }} > </v-field> @break @case('select') <v-field name="{{ $name }}" v-slot="{ field }" {{ $attributes->only(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label']) }} > <select name="{{ $name }}" v-bind="field" :class="[errors['{{ $name }}'] ? 'border border-red-500' : '']" {{ $attributes->except(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label'])->merge(['class' => 'custom-select w-full rounded-md border bg-white px-3 py-2.5 text-sm font-normal text-gray-600 transition-all hover:border-gray-400']) }} > {{ $slot }} </select> </v-field> @break @case('checkbox') <v-field v-slot="{ field }" name="{{ $name }}" type="checkbox" class="hidden" {{ $attributes->only(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label']) }} > <input type="checkbox" name="{{ $name }}" v-bind="field" class="peer sr-only" {{ $attributes->except(['rules', 'label', ':label']) }} /> </v-field> <label class="icon-checkbox-normal peer-checked:icon-checkbox-active cursor-pointer text-2xl peer-checked:text-blue-600" {{ $attributes->except(['value', ':value', 'v-model', 'rules', ':rules', 'label', ':label']) }} > </label> @break @endswitch
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/views/components/form/control-group/label.blade.php
packages/Webkul/Installer/src/Resources/views/components/form/control-group/label.blade.php
<label {{ $attributes->merge(['class' => 'block text-4 font-medium leading-6 text-gray-800']) }}> {{ $slot }} </label>
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/views/components/form/control-group/index.blade.php
packages/Webkul/Installer/src/Resources/views/components/form/control-group/index.blade.php
<div {{ $attributes->merge(['class' => 'mb-2.5']) }}> {{ $slot }} </div>
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/views/components/form/control-group/error.blade.php
packages/Webkul/Installer/src/Resources/views/components/form/control-group/error.blade.php
@props(['controlName' => '']) @if (! empty($controlName)) <v-error-message name="{{ $controlName }}" {{ $attributes }} v-slot="{ message }" > <p {{ $attributes->merge(['class' => 'mt-1 text-red-600 text-xs italic']) }}> @{{ message }} </p> </v-error-message> @endif
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Resources/views/installer/index.blade.php
packages/Webkul/Installer/src/Resources/views/installer/index.blade.php
<!DOCTYPE html> <html lang="{{ app()->getLocale() }}" dir="{{ in_array(app()->getLocale(), ['ar', 'fa', 'he']) ? 'rtl' : 'ltr' }}" > <head> <title>@lang('installer::app.installer.index.title')</title> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="base-url" content="{{ url()->to('/') }}"> @stack('meta') {{ vite()->set(['src/Resources/assets/css/app.css', 'src/Resources/assets/js/app.js'], 'installer') }} <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap" rel="stylesheet" /> <link type="image/x-icon" href="{{ vite()->asset('images/favicon.ico', 'installer') }}" rel="shortcut icon" sizes="16x16" /> @stack('styles') </head> @php $locales = config('app.available_locales'); $currencies = [ 'AED' => 'united-arab-emirates-dirham', 'ARS' => 'argentine-peso', 'AUD' => 'australian-dollar', 'BDT' => 'bangladeshi-taka', 'BRL' => 'brazilian-real', 'CAD' => 'canadian-dollar', 'CHF' => 'swiss-franc', 'CLP' => 'chilean-peso', 'CNY' => 'chinese-yuan', 'COP' => 'colombian-peso', 'CZK' => 'czech-koruna', 'DKK' => 'danish-krone', 'DZD' => 'algerian-dinar', 'EGP' => 'egyptian-pound', 'EUR' => 'euro', 'FJD' => 'fijian-dollar', 'GBP' => 'british-pound-sterling', 'HKD' => 'hong-kong-dollar', 'HUF' => 'hungarian-forint', 'IDR' => 'indonesian-rupiah', 'ILS' => 'israeli-new-shekel', 'INR' => 'indian-rupee', 'JOD' => 'jordanian-dinar', 'JPY' => 'japanese-yen', 'KRW' => 'south-korean-won', 'KWD' => 'kuwaiti-dinar', 'KZT' => 'kazakhstani-tenge', 'LBP' => 'lebanese-pound', 'LKR' => 'sri-lankan-rupee', 'LYD' => 'libyan-dinar', 'MAD' => 'moroccan-dirham', 'MUR' => 'mauritian-rupee', 'MXN' => 'mexican-peso', 'MYR' => 'malaysian-ringgit', 'NGN' => 'nigerian-naira', 'NOK' => 'norwegian-krone', 'NPR' => 'nepalese-rupee', 'NZD' => 'new-zealand-dollar', 'OMR' => 'omani-rial', 'PAB' => 'panamanian-balboa', 'PEN' => 'peruvian-nuevo-sol', 'PHP' => 'philippine-peso', 'PKR' => 'pakistani-rupee', 'PLN' => 'polish-zloty', 'PYG' => 'paraguayan-guarani', 'QAR' => 'qatari-rial', 'RON' => 'romanian-leu', 'RUB' => 'russian-ruble', 'SAR' => 'saudi-riyal', 'SEK' => 'swedish-krona', 'SGD' => 'singapore-dollar', 'THB' => 'thai-baht', 'TND' => 'tunisian-dinar', 'TRY' => 'turkish-lira', 'TWD' => 'new-taiwan-dollar', 'UAH' => 'ukrainian-hryvnia', 'USD' => 'united-states-dollar', 'UZS' => 'uzbekistani-som', 'VEF' => 'venezuelan-bolívar', 'VND' => 'vietnamese-dong', 'XAF' => 'cfa-franc-beac', 'XOF' => 'cfa-franc-bceao', 'ZAR' => 'south-african-rand', 'ZMW' => 'zambian-kwacha' ]; @endphp <body class="h-full font-inter dark:bg-gray-950"> <div id="app" class="fixed w-full" > <div class="flex [&amp;>*]:w-[50%] gap-12 justify-center items-center"> <!-- Vue Component --> <v-server-requirements></v-server-requirements> </div> </div> @pushOnce('scripts') <script type="text/x-template" id="v-server-requirements-template" > <!-- Left Side Welcome to Installation --> <div class="flex flex-col justify-center"> <div class="m-auto grid h-[100vh] max-w-[362px] items-end"> <div class="grid gap-4"> <img src="{{ vite()->asset('images/krayin-logo.svg', 'installer') }}" alt="@lang('installer::app.installer.index.krayin-logo')" > <div class="grid gap-1.5"> <p class="text-xl font-bold text-gray-800"> @lang('installer::app.installer.index.installation-title') </p> <p class="text-sm text-gray-600"> @lang('installer::app.installer.index.installation-info') </p> </div> <div class="[&>*]:flex [&>*]:items-center [&>*]:gap-1 grid gap-3 text-sm text-gray-600"> <!-- Start --> <div :class="[stepStates.start == 'active' ? 'font-bold' : '']"> <template v-if="stepStates.start !== 'complete'"> <span class="text-xl" :class="stepStates.start === 'pending' ? 'icon-checkbox-outline' : 'icon-right-arrow'" > </span> </template> <template v-else> <span class="icon-tick text-green-500"></span> </template> <p>@lang('installer::app.installer.index.start.main')</p> </div> <!-- Server Environment --> <div class="flex items-center" :class="[stepStates.systemRequirements == 'active' ? 'font-bold' : '']" > <template v-if="stepStates.systemRequirements !== 'complete'"> <span class="text-xl" :class="stepStates.systemRequirements === 'pending' ? 'icon-checkbox-outline' : 'icon-right-arrow'" > </span> </template> <template v-else> <span class="icon-tick text-green-500"></span> </template> <p>@lang('installer::app.installer.index.server-requirements.title')</p> </div> <!-- ENV Database Configuration --> <div :class="[stepStates.envDatabase == 'active' ? 'font-bold' : '']"> <template v-if="stepStates.envDatabase !== 'complete'"> <span class="text-xl" :class="stepStates.envDatabase === 'pending' ? 'icon-checkbox-outline' : 'icon-right-arrow'" > </span> </template> <template v-else> <span class="icon-tick text-green-500"></span> </template> <p> @lang('installer::app.installer.index.environment-configuration.title') </p> </div> <!-- Ready For Installation --> <div :class="[stepStates.readyForInstallation == 'active' ? 'font-bold' : '']"> <template v-if="stepStates.readyForInstallation !== 'complete'"> <span class="text-xl" :class="stepStates.readyForInstallation === 'pending' ? 'icon-checkbox-outline' : 'icon-right-arrow'" > </span> </template> <template v-else> <span class="icon-tick text-green-500"></span> </template> <p>@lang('installer::app.installer.index.ready-for-installation.title')</p> </div> <!-- Create Admin Configuration --> <div :class="[stepStates.createAdmin == 'active' ? 'font-bold' : '']"> <template v-if="stepStates.createAdmin !== 'complete'"> <span class="text-xl" :class="stepStates.createAdmin === 'pending' ? 'icon-checkbox-outline' : 'icon-right-arrow'" > </span> </template> <template v-else> <span class="icon-tick text-green-500"></span> </template> <p>@lang('installer::app.installer.index.create-administrator.title')</p> </div> <!-- Installation Completed --> <div :class="[stepStates.installationCompleted == 'active' ? 'font-bold' : '']"> <template v-if="stepStates.installationCompleted !== 'complete'"> <span class="text-xl" :class="stepStates.installationCompleted === 'pending' ? 'icon-checkbox-outline' : 'icon-right-arrow'" > </span> </template> <template v-else> <span class="icon-tick text-green-500"></span> </template> <p>@lang('installer::app.installer.index.installation-completed.title')</p> </div> </div> </div> <p class="mb-6 w-full place-self-end text-left"> <a class="bg-white text-brandColor underline" href="https://krayincrm.com/" target="_blank" > @lang('installer::app.installer.index.krayin') </a> <span>@lang('installer::app.installer.index.krayin-info')</span> <a class="bg-white text-brandColor underline" href="https://webkul.com/" target="_blank" > @lang('installer::app.installer.index.webkul') </a> </p> </div> </div> <!-- Right Side Components --> <!-- Start --> <div class="w-full max-w-[568px] rounded-lg border-[1px] border-gray-300 bg-white" v-if="currentStep == 'start'" > <x-installer::form v-slot="{ meta, errors, handleSubmit }" as="div" ref="start" > <form @submit.prevent="handleSubmit($event, setLocale)" enctype="multipart/form-data" ref="multiLocaleForm" > <div class="border-b border-gray-300 px-4 py-3"> <p class="text-xl font-bold text-gray-800"> @lang('installer::app.installer.index.start.welcome-title') </p> </div> <div class="flex h-[388px] flex-col items-center gap-3 overflow-y-auto px-7 py-4"> <div class="container overflow-hidden"> <div class="flex h-[100px] flex-col justify-end gap-3"> <p class="text-center text-sm text-gray-600"> @lang('installer::app.installer.index.installation-description') </p> </div> <div class="flex h-72 flex-col justify-center gap-3 overflow-y-auto px-7 py-4"> <!-- Installation Wizard --> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label> @lang('installer::app.installer.index.installation-wizard') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="select" name="locale" rules="required" :value="app()->getLocale()" :label="trans('installer::app.installer.index.start.locale')" @change="$refs.multiLocaleForm.submit();" > <option value="" disabled > @lang('installer::app.installer.index.start.select-locale') </option> @foreach ($locales as $value => $label) <option value="{{ $value }}"> {{ ucfirst($label) }} </option> @endforeach </x-installer::form.control-group.control> <x-installer::form.control-group.error control-name="locale" /> </x-installer::form.control-group> </div> </div> </div> <div class="flex items-center justify-end px-4 py-3"> <button type="button" class="primary-button" tabindex="0" @click="nextForm" > @lang('installer::app.installer.index.continue') </button> </div> </form> </x-installer::form> </div> <!-- Systme Requirements --> <div class="w-full max-w-[568px] rounded-lg border border-gray-300 bg-white" v-if="currentStep == 'systemRequirements'" > <div class="flex items-center justify-between gap-2.5 border-b border-gray-300 px-4 py-3"> <p class="text-xl font-bold text-gray-800"> @lang('installer::app.installer.index.server-requirements.title') </p> </div> <div class="flex h-[486px] flex-col gap-4 overflow-y-auto border-b border-gray-300 px-7 py-4"> <div class="flex items-center gap-1"> <span class="{{ $phpVersion['supported'] ? 'icon-tick text-xl text-green-500' : '' }}"></span> <p class="text-sm font-semibold text-gray-600"> @lang('installer::app.installer.index.server-requirements.php') <span class="font-normal">(@lang('installer::app.installer.index.server-requirements.php-version'))</span> </p> </div> @foreach ($requirements['requirements'] as $requirement) @foreach ($requirement as $key => $item) <div class="flex items-center gap-1"> <span class="{{ $item ? 'icon-tick text-green-500' : 'icon-cross-large text-red-500' }} text-xl"></span> <p class="text-sm font-semibold text-gray-600"> @lang('installer::app.installer.index.server-requirements.' . $key) </p> </div> @endforeach @endforeach </div> @php $hasRequirement = false; foreach ($requirements['requirements']['php'] as $value) { if (!$value) { $hasRequirement = true; break; } } @endphp <div class="flex items-center justify-between px-4 py-2.5"> <div class="cursor-pointer text-base font-semibold text-brandColor" role="button" aria-label="@lang('installer::app.installer.index.back')" tabindex="0" @click="back" > @lang('installer::app.installer.index.back') </div> <div class="{{ $hasRequirement ? 'opacity-50 cursor-not-allowed' : ''}} px-3 py-1.5 bg-brandColor border border-brandColor rounded-md text-gray-50 font-semibold cursor-pointer {{ $hasRequirement ?: 'hover:opacity-90' }}" @click="nextForm" tabindex="0" > @lang('installer::app.installer.index.continue') </div> </div> </div> <!-- Environment Configuration Database --> <div class="w-full max-w-[568px] rounded-lg border-[1px] border-gray-300 bg-white" v-if="currentStep == 'envDatabase'" > <x-installer::form v-slot="{ meta, errors, handleSubmit }" as="div" ref="envDatabase" > <form @submit.prevent="handleSubmit($event, FormSubmit)" enctype="multipart/form-data" > <div class="flex items-center justify-between gap-2.5 border-b border-gray-300 px-4 py-3"> <p class="text-xl font-bold text-gray-800"> @lang('installer::app.installer.index.environment-configuration.title') </p> </div> <div class="flex h-[484px] flex-col gap-3 overflow-y-auto border-b border-gray-300 px-7 py-4"> <!-- Database Connection--> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label class="required"> @lang('installer::app.installer.index.environment-configuration.database-connection') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="select" name="db_connection" ::value="envData.db_connection ?? 'mysql'" rules="required" :label="trans('installer::app.installer.index.environment-configuration.database-connection')" :placeholder="trans('installer::app.installer.index.environment-configuration.database-connection')" > <option value="mysql" selected > @lang('installer::app.installer.index.environment-configuration.mysql') </option> </x-installer::form.control-group.control> <x-installer::form.control-group.error control-name="db_connection" /> </x-installer::form.control-group> <!-- Database Hostname--> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label class="required"> @lang('installer::app.installer.index.environment-configuration.database-hostname') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="text" name="db_hostname" ::value="envData.db_hostname ?? '127.0.0.1'" rules="required" :label="trans('installer::app.installer.index.environment-configuration.database-hostname')" :placeholder="trans('installer::app.installer.index.environment-configuration.database-hostname')" /> <x-installer::form.control-group.error control-name="db_hostname" /> </x-installer::form.control-group> <!-- Database Port--> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label class="required"> @lang('installer::app.installer.index.environment-configuration.database-port') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="text" name="db_port" ::value="envData.db_port ?? '3306'" rules="required" :label="trans('installer::app.installer.index.environment-configuration.database-port')" :placeholder="trans('installer::app.installer.index.environment-configuration.database-port')" /> <x-installer::form.control-group.error control-name="db_port" /> </x-installer::form.control-group> <!-- Database name--> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label class="required"> @lang('installer::app.installer.index.environment-configuration.database-name') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="text" name="db_name" ::value="envData.db_name" rules="required" :label="trans('installer::app.installer.index.environment-configuration.database-name')" :placeholder="trans('installer::app.installer.index.environment-configuration.database-name')" /> <x-installer::form.control-group.error control-name="db_name" /> </x-installer::form.control-group> <!-- Database Prefix--> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label> @lang('installer::app.installer.index.environment-configuration.database-prefix') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="text" name="db_prefix" ::value="envData.db_prefix" :label="trans('installer::app.installer.index.environment-configuration.database-prefix')" :placeholder="trans('installer::app.installer.index.environment-configuration.database-prefix')" /> <x-installer::form.control-group.error control-name="db_prefix" /> </x-installer::form.control-group> <!-- Database Username--> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label class="required"> @lang('installer::app.installer.index.environment-configuration.database-username') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="text" name="db_username" ::value="envData.db_username" rules="required" :label="trans('installer::app.installer.index.environment-configuration.database-username')" :placeholder="trans('installer::app.installer.index.environment-configuration.database-username')" /> <x-installer::form.control-group.error control-name="db_username" /> </x-installer::form.control-group> <!-- Database Password--> <x-installer::form.control-group class="mb-2.5"> <x-installer::form.control-group.label> @lang('installer::app.installer.index.environment-configuration.database-password') </x-installer::form.control-group.label> <x-installer::form.control-group.control type="password" name="db_password" ::value="envData.db_password" :label="trans('installer::app.installer.index.environment-configuration.database-password')" :placeholder="trans('installer::app.installer.index.environment-configuration.database-password')" /> <x-installer::form.control-group.error control-name="db_password" /> </x-installer::form.control-group> </div> <div class="flex items-center justify-between px-4 py-2.5"> <div class="cursor-pointer text-base font-semibold text-brandColor" role="button" :aria-label="@lang('installer::app.installer.index.back')" tabindex="0" @click="back" > @lang('installer::app.installer.index.back') </div> <button type="submit" class="primary-button" tabindex="0" > @lang('installer::app.installer.index.continue') </button> </div> </form> </x-installer::form> </div> <!-- Ready For Installation --> <div class="w-full max-w-[568px] rounded-lg border-[1px] border-gray-300 bg-white" v-if="currentStep == 'readyForInstallation'" > <x-installer::form v-slot="{ meta, errors, handleSubmit }" as="div" ref="envDatabase" > <form @submit.prevent="handleSubmit($event, FormSubmit)" enctype="multipart/form-data" > <div class="flex items-center justify-between gap-2.5 border-b border-gray-300 px-4 py-3"> <p class="text-xl font-bold text-gray-800"> @lang('installer::app.installer.index.ready-for-installation.install') </p> </div>
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
true
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Providers/InstallerServiceProvider.php
packages/Webkul/Installer/src/Providers/InstallerServiceProvider.php
<?php namespace Webkul\Installer\Providers; use Illuminate\Routing\Router; use Illuminate\Support\Facades\Event; use Illuminate\Support\ServiceProvider; use Webkul\Installer\Console\Commands\Installer as InstallerCommand; use Webkul\Installer\Http\Middleware\CanInstall; use Webkul\Installer\Http\Middleware\Locale; class InstallerServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. */ protected bool $defer = false; /** * Bootstrap the application events. */ public function boot(Router $router): void { $router->middlewareGroup('install', [CanInstall::class]); $this->loadTranslationsFrom(__DIR__.'/../Resources/lang', 'installer'); $this->loadRoutesFrom(__DIR__.'/../Routes/web.php'); $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); $this->loadTranslationsFrom(__DIR__.'/../Resources/lang', 'installer'); $this->loadViewsFrom(__DIR__.'/../Resources/views', 'installer'); $router->aliasMiddleware('installer_locale', Locale::class); Event::listen('krayin.installed', 'Webkul\Installer\Listeners\Installer@installed'); $this->loadTranslationsFrom(__DIR__.'/../Resources/lang', 'installer'); /** * Route to access template applied image file */ $this->app['router']->get('cache/{filename}', [ 'uses' => 'Webkul\Installer\Http\Controllers\ImageCacheController@getImage', 'as' => 'image_cache', ])->where(['filename' => '[ \w\\.\\/\\-\\@\(\)\=]+']); } /** * Register the service provider. */ public function register(): void { if (! $this->app->runningInConsole()) { return; } $this->commands([InstallerCommand::class]); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Routes/web.php
packages/Webkul/Installer/src/Routes/web.php
<?php use Illuminate\Session\Middleware\StartSession; use Illuminate\Support\Facades\Route; use Webkul\Installer\Http\Controllers\InstallerController; Route::middleware(['web', 'installer_locale'])->group(function () { Route::controller(InstallerController::class)->group(function () { Route::get('install', 'index')->name('installer.index'); Route::middleware(StartSession::class)->prefix('install/api')->group(function () { Route::post('env-file-setup', 'envFileSetup')->name('installer.env_file_setup'); Route::withoutMiddleware('web')->group(function () { Route::post('run-migration', 'runMigration')->name('installer.run_migration'); Route::post('run-seeder', 'runSeeder')->name('installer.run_seeder'); Route::post('admin-config-setup', 'adminConfigSetup')->name('installer.admin_config_setup'); }); }); }); });
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/Installer/src/Events/ComposerEvents.php
packages/Webkul/Installer/src/Events/ComposerEvents.php
<?php namespace Webkul\Installer\Events; use Symfony\Component\Console\Output\ConsoleOutput; class ComposerEvents { /** * Post create project. * * @return void */ public static function postCreateProject() { $output = new ConsoleOutput; $output->writeln(file_get_contents(__DIR__.'/../Templates/on-boarding.php')); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Http/Requests/WebForm.php
packages/Webkul/WebForm/src/Http/Requests/WebForm.php
<?php namespace Webkul\WebForm\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Attribute\Repositories\AttributeValueRepository; use Webkul\Core\Contracts\Validations\Decimal; use Webkul\WebForm\Rules\PhoneNumber; class WebForm extends FormRequest { /** * @var array */ protected $rules = []; /** * Create a new form request instance. * * @return void */ public function __construct( protected AttributeRepository $attributeRepository, protected AttributeValueRepository $attributeValueRepository ) {} /** * Determine if the product is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { foreach (['leads', 'persons'] as $key => $entityType) { $attributes = $this->attributeRepository->scopeQuery(function ($query) use ($entityType) { $attributeCodes = $entityType == 'persons' ? array_keys(request('persons') ?? []) : array_keys(request('leads') ?? []); $query = $query->whereIn('code', $attributeCodes) ->where('entity_type', $entityType); return $query; })->get(); foreach ($attributes as $attribute) { $attribute->code = $entityType.'.'.$attribute->code; $validations = []; if ($attribute->type == 'boolean') { continue; } 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', ]; } 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', ]; } elseif ($attribute->type == 'phone') { $validations = [ $attribute->code => [$attribute->is_required ? 'required' : 'nullable'], $attribute->code.'.*.value' => [$attribute->is_required ? 'required' : 'nullable', new PhoneNumber], $attribute->code.'.*.label' => $attribute->is_required ? 'required' : 'nullable', ]; } else { $validations[$attribute->code] = [$attribute->is_required ? 'required' : 'nullable']; if ($attribute->type == 'text' && $attribute->validation) { array_push($validations[$attribute->code], $attribute->validation == 'decimal' ? new Decimal : $attribute->validation ); } if ($attribute->type == 'price') { array_push($validations[$attribute->code], new Decimal); } } if ($attribute->is_unique) { array_push($validations[in_array($attribute->type, ['email', 'phone']) ? $attribute->code.'.*.value' : $attribute->code ], function ($field, $value, $fail) use ($attribute, $entityType) { if (! $this->attributeValueRepository->isValueUnique( $entityType == 'persons' ? request('persons.id') : null, $attribute->entity_type, $attribute, request($field) ) ) { $fail('The value has already been taken.'); } }); } $this->rules = array_merge($this->rules, $validations); } } return $this->rules; } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Http/Controllers/Controller.php
packages/Webkul/WebForm/src/Http/Controllers/Controller.php
<?php namespace Webkul\WebForm\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use AuthorizesRequests, DispatchesJobs, ValidatesRequests; /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function redirectToLogin() { return redirect()->route('admin.session.create'); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Http/Controllers/WebFormController.php
packages/Webkul/WebForm/src/Http/Controllers/WebFormController.php
<?php namespace Webkul\WebForm\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Http\Response; use Illuminate\Support\Facades\Event; use Illuminate\View\View; use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Contact\Repositories\PersonRepository; use Webkul\Lead\Repositories\LeadRepository; use Webkul\Lead\Repositories\PipelineRepository; use Webkul\Lead\Repositories\SourceRepository; use Webkul\Lead\Repositories\TypeRepository; use Webkul\WebForm\Http\Requests\WebForm; use Webkul\WebForm\Repositories\WebFormRepository; class WebFormController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct( protected AttributeRepository $attributeRepository, protected WebFormRepository $webFormRepository, protected PersonRepository $personRepository, protected LeadRepository $leadRepository, protected PipelineRepository $pipelineRepository, protected SourceRepository $sourceRepository, protected TypeRepository $typeRepository, ) {} /** * Remove the specified email template from storage. */ public function formJS(string $formId): Response { $webForm = $this->webFormRepository->findOneByField('form_id', $formId); return response()->view('web_form::settings.web-forms.embed', compact('webForm')) ->header('Content-Type', 'text/javascript'); } /** * Remove the specified email template from storage. */ public function formStore(int $id): JsonResponse { $person = $this->personRepository ->getModel() ->where('emails', 'like', '%'.request('persons.emails.0.value').'%') ->first(); if ($person) { request()->request->add(['persons' => array_merge(request('persons'), ['id' => $person->id])]); } app(WebForm::class); $webForm = $this->webFormRepository->findOrFail($id); if ($webForm->create_lead) { request()->request->add(['entity_type' => 'leads']); Event::dispatch('lead.create.before'); $data = request('leads'); $data['entity_type'] = 'leads'; $data['person'] = request('persons'); $data['status'] = 1; $pipeline = $this->pipelineRepository->getDefaultPipeline(); $stage = $pipeline->stages()->first(); $data['lead_pipeline_id'] = $pipeline->id; $data['lead_pipeline_stage_id'] = $stage->id; $data['title'] = request('leads.title') ?: 'Lead From Web Form'; $data['lead_value'] = request('leads.lead_value') ?: 0; if (! request('leads.lead_source_id')) { $source = $this->sourceRepository->findOneByField('name', 'Web Form'); if (! $source) { $source = $this->sourceRepository->first(); } $data['lead_source_id'] = $source->id; } $data['lead_type_id'] = request('leads.lead_type_id') ?: $this->typeRepository->first()->id; $lead = $this->leadRepository->create($data); Event::dispatch('lead.create.after', $lead); } else { if (! $person) { Event::dispatch('contacts.person.create.before'); $data = request('persons'); request()->request->add(['entity_type' => 'persons']); $data['entity_type'] = 'persons'; $person = $this->personRepository->create($data); Event::dispatch('contacts.person.create.after', $person); } } if ($webForm->submit_success_action == 'message') { return response()->json([ 'message' => $webForm->submit_success_content, ], 200); } else { return response()->json([ 'redirect' => $webForm->submit_success_content, ], 301); } } /** * Remove the specified email template from storage. */ public function preview(string $id): View { $webForm = $this->webFormRepository->findOneByField('form_id', $id); if (is_null($webForm)) { abort(404); } return view('web_form::settings.web-forms.preview', compact('webForm')); } /** * Preview the web form from datagrid. */ public function view(int $id): View { $webForm = $this->webFormRepository->findOneByField('id', $id); request()->merge(['id' => $webForm->form_id]); if (is_null($webForm)) { abort(404); } return view('web_form::settings.web-forms.preview', compact('webForm')); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Rules/PhoneNumber.php
packages/Webkul/WebForm/src/Rules/PhoneNumber.php
<?php namespace Webkul\WebForm\Rules; use Illuminate\Contracts\Validation\Rule; class PhoneNumber implements Rule { /** * Determine if the validation rule passes. * * @param string $attribute * @param mixed $value * @return bool */ public function passes($attribute, $value) { // This regular expression allows phone numbers with the following conditions: // - The phone number can start with an optional "+" sign. // - After the "+" sign, there should be one or more digits. return preg_match('/^\+?\d+$/', $value); } /** * Get the validation error message. * * @return string */ public function message() { return __('web_form::app.validations.invalid-phone-number'); } }
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Contracts/WebFormAttribute.php
packages/Webkul/WebForm/src/Contracts/WebFormAttribute.php
<?php namespace Webkul\WebForm\Contracts; interface WebFormAttribute {}
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Contracts/WebForm.php
packages/Webkul/WebForm/src/Contracts/WebForm.php
<?php namespace Webkul\WebForm\Contracts; interface WebForm {}
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Database/Migrations/2021_12_14_213049_create_web_forms_table.php
packages/Webkul/WebForm/src/Database/Migrations/2021_12_14_213049_create_web_forms_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('web_forms', function (Blueprint $table) { $table->increments('id'); $table->string('form_id')->unique(); $table->string('title'); $table->text('description')->nullable(); $table->text('submit_button_label'); $table->string('submit_success_action'); $table->string('submit_success_content'); $table->boolean('create_lead')->default(0); $table->string('background_color')->nullable(); $table->string('form_background_color')->nullable(); $table->string('form_title_color')->nullable(); $table->string('form_submit_button_color')->nullable(); $table->string('attribute_label_color')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('web_forms'); } };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Database/Migrations/2021_12_14_214923_create_web_form_attributes_table.php
packages/Webkul/WebForm/src/Database/Migrations/2021_12_14_214923_create_web_form_attributes_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('web_form_attributes', function (Blueprint $table) { $table->increments('id'); $table->string('name')->nullable(); $table->string('placeholder')->nullable(); $table->boolean('is_required')->default(0); $table->boolean('is_hidden')->default(0); $table->integer('sort_order')->nullable(); $table->integer('attribute_id')->unsigned(); $table->foreign('attribute_id')->references('id')->on('attributes')->onDelete('cascade'); $table->integer('web_form_id')->unsigned(); $table->foreign('web_form_id')->references('id')->on('web_forms')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('web_form_attributes'); } };
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Config/menu.php
packages/Webkul/WebForm/src/Config/menu.php
<?php return [ [ 'key' => 'settings.other_settings.web_forms', 'name' => 'web_form::app.menu.title', 'info' => 'web_form::app.menu.title-info', 'route' => 'admin.settings.web_forms.index', 'sort' => 1, 'icon-class' => 'icon-settings-webforms', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Config/acl.php
packages/Webkul/WebForm/src/Config/acl.php
<?php return [ [ 'key' => 'settings.other_settings.web_forms', 'name' => 'web_form::app.acl.title', 'route' => 'admin.settings.web_forms.index', 'sort' => 1, ], [ 'key' => 'settings.other_settings.web_forms.view', 'name' => 'web_form::app.acl.view', 'route' => 'admin.settings.web_forms.view', 'sort' => 1, ], [ 'key' => 'settings.other_settings.web_forms.create', 'name' => 'web_form::app.acl.create', 'route' => ['admin.settings.web_forms.create', 'admin.settings.web_forms.store'], 'sort' => 2, ], [ 'key' => 'settings.other_settings.web_forms.edit', 'name' => 'web_form::app.acl.edit', 'route' => ['admin.settings.web_forms.edit', 'admin.settings.web_forms.update'], 'sort' => 3, ], [ 'key' => 'settings.other_settings.web_forms.delete', 'name' => 'web_form::app.acl.delete', 'route' => 'admin.settings.web_forms.delete', 'sort' => 4, ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Resources/lang/pt_BR/app.php
packages/Webkul/WebForm/src/Resources/lang/pt_BR/app.php
<?php return [ 'acl' => [ 'title' => 'Formulários Web', 'view' => 'Visualizar', 'create' => 'Adicionar', 'edit' => 'Editar', 'delete' => 'Excluir', ], 'menu' => [ 'title' => 'Formulários Web', 'title-info' => 'Adicione, edite ou exclua formulários web no CRM', ], 'validations' => [ 'invalid-phone-number' => 'Número de telefone inválido', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Resources/lang/tr/app.php
packages/Webkul/WebForm/src/Resources/lang/tr/app.php
<?php return [ 'acl' => [ 'title' => 'Web Formları', 'view' => 'Görüntüle', 'create' => 'Oluştur', 'edit' => 'Düzenle', 'delete' => 'Sil', ], 'menu' => [ 'title' => 'Web Formları', 'title-info' => 'CRM’den web formlarını ekle, düzenle veya sil', ], 'validations' => [ 'invalid-phone-number' => 'Geçersiz telefon numarası', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Resources/lang/en/app.php
packages/Webkul/WebForm/src/Resources/lang/en/app.php
<?php return [ 'acl' => [ 'title' => 'Web Forms', 'view' => 'View', 'create' => 'Create', 'edit' => 'Edit', 'delete' => 'Delete', ], 'menu' => [ 'title' => 'Web Forms', 'title-info' => 'Add, edit, or delete web forms from the CRM', ], 'validations' => [ 'invalid-phone-number' => 'Invalid phone number', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Resources/lang/ar/app.php
packages/Webkul/WebForm/src/Resources/lang/ar/app.php
<?php return [ 'acl' => [ 'title' => 'نماذج الويب', 'view' => 'عرض', 'create' => 'إنشاء', 'edit' => 'تعديل', 'delete' => 'حذف', ], 'menu' => [ 'title' => 'نماذج الويب', 'title-info' => 'إضافة، تعديل أو حذف نماذج الويب من CRM', ], 'validations' => [ 'invalid-phone-number' => 'رقم الهاتف غير صحيح', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Resources/lang/vi/app.php
packages/Webkul/WebForm/src/Resources/lang/vi/app.php
<?php return [ 'acl' => [ 'title' => 'Biểu mẫu Web', 'view' => 'Xem', 'create' => 'Tạo', 'edit' => 'Chỉnh sửa', 'delete' => 'Xóa', ], 'menu' => [ 'title' => 'Biểu mẫu Web', 'title-info' => 'Thêm, chỉnh sửa hoặc xóa biểu mẫu web từ CRM', ], 'validations' => [ 'invalid-phone-number' => 'Số điện thoại không hợp lệ.', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Resources/lang/fa/app.php
packages/Webkul/WebForm/src/Resources/lang/fa/app.php
<?php return [ 'acl' => [ 'title' => 'فرم‌های وب', 'view' => 'نمایش', 'create' => 'ایجاد', 'edit' => 'ویرایش', 'delete' => 'حذف', ], 'menu' => [ 'title' => 'فرم‌های وب', 'title-info' => 'افزودن، ویرایش یا حذف فرم‌های وب از CRM', ], 'validations' => [ 'invalid-phone-number' => 'شماره تلفن نامعتبر است', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false
krayin/laravel-crm
https://github.com/krayin/laravel-crm/blob/6b6fadfecea0ff5d80aedb9345602ff79e11922d/packages/Webkul/WebForm/src/Resources/lang/es/app.php
packages/Webkul/WebForm/src/Resources/lang/es/app.php
<?php return [ 'acl' => [ 'title' => 'Formularios Web', 'view' => 'Ver', 'create' => 'Crear', 'edit' => 'Editar', 'delete' => 'Eliminar', ], 'menu' => [ 'title' => 'Formularios Web', 'title-info' => 'Agregar, editar o eliminar formularios web desde CRM', ], 'validations' => [ 'invalid-phone-number' => 'Número de teléfono no válido', ], ];
php
MIT
6b6fadfecea0ff5d80aedb9345602ff79e11922d
2026-01-04T15:02:34.361572Z
false