@extends('dokter.layout') @section('content')

📋 Obat yang Sudah Diresepkan

@forelse($obats as $obat) @php $resep = $obat->reseps->first(); @endphp @empty @endforelse
Nama Obat Dosis Aturan Pakai Tanggal Resep
{{ $obat->nama }} {{ $resep?->pivot?->dosis ?? '-' }} {{ $resep?->pivot?->aturan_pakai ?? '-' }} {{ optional($resep)->created_at?->format('d-m-Y') ?? '-' }}
Belum ada obat yang diresepkan.
{{ $obats->links('pagination::tailwind') }}
@endsection