fixed guest consultation shows as unknown to show the guest name
This commit is contained in:
@@ -28,7 +28,7 @@ new class extends Component
|
||||
|
||||
@forelse ($pendingBookings as $booking)
|
||||
<div wire:key="pending-{{ $booking->id }}" class="border-b border-zinc-100 py-2 last:border-0">
|
||||
<div class="font-medium text-zinc-900">{{ $booking->user?->full_name ?? __('widgets.unknown_client') }}</div>
|
||||
<div class="font-medium text-zinc-900">{{ $booking->getClientName() }}</div>
|
||||
<div class="flex items-center gap-2 text-sm text-zinc-500">
|
||||
<span>{{ $booking->booking_date->translatedFormat('M j') }}</span>
|
||||
<flux:badge size="sm">{{ $booking->consultation_type->label() }}</flux:badge>
|
||||
|
||||
@@ -39,7 +39,7 @@ new class extends Component
|
||||
{{ \Carbon\Carbon::parse($consultation->booking_time)->format('g:i A') }}
|
||||
</div>
|
||||
<div class="flex items-center gap-2 text-sm text-zinc-500">
|
||||
<span>{{ $consultation->user?->full_name ?? __('widgets.unknown_client') }}</span>
|
||||
<span>{{ $consultation->getClientName() }}</span>
|
||||
<flux:badge size="sm">{{ $consultation->consultation_type->label() }}</flux:badge>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user