@php // We expect $row to be the lead (Client model or query row) with related client_profile loaded $clientProfileSource = trim(data_get($row, 'client_profile.source.label', '')); $clientSource = trim(data_get($row, 'source.name', '')); @endphp @if($clientProfileSource || $clientSource)
@if($clientProfileSource) {{ $clientProfileSource }} @endif @if($clientSource) {{ $clientSource }} @endif
@else - @endif