diff --git a/resources/views/exercicio/index.blade.php b/resources/views/exercicio/index.blade.php
index ee108a0..ade151e 100644
--- a/resources/views/exercicio/index.blade.php
+++ b/resources/views/exercicio/index.blade.php
@@ -23,7 +23,7 @@
{{ Session::get('message') }}
@endif
- @include('exercicio.table')
+ @include('exercicio.table', ['editButton' => true])
diff --git a/resources/views/exercicio/table.blade.php b/resources/views/exercicio/table.blade.php
index 5cfd594..3640ef3 100644
--- a/resources/views/exercicio/table.blade.php
+++ b/resources/views/exercicio/table.blade.php
@@ -2,7 +2,9 @@
Título |
- Ações |
+ @if ($editButton ?? '')
+ Ações |
+ @endif
@@ -16,14 +18,18 @@
+ @if ($editButton ?? '')
+ @if ($editButton ?? '')
@can ('edit', $value)
Editar
@endcan
+ @endif
|
+ @endif
@endforeach