@extends('layouts.admin') @section('title', 'Doctors') @section('content') @php $cur = config('clinic.currency.symbol'); @endphp @can('create', App\Models\User::class) Add Doctor @endcan
@forelse($doctors as $doc) {{ $doc->name }}
{{ $doc->email }} {{ $doc->doctorProfile?->department?->name ?? '—' }} {{ $doc->doctorProfile?->specialization ?? '—' }} {{ $cur }}{{ number_format($doc->doctorProfile?->consultation_fee ?? 0, 2) }} {{ $doc->doctorProfile?->experience_years ? $doc->doctorProfile->experience_years.' yrs' : '—' }} @can('update', $doc) @endcan @empty No doctors yet. @endforelse
{{ $doctors->links() }}
@endsection