Commit d7147d01 authored by sandroresende's avatar sandroresende

inclusao email resposta encaminhamento

parent ae3359e7
......@@ -177,7 +177,7 @@ class EncaminhamentoController extends Controller
if($encaminhamento->bln_concluido){
$usuario = User::find($encaminhamento->user_id);
Mail::to($usuario->email)->send(new RespostaEncaminhamento($encaminhamento));
Mail::to($usuario->email)->send(new RespostaEncaminhamento($encaminhamento,$usuario));
}
$ativarAba = 'encaminhamento';
......
......@@ -13,6 +13,7 @@ class RespostaEncaminhamento extends Mailable
public $url;
public $encaminhamento;
public $usuario;
/**
......@@ -20,10 +21,11 @@ class RespostaEncaminhamento extends Mailable
*
* @return void
*/
public function __construct($encaminhamento)
public function __construct($encaminhamento, $usuario)
{
$this->url = url('/codem/demanda/encaminhamento/dados/');
$this->encaminhamento = $encaminhamento;
$this->usuario = $usuario;
}
......
......@@ -85151,7 +85151,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
var _this = this;
this.textoEscolhaDepartamento = "Buscando...";
this.departamento = '';
this.buscando = true;
if (this.secretaria != '') {
//Implementação correta após arrumar tabela dos municipios
......@@ -85172,7 +85172,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
var _this2 = this;
this.textoEscolhaSetor = "Buscando...";
this.setor = '';
this.buscando = true;
if (this.departamento != '') {
//Implementação correta após arrumar tabela dos municipios
......@@ -85193,7 +85193,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
var _this3 = this;
this.textoEscolhaUsuario = "Buscando...";
this.usuario = '';
this.buscando = true;
if (this.setor != '') {
//Implementação correta após arrumar tabela dos municipios
......@@ -152,7 +152,7 @@
methods:{
onChangeSecretaria() {
this.textoEscolhaDepartamento = "Buscando...";
this.departamento = '';
this.buscando = true;
if(this.secretaria != '') {
//Implementação correta após arrumar tabela dos municipios
......@@ -172,7 +172,7 @@
},
onChangeDepartamento() {
this.textoEscolhaSetor = "Buscando...";
this.setor = '';
this.buscando = true;
if(this.departamento != '') {
//Implementação correta após arrumar tabela dos municipios
......@@ -193,7 +193,7 @@
},
onChangeSetor() {
this.textoEscolhaUsuario = "Buscando...";
this.usuario = '';
this.buscando = true;
if(this.setor != '') {
//Implementação correta após arrumar tabela dos municipios
......
@component('mail::message')
# Confirmação de Recebimento - Resposta à Sua Demanda Nº {{$encaminhamento->demanda_id}}
<p>Prezado(a) {{ $encaminhamento->name }},</p>
<p>Prezado(a) {{ $usuario->name }},</p>
<br>
<br>
<p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment