| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentSupport\App\Services\Tickets; |
| 4 |
|
| 5 |
class CustomFieldsService |
| 6 |
{ |
| 7 |
public function getCustomFields() |
| 8 |
{ |
| 9 |
$customFields = [ |
| 10 |
[ |
| 11 |
'data_key' => 'ticket_type', |
| 12 |
'admin_label' => __('Support Type', 'fluent-support'), |
| 13 |
'public_label' => __('Please let us know about this support type', 'fluent-support'), |
| 14 |
'type' => 'input-select', |
| 15 |
'placeholder' => __('Support Type', 'fluent-support'), |
| 16 |
'options' => [ |
| 17 |
'bug_report' => __('Bug Report', 'fluent-support'), |
| 18 |
'feature_request' => __('Feature Request', 'fluent-support'), |
| 19 |
'integration_issues' => __('Integration Issues', 'fluent-support') |
| 20 |
], |
| 21 |
'required' => true |
| 22 |
], |
| 23 |
[ |
| 24 |
'data_key' => 'invoice_number', |
| 25 |
'admin_label' => __('Invoice Number', 'fluent-support'), |
| 26 |
'public_label' => __('Please let us know your invoice number', 'fluent-support'), |
| 27 |
'type' => 'input-text', |
| 28 |
'placeholder' => __('Invoice Number', 'fluent-support'), |
| 29 |
'data-type' => 'text', // number / text |
| 30 |
'required' => false |
| 31 |
], |
| 32 |
[ |
| 33 |
'data_key' => 'details_about_issue', |
| 34 |
'admin_label' => __('Details about the issue', 'fluent-support'), |
| 35 |
'public_label' => __('Please let us know more details about this issue', 'fluent-support'), |
| 36 |
'type' => 'input-textarea', |
| 37 |
'placeholder' => __('Details about the issue', 'fluent-support'), |
| 38 |
'required' => false |
| 39 |
] |
| 40 |
]; |
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
} |
| 46 |
|