DIARIO DE {{$tipo}}: {{$paciente->nombre}}
@if ($tipo !== 'ORTODONCIA')
@endif
#
ESTA CITA
Doctor
PIEZA
PROXIMA CITA
FECHA
@foreach ($data as $d)
{{-- Conditionally render row based on $tipo --}}
/* Si $tipo es ORTODONCIA, solo mostramos las filas que tambien tengan tipo ORTODONCIA.
Si $tipo NO es ORTODONCIA, solo mostramos las filas que NO tengan tipo ORTODONCIA */
@if (($tipo !== 'ORTODONCIA' && $d->tipo !== 'ORTODONCIA') || ($tipo === 'ORTODONCIA' && $d->tipo === 'ORTODONCIA'))