@php
$establishment = $prescription->establishment ?? null;
$logoData = $establishment ? \App\Helpers\LogoHelper::getLogoBase64(null, $establishment->id) : null;
@endphp
@if($logoData)
@endif
|
Recetario |
@php
$nh = $prescription->number_history ?? null;
$nhFmt = ($nh !== null && $nh !== '') ? str_pad(preg_replace('/\D/', '', preg_replace('/^H-/', '', (string) $nh)), 7, '0', STR_PAD_LEFT) : null;
$folioReceta = $prescription->prescription_correlative ?? null;
if (!$folioReceta && !empty($prescription->prescription_number)) {
$folioReceta = $nhFmt . str_pad((string) $prescription->prescription_number, 3, '0', STR_PAD_LEFT);
}
@endphp
@if($nhFmt)
Historia clínica N° {{ $nhFmt }}
@if($folioReceta)
Folio receta: {{ $folioReceta }}
@endif
@elseif($folioReceta)
Receta N° {{ $folioReceta }}
@endif
|
|
Fecha: {{ $prescription->prescription_date ? \Carbon\Carbon::parse($prescription->prescription_date)->format('d-m-Y') : 'N/A' }}
Tel.: {{ optional($establishment)->telephone ?? 'N/A' }}
Correo: {{ optional($establishment)->email ?? 'N/A' }}
|