@php
if(getCurrentUser()->isFreelancer()) {
$current = $item?->freelancer;
$other = $item?->owner;
} else {
$current = $item?->owner;
$other = $item?->freelancer;
}
@endphp
@include('front.partials._chat_block', [
'chat' => $item,
'current' => $current,
'other' => $other,
])