芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Notifications/TimeTrackerReminder.php
company = $event->company; $this->event = $event; } /** * Get the notification's delivery channels. * * @return array */ public function via() { $via = ['mail', 'database', 'slack', OneSignalChannel::class]; return $via; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return MailMessage */ // phpcs:ignore public function toMail($notifiable): MailMessage { $build = parent::build(); $url = route('tasks.index').'?assignedTo='.$notifiable->id; $url = getDomainSpecificUrl($url, $this->company); $greeting = __('email.trackerReminder.dear') . '
' . $notifiable->name . '
,' . '
'; $content = $greeting . __('email.trackerReminder.text'); return $build ->subject(__('email.trackerReminder.subject')) ->markdown('mail.email', [ 'url' => $url, 'content' => $content, 'themeColor' => $this->company->header_color, 'actionText' => __('email.trackerReminder.action') ]); } public function toArray() { return [ 'id' => $this->event->id, ]; } public function toSlack($notifiable) // phpcs:ignore { $new = new SlackMessage; $slack = $notifiable->company->slackSetting; return $new ->from(config('app.name')) ->to('@' . $notifiable->employeeDetail->slack_username) ->image($slack->slack_logo_url) ->content('>*' . __('email.trackerReminder.subject') . '*' . "\n" . __('email.trackerReminder.text') . ' '); } // phpcs:ignore public function toOneSignal($notifiable) { return OneSignalMessage::create() ->setSubject(__('email.trackerReminder.subject')) ->setBody( __('email.trackerReminder.text')); } }