@php $c = $card; $layout = $layout ?? ($template['layout'] ?? 'modern'); $sec = fn (string $k): bool => \App\Support\CardCustomization::sectionEnabled($custom ?? [], $k); $lay = $custom['layout'] ?? []; $photoShape = ($lay['photo_shape'] ?? '') === 'circle' ? 'circle' : ((in_array($layout, ['photo', 'premium', 'corporate']) || ($lay['photo_shape'] ?? '') === 'rect') ? 'rect' : 'circle'); @endphp
@if($sec('show_logo') || $sec('show_org_name'))
@if($sec('show_logo')) @endif
@if($sec('show_org_name'))

{{ $c['org_name'] }}

@endif @if($sec('show_org_motto') && $c['org_motto'])

{{ $c['org_motto'] }}

@endif
@endif @if($sec('show_photo'))
@endif
@if($sec('show_name'))

{{ $c['name'] }}

@endif @if($sec('show_designation'))

{{ $c['designation'] }}

@endif
@if($sec('show_sid'))
{{ $c['sid'] }}
@endif @if($sec('show_phone'))
{{ $c['phone'] }}
@endif @if($sec('show_email'))
{{ $c['email'] }}
@endif
@if($sec('show_signature'))
@include('cards.partials.signatures', ['class' => 'card-signatures--inline', 'imgClass' => 'id-modern__sign-img'])
@endif
@if($sec('show_barcode'))
{{ $sec('show_branch') ? $c['branch'] : '' }} ||||| {{ $c['sid'] }} |||||
@endif