@extends('dashboard.admin.layouts.master') @php $bookings = $overview['bookings']; $stats = $overview['stats']; $money = fn ($amount) => number_format((float) $amount, 2); $na = trans('clinic.common.not_available'); $tabs = array_filter([ 'main' => ['bi-person-vcard', trans('clinic.patients.tab_main'), null], 'medical' => $canViewMedical ? ['bi-heart-pulse', trans('clinic.patient_profile.medical_history'), null] : null, 'bookings' => ['bi-calendar-check', trans('clinic.doctors.tab_bookings'), $bookings->count()], 'visits' => $canViewMedical ? ['bi-clipboard2-pulse', trans('clinic.patients.tab_visits'), $overview['visits']->count()] : null, 'files' => ['bi-folder2-open', trans('clinic.patient_files.title'), $attachments->count()], 'payments' => ['bi-credit-card', trans('clinic.patients.tab_payments'), $overview['payments']->count()], 'followups' => ['bi-arrow-repeat', trans('clinic.followups.title'), $overview['followups']->count()], 'offers' => ['bi-tags', trans('clinic.patients.tab_offers'), $overview['subscriptions']->count()], 'reviews' => ['bi-star', trans('clinic.patients.tab_reviews'), $overview['reviews']->count()], ]); $activeTab = $errors->hasAny(['files', 'files.*', 'category_id', 'label']) ? 'files' : 'main'; @endphp @section('toolbar')
{{ trans('clinic.patient_profile.other') }}: {{ $profile->medical_history['other'] }}
@endif{{ trans('clinic.patient_profile.' . $key) }}: {{ $profile->medication_history[$key] }}
@endif @endforeach| {{ trans('clinic.patients.payment_date') }} | {{ trans('clinic.doctors.title') }} | {{ trans('clinic.patients.payment_method') }} | {{ trans('clinic.patients.payment_amount') }} | {{ trans('clinic.bookings.status') }} |
|---|---|---|---|---|
| {{ ($payment->paid_at ?? $payment->created_at)?->format('Y-m-d H:i') }} | {{ $payment->booking?->doctor?->name ?? $na }} | {{ $payment->gateway_code ?: ($payment->method ?: $na) }} | {{ $money($payment->amount) }} {{ $payment->currency }} | {{ trans()->has('clinic.patients.payment_statuses.' . $payment->status) ? trans('clinic.patients.payment_statuses.' . $payment->status) : $payment->status }} |
{{ $review->doctor_comment }}
@endif @endif @if ($review->clinic_rating){{ $review->clinic_comment }}
@endif @endif