@extends('patient.layouts.app') @section('title','البحث عن طبيب') @section('tb-sub','ابحث واحجز موعدك') @push('styles') @endpush @section('content') {{-- ══ Filter Bar ══ --}}
@if(request('city'))@endif @if(request('specialty'))@endif
{{-- فلتر المحافظات --}}
📍 كل المناطق @if($patientCity) ⭐ {{ $patientCity }} (منطقتي) @endif @foreach($cities->reject(fn($c)=>$c===$patientCity) as $city) {{ $city }} @endforeach
{{-- فلتر التخصصات --}}
الكل @foreach($specialties as $s) {{ $s }} @endforeach
{{-- ══ نتائج + عدد ══ --}}
تم العثور على {{ $doctors->total() }} طبيب @if(request('city')) في {{ request('city') }}@endif @if(request('specialty')) · {{ request('specialty') }}@endif
{{-- ══ قائمة الأطباء ══ --}} @forelse($doctors as $doc)
@if($doc->logo) @else{{ strtoupper(mb_substr($doc->user->name, 0, 1)) }}@endif
د. {{ $doc->user->name }} @if($doc->is_verified)@endif
{{ $doc->specialty }} @if($doc->experience_years) · {{ $doc->experience_years }} سنة خبرة @endif
{{ str_repeat('★', min(5, (int) round($doc->rating))) }}{{ str_repeat('☆', max(0, 5 - (int) round($doc->rating))) }} {{ number_format($doc->rating, 1) }} ({{ $doc->total_reviews }})
@if($doc->city)📍 {{ $doc->city }}@endif @if($doc->clinic_name)🏥 {{ $doc->clinic_name }}@endif @if($doc->consultation_fee)💰 {{ \App\Support\Money::iqd($doc->consultation_fee, 0) }}@endif
@php $qn=\App\Models\Queue::where('doctor_id',$doc->id)->today()->whereIn('status',['waiting','in_progress'])->count() @endphp @if($qn>0) {{ $qn }} في الطابور @else @endif
@empty

لم يتم العثور على أطباء

إعادة ضبط الفلاتر
@endforelse @if($doctors->hasPages())
{{ $doctors->withQueryString()->links('pagination::bootstrap-5') }}
@endif @endsection