diff --git a/.env.example b/.env.example index ac748637ae52e837bedc4234dbcad2f82e5187e7..58f034607f0cd3bacbbd4f3a52f4cf6f612d0dc8 100755 --- a/.env.example +++ b/.env.example @@ -43,4 +43,4 @@ PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=mt1 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" -MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" \ No newline at end of file diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php index 1a5dc9e1552219821e0bab599f8bdef26bdc9cea..7256a2f6d598f99fb28c18ab763456956aaf6176 100755 --- a/app/Http/Controllers/TrabalhoController.php +++ b/app/Http/Controllers/TrabalhoController.php @@ -1152,6 +1152,7 @@ class TrabalhoController extends Controller 'tipo' => 1, ]); $notificacao->save(); + // SubmissaoRecebidaNotification.php Notification::send($userTemp, new SubmissaoRecebidaNotification($trabalho->id,$trabalho->titulo,$userTemp)); //Proponente $notificacao = App\Notificacao::create([ @@ -1162,7 +1163,8 @@ class TrabalhoController extends Controller 'tipo' => 1, ]); $notificacao->save(); - Notification::send(Auth::user(), new SubmissaoNotification($trabalho->id,$trabalho->titulo)); + // submissao e notificação.php $trabalho->id,$trabalho->titulo + Notification::send(Auth::user(), new SubmissaoNotification($trabalho)); return redirect(route('proponente.projetos'))->with(['mensagem' => 'Proposta submetida!']); @@ -1493,6 +1495,8 @@ class TrabalhoController extends Controller } $subject = "Participante de Projeto"; + $time = Carbon::today('America/Recife'); + $time = $time->isoFormat('às H:mm, dddd, D/M/YYYY'); Mail::to($email) ->send(new SubmissaoTrabalho($userParticipante, $subject, $edital, $projeto)); diff --git a/app/Notifications/SubmissaoNotification.php b/app/Notifications/SubmissaoNotification.php index 5b6115bc65e11dd21d52873c627e51cc5ae88a69..9e2004441647a341e561a8d646eca7fa7cb38cdb 100755 --- a/app/Notifications/SubmissaoNotification.php +++ b/app/Notifications/SubmissaoNotification.php @@ -14,17 +14,19 @@ class SubmissaoNotification extends Notification public $data; public $url; + public $natureza_id; /** * Create a new notification instance. * * @return void */ - public function __construct($id,$titulo) + public function __construct($trabalho) { $this->data = date('d/m/Y \à\s H:i\h', strtotime(now())); - $url = "/projeto/visualizar/".$id; + $url = "/projeto/visualizar/".$trabalho->id; $this->url = url($url); - $this->titulo = $titulo; + $this->titulo = $trabalho->titulo; + $this->natureza_id = $trabalho->evento->natureza_id; } /** @@ -50,7 +52,8 @@ class SubmissaoNotification extends Notification return (new MailMessage) ->subject('Sistema Submeta - Submissão de proposta / projeto') ->greeting("Saudações!") - ->line("O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o) {$this->titulo}.") + ->line("O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o) {$this->titulo}\n\n.") + ->line("{$this->data}") ->action('Acessar Proposta', $this->url ) ->markdown('vendor.notifications.email'); } diff --git a/app/Notifications/SubmissaoRecebidaNotification.php b/app/Notifications/SubmissaoRecebidaNotification.php index a8d46d9d09fb3f3eac0c736e2fe3a48009205365..e21644faad613e443e0b8568500b087c1144bb14 100644 --- a/app/Notifications/SubmissaoRecebidaNotification.php +++ b/app/Notifications/SubmissaoRecebidaNotification.php @@ -51,6 +51,7 @@ class SubmissaoRecebidaNotification extends Notification ->subject('Sistema Submeta - Submissão de proposta / projeto') ->greeting("Saudações!") ->line("O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o) {$this->titulo}.") + ->line("{$this->data}") ->action('Acessar Formulário', $this->url ) ->markdown('vendor.notifications.email'); } diff --git a/app/Policies/UsuariosPolicy.php b/app/Policies/UsuariosPolicy.php deleted file mode 100755 index 6e0f14474e165ff1cd1aa3a1b9cde6839e156e5e..0000000000000000000000000000000000000000 --- a/app/Policies/UsuariosPolicy.php +++ /dev/null @@ -1,47 +0,0 @@ -has('')){ - - }else if(){ - - }else if(){ - - }else if(){ - - }else if(){ - - }else if(){ - - }else if(){ - - } - - - - - } -} diff --git a/resources/views/administrador/usersAdmin.blade.php b/resources/views/administrador/usersAdmin.blade.php index f9d59eee0dd823ae947ac7c98d927dcd62f4132e..f0c0fddd656095e214a4129152786ac863c695cd 100755 --- a/resources/views/administrador/usersAdmin.blade.php +++ b/resources/views/administrador/usersAdmin.blade.php @@ -4,7 +4,7 @@
-
+
@if(session('mensagem'))
@@ -29,6 +29,9 @@

+
+ +
@@ -38,11 +41,11 @@ - + @foreach ($users as $user) @if (auth()->user()->id != $user->id) @if(auth()->user()->id != "administrador") - + @@ -117,6 +120,32 @@ @section('javascript') @endsection diff --git a/resources/views/evento/criarEvento.blade.php b/resources/views/evento/criarEvento.blade.php index bcf022e88881940330a7274858d9f2b19bfa3e2e..c45c05a5482636ff8e80d426d511732cbc75a65a 100755 --- a/resources/views/evento/criarEvento.blade.php +++ b/resources/views/evento/criarEvento.blade.php @@ -31,6 +31,7 @@ diff --git a/resources/views/evento/editarEvento.blade.php b/resources/views/evento/editarEvento.blade.php index 4fd8dd914ff89045118d8ff5c3960c0fadba54e7..a6f4a47d6c304ec1206b3d3e758cf3d3c3a4248f 100755 --- a/resources/views/evento/editarEvento.blade.php +++ b/resources/views/evento/editarEvento.blade.php @@ -33,6 +33,7 @@ diff --git a/resources/views/evento/rascunho/projeto.blade.php b/resources/views/evento/rascunho/projeto.blade.php index 5d154f4334eb676285fd18f0abd1c24493b61ec0..ba4d76d6285e2f33516f198a2d5403f7f573603f 100755 --- a/resources/views/evento/rascunho/projeto.blade.php +++ b/resources/views/evento/rascunho/projeto.blade.php @@ -7,7 +7,7 @@
-
Informações do projeto
+
Informações do Projeto

diff --git a/resources/views/projeto/editaFormulario/finalizar.blade.php b/resources/views/projeto/editaFormulario/finalizar.blade.php index 8e69c524281d7d0238043fffa9e5180d19a712f5..d4a09981cbfd7eea28a2feee16580a92761f2f55 100755 --- a/resources/views/projeto/editaFormulario/finalizar.blade.php +++ b/resources/views/projeto/editaFormulario/finalizar.blade.php @@ -15,6 +15,11 @@ @endif
+ @if($errors->any()) +
+ Verifique se todos os campos obrigatórios/Dados do discente foram preenchidos! +
+ @endif
diff --git a/resources/views/projeto/editaFormulario/participantes.blade.php b/resources/views/projeto/editaFormulario/participantes.blade.php index e830a565b5c3ce657d311f9562b6b70191ed48eb..8a655b58beabac661577ffb9eda16091dad072a1 100644 --- a/resources/views/projeto/editaFormulario/participantes.blade.php +++ b/resources/views/projeto/editaFormulario/participantes.blade.php @@ -26,7 +26,7 @@ @endphp - diff --git a/resources/views/projeto/formularioVisualizar/participantes2.blade.php b/resources/views/projeto/formularioVisualizar/participantes2.blade.php index 42d6f1fb8ee2c76e80d38084d55d4cd005636abb..a0d1fe3ea7c802998c1590aa667b299e09d24c5e 100755 --- a/resources/views/projeto/formularioVisualizar/participantes2.blade.php +++ b/resources/views/projeto/formularioVisualizar/participantes2.blade.php @@ -17,16 +17,17 @@
@foreach($projeto->participantes as $participante) -
- +
+
-
-
{{$participante->user->name}}
-
{{$participante->planoTrabalho->titulo}}
- +
+
Nome: {{$participante->user->name}}
+
Plano: {{$participante->planoTrabalho->titulo}}
+
Informações - +
+ diff --git a/resources/views/proponente/projetosEdital.blade.php b/resources/views/proponente/projetosEdital.blade.php index 5c220864778eec231c5e5c241a82b6052b7888df..f39c428b8abe43081a03e3bfc05c27a804d32491 100755 --- a/resources/views/proponente/projetosEdital.blade.php +++ b/resources/views/proponente/projetosEdital.blade.php @@ -151,7 +151,7 @@ --}} - + @if(($projeto->status == "rascunho") || ($projeto->evento->fimSubmissao > $hoje))
@@ -161,6 +161,7 @@
+ @endif
Opções
{{ $user->name }}