![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/Corals/modules/Utility/config/ |
<?php return [ 'models' => [ 'rating' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Rating\RatingPresenter::class, 'resource_url' => 'utilities/ratings', 'actions' => [ 'pending' => [ 'icon' => 'fa fa-fw fa-clock-o', 'href_pattern' => ['pattern' => '[arg]/pending', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => ['pattern' => '[arg]', 'replace' => ["return trans('Utility::attributes.rating.status_options.pending');"]], 'policies' => ['updateStatus'], 'policies_args' => 'pending', 'permissions' => [], 'data' => [ 'action' => "post", 'table' => "#RatingsDataTable" ], ], 'approved' => [ 'icon' => 'fa fa-fw fa-check', 'href_pattern' => ['pattern' => '[arg]/approved', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => ['pattern' => '[arg]', 'replace' => ["return trans('Utility::attributes.rating.status_options.approved');"]], 'policies' => ['updateStatus'], 'policies_args' => 'approved', 'permissions' => [], 'data' => [ 'action' => "post", 'table' => "#RatingsDataTable", ], ], 'disapproved' => [ 'icon' => 'fa fa-fw fa-remove', 'href_pattern' => ['pattern' => '[arg]/disapproved', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => ['pattern' => '[arg]', 'replace' => ["return trans('Utility::attributes.rating.status_options.disapproved');"]], 'policies' => ['updateStatus'], 'policies_args' => 'disapproved', 'permissions' => [], 'data' => [ 'action' => "post", 'table' => "#RatingsDataTable", ], ], 'spam' => [ 'icon' => 'fa fa-fw fa-remove', 'href_pattern' => ['pattern' => '[arg]/spam', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => ['pattern' => '[arg]', 'replace' => ["return trans('Utility::attributes.rating.status_options.spam');"]], 'policies' => ['updateStatus'], 'policies_args' => 'spam', 'permissions' => [], 'data' => [ 'action' => "post", 'table' => "#RatingsDataTable", ], ], ], ], 'comment' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Comment\CommentPresenter::class, 'resource_url' => 'utilities/comments', 'status_options' => [ 'pending' => [ 'text' => 'Utility::attributes.comments.status_options.pending', 'level' => 'info' ], 'published' => [ 'text' => 'Utility::attributes.comments.status_options.published', 'level' => 'success' ], 'trashed' => [ 'text' => 'Utility::attributes.comments.status_options.trashed', 'level' => 'warning' ], ], 'actions' => [ 'edit' => [], 'pending' => [ 'icon' => 'fa fa-fw fa-clock-o', 'href_pattern' => ['pattern' => '[arg]/pending', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => [ 'pattern' => '[arg]', 'replace' => ["return trans('Utility::attributes.comments.status_options.pending');"] ], 'policies' => ['updateStatus'], 'policies_args' => 'pending', 'permissions' => [], 'data' => [ 'action' => "post", 'table' => "#CommentsDataTable" ], ], 'published' => [ 'icon' => 'fa fa-fw fa-check', 'href_pattern' => ['pattern' => '[arg]/published', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => [ 'pattern' => '[arg]', 'replace' => ["return trans('Utility::attributes.comments.status_options.published');"] ], 'policies' => ['updateStatus'], 'policies_args' => 'published', 'permissions' => [], 'data' => [ 'action' => "post", 'table' => "#CommentsDataTable" ], ], 'trashed' => [ 'icon' => 'fa fa-fw fa-trash-o', 'href_pattern' => ['pattern' => '[arg]/trashed', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => [ 'pattern' => '[arg]', 'replace' => ["return trans('Utility::attributes.comments.status_options.trashed');"] ], 'policies' => ['updateStatus'], 'policies_args' => 'trashed', 'permissions' => [], 'data' => [ 'action' => "post", 'table' => "#CommentsDataTable" ], ], ], ], 'wishlist' => [ 'resource_url' => 'utilities/wishlist', 'actions' => [ 'edit' => [] ] ], 'location' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Address\LocationPresenter::class, 'resource_url' => 'utilities/address/locations', ], 'tag' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Tag\TagPresenter::class, 'resource_url' => 'utilities/tags', 'translatable' => ['name'], ], 'category' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Category\CategoryPresenter::class, 'resource_url' => 'utilities/categories', 'default_image' => 'assets/corals/images/default_product_image.png', 'translatable' => ['name'] ], 'attribute' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Category\AttributePresenter::class, 'resource_url' => 'utilities/attributes', ], 'model_option' => [ ], 'invite_friends' => [ 'resource_url' => 'utilities/invite-friends', ], 'seo_item' => [ 'resource_url' => 'utilities/seo-items', ], 'webhook' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Webhook\WebhookPresenter::class, 'resource_url' => 'utilities/webhooks', 'events' => [], 'actions' => [ 'edit' => [], 'process' => [ 'icon' => 'fa fa-fw fa-send', 'href_pattern' => ['pattern' => '[arg]/process', 'replace' => ['return $object->getShowURL();']], 'label_pattern' => ['pattern' => '[arg]', 'replace' => ["return trans('Utility::labels.webhook.process');"]], 'policies' => ['process'], 'data' => [ 'action' => 'post', 'table' => '.dataTableBuilder' ] ], ] ], 'listOfValue' => [ 'presenter' => \Corals\Modules\Utility\Transformers\ListOfValue\ListOfValuePresenter::class, 'resource_url' => 'utilities/list-of-values', 'actions' => [] ], 'guide' => [ 'presenter' => \Corals\Modules\Utility\Transformers\Guide\GuidePresenter::class, 'resource_url' => 'utilities/guides', 'guide_config' => [ 'title' => 'Guide Config', 'fields' => [ 'intro' => [ 'name' => '[guide_config][{index}][intro]', 'type' => 'text', 'label' => 'Utility::attributes.guide.intro', 'status' => 'active', 'validation_rules' => 'required', ], 'element' => [ 'name' => '[guide_config][{index}][element]', 'type' => 'text', 'label' => 'Utility::attributes.guide.element', 'status' => 'active', 'validation_rules' => '', ], 'position' => [ 'name' => '[guide_config][{index}][position]', 'type' => 'text', 'label' => 'Utility::attributes.guide.position', 'status' => 'active', 'validation_rules' => '', ] ] ], ], ], 'content_consent_settings' => [ 'utility_content_consent_enabled' => [ 'label' => 'Utility::labels.content_consent.enabled', 'type' => 'boolean', 'validation' => '', 'settings_type' => 'BOOLEAN', ], 'utility_content_consent_popup_content' => [ 'label' => 'Utility::labels.content_consent.popup_content', 'type' => 'textarea', 'validation' => 'required', 'settings_type' => 'TEXTAREA', 'attributes' => [ 'class' => 'ckeditor-simple' ] ], 'utility_content_consent_popup_title' => [ 'label' => 'Utility::labels.content_consent.popup_title', 'type' => 'text', 'validation' => 'required', 'settings_type' => 'TEXT', ], 'utility_content_consent_accept_button_text' => [ 'label' => 'Utility::labels.content_consent.accept_button_text', 'type' => 'text', 'validation' => 'required', 'settings_type' => 'TEXT', 'default' => 'I Agree', ], 'utility_content_consent_reject_button_text' => [ 'label' => 'Utility::labels.content_consent.reject_button_text', 'type' => 'text', 'validation' => 'required', 'settings_type' => 'TEXT', 'default' => 'I Decline', ], 'utility_content_consent_rejected_redirect_url' => [ 'label' => 'Utility::labels.content_consent.rejected_redirect_url', 'type' => 'text', 'validation' => 'required', 'settings_type' => 'TEXT', ], 'utility_content_consent_ask_every' => [ 'label' => 'Utility::labels.content_consent.ask_every', 'type' => 'number', 'default' => 30, 'validation' => 'required', 'settings_type' => 'NUMBER', ], ], 'pre_defined_date' => [ 'options' => [ 'custom' => [ 'label' => 'Custom', 'is_eval' => true, 'from' => 'return now()->startOfMonth()->toDateString();', 'to' => 'return now()->endOfMonth()->toDateString();' ], 'year_to_today' => [ 'label' => 'YTD', 'from' => [ 'startOfYear' => 0, ], 'to' => [ 'endOfDay' => 0 ] ], 'month_to_today' => [ 'label' => 'MTD', 'from' => [ 'startOfMonth' => 0 ], 'to' => [ 'endOfDay' => 0 ] ], 'previous_month' => [ 'label' => 'Previous Month', 'is_eval' => true, 'from' => 'return now()->subMonth()->startOfMonth()->toDateString();', 'to' => 'return now()->subMonth()->endOfMonth()->toDateString();' ], 'previous_year' => [ 'label' => 'Previous Year', 'is_eval' => true, 'from' => 'return now()->subYear()->startOfYear()->toDateString();', 'to' => 'return now()->subYear()->endOfYear()->toDateString();' ], 'current_and_previous_year' => [ 'label' => 'Current & Previous Year', 'is_eval' => true, 'from' => 'return now()->subYear()->startOfYear()->toDateString();', 'to' => 'return now()->endOfYear()->toDateString();' ], 'current_year' => [ 'label' => 'Current Year', 'is_eval' => true, 'from' => 'return now()->startOfYear()->toDateString();', 'to' => 'return now()->endOfYear()->toDateString();' ], 'previous_quarter' => [ 'label' => 'Previous Quarter', 'is_eval' => true, 'from' => 'return ($q = now()->subQuarter()->firstOfQuarter())->toDateString();', 'to' => 'return $q->copy()->endOfQuarter()->toDateString();' ], 'previous_and_current_quarter' => [ 'label' => 'Previous & Current Quarter', 'is_eval' => true, 'from' => 'return now()->subQuarter()->startOfQuarter()->toDateString();', 'to' => 'return now()->endOfQuarter()->toDateString();' ], 'current_quarter' => [ 'label' => 'Current Quarter', 'is_eval' => true, 'from' => 'return ($q = now()->firstOfQuarter())->toDateString();', 'to' => 'return $q->copy()->endOfQuarter()->toDateString();' ], 'next_quarter' => [ 'label' => 'Next Quarter', 'is_eval' => true, 'from' => 'return ($q = now()->addQuarter()->firstOfQuarter())->toDateString();', 'to' => 'return $q->copy()->endOfQuarter()->toDateString();' ], 'yesterday' => [ 'label' => 'Yesterday', 'is_eval' => true, 'from' => 'return now()->subDay()->startOfDay()->toDateString();', 'to' => 'return now()->subDay()->endOfDay()->toDateString();' ], 'today' => [ 'label' => 'Today', 'is_eval' => true, 'from' => 'return now()->startOfDay()->toDateString();', 'to' => 'return now()->endOfDay()->toDateString();' ], 'tomorrow' => [ 'label' => 'Tomorrow', 'is_eval' => true, 'from' => 'return now()->addDay()->startOfDay()->toDateString();', 'to' => 'return now()->addDay()->endOfDay()->toDateString();' ], 'last_week' => [ 'label' => 'Last Week', 'is_eval' => true, 'from' => 'return now()->subWeek()->startOfWeek()->toDateString();', 'to' => 'return now()->subWeek()->endOfWeek()->toDateString();' ], 'current_week' => [ 'label' => 'Current Week', 'is_eval' => true, 'from' => 'return now()->startOfWeek()->toDateString();', 'to' => 'return now()->endOfWeek()->toDateString();' ], 'last_month' => [ 'label' => 'Last Month', 'is_eval' => true, 'from' => 'return now()->subMonth()->startOfMonth()->toDateString();', 'to' => 'return now()->subMonth()->endOfMonth()->toDateString();' ], 'current_month' => [ 'label' => 'Current Month', 'is_eval' => true, 'from' => 'return now()->startOfMonth()->toDateString();', 'to' => 'return now()->endOfMonth()->toDateString();' ], ] ] ];