| Cód. Aluno / CPF | Nome / Email | Telefone | Data Nascimento | Data Criação | Total | Situação |
|---|---|---|---|---|---|---|
|
{{ $aluno->aluno_codigo }}
@if($aluno->cpf)
{{ putMask($aluno->cpf, 'cpf') }}
CPF
|
{{ ucwords($aluno->nome . ' ' . $aluno->sobrenome) }}
{{ $aluno->email }}
|
@if($aluno->tel_cod)
+{{ $aluno->tel_cod }}
@endif
{{ $aluno->tel_ddd ? ($aluno->tel_ddd . ' ') : '' }}{{ $aluno->tel_num }}
|
@if($aluno->nascimento)
{{ date('d/m/Y', strtotime($aluno->nascimento)) }}
{{ \Carbon\Carbon::parse($aluno->nascimento)->age }} anos
@else
Não informado
@endif
|
{{ date('d/m/Y', strtotime($aluno->data_criacao)) }}
{{ date('H:i', strtotime($aluno->data_criacao)) }}
|
@php
$totalMatriculas = \App\Models\Matricula\Matricula::where('aluno_id', $aluno->aluno_id)->count();
@endphp
{{ $totalMatriculas }}
|
@php
$matriculasAtivas = 0;
if (!empty($idsAtivas)) {
$matriculasAtivas = \App\Models\Matricula\Matricula::where('aluno_id', $aluno->aluno_id)
->whereIn('situacao_id', $idsAtivas)
->count();
}
$matriculasCanceladas = 0;
if (!empty($idsCanceladas)) {
$matriculasCanceladas = \App\Models\Matricula\Matricula::where('aluno_id', $aluno->aluno_id)
->whereIn('situacao_id', $idsCanceladas)
->count();
}
$matriculasPendentes = 0;
if (!empty($idsPendentes)) {
$matriculasPendentes = \App\Models\Matricula\Matricula::where('aluno_id', $aluno->aluno_id)
->whereIn('situacao_id', $idsPendentes)
->count();
}
$matriculasOutras = $totalMatriculas - $matriculasAtivas - $matriculasCanceladas - $matriculasPendentes;
@endphp
@if($totalMatriculas > 0)
@if($matriculasAtivas > 0)
@else
Sem matrículas
@endif
{{ $matriculasAtivas }} ativa{{ $matriculasAtivas > 1 ? 's' : '' }}
@endif
@if($matriculasPendentes > 0)
{{ $matriculasPendentes }} pendente{{ $matriculasPendentes > 1 ? 's' : '' }}
@endif
@if($matriculasCanceladas > 0)
{{ $matriculasCanceladas }} cancelada{{ $matriculasCanceladas > 1 ? 's' : '' }}
@endif
@if($matriculasOutras > 0)
{{ $matriculasOutras }} outra{{ $matriculasOutras > 1 ? 's' : '' }}
@endif
|
|
@if ($search ?? false)
NÃO RETORNOU NENHUM REGISTRO @else |
||||||
Informações da Exportação:
Registros a serem exportados: {{ number_format($totalRegistrosExportacao, 0, ',', '.') }}
@if($this->situacaoId || $this->search)Filtros aplicados:
Atenção: Nenhum filtro aplicado - todos os registros serão exportados
@endifColunas que serão exportadas: