Skip to content

Commit

Permalink
remove actions from prazo table
Browse files Browse the repository at this point in the history
  • Loading branch information
Lobz committed Jun 18, 2024
1 parent d4f88e9 commit 55c0270
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions resources/views/prazo/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
@unless ($exercicio ?? "")
<td>Exercicio</td>
@endif

@unless ($turma ?? "")
<td>Turma</td>
@endif
<td>Prazo</td>

<td>Prazo</td>

@if ($user ?? "")
<td>Nota</td>
@endif
@if ($turma ?? "")
@can ('edit', $turma)
<td>Ações</td>
@endcan
@endif
</tr>
</thead>
<tbody>
Expand All @@ -40,34 +38,18 @@
</a>
</td>
@endif
<td>{{ $value->prazo }}</td>
@if ($user ?? "")

<td>
{{ $user->notaFinal($value) }}
{{ $value->prazo }}
</td>
@endif

@if ($turma ?? "")
@can ('edit', $turma)
@if ($user ?? "")
<td>

<!-- remove -->
@if ($removeButton ?? '')
<form method="POST" action="{{URL::to("/prazo/".$value->id)}}">
{{ csrf_field() }}
{{ method_field('DELETE') }}

<div class="form-group">
<input type="submit" class="btn btn-remove" value="Remover">
</div>
</form>
@endif

{{ $user->notaFinal($value) }}
</td>
@endcan
@endif

</tr>
@endforeach
</tbody>
</table>

0 comments on commit 55c0270

Please sign in to comment.