@php $staffId = $card['staff']?->id ?? 0; $isId = ($card_type ?? '') === \App\Support\CardTemplateRegistry::TYPE_ID; $pdfRoute = $isId ? route('ID.Card.pdf', $staffId) : route('visiting.Card.pdf', $staffId); $backUrl = $isId && $staffId ? route('ID.Card.view', $staffId) : ($staffId ? route('visiting.Card.view', $staffId) : route('admin.card_templates.index')); @endphp
{{ $title ?? __('Employee Card') }} @if(!empty($template['name'])) {{ $template['name'] }} @endif @if(!empty($is_preview)) {{ __('Preview') }} @endif
@if(empty($is_preview) && $staffId) {{ __('Download PDF') }} @endif @if(!empty($is_preview)) {{ __('Back') }} @endif