@extends('patient.layouts.app') @section('title','د. '.$doctor->user->name) @section('tb-sub', $doctor->specialty) @push('styles') @endpush @section('content') {{-- ══ Hero ══ --}}
@if($doctor->logo) @else {{ strtoupper(mb_substr($doctor->user->name,3,1)) }} @endif

د. {{ $doctor->user->name }}

{{ $doctor->specialty }} @if($doctor->experience_years) · خبرة {{ $doctor->experience_years }} سنة @endif @if($doctor->is_verified) · موثّق @endif

@if($doctor->city)📍 {{ $doctor->city }}@endif @if($doctor->phone)📞 {{ $doctor->phone }}@endif @if($doctor->consultation_fee)💰 {{ \App\Support\Money::iqd($doctor->consultation_fee, 0) }}@endif
{{-- ══ بطاقة الإحصائيات ══ --}}
{{ number_format($doctor->rating,1) }}
⭐ التقييم
{{ $doctor->total_reviews }}
تقييم
{{ $todayQueue }}
في الطابور
{{-- ══ أزرار الإجراء ══ --}}
@if($patientInQueue)
أنت في الطابور
@else
@csrf
@endif
{{-- ══ معلومات العيادة ══ --}}
@if($doctor->clinic_name)
🏥
{{ $doctor->clinic_name }}
@if($doctor->clinic_address)
{{ $doctor->clinic_address }}
@endif
@endif @if($doctor->bio)
{{ $doctor->bio }}
@endif @if($doctor->prescription_header)
{{ $doctor->prescription_header }}
@endif
{{-- ══ خريطة الموقع ══ --}} @if($doctor->latitude && $doctor->longitude)
فتح الخريطة
@endif {{-- ══ صور الطبيب / العيادة ══ --}} @if($doctor->media->isNotEmpty())
صور العيادة
@endif {{-- ══ ملخص التقييمات ══ --}}
التقييمات{{ $doctor->total_reviews }} تقييم
{{ number_format($doctor->rating,1) }}
{{ str_repeat('★',round($doctor->rating)) }}{{ str_repeat('☆',5-round($doctor->rating)) }}
من 5
@for($i=5;$i>=1;$i--)
{{ $i }}
{{ $ratingBreakdown[$i]['count'] }}
@endfor
{{-- ══ التقييمات ══ --}} @foreach($doctor->reviews as $rev)
{{ $rev->is_anonymous ? '?' : strtoupper(mb_substr($rev->patient->user->name,0,1)) }}
{{ $rev->is_anonymous ? 'مريض مجهول' : $rev->patient->user->name }}
{{ $rev->created_at->diffForHumans() }}
{{ str_repeat('★',$rev->rating) }}{{ str_repeat('☆',5-$rev->rating) }}
@if($rev->comment)
{{ $rev->comment }}
@endif
@endforeach {{-- ══ أضف تقييمك ══ --}}
@if($myReview)
✅ شكراً على تقييمك!
{{ str_repeat('★',$myReview->rating) }}{{ str_repeat('☆',5-$myReview->rating) }}
@if($myReview->comment)
{{ $myReview->comment }}
@endif
@else
⭐ أضف تقييمك
@csrf
@for($i=1;$i<=5;$i++) @endfor
@endif
{{-- ══ حجز موعد ══ --}}
📅 حجز موعد مسبق
@csrf
@foreach(['08:00','08:30','09:00','09:30','10:00','10:30','11:00','11:30','12:00','13:00','14:00','15:00','16:00','17:00','18:00','19:00'] as $t)
{{ $t }}
@endforeach
@endsection @push('scripts') @endpush