RELATÓRIO DE FREQUÊNCIA AUTOMÁTICA


DATA TURMA TURNO
{{date('d/m/Y', strtotime($data))}} {{$turma->descricao}} {{$turma->turno['descricao']}}
@foreach($matriculas as $mat) {{-- */ $entrada = ''; $h_entrada = ''; $h_saida = ''; $saida = ''; $frequencia = ''; foreach($registros as $reg){ if($reg->matricula_id == $mat->id && $reg->tipo == 1){ $entrada = $mat->id; $h_entrada = $reg->created_at; if(count($reg->frequencias) > 0){ $frequencia = 'ok'; } } if($reg->matricula_id == $mat->id && $reg->tipo == 2){ $saida = $mat->id; $h_saida = $reg->created_at; } } /* --}} @if($entrada == $mat->id) @else @endif @if($saida == $mat->id) @else @endif @endforeach
CARTÃO ALUNO ENTRADA SAÍDA
{{$mat->codigo_rfid}} {{$mat->aluno->nomecompleto}}