@if ((isset($res['pdf']) && $res['pdf']) || (isset($res['storage']) && $res['storage'])) @else @endif @foreach ($waktuMinum as $x) {{-- @php dd($x); @endphp --}} @foreach ($dataReport as $d)

@if ((isset($res['pdf']) && $res['pdf']) || (isset($res['storage']) && $res['storage'])) @else @endif

{!! strtoupper($profile->namalengkap) !!}
Instalasi Farmasi

{!! $d->namapasien !!}
{{ date('Y-m-d', strtotime($d->tgllahir)) }} {{ $d->nocm }} {{ date('Y-m-d', strtotime($d->tglresep)) }}
{{ $d->namaproduk }} {{ $d->aturanpakai . ' ' . ($d->satuanresep == null ? $d->satuanstandar : $d->satuanresep) }}

@php $waktu = ''; if ($x== 'Pagi') { $waktu = $d->pagi; } if ($x== 'Siang') { $waktu = $d->siang; } if ($x== 'Sore') { $waktu = $d->sore; } if ($x== 'Malam') { $waktu = $d->malam; } @endphp
{{ $waktu }}
@endforeach @endforeach