@extends('dashboard.doctor.layouts.master') @section('title', trans('doctor.bookings.title')) @section('toolbar')
| {{ trans('doctor.patients.title') }} | {{ trans('doctor.schedule.branch') }} | {{ trans('doctor.schedule.date') }} | {{ trans('doctor.schedule.type') }} | {{ trans('doctor.schedule.status') }} | {{ trans('clinic.common.actions') }} |
|---|---|---|---|---|---|
| {{ $booking->patient->name }} | {{ $booking->clinicProfile?->branch?->name }} — {{ $booking->clinicProfile?->name }} | {{ $booking->scheduled_at->format('Y-m-d H:i') }} | @php $typeBadge = match($booking->type) { 'visit' => 'primary', 'online' => 'info', 'followup' => 'warning', default => 'secondary', }; @endphp {{ $booking->type === 'followup' ? trans('doctor.bookings.type_followup') : trans('doctor.schedule.types.'.$booking->type) }} | @php $statusBadge = match($booking->status) { 'pending' => 'warning', 'confirmed' => 'success', 'completed' => 'info', 'cancelled' => 'danger', default => 'secondary', }; @endphp {{ trans('doctor.schedule.statuses.'.$booking->status) }} | {{ trans('doctor.visits.open') }} |