@@ -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 |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | public function formColumn() |
| 80 | 80 | { |
| 81 | 81 | $forms = [ |
| 82 | - 'date' => [ |
|
| 82 | + 'date' => [ |
|
| 83 | 83 | 'label' => trans('postman::dashboard.date'), |
| 84 | 84 | 'rule' => [ |
| 85 | 85 | 'required'=> true, 'message'=> 'Please input Activity name', 'trigger'=> 'blur', |
@@ -99,21 +99,21 @@ discard block |
||
| 99 | 99 | 'label' => trans('postman::dashboard.users.name'), |
| 100 | 100 | 'placeholder' => trans('postman::dashboard.users.placeholder'), |
| 101 | 101 | ], |
| 102 | - 'statuses' => [ |
|
| 103 | - 'label' => trans('postman::dashboard.statuses.name'), |
|
| 104 | - 'placeholder' => trans('postman::dashboard.statuses.placeholder'), |
|
| 105 | - ], |
|
| 102 | + 'statuses' => [ |
|
| 103 | + 'label' => trans('postman::dashboard.statuses.name'), |
|
| 104 | + 'placeholder' => trans('postman::dashboard.statuses.placeholder'), |
|
| 105 | + ], |
|
| 106 | 106 | 'button' => [ |
| 107 | 107 | 'success' => trans('postman::dashboard.form.button.success'), |
| 108 | 108 | 'cancel' => trans('postman::dashboard.form.button.cancel'), |
| 109 | 109 | ], |
| 110 | 110 | 'popup' => [ |
| 111 | - 'question' => trans('postman::dashboard.popup.question'), |
|
| 112 | - 'title' => trans('postman::dashboard.popup.title'), |
|
| 113 | - 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
| 114 | - 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
| 115 | - 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
| 116 | - 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
| 111 | + 'question' => trans('postman::dashboard.popup.question'), |
|
| 112 | + 'title' => trans('postman::dashboard.popup.title'), |
|
| 113 | + 'confirmButtonText' => trans('postman::dashboard.popup.confirmButtonText'), |
|
| 114 | + 'cancelButtonText' => trans('postman::dashboard.popup.cancelButtonText'), |
|
| 115 | + 'success.message' => trans('postman::dashboard.popup.success.message'), |
|
| 116 | + 'info.message' => trans('postman::dashboard.popup.info.message'), |
|
| 117 | 117 | ], |
| 118 | 118 | ]; |
| 119 | 119 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | public static function parse() : void |
| 16 | 16 | { |
| 17 | - SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_id = ?', [Carbon::now(), Status::inProcess()])->get() |
|
| 17 | + SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_id = ?', [Carbon::now(), Status::inProcess()])->get() |
|
| 18 | 18 | ->each(function ($value) { |
| 19 | 19 | $value->mode->owner->postEmail($value); |
| 20 | 20 | }); |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | use agoalofalife\postman\Models\Status; |
| 3 | 3 | |
| 4 | 4 | return [ |
| 5 | - [ |
|
| 6 | - 'name' => 'In process', |
|
| 7 | - 'description' => 'This task is in the process', |
|
| 8 | - 'color_rgb' => '#c9e5f5', |
|
| 9 | - Status::COLUMN_UNIQUE_NAME => Status::IN_PROCESS, |
|
| 10 | - ], |
|
| 5 | + [ |
|
| 6 | + 'name' => 'In process', |
|
| 7 | + 'description' => 'This task is in the process', |
|
| 8 | + 'color_rgb' => '#c9e5f5', |
|
| 9 | + Status::COLUMN_UNIQUE_NAME => Status::IN_PROCESS, |
|
| 10 | + ], |
|
| 11 | 11 | [ |
| 12 | 12 | 'name' => 'Done', |
| 13 | 13 | 'description' => 'It is the task finished', |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | use agoalofalife\postman\Models\Status; |
| 3 | 3 | |
| 4 | 4 | return [ |
| 5 | - [ |
|
| 6 | - 'name' => 'В процессе', |
|
| 7 | - 'description' => 'Это задача находится в процессе', |
|
| 8 | - 'color_rgb' => '#c9e5f5', |
|
| 9 | - Status::COLUMN_UNIQUE_NAME => Status::IN_PROCESS, |
|
| 10 | - ], |
|
| 5 | + [ |
|
| 6 | + 'name' => 'В процессе', |
|
| 7 | + 'description' => 'Это задача находится в процессе', |
|
| 8 | + 'color_rgb' => '#c9e5f5', |
|
| 9 | + Status::COLUMN_UNIQUE_NAME => Status::IN_PROCESS, |
|
| 10 | + ], |
|
| 11 | 11 | [ |
| 12 | 12 | 'name' => 'Выполнена', |
| 13 | 13 | 'description' => 'Эта задача закончена.', |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $tasks->email->users->each(function ($value) use ($message) { |
| 27 | 27 | $message->bcc($value->email); |
| 28 | 28 | }); |
| 29 | - }); |
|
| 29 | + }); |
|
| 30 | 30 | |
| 31 | 31 | // if to reached the sender |
| 32 | 32 | if (empty(Mail::failures())) { |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | return [ |
| 3 | 3 | 'switcher' => true, |
| 4 | - /* |
|
| 4 | + /* |
|
| 5 | 5 | |-------------------------------------------------------------------------- |
| 6 | 6 | | List modes classes |
| 7 | 7 | |-------------------------------------------------------------------------- |
@@ -17,24 +17,24 @@ discard block |
||
| 17 | 17 | |-------------------------------------------------------------------------- |
| 18 | 18 | | Set middleware |
| 19 | 19 | */ |
| 20 | - 'middleware' => '', |
|
| 21 | - /* |
|
| 20 | + 'middleware' => '', |
|
| 21 | + /* |
|
| 22 | 22 | |-------------------------------------------------------------------------- |
| 23 | 23 | | Templates Email |
| 24 | 24 | |-------------------------------------------------------------------------- |
| 25 | 25 | | Set template emails |
| 26 | 26 | */ |
| 27 | - 'templates' => [ |
|
| 28 | - \agoalofalife\postman\Modes\Each::class => [ |
|
| 29 | - 'name_template' => 'postman::email', |
|
| 30 | - 'variable' => 'html' |
|
| 31 | - ], |
|
| 32 | - \agoalofalife\postman\Modes\OneToAll::class => [ |
|
| 33 | - 'name_template' => 'postman::email', |
|
| 34 | - 'variable' => 'html' |
|
| 35 | - ], |
|
| 36 | - ], |
|
| 37 | - /* |
|
| 27 | + 'templates' => [ |
|
| 28 | + \agoalofalife\postman\Modes\Each::class => [ |
|
| 29 | + 'name_template' => 'postman::email', |
|
| 30 | + 'variable' => 'html' |
|
| 31 | + ], |
|
| 32 | + \agoalofalife\postman\Modes\OneToAll::class => [ |
|
| 33 | + 'name_template' => 'postman::email', |
|
| 34 | + 'variable' => 'html' |
|
| 35 | + ], |
|
| 36 | + ], |
|
| 37 | + /* |
|
| 38 | 38 | |-------------------------------------------------------------------------- |
| 39 | 39 | | Sizes table |
| 40 | 40 | |-------------------------------------------------------------------------- |