@php $c = $card; $sec = fn (string $k): bool => \App\Support\CardCustomization::sectionEnabled($custom ?? [], $k); $lay = $custom['layout'] ?? []; $frontOrder = \App\Support\CardCustomization::orderedBlocks($custom ?? [], 'front', 'id'); $orderMap = \App\Support\CardCustomization::orderMap($frontOrder); @endphp
@foreach($frontOrder as $block) @switch($block) @case('head') @if($sec('show_logo') || $sec('show_org_name') || $sec('show_org_motto'))
@if($sec('show_logo')) @endif
@if($sec('show_org_motto') && $c['org_motto'])
{{ $c['org_motto'] }}
@endif @if($sec('show_org_name'))
{{ $c['org_name'] }}
@endif
@endif @break @case('photo') @if($sec('show_photo'))
{{ $c['name'] }}
@endif @break @case('identity') @if($sec('show_name') || $sec('show_designation'))
@if($sec('show_name'))
{{ $c['name'] }}
@endif @if($sec('show_designation'))
{{ $c['designation'] }}
@endif
@endif @break @case('signatures')
@include('cards.partials.signatures', ['class' => 'id-ngo__sign'])
@break @case('meta') @if($sec('show_sid') || $sec('show_phone') || $sec('show_email'))
@if($sec('show_sid')){{ $c['sid'] }}@endif @if($sec('show_phone')){{ $c['phone'] }}@endif @if($sec('show_email')){{ $c['email'] }}@endif
@endif @break @case('barcode') @if($sec('show_barcode'))
||||| {{ $c['sid'] }} |||||
@endif @break @endswitch @endforeach