1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@extends('layouts.main')
@section('title', 'Campus')
@section('header')
@include('layouts.header', [
'user' => Auth::user(),
])
@endsection
@section('nav')
@include('layouts.navigation', [
'index_menu' => $index_menu,
])
@endsection
@section('body')
<div class="d-flex justify-content-between align-items-center border-bottom">
<h2 class="">TODOS OS COORDENADORES</h2>
@include('components.buttons.btn-create', [
'route' => route('coordenador_create'),
'class' => '',
'content' => 'Novo Coordenador',
'id' => '',
])
</div>
<!-- Tabela -->
<div class="table-responsive mt-5">
<table class="table table-hover table-striped">
<thead class="thead-dark">
<tr>
<th scope="col">Nome</th>
<th scope="col">CPF</th>
<th scope="col">Ações</th>
</tr>
</thead>
<tbody>
@foreach ($coordenadores as $coordenador)
<tr>
<td>{{ $coordenador->name }}</td>
<td>{{ $coordenador->document }}</td>
<td>
@include('components.buttons.btn-edit', [
'btn_class' => 'btn btn-warning',
'route' => route('coordenador_edit', ['id' => $coordenador->id]),
])
@include('components.buttons.btn-delete', [
'route' => route('coordenador_delete', ['id' => $coordenador->id]),
'modal_id' => $coordenador->id,
])
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endsection