dealhub/resources/views/components/dashboard/user/broker-contact.blade.php
kusowl 2f566cc4d8 feature(Live Support): add chat ui
- add chat ui for live support
- fix misc bugs
2026-02-09 19:07:16 +05:30

21 lines
1.1 KiB
PHP

@props(['broker' => '', 'is_followed' => false])
<div {{$attributes->merge(['class' => "p-4 text-sm bg-gray-100 border-gray-200 border rounded-xl"])}}>
<div class="flex space-x-2 items-center mb-2">
<p class="font-bold">Broker Contact</p>
<x-ui.button-sm data-is-loading="false" data-followed="{{$is_followed ? 'true' : 'false'}}"
onclick="follow(this, {{$broker->role_id ?? ''}})" class="followBtn group p-0! mt-0.5">
<span class="group-data-[followed=true]:hidden text-blue-600">Follow</span>
<span class="group-data-[followed=false]:hidden text-accent-600">Unfollow</span>
</x-ui.button-sm>
<x-ui.button-sm>
<x-heroicon-o-chat-bubble-oval-left class="w-4 text-accent-600"/>
</x-ui.button-sm>
</div>
<div class="text-accent-600 space-y-1">
<p data-is-loading="false" class="broker-name">{{$broker->name ?? ''}}</p>
<p data-is-loading="false" class="broker-email">{{$broker->email ?? ''}}</p>
<p data-is-loading="false" class="broker-phone">{{$broker->role->phone ?? ''}}</p>
</div>
</div>