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
c5c05b21
Commit
c5c05b21
authored
May 27, 2020
by
carlos
Browse files
Atualizando
parent
46a93cc0
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/GrandeAreaController.php
View file @
c5c05b21
...
...
@@ -45,7 +45,7 @@ class GrandeAreaController extends Controller
$GrandeArea
->
nome
=
$request
->
nome
;
$GrandeArea
->
save
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'
Grande á
rea cadastrada com sucesso'
]);
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'
Á
rea cadastrada com sucesso'
]);
}
/**
...
...
@@ -87,7 +87,7 @@ class GrandeAreaController extends Controller
$grandeArea
->
nome
=
$request
->
nome
;
$grandeArea
->
update
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'
Grande á
rea editada com sucesso'
]);
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'
Á
rea editada com sucesso'
]);
}
/**
...
...
@@ -101,6 +101,6 @@ class GrandeAreaController extends Controller
$grandeArea
=
GrandeArea
::
find
(
$id
);
$grandeArea
->
delete
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'
Grande á
rea excluida com sucesso'
]);
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'
Á
rea excluida com sucesso'
]);
}
}
\ No newline at end of file
resources/views/layouts/app.blade.php
View file @
c5c05b21
...
...
@@ -59,7 +59,7 @@
<!-- Se o usuário for um aluno -->
@if(Auth::user()->tipo == 'administrador')
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{ route('
admin.naturezas
') }}"
>
Naturezas
</a>
<a
class=
"nav-link"
href=
"{{ route('
grandearea.index
') }}"
>
Naturezas
</a>
</li>
<li
class=
"nav-item"
>
...
...
resources/views/naturezas/grandeArea/editar_grande_area.blade.php
View file @
c5c05b21
...
...
@@ -5,7 +5,7 @@
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Editar uma
Grande
área'
)
}}
</
h2
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
...
...
resources/views/naturezas/grandeArea/index.blade.php
View file @
c5c05b21
...
...
@@ -12,10 +12,10 @@
</
div
>
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'
Grandes
Áreas'
)
}}
</
h2
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Áreas'
)
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
"
{
{route('grandearea.criar')}
}
"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Criar
Grande Á
rea'
)
}}
</
a
>
<
a
href
=
"
{
{route('grandearea.criar')}
}
"
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
>
{{
__
(
'Criar
á
rea'
)
}}
</
a
>
</
div
>
</
div
>
...
...
@@ -31,19 +31,20 @@
@
foreach
(
$grandesAreas
as
$grandeArea
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('grandearea.show', ['id' =>
$grandeArea->id
]) }}"
class
=
"visualizarEvento"
>
{{
--
<
a
href
=
"{{ route('grandearea.show', ['id' =>
$grandeArea->id
]) }}"
class
=
"visualizarEvento"
>
{{
$grandeArea
->
nome
}}
</
a
>
</
a
>
--
}}
{{
$grandeArea
->
nome
}}
</
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
href
=
"{{ route('grandearea.show', ['id' =>
$grandeArea->id
]) }}"
class
=
"dropdown-item"
>
{{
--
<
a
href
=
"{{ route('grandearea.show', ['id' =>
$grandeArea->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
</
a
>
--
}}
<
a
href
=
"{{ route('grandearea.editar', ['id' =>
$grandeArea->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
...
...
resources/views/naturezas/grandeArea/nova_grande_area.blade.php
View file @
c5c05b21
...
...
@@ -5,7 +5,7 @@
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Criar uma nova
Grande
área'
)
}}
</
h2
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Criar uma nova área'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"row"
>
...
...
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