service = $o; $this->notes = $notes; } /** * Build the message. * * @return $this */ public function build() { Config::set('site',$this->service->site); switch (get_class($this->service->type)) { case Service\Broadband::class: $subject = sprintf('Cancel BROADBAND: %s (%s)', $this->service->type->service_number, $this->service->type->service_address); break; case Service\Phone::class: $subject = sprintf('Cancel PHONE: %s',$this->service->type->service_number); break; default: $subject = 'Cancel Service Request'; } return $this ->markdown('mail.admin.service.cancel') ->subject($subject) ->with(['site'=>$this->service->site]); } }