@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | return [ |
3 | - // CreateTaskRequest |
|
4 | - 'createTask.date.required' => 'Field date is required', |
|
5 | - 'createTask.date.date_format' => 'Field date format date Y-m-d H:i:s', |
|
6 | - 'createTask.theme.required' => 'Field theme is required', |
|
7 | - 'createTask.text.required' => 'Field text is required', |
|
8 | - 'createTask.mode.required' => 'Field mode is required', |
|
9 | - 'createTask.mode.exists' => 'Field mode is not exist in table', |
|
10 | - 'createTask.users.required' => 'Field users is required', |
|
11 | - 'createTask.users.array' => 'Field users is many', |
|
12 | - 'createTask.users.*.required' => 'Field users is required', |
|
13 | - 'createTask.users.*.exists' => 'Field users is not exist in table', |
|
3 | + // CreateTaskRequest |
|
4 | + 'createTask.date.required' => 'Field date is required', |
|
5 | + 'createTask.date.date_format' => 'Field date format date Y-m-d H:i:s', |
|
6 | + 'createTask.theme.required' => 'Field theme is required', |
|
7 | + 'createTask.text.required' => 'Field text is required', |
|
8 | + 'createTask.mode.required' => 'Field mode is required', |
|
9 | + 'createTask.mode.exists' => 'Field mode is not exist in table', |
|
10 | + 'createTask.users.required' => 'Field users is required', |
|
11 | + 'createTask.users.array' => 'Field users is many', |
|
12 | + 'createTask.users.*.required' => 'Field users is required', |
|
13 | + 'createTask.users.*.exists' => 'Field users is not exist in table', |
|
14 | 14 | |
15 | 15 | |
16 | 16 | ]; |
17 | 17 | \ No newline at end of file |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | return [ |
3 | - // CreateTaskRequest |
|
4 | - 'createTask.date.required' => 'Поле дата обязательно', |
|
5 | - 'createTask.date.date_format' => 'Формат даты должен быть Y-m-d H:i:s', |
|
6 | - 'createTask.theme.required' => 'Поле тема обязательно', |
|
7 | - 'createTask.text.required' => 'Поле текст обязательно', |
|
8 | - 'createTask.mode.required' => 'Поле тип отправки обязательно', |
|
9 | - 'createTask.mode.exists' => 'Тип отправки не найден в таблице', |
|
10 | - 'createTask.users.required' => 'Не меньше одного пользователя', |
|
11 | - 'createTask.users.array' => 'Поле пользователи должен быть массивом', |
|
12 | - 'createTask.users.*.required' => 'Не меньше одного пользователя', |
|
13 | - 'createTask.users.*.exists' => 'Пользователь не найден в таблице', |
|
3 | + // CreateTaskRequest |
|
4 | + 'createTask.date.required' => 'Поле дата обязательно', |
|
5 | + 'createTask.date.date_format' => 'Формат даты должен быть Y-m-d H:i:s', |
|
6 | + 'createTask.theme.required' => 'Поле тема обязательно', |
|
7 | + 'createTask.text.required' => 'Поле текст обязательно', |
|
8 | + 'createTask.mode.required' => 'Поле тип отправки обязательно', |
|
9 | + 'createTask.mode.exists' => 'Тип отправки не найден в таблице', |
|
10 | + 'createTask.users.required' => 'Не меньше одного пользователя', |
|
11 | + 'createTask.users.array' => 'Поле пользователи должен быть массивом', |
|
12 | + 'createTask.users.*.required' => 'Не меньше одного пользователя', |
|
13 | + 'createTask.users.*.exists' => 'Пользователь не найден в таблице', |
|
14 | 14 | |
15 | 15 | |
16 | 16 | ]; |
17 | 17 | \ No newline at end of file |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | public function index() : Collection |
21 | 21 | { |
22 | 22 | $preData = SheduleEmail::with(['email.users', 'mode'])->get()->map(function ($value) { |
23 | - $value->status_action_human = $value->status_action_human; |
|
24 | - return $value; |
|
23 | + $value->status_action_human = $value->status_action_human; |
|
24 | + return $value; |
|
25 | 25 | }); |
26 | 26 | |
27 | 27 | return $preData; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | public function formColumn() |
76 | 76 | { |
77 | 77 | $forms = [ |
78 | - 'date' => [ |
|
78 | + 'date' => [ |
|
79 | 79 | 'label' => trans('postman::dashboard.date'), |
80 | 80 | 'rule' => [ |
81 | 81 | 'required'=> true, 'message'=> 'Please input Activity name', 'trigger'=> 'blur', |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | 'cancel' => trans('postman::dashboard.form.button.cancel'), |
101 | 101 | ], |
102 | 102 | 'popup' => [ |
103 | - 'question' => trans('postman::dashboard.popup.question'), |
|
104 | - 'title' => trans('postman::dashboard.popup.title'), |
|
105 | - 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
106 | - 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
107 | - 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
108 | - 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
103 | + 'question' => trans('postman::dashboard.popup.question'), |
|
104 | + 'title' => trans('postman::dashboard.popup.title'), |
|
105 | + 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
106 | + 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
107 | + 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
108 | + 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
109 | 109 | ], |
110 | 110 | ]; |
111 | 111 |