fixed guest consultation shows as unknown to show the guest name
This commit is contained in:
parent
0aa1b7f675
commit
c1cc24c78d
|
|
@ -327,14 +327,14 @@ new class extends Component
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<div class="flex items-center gap-2 mb-1">
|
<div class="flex items-center gap-2 mb-1">
|
||||||
<a href="{{ route('admin.consultations.show', $consultation) }}" class="font-semibold text-zinc-900 hover:text-blue-600" wire:navigate>
|
<a href="{{ route('admin.consultations.show', $consultation) }}" class="font-semibold text-zinc-900 hover:text-blue-600" wire:navigate>
|
||||||
{{ $consultation->user?->full_name ?? __('common.unknown') }}
|
{{ $consultation->getClientName() }}
|
||||||
</a>
|
</a>
|
||||||
<flux:badge size="sm" color="{{ $consultation->consultation_type === \App\Enums\ConsultationType::Paid ? 'indigo' : 'zinc' }}">
|
<flux:badge size="sm" color="{{ $consultation->consultation_type === \App\Enums\ConsultationType::Paid ? 'indigo' : 'zinc' }}">
|
||||||
{{ $consultation->consultation_type->label() }}
|
{{ $consultation->consultation_type->label() }}
|
||||||
</flux:badge>
|
</flux:badge>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm text-zinc-500">
|
<div class="text-sm text-zinc-500">
|
||||||
{{ $consultation->user?->email ?? '-' }}
|
{{ $consultation->getClientEmail() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ new class extends Component
|
||||||
|
|
||||||
@forelse ($pendingBookings as $booking)
|
@forelse ($pendingBookings as $booking)
|
||||||
<div wire:key="pending-{{ $booking->id }}" class="border-b border-zinc-100 py-2 last:border-0">
|
<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">
|
<div class="flex items-center gap-2 text-sm text-zinc-500">
|
||||||
<span>{{ $booking->booking_date->translatedFormat('M j') }}</span>
|
<span>{{ $booking->booking_date->translatedFormat('M j') }}</span>
|
||||||
<flux:badge size="sm">{{ $booking->consultation_type->label() }}</flux:badge>
|
<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') }}
|
{{ \Carbon\Carbon::parse($consultation->booking_time)->format('g:i A') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2 text-sm text-zinc-500">
|
<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>
|
<flux:badge size="sm">{{ $consultation->consultation_type->label() }}</flux:badge>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue