@php $badgeList = (isset($badges) && is_array($badges)) ? $badges : []; $idPrefix = is_string($idPrefix ?? null) ? $idPrefix : ''; $inline = (bool) ($inline ?? false); $popId = is_string($popId ?? null) ? $popId : ''; $suiteLine = is_string($suiteLine ?? null) ? trim($suiteLine) : ''; $name = $badgeList['name'] ?? '—'; $phone = $badgeList['phone'] ?? '—'; $label = $badgeList['label'] ?? '—'; $address = $badgeList['address'] ?? '—'; @endphp
@if($suiteLine !== ''){{ $suiteLine }}, @endif @if($idPrefix !== '') {{ $name }} - {{ $phone }} ({{ $label }}) @else {{ $name }} - {{ $phone }} ({{ $label }}) @endif
{{ $address }}