This commit is contained in:
2026-02-12 17:56:16 +00:00
parent a4f80c85c2
commit 2ffd916e2f
27 changed files with 1181 additions and 60 deletions

View File

@@ -0,0 +1,74 @@
@extends('theme.default')
@section('title', 'Alunos')
@section('title.page', 'Alunos')
@section('title.page1', 'CAE')
@section('title.page2', 'Alunos')
@section('title.page3', 'Lista de alunos')
@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">CPF</th>
<th scope="col">Escola</th>
<th scope="col">Turma</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach ($alunos as $aluno)
<tr>
<th scope="row">{{ $aluno->id }}</th>
<td>{{ $aluno->nome }}</td>
<td>{{ $aluno->cpf }}</td>
<td>{{ $aluno->turma->escola->nome }}</td>
<td>{{ $aluno->turma->nome }}</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

View 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

View File

@@ -0,0 +1,79 @@
@extends('theme.default')
@section('title', 'Turmas')
@section('title.page', 'Turmas')
@section('title.page1', 'CAE')
@section('title.page2', 'Turmas')
@section('title.page3', 'Lista de turmas')
@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">Escola</th>
<th scope="col">Nome</th>
<th scope="col">Descrição</th>
<th scope="col">Whatsap</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach ($turmas as $turma)
<tr>
<th scope="row">{{ $turma->id }}</th>
<td>{{ $turma->escola->nome }}</td>
<td>{{ $turma->nome }}</td>
<td>{{ $turma->descricao }}</td>
<td>{{ $turma->id_whatsapp }}</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