@extends('dashboard.doctor.layouts.master') @section('title', trans('clinic.followups.title')) @section('toolbar')

{{ trans('clinic.followups.title') }}

@endsection @section('content')
@if($followups->isEmpty())
{{ trans('clinic.followups.empty') }}
@else
@foreach($followups as $followup) @endforeach
{{ trans('clinic.followups.patient') }} {{ trans('clinic.followups.last_visit') }} {{ trans('clinic.followups.doctor_note') }} {{ trans('clinic.followups.status') }} {{ trans('clinic.followups.due_date') }} {{ trans('clinic.common.actions') }}
{{ $followup->patient?->name }} {{ $followup->booking?->scheduled_at?->format('Y-m-d') }}
@if($followup->is_required) {{ trans('clinic.followups.doctor_says_required') }} @else {{ trans('clinic.followups.doctor_says_not_required') }} @endif
@if($followup->doctor_note)
{{ $followup->doctor_note }}
@endif
@php $statusBadge = match($followup->status) { 'pending' => 'warning', 'scheduled' => 'success', 'cancelled' => 'danger', default => 'secondary', }; @endphp {{ trans('clinic.followups.statuses.'.$followup->status) }} @if($followup->admin_note)
{{ $followup->admin_note }}
@endif
{{ $followup->due_date?->format('Y-m-d') ?? trans('clinic.followups.no_due_date') }} @if($followup->followupBooking) {{ trans('doctor.visits.open') }} @endif
{{ $followups->links() }}
@endif
@endsection