upload
This commit is contained in:
89
resources/views/escolas/index.blade.php
Normal file
89
resources/views/escolas/index.blade.php
Normal file
@@ -0,0 +1,89 @@
|
||||
@extends('theme.default')
|
||||
@section('title', 'Escolas')
|
||||
@section('title.page', 'Escolas')
|
||||
@section('title.page1', 'CAE')
|
||||
@section('title.page2', 'Escolas')
|
||||
@section('title.page3', 'Lista de escolas')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-block row">
|
||||
<div class="col-sm-12 col-lg-12 col-xl-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead class="bg-primary">
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Nome</th>
|
||||
<th scope="col">CNPJ</th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($escolas as $escola)
|
||||
<tr>
|
||||
<th scope="row">{{$escola->id}}</th>
|
||||
<td>{{$escola->nome}}</td>
|
||||
<td>{{$escola->cnpj}}</td>
|
||||
<td>
|
||||
<span>Endereço:</span>
|
||||
<p>{{ $escola->endereco['street'] }} {{ $escola->endereco['number'] }}
|
||||
</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<span>Complemento:</span>
|
||||
<p>{{ $escola->endereco['details'] }} </p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<span>Cep:</span>
|
||||
<p>{{ $escola->endereco['zip'] }}</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-link p-0 gear-btn" type="button"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i data-feather="settings" class="gear-icon bg-primary"></i>
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li>
|
||||
<form action="editar.php" method="post">
|
||||
<input type="hidden" name="id" value="123">
|
||||
<button type="submit" class="dropdown-item">
|
||||
Editar
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<form action="excluir.php" method="post"
|
||||
onsubmit="return confirm('Tem certeza que deseja excluir?')">
|
||||
<input type="hidden" name="id" value="123">
|
||||
<button type="submit" class="dropdown-item text-danger">
|
||||
Excluir
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user