SEGURIDAD
SECRETARIA DE SEGURIDAD
Y PROTECCIÓN CIUDADANA

Dirección General de la Policía Estatal de Caminos
Dirección de Servicios al Público
Departamento del Registro Público Vehicular

Villahermosa, Tabasco a {{ $fecha }}
VALE DE ENTREGA
Se realiza la entrega de {{ $total_tags }} constancias de inscripción de segunda generación (moradas) para la realización de trámites del Registro Público Vehicular, las cuales se enumeran por folios, a continuación.
@php $tagCount = count($tags); $numColumns = 1; // Determinar número de columnas según cantidad de tags if ($tagCount <= 10) { $numColumns = 1; } elseif ($tagCount <= 20) { $numColumns = 2; } elseif ($tagCount <= 40) { $numColumns = 3; } else { $numColumns = 4; } // Calcular filas necesarias $tagsPerColumn = ceil($tagCount / $numColumns); // Reorganizar tags en array bidimensional [fila][columna] $tagMatrix = []; $tagIndex = 0; for ($row = 0; $row < $tagsPerColumn; $row++) { for ($col = 0; $col < $numColumns; $col++) { if ($tagIndex < $tagCount) { $tagMatrix[$row][$col] = [ 'index' => $tagIndex + 1, 'tag' => $tags[$tagIndex] ]; $tagIndex++; } else { $tagMatrix[$row][$col] = null; } } } @endphp @foreach($tagMatrix as $row) @foreach($row as $cell) @endforeach @endforeach
@if($cell)
{{ $cell['index'] }}. {{ $cell['tag']->folio }}
@endif
ENTREGA

LIC. MARY ISABEL RAMON MADRIGAL

JEFA DEL DEPARTAMENTO REPUVE

RECIBEN
{{-- Mostrar primero el responsable del módulo --}} @if($module->responsible)

{{ strtoupper($module->responsible->full_name) }}

RESPONSABLE MÓDULO {{ $module->id }}

@endif {{-- Mostrar los demás usuarios del módulo (excluyendo al responsable si ya está incluido) --}} @foreach($responsables as $responsable) @if(!$module->responsible || $responsable->id !== $module->responsible->id)

{{ strtoupper($responsable->full_name) }}

{{ strtoupper($responsable->roles->first()->description ?? 'USUARIO') }} MÓDULO {{ $module->id }}

@endif @endforeach