Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
319e67d8
Commit
319e67d8
authored
5 years ago
by
carlos
Browse files
Options
Download
Email Patches
Plain Diff
crud naturezas
parent
7387b6c8
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
app/Http/Controllers/AdministradorController.php
+3
-2
app/Http/Controllers/AdministradorController.php
app/Http/Controllers/EventoController.php
+7
-7
app/Http/Controllers/EventoController.php
app/Http/Controllers/NaturezaController.php
+104
-0
app/Http/Controllers/NaturezaController.php
app/Natureza.php
+10
-0
app/Natureza.php
composer.lock
+175
-107
composer.lock
database/migrations/2020_06_01_174832_create_naturezas_table.php
+32
-0
...e/migrations/2020_06_01_174832_create_naturezas_table.php
database/seeds/DatabaseSeeder.php
+1
-0
database/seeds/DatabaseSeeder.php
database/seeds/NaturezaSeeder.php
+26
-0
database/seeds/NaturezaSeeder.php
resources/views/administrador/index.blade.php
+1
-1
resources/views/administrador/index.blade.php
resources/views/naturezas/index.blade.php
+140
-33
resources/views/naturezas/index.blade.php
routes/web.php
+10
-1
routes/web.php
with
509 additions
and
151 deletions
+509
-151
app/Http/Controllers/AdministradorController.php
View file @
319e67d8
...
@@ -10,6 +10,7 @@ use App\Avaliador;
...
@@ -10,6 +10,7 @@ use App\Avaliador;
use
App\AdministradorResponsavel
;
use
App\AdministradorResponsavel
;
use
App\Participante
;
use
App\Participante
;
use
App\Proponente
;
use
App\Proponente
;
use
App\Natureza
;
use
Illuminate\Support\Facades\Hash
;
use
Illuminate\Support\Facades\Hash
;
use
App\Evento
;
use
App\Evento
;
...
@@ -20,8 +21,8 @@ class AdministradorController extends Controller
...
@@ -20,8 +21,8 @@ class AdministradorController extends Controller
return
view
(
'administrador.index'
);
return
view
(
'administrador.index'
);
}
}
public
function
naturezas
(){
public
function
naturezas
(){
$naturezas
=
Natureza
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'naturezas.index'
);
return
view
(
'naturezas.index'
)
->
with
([
'naturezas'
=>
$naturezas
])
;
}
}
public
function
usuarios
(){
public
function
usuarios
(){
$users
=
User
::
orderBy
(
'name'
)
->
get
();
$users
=
User
::
orderBy
(
'name'
)
->
get
();
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/EventoController.php
View file @
319e67d8
...
@@ -304,15 +304,15 @@ class EventoController extends Controller
...
@@ -304,15 +304,15 @@ class EventoController extends Controller
{
{
$evento
=
Evento
::
find
(
$id
);
$evento
=
Evento
::
find
(
$id
);
$areas
=
Area
::
where
(
'eventoId'
,
$id
);
//
$areas = Area::where('eventoId', $id);
$atividades
=
Atividade
::
where
(
'eventoId'
,
$id
);
$atividades
=
Atividade
::
where
(
'eventoId'
,
$id
);
$comissao
=
ComissaoEvento
::
where
(
'eventosId'
,
$id
);
$comissao
=
ComissaoEvento
::
where
(
'eventosId'
,
$id
);
$revisores
=
Revisor
::
where
(
'eventoId'
,
$id
);
$revisores
=
Revisor
::
where
(
'eventoId'
,
$id
);
$trabalhos
=
Trabalho
::
where
(
'evento
I
d'
,
$id
);
$trabalhos
=
Trabalho
::
where
(
'evento
_i
d'
,
$id
);
if
(
isset
(
$areas
)){
//
if(isset($areas)){
$areas
->
delete
();
//
$areas->delete();
}
//
}
if
(
isset
(
$atividades
)){
if
(
isset
(
$atividades
)){
$atividades
->
delete
();
$atividades
->
delete
();
}
}
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/NaturezaController.php
0 → 100644
View file @
319e67d8
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
App\Natureza
;
class
NaturezaController
extends
Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public
function
index
()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public
function
create
()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public
function
store
(
Request
$request
)
{
$validated
=
$request
->
validate
([
'nome'
=>
'required'
]);
$natureza
=
new
Natureza
();
$natureza
->
nome
=
$request
->
nome
;
$natureza
->
save
();
return
redirect
(
route
(
'admin.naturezas'
)
)
->
with
([
'mensagem'
=>
'Natureza salva com sucesso'
]);
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
show
(
$id
)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
edit
(
$id
)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
update
(
Request
$request
,
$id
)
{
$validated
=
$request
->
validate
([
'nomeEditavel'
=>
'required'
,
]);
$natureza
=
Natureza
::
find
(
$id
);
$natureza
->
nome
=
$request
->
nomeEditavel
;
$natureza
->
update
();
return
redirect
(
route
(
'admin.naturezas'
)
)
->
with
([
'mensagem'
=>
"Natureza editada com sucesso"
]);
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
destroy
(
$id
)
{
$natureza
=
Natureza
::
find
(
$id
);
$natureza
->
delete
();
return
redirect
(
route
(
'admin.naturezas'
)
)
->
with
([
'mensagem'
=>
"Natureza deletada com sucesso"
]);
}
}
This diff is collapsed.
Click to expand it.
app/Natureza.php
0 → 100644
View file @
319e67d8
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
class
Natureza
extends
Model
{
//
}
This diff is collapsed.
Click to expand it.
composer.lock
View file @
319e67d8
...
@@ -41,16 +41,16 @@
...
@@ -41,16 +41,16 @@
},
},
{
{
"name": "doctrine/inflector",
"name": "doctrine/inflector",
"version": "2.0.
2
",
"version": "2.0.
3
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/doctrine/inflector.git",
"url": "https://github.com/doctrine/inflector.git",
"reference": "
3fc171224a316569faad2df6b18a1fd8cce5a56d
"
"reference": "
9cf661f4eb38f7c881cac67c75ea9b00bf97b210
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/doctrine/inflector/zipball/
3fc171224a316569faad2df6b18a1fd8cce5a56d
",
"url": "https://api.github.com/repos/doctrine/inflector/zipball/
9cf661f4eb38f7c881cac67c75ea9b00bf97b210
",
"reference": "
3fc171224a316569faad2df6b18a1fd8cce5a56d
",
"reference": "
9cf661f4eb38f7c881cac67c75ea9b00bf97b210
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
"uppercase",
"uppercase",
"words"
"words"
],
],
"time": "2020-05-2
5T20:08:47
+00:00"
"time": "2020-05-2
9T15:13:26
+00:00"
},
},
{
{
"name": "doctrine/lexer",
"name": "doctrine/lexer",
...
@@ -1090,16 +1090,16 @@
...
@@ -1090,16 +1090,16 @@
},
},
{
{
"name": "nesbot/carbon",
"name": "nesbot/carbon",
"version": "2.3
4.2
",
"version": "2.3
5.0
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "
3e87404329b8072295ea11d548b47a1eefe5a162
"
"reference": "
4b9bd835261ef23d36397a46a76b496a458305e5
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/
3e87404329b8072295ea11d548b47a1eefe5a162
",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/
4b9bd835261ef23d36397a46a76b496a458305e5
",
"reference": "
3e87404329b8072295ea11d548b47a1eefe5a162
",
"reference": "
4b9bd835261ef23d36397a46a76b496a458305e5
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -1159,7 +1159,7 @@
...
@@ -1159,7 +1159,7 @@
"datetime",
"datetime",
"time"
"time"
],
],
"time": "2020-05-
19T22:14:16
+00:00"
"time": "2020-05-
24T18:27:52
+00:00"
},
},
{
{
"name": "nikic/php-parser",
"name": "nikic/php-parser",
...
@@ -1831,22 +1831,23 @@
...
@@ -1831,22 +1831,23 @@
},
},
{
{
"name": "symfony/console",
"name": "symfony/console",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/console.git",
"url": "https://github.com/symfony/console.git",
"reference": "
10bb3ee3c97308869d53b3e3d03f6ac23ff985f7
"
"reference": "
326b064d804043005526f5a0494cfb49edb59bb0
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/
10bb3ee3c97308869d53b3e3d03f6ac23ff985f7
",
"url": "https://api.github.com/repos/symfony/console/zipball/
326b064d804043005526f5a0494cfb49edb59bb0
",
"reference": "
10bb3ee3c97308869d53b3e3d03f6ac23ff985f7
",
"reference": "
326b064d804043005526f5a0494cfb49edb59bb0
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.1.3",
"php": "
>=
7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php73": "^1.8",
"symfony/polyfill-php73": "^1.8",
"symfony/polyfill-php80": "^1.15",
"symfony/service-contracts": "^1.1|^2"
"symfony/service-contracts": "^1.1|^2"
},
},
"conflict": {
"conflict": {
...
@@ -1903,29 +1904,29 @@
...
@@ -1903,29 +1904,29 @@
],
],
"description": "Symfony Console Component",
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
3
-30T
11:41:10
+00:00"
"time": "2020-0
5
-30T
20:06:45
+00:00"
},
},
{
{
"name": "symfony/css-selector",
"name": "symfony/css-selector",
"version": "v5.
0.8
",
"version": "v5.
1.0
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "
5f8d5271303dad260692ba73dfa21777d38e124e
"
"reference": "
e544e24472d4c97b2d11ade7caacd446727c6bf9
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/
5f8d5271303dad260692ba73dfa21777d38e124e
",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/
e544e24472d4c97b2d11ade7caacd446727c6bf9
",
"reference": "
5f8d5271303dad260692ba73dfa21777d38e124e
",
"reference": "
e544e24472d4c97b2d11ade7caacd446727c6bf9
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.2.5"
"php": "
>=
7.2.5"
},
},
"type": "library",
"type": "library",
"extra": {
"extra": {
"branch-alias": {
"branch-alias": {
"dev-master": "5.
0
-dev"
"dev-master": "5.
1
-dev"
}
}
},
},
"autoload": {
"autoload": {
...
@@ -1956,25 +1957,26 @@
...
@@ -1956,25 +1957,26 @@
],
],
"description": "Symfony CssSelector Component",
"description": "Symfony CssSelector Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
3
-2
7
T1
6:56:45
+00:00"
"time": "2020-0
5
-2
0
T1
7:43:50
+00:00"
},
},
{
{
"name": "symfony/debug",
"name": "symfony/debug",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/debug.git",
"url": "https://github.com/symfony/debug.git",
"reference": "
346636d2cae417992ecfd761979b2ab98b339a45
"
"reference": "
28f92d08bb6d1fddf8158e02c194ad43870007e6
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/
346636d2cae417992ecfd761979b2ab98b339a45
",
"url": "https://api.github.com/repos/symfony/debug/zipball/
28f92d08bb6d1fddf8158e02c194ad43870007e6
",
"reference": "
346636d2cae417992ecfd761979b2ab98b339a45
",
"reference": "
28f92d08bb6d1fddf8158e02c194ad43870007e6
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/log": "~1.0"
"psr/log": "~1.0",
"symfony/polyfill-php80": "^1.15"
},
},
"conflict": {
"conflict": {
"symfony/http-kernel": "<3.4"
"symfony/http-kernel": "<3.4"
...
@@ -2012,26 +2014,27 @@
...
@@ -2012,26 +2014,27 @@
],
],
"description": "Symfony Debug Component",
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
3
-2
7T16:54
:3
6
+00:00"
"time": "2020-0
5
-2
4T08:33
:3
5
+00:00"
},
},
{
{
"name": "symfony/error-handler",
"name": "symfony/error-handler",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/error-handler.git",
"url": "https://github.com/symfony/error-handler.git",
"reference": "
7e9828fc98aa1cf27b422fe478a84f5b0abb7358
"
"reference": "
0df9a23c0f9eddbb6682479fee6fd58b88add75b
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/
7e9828fc98aa1cf27b422fe478a84f5b0abb7358
",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/
0df9a23c0f9eddbb6682479fee6fd58b88add75b
",
"reference": "
7e9828fc98aa1cf27b422fe478a84f5b0abb7358
",
"reference": "
0df9a23c0f9eddbb6682479fee6fd58b88add75b
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.1.3",
"php": "
>=
7.1.3",
"psr/log": "~1.0",
"psr/log": "~1.0",
"symfony/debug": "^4.4.5",
"symfony/debug": "^4.4.5",
"symfony/polyfill-php80": "^1.15",
"symfony/var-dumper": "^4.4|^5.0"
"symfony/var-dumper": "^4.4|^5.0"
},
},
"require-dev": {
"require-dev": {
...
@@ -2068,24 +2071,24 @@
...
@@ -2068,24 +2071,24 @@
],
],
"description": "Symfony ErrorHandler Component",
"description": "Symfony ErrorHandler Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
3-30T14:07:33
+00:00"
"time": "2020-0
5-28T10:39:14
+00:00"
},
},
{
{
"name": "symfony/event-dispatcher",
"name": "symfony/event-dispatcher",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "a
bc8e3618bfdb55e44c8c6a00abd333f831bbfed
"
"reference": "a
5370aaa7807c7a439b21386661ffccf3dff2866
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a
bc8e3618bfdb55e44c8c6a00abd333f831bbfed
",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a
5370aaa7807c7a439b21386661ffccf3dff2866
",
"reference": "a
bc8e3618bfdb55e44c8c6a00abd333f831bbfed
",
"reference": "a
5370aaa7807c7a439b21386661ffccf3dff2866
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.1.3",
"php": "
>=
7.1.3",
"symfony/event-dispatcher-contracts": "^1.1"
"symfony/event-dispatcher-contracts": "^1.1"
},
},
"conflict": {
"conflict": {
...
@@ -2138,7 +2141,7 @@
...
@@ -2138,7 +2141,7 @@
],
],
"description": "Symfony EventDispatcher Component",
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
3
-2
7T16:54:36
+00:00"
"time": "2020-0
5
-2
0T08:37:50
+00:00"
},
},
{
{
"name": "symfony/event-dispatcher-contracts",
"name": "symfony/event-dispatcher-contracts",
...
@@ -2200,7 +2203,7 @@
...
@@ -2200,7 +2203,7 @@
},
},
{
{
"name": "symfony/finder",
"name": "symfony/finder",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/finder.git",
"url": "https://github.com/symfony/finder.git",
...
@@ -2249,20 +2252,20 @@
...
@@ -2249,20 +2252,20 @@
},
},
{
{
"name": "symfony/http-foundation",
"name": "symfony/http-foundation",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "
ec5bd254c223786f5fa2bb49a1e705c1b8e7cee2
"
"reference": "
3adfbd7098c850b02d107330b7b9deacf2581578
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/
ec5bd254c223786f5fa2bb49a1e705c1b8e7cee2
",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/
3adfbd7098c850b02d107330b7b9deacf2581578
",
"reference": "
ec5bd254c223786f5fa2bb49a1e705c1b8e7cee2
",
"reference": "
3adfbd7098c850b02d107330b7b9deacf2581578
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.1.3",
"php": "
>=
7.1.3",
"symfony/mime": "^4.3|^5.0",
"symfony/mime": "^4.3|^5.0",
"symfony/polyfill-mbstring": "~1.1"
"symfony/polyfill-mbstring": "~1.1"
},
},
...
@@ -2300,30 +2303,31 @@
...
@@ -2300,30 +2303,31 @@
],
],
"description": "Symfony HttpFoundation Component",
"description": "Symfony HttpFoundation Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
4-18T20:40:08
+00:00"
"time": "2020-0
5-23T09:11:46
+00:00"
},
},
{
{
"name": "symfony/http-kernel",
"name": "symfony/http-kernel",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "
1799a6c01f0db5851f399151abdb5d6393fec27
7"
"reference": "
54526b598d7fc86a67850488b194a88a79ab846
7"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/
1799a6c01f0db5851f399151abdb5d6393fec27
7",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/
54526b598d7fc86a67850488b194a88a79ab846
7",
"reference": "
1799a6c01f0db5851f399151abdb5d6393fec27
7",
"reference": "
54526b598d7fc86a67850488b194a88a79ab846
7",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.1.3",
"php": "
>=
7.1.3",
"psr/log": "~1.0",
"psr/log": "~1.0",
"symfony/error-handler": "^4.4",
"symfony/error-handler": "^4.4",
"symfony/event-dispatcher": "^4.4",
"symfony/event-dispatcher": "^4.4",
"symfony/http-foundation": "^4.4|^5.0",
"symfony/http-foundation": "^4.4|^5.0",
"symfony/polyfill-ctype": "^1.8",
"symfony/polyfill-ctype": "^1.8",
"symfony/polyfill-php73": "^1.9"
"symfony/polyfill-php73": "^1.9",
"symfony/polyfill-php80": "^1.15"
},
},
"conflict": {
"conflict": {
"symfony/browser-kit": "<4.3",
"symfony/browser-kit": "<4.3",
...
@@ -2390,26 +2394,27 @@
...
@@ -2390,26 +2394,27 @@
],
],
"description": "Symfony HttpKernel Component",
"description": "Symfony HttpKernel Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
4-28T18:47:42
+00:00"
"time": "2020-0
5-31T05:25:51
+00:00"
},
},
{
{
"name": "symfony/mime",
"name": "symfony/mime",
"version": "v5.
0.8
",
"version": "v5.
1.0
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/mime.git",
"url": "https://github.com/symfony/mime.git",
"reference": "5
d6c81c39225a750f3f43bee15f03093fb9aaa0b
"
"reference": "5
6261f89385f9d13cf843a5101ac72131190bc91
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/5
d6c81c39225a750f3f43bee15f03093fb9aaa0b
",
"url": "https://api.github.com/repos/symfony/mime/zipball/5
6261f89385f9d13cf843a5101ac72131190bc91
",
"reference": "5
d6c81c39225a750f3f43bee15f03093fb9aaa0b
",
"reference": "5
6261f89385f9d13cf843a5101ac72131190bc91
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.2.5",
"php": "
>=
7.2.5",
"symfony/polyfill-intl-idn": "^1.10",
"symfony/polyfill-intl-idn": "^1.10",
"symfony/polyfill-mbstring": "^1.0"
"symfony/polyfill-mbstring": "^1.0",
"symfony/polyfill-php80": "^1.15"
},
},
"conflict": {
"conflict": {
"symfony/mailer": "<4.4"
"symfony/mailer": "<4.4"
...
@@ -2421,7 +2426,7 @@
...
@@ -2421,7 +2426,7 @@
"type": "library",
"type": "library",
"extra": {
"extra": {
"branch-alias": {
"branch-alias": {
"dev-master": "5.
0
-dev"
"dev-master": "5.
1
-dev"
}
}
},
},
"autoload": {
"autoload": {
...
@@ -2452,7 +2457,7 @@
...
@@ -2452,7 +2457,7 @@
"mime",
"mime",
"mime-type"
"mime-type"
],
],
"time": "2020-0
4-17T03:29
:44+00:00"
"time": "2020-0
5-25T12:33
:44+00:00"
},
},
{
{
"name": "symfony/polyfill-ctype",
"name": "symfony/polyfill-ctype",
...
@@ -2805,18 +2810,80 @@
...
@@ -2805,18 +2810,80 @@
],
],
"time": "2020-05-12T16:47:27+00:00"
"time": "2020-05-12T16:47:27+00:00"
},
},
{
"name": "symfony/polyfill-php80",
"version": "v1.17.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
"reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/5e30b2799bc1ad68f7feb62b60a73743589438dd",
"reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd",
"shasum": ""
},
"require": {
"php": ">=7.0.8"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Php80\\": ""
},
"files": [
"bootstrap.php"
],
"classmap": [
"Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ion Bazan",
"email": "ion.bazan@gmail.com"
},
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"polyfill",
"portable",
"shim"
],
"time": "2020-05-12T16:47:27+00:00"
},
{
{
"name": "symfony/process",
"name": "symfony/process",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/process.git",
"url": "https://github.com/symfony/process.git",
"reference": "
4b6a9a4013baa65d409153cbb5a895bf093dc
7f
4
"
"reference": "
c714958428a85c86ab97e3a0c96db4c4f381b
7f
5
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/
4b6a9a4013baa65d409153cbb5a895bf093dc
7f
4
",
"url": "https://api.github.com/repos/symfony/process/zipball/
c714958428a85c86ab97e3a0c96db4c4f381b
7f
5
",
"reference": "
4b6a9a4013baa65d409153cbb5a895bf093dc
7f
4
",
"reference": "
c714958428a85c86ab97e3a0c96db4c4f381b
7f
5
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -2852,20 +2919,20 @@
...
@@ -2852,20 +2919,20 @@
],
],
"description": "Symfony Process Component",
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
4-15T15:56:18
+00:00"
"time": "2020-0
5-30T20:06:45
+00:00"
},
},
{
{
"name": "symfony/routing",
"name": "symfony/routing",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/routing.git",
"url": "https://github.com/symfony/routing.git",
"reference": "
67b4e1f99c050cbc310b8f3d0dbdc4b0212c052c
"
"reference": "
0f557911dde75c2a9652b8097bd7c9f54507f646
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/
67b4e1f99c050cbc310b8f3d0dbdc4b0212c052c
",
"url": "https://api.github.com/repos/symfony/routing/zipball/
0f557911dde75c2a9652b8097bd7c9f54507f646
",
"reference": "
67b4e1f99c050cbc310b8f3d0dbdc4b0212c052c
",
"reference": "
0f557911dde75c2a9652b8097bd7c9f54507f646
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -2928,24 +2995,24 @@
...
@@ -2928,24 +2995,24 @@
"uri",
"uri",
"url"
"url"
],
],
"time": "2020-0
4-21T19:59:53
+00:00"
"time": "2020-0
5-30T20:07:26
+00:00"
},
},
{
{
"name": "symfony/service-contracts",
"name": "symfony/service-contracts",
"version": "v2.
0.1
",
"version": "v2.
1.2
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
"url": "https://github.com/symfony/service-contracts.git",
"reference": "
144c5e51266b281231e947b51223ba14acf1a749
"
"reference": "
66a8f0957a3ca54e4f724e49028ab19d75a8918b
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/
144c5e51266b281231e947b51223ba14acf1a749
",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/
66a8f0957a3ca54e4f724e49028ab19d75a8918b
",
"reference": "
144c5e51266b281231e947b51223ba14acf1a749
",
"reference": "
66a8f0957a3ca54e4f724e49028ab19d75a8918b
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.2.5",
"php": "
>=
7.2.5",
"psr/container": "^1.0"
"psr/container": "^1.0"
},
},
"suggest": {
"suggest": {
...
@@ -2954,7 +3021,7 @@
...
@@ -2954,7 +3021,7 @@
"type": "library",
"type": "library",
"extra": {
"extra": {
"branch-alias": {
"branch-alias": {
"dev-master": "2.
0
-dev"
"dev-master": "2.
1
-dev"
}
}
},
},
"autoload": {
"autoload": {
...
@@ -2986,24 +3053,24 @@
...
@@ -2986,24 +3053,24 @@
"interoperability",
"interoperability",
"standards"
"standards"
],
],
"time": "20
19-11-18T17:27:11
+00:00"
"time": "20
20-05-20T17:43:50
+00:00"
},
},
{
{
"name": "symfony/translation",
"name": "symfony/translation",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/translation.git",
"url": "https://github.com/symfony/translation.git",
"reference": "
8272bbd2b7e220ef812eba2a2b30068a5c64b191
"
"reference": "
79d3ef9096a6a6047dbc69218b68c7b7f63193af
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/
8272bbd2b7e220ef812eba2a2b30068a5c64b191
",
"url": "https://api.github.com/repos/symfony/translation/zipball/
79d3ef9096a6a6047dbc69218b68c7b7f63193af
",
"reference": "
8272bbd2b7e220ef812eba2a2b30068a5c64b191
",
"reference": "
79d3ef9096a6a6047dbc69218b68c7b7f63193af
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.1.3",
"php": "
>=
7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-mbstring": "~1.0",
"symfony/translation-contracts": "^1.1.6|^2"
"symfony/translation-contracts": "^1.1.6|^2"
},
},
...
@@ -3062,24 +3129,24 @@
...
@@ -3062,24 +3129,24 @@
],
],
"description": "Symfony Translation Component",
"description": "Symfony Translation Component",
"homepage": "https://symfony.com",
"homepage": "https://symfony.com",
"time": "2020-0
4-12T1
6:45
:36
+00:00"
"time": "2020-0
5-30T20:0
6:45+00:00"
},
},
{
{
"name": "symfony/translation-contracts",
"name": "symfony/translation-contracts",
"version": "v2.
0.1
",
"version": "v2.
1.2
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/translation-contracts.git",
"url": "https://github.com/symfony/translation-contracts.git",
"reference": "
8cc682ac458d75557203b2f2f14b0b92e1c744ed
"
"reference": "
e5ca07c8f817f865f618aa072c2fe8e0e637340e
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/
8cc682ac458d75557203b2f2f14b0b92e1c744ed
",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/
e5ca07c8f817f865f618aa072c2fe8e0e637340e
",
"reference": "
8cc682ac458d75557203b2f2f14b0b92e1c744ed
",
"reference": "
e5ca07c8f817f865f618aa072c2fe8e0e637340e
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.2.5"
"php": "
>=
7.2.5"
},
},
"suggest": {
"suggest": {
"symfony/translation-implementation": ""
"symfony/translation-implementation": ""
...
@@ -3087,7 +3154,7 @@
...
@@ -3087,7 +3154,7 @@
"type": "library",
"type": "library",
"extra": {
"extra": {
"branch-alias": {
"branch-alias": {
"dev-master": "2.
0
-dev"
"dev-master": "2.
1
-dev"
}
}
},
},
"autoload": {
"autoload": {
...
@@ -3119,26 +3186,27 @@
...
@@ -3119,26 +3186,27 @@
"interoperability",
"interoperability",
"standards"
"standards"
],
],
"time": "20
19-11-18T17:27:11
+00:00"
"time": "20
20-05-20T17:43:50
+00:00"
},
},
{
{
"name": "symfony/var-dumper",
"name": "symfony/var-dumper",
"version": "v4.4.
8
",
"version": "v4.4.
9
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "
c587e04ce5d1aa62d534a038f574d9a709e814cf
"
"reference": "
56b3aa5eab0ac6720dcd559fd1d590ce301594ac
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/
c587e04ce5d1aa62d534a038f574d9a709e814cf
",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/
56b3aa5eab0ac6720dcd559fd1d590ce301594ac
",
"reference": "
c587e04ce5d1aa62d534a038f574d9a709e814cf
",
"reference": "
56b3aa5eab0ac6720dcd559fd1d590ce301594ac
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "
^
7.1.3",
"php": "
>=
7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php72": "~1.5"
"symfony/polyfill-php72": "~1.5",
"symfony/polyfill-php80": "^1.15"
},
},
"conflict": {
"conflict": {
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
...
@@ -3195,7 +3263,7 @@
...
@@ -3195,7 +3263,7 @@
"debug",
"debug",
"dump"
"dump"
],
],
"time": "2020-0
4-12T16:14:02
+00:00"
"time": "2020-0
5-30T20:06:45
+00:00"
},
},
{
{
"name": "tijsverkoyen/css-to-inline-styles",
"name": "tijsverkoyen/css-to-inline-styles",
...
@@ -3313,20 +3381,20 @@
...
@@ -3313,20 +3381,20 @@
"packages-dev": [
"packages-dev": [
{
{
"name": "doctrine/instantiator",
"name": "doctrine/instantiator",
"version": "1.3.
0
",
"version": "1.3.
1
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
"url": "https://github.com/doctrine/instantiator.git",
"reference": "
ae466f726242e637cebdd526a7d991b9433bacf1
"
"reference": "
f350df0268e904597e3bd9c4685c53e0e333feea
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/
ae466f726242e637cebdd526a7d991b9433bacf1
",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/
f350df0268e904597e3bd9c4685c53e0e333feea
",
"reference": "
ae466f726242e637cebdd526a7d991b9433bacf1
",
"reference": "
f350df0268e904597e3bd9c4685c53e0e333feea
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
"php": "^7.1"
"php": "^7.1
|| ^8.0
"
},
},
"require-dev": {
"require-dev": {
"doctrine/coding-standard": "^6.0",
"doctrine/coding-standard": "^6.0",
...
@@ -3365,7 +3433,7 @@
...
@@ -3365,7 +3433,7 @@
"constructor",
"constructor",
"instantiate"
"instantiate"
],
],
"time": "20
19-10
-2
1
T1
6:45:58
+00:00"
"time": "20
20-05
-2
9
T1
7:27:14
+00:00"
},
},
{
{
"name": "facade/flare-client-php",
"name": "facade/flare-client-php",
...
...
This diff is collapsed.
Click to expand it.
database/migrations/2020_06_01_174832_create_naturezas_table.php
0 → 100644
View file @
319e67d8
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateNaturezasTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'naturezas'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'nome'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'naturezas'
);
}
}
This diff is collapsed.
Click to expand it.
database/seeds/DatabaseSeeder.php
View file @
319e67d8
...
@@ -22,6 +22,7 @@ class DatabaseSeeder extends Seeder
...
@@ -22,6 +22,7 @@ class DatabaseSeeder extends Seeder
$this
->
call
(
FuncaoParticipanteSeeder
::
class
);
$this
->
call
(
FuncaoParticipanteSeeder
::
class
);
$this
->
call
(
CoordenadorComissaoSeeder
::
class
);
$this
->
call
(
CoordenadorComissaoSeeder
::
class
);
$this
->
call
(
ParticipanteSeeder
::
class
);
$this
->
call
(
ParticipanteSeeder
::
class
);
$this
->
call
(
NaturezaSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
// $this->call(UsersTableSeeder::class);
...
...
This diff is collapsed.
Click to expand it.
database/seeds/NaturezaSeeder.php
0 → 100644
View file @
319e67d8
<?php
use
Illuminate\Database\Seeder
;
class
NaturezaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'naturezas'
)
->
insert
([
'nome'
=>
'Ensino'
,
]);
DB
::
table
(
'naturezas'
)
->
insert
([
'nome'
=>
'Pesquisa'
,
]);
DB
::
table
(
'naturezas'
)
->
insert
([
'nome'
=>
'Extensão'
,
]);
}
}
This diff is collapsed.
Click to expand it.
resources/views/administrador/index.blade.php
View file @
319e67d8
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</
div
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('
grandearea.index
') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('
admin.naturezas
') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Natureza
</
h2
>
<
h2
style
=
"padding-top:15px"
>
Natureza
</
h2
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/naturezas/index.blade.php
View file @
319e67d8
...
@@ -2,43 +2,150 @@
...
@@ -2,43 +2,150 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
>
{{
--
Modal
criar
nova
natureza
--
}}
<
h2
style
=
"margin-top: 100px; "
>
Administrador
</
h2
>
<
div
class
=
"modal fade"
id
=
"modalNewCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
div
class
=
"modal-header"
>
<
a
href
=
"{{ route('grandearea.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Nova natureza'
)}}
</
h5
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
h2
style
=
"padding-top:15px"
>
Grande
Area
</
h2
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
id
=
"formNew"
method
=
"POST"
action
=
"{{ route('natureza.salvar') }}"
>
@
csrf
<
input
form
=
"formNew"
type
=
"text"
value
=
""
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
form
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
{{
__
(
'Cancelar'
)}}
</
button
>
<
button
type
=
"button"
onclick
=
"submeterFormNew()"
class
=
"btn btn-primary"
>
{{
__
(
'Salvar'
)}}
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top: 100px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Naturezas'
)
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
""
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
data
-
toggle
=
"modal"
data
-
target
=
"#modalNewCenter"
>
{{
__
(
'Criar natureza'
)
}}
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
hr
>
<
a
href
=
"{{ route('area.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
table
class
=
"table table-bordered"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
thead
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
tr
>
<
h2
style
=
"padding-top:15px"
>
Area
</
h2
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Data
de
criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$naturezas
as
$natureza
)
<!--
Modal
Editar
-->
<
div
class
=
"modal fade"
id
=
"modalEditCenter
{
{$natureza->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Editar natureza'
)}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
id
=
"formEdit{{
$natureza->id
}}"
action
=
"{{ route('natureza.atualizar', ['id' =>
$natureza->id
]) }}"
>
@
csrf
<
input
form
=
"formEdit{{
$natureza->id
}}"
type
=
"text"
value
=
"{{
$natureza->nome
}}"
class
=
"form-control @error('nomeEditavel') is-invalid @enderror"
name
=
"nomeEditavel"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nomeEditavel'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
form
>
</
div
>
</
div
>
</
a
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
{{
__
(
'Cancelar'
)}}
</
button
>
<
button
type
=
"button"
onclick
=
"submeterFormEdit('{{
$natureza->id
}}')"
class
=
"btn btn-primary"
>
{{
__
(
'Salvar'
)}}
</
button
>
</
div
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('subarea.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Subárea
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Modal
Excluir
-->
<
div
class
=
"modal fade"
id
=
"modalDelCenter
{
{$natureza->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Deletar natureza'
)}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
{{
__
(
'Tem certeza que deseja deletar essa natureza?'
)}}
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
{{
__
(
'Não'
)}}
</
button
>
<
a
href
=
"{{ route('natureza.deletar', ['id' =>
$natureza->id
]) }}"
type
=
"button"
onclick
=
"submeterFormDel('{{
$natureza->id
}}')"
class
=
"btn btn-primary"
>
{{
__
(
'Sim'
)}}
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
tr
>
<
td
>
{{
$natureza
->
nome
}}
</
td
>
<
td
>
{{
$natureza
->
creat_at
}}
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Editar'
)}}
</
a
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Deletar'
)}}
</
a
>
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
@
endsection
@
endsection
@
section
(
'javascript'
)
<
script
>
function
submeterFormNew
()
{
var
form
=
document
.
getElementById
(
'formNew'
);
form
.
submit
();
}
function
submeterFormEdit
(
id
)
{
var
form
=
document
.
getElementById
(
'formEdit'
+
id
);
form
.
submit
();
}
</
script
>
@
endsection
\ No newline at end of file
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
319e67d8
...
@@ -114,8 +114,17 @@ Route::prefix('usuarios')->name('admin.')->group(function(){
...
@@ -114,8 +114,17 @@ Route::prefix('usuarios')->name('admin.')->group(function(){
Route
::
prefix
(
'naturezas'
)
->
group
(
function
(){
Route
::
prefix
(
'naturezas'
)
->
group
(
function
(){
//########### Rotas das naturezas ###############################
//########### Rotas das naturezas ###############################
//########### Rotas das grandes areas ##############################
Route
::
get
(
'/'
,
'AdministradorController@naturezas'
)
->
name
(
'admin.naturezas'
);
Route
::
get
(
'/'
,
'AdministradorController@naturezas'
)
->
name
(
'admin.naturezas'
);
Route
::
get
(
'/index'
,
'NaturezaController@index'
)
->
name
(
'natureza.index'
);
Route
::
get
(
'/nova'
,
'NaturezaController@create'
)
->
name
(
'natureza.criar'
);
Route
::
post
(
'/salvar'
,
'NaturezaController@store'
)
->
name
(
'natureza.salvar'
);
Route
::
get
(
'/detalhes/{id}'
,
'NaturezaController@show'
)
->
name
(
'natureza.show'
);
Route
::
get
(
'/editar/{id}'
,
'NaturezaController@edit'
)
->
name
(
'natureza.editar'
);
Route
::
get
(
'/atualizar/{id}'
,
'NaturezaController@update'
)
->
name
(
'natureza.atualizar'
);
Route
::
get
(
'/excluir/{id}'
,
'NaturezaController@destroy'
)
->
name
(
'natureza.deletar'
);
//########### Rotas das grandes areas ##############################
Route
::
get
(
'/grande-area'
,
'GrandeAreaController@index'
)
->
name
(
'grandearea.index'
);
Route
::
get
(
'/grande-area'
,
'GrandeAreaController@index'
)
->
name
(
'grandearea.index'
);
Route
::
get
(
'/grande-area/nova'
,
'GrandeAreaController@create'
)
->
name
(
'grandearea.criar'
);
Route
::
get
(
'/grande-area/nova'
,
'GrandeAreaController@create'
)
->
name
(
'grandearea.criar'
);
Route
::
post
(
'/grande-area/salvar'
,
'GrandeAreaController@store'
)
->
name
(
'grandearea.salvar'
);
Route
::
post
(
'/grande-area/salvar'
,
'GrandeAreaController@store'
)
->
name
(
'grandearea.salvar'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment