{{-- records/index.blade.php --}} @extends('patient.layouts.app') @section('title','سجلاتي الطبية') @section('content') @forelse($records as $record) 🏥 {{ $record->diagnosis }} د. {{ $record->doctor->user->name }} · {{ $record->visit_date->format('Y/m/d') }} @if($record->prescriptions && count($record->prescriptions)) 💊 {{ collect($record->prescriptions)->pluck('medicine')->filter()->take(2)->join(', ') }} @endif @empty