@switch($selectedComponent)
@case('project')
@can('clients.update_details')
@livewire('projects.project-data-form', [
'clientId' => $this->client->hashId
])
@endcan
@break
@case('documents')
@livewire('documents.documents-manager', [
'modelType' => $this->client->getMorphClass(),
'modelId' => $this->client->getKey(),
'showFullManager' => false
])
@break
@case('simulator')
@livewire('simulations.loan-simulator', [
'clientId' => $this->client->hashId,
])
@break
@case('contact')
Pour plus d'informations
N'hesitez pas à contacter
{{ $this->contactUser?->name_and_surname }}
{{ $this->contactUser?->email }}
{{ $this->contactUser?->any_phone }}
@break
@case('chat')
@livewire('chats.chats-manager',
[
'modelClass' => $this->client->getMorphClass(),
'modelId' => $this->client->getKey(),
'isSingleConversation' => true,
]
)
@break
@case('account')
@livewire('user.user-profile')
@break
@default
@endswitch