@php $c = $card; $sec = fn (string $k): bool => \App\Support\CardCustomization::sectionEnabled($custom ?? [], $k); $signatures = $c['signatures'] ?? []; $showDirector = $sec('show_signature') && $sec('show_signature_director'); $showHr = $sec('show_signature') && $sec('show_signature_hr'); $hasAny = ($showDirector && (!empty($signatures['director']['name']) || !empty($signatures['director']['image_url']))) || ($showHr && (!empty($signatures['hr']['name']) || !empty($signatures['hr']['image_url']))); @endphp @if($hasAny)
@if($showDirector) @php $dir = $signatures['director'] ?? []; @endphp @if(!empty($dir['name']) || !empty($dir['image_url']))
@if($sec('show_signature_image') && !empty($dir['image_url'])) @else
@endif
@if(!empty($dir['name'])) {{ $dir['name'] }} @endif @if(!empty($dir['title'])) {{ $dir['title'] }} @endif @if(!empty($dir['label'])) {{ $dir['label'] }} @endif
@endif @endif @if($showHr) @php $hr = $signatures['hr'] ?? []; @endphp @if(!empty($hr['name']) || !empty($hr['image_url']))
@if($sec('show_signature_image') && !empty($hr['image_url'])) @else
@endif
@if(!empty($hr['name'])) {{ $hr['name'] }} @endif @if(!empty($hr['title'])) {{ $hr['title'] }} @endif @if(!empty($hr['label'])) {{ $hr['label'] }} @endif
@endif @endif
@endif