@php /** @var \App\Models\Clinic\Doctor $doctor */ $doctorPhoto = $doctor->photo_path ? asset($doctor->photo_path) : asset('assets_web/img/team/img1.webp'); $doctorClinic = $doctor->relationLoaded('clinics') ? $doctor->clinics->first() : null; $doctorRating = $doctor->averageRating(); // Lowest active visit price; only shown when the caller eager-loaded servicePrices. $doctorPrice = $doctor->relationLoaded('servicePrices') ? $doctor->servicePrices->min('total_price') : null; @endphp
{{ $doctor->name }}

{{ $doctor->name }}

{{ $doctor->specialty?->name }}
{{ $doctorRating ? number_format($doctorRating, 1) : trans('site.doctor.new') }}
@if ($doctorClinic?->branch || $doctorPrice !== null)
@if ($doctorClinic?->branch)
{{ $doctorClinic->branch->name }}
@endif @if ($doctorPrice !== null)
{{ rtrim(rtrim(number_format((float) $doctorPrice, 2), '0'), '.') }} {{ trans('site.doctors.currency') }}
@endif
@endif {{ trans('site.doctors.book_now') }}