@php $tone = $tone ?? 'operational'; $borderClass = $tone === 'earnings' ? 'border-violet-200 bg-violet-50/40' : 'border-indigo-200 bg-indigo-50/40'; $btnClass = $tone === 'earnings' ? 'bg-violet-700 text-white hover:bg-violet-800' : 'bg-[#6A35FF] text-white hover:bg-[#5529cc]'; $paused = (bool) ($template->issuance_paused ?? false); $presetAmount = $template->preset_amount_usd !== null ? (float) $template->preset_amount_usd : null; $isHospital = ($template->category ?? '') === 'medical'; $lineItemsPlaceholder = $isHospital ? '[{"label":"Infusion suite (4h)","amount":5200},{"label":"Pharmacy bundle","amount":1890}]' : '[{"label":"Lodging","amount":1200},{"label":"Airfare","amount":800}]'; @endphp

{{ $template->title }}

{{ $template->category }} · {{ $template->invoice_domain }}

{{ $template->issuer_name }}@if($template->country) · {{ $template->country }}@endif

@if ($paused)

Issuance paused — resume under Control Panel → Invoice templates.

@elseif ($presetAmount !== null)

Preset bundle: ${{ number_format($presetAmount, 2) }} (one-click issue below).

@endif
@unless($paused)
@csrf
@if ($isHospital) @else @endif
@if ($presetAmount !== null)
@csrf
@if ($isHospital) @else @endif
@endif @endunless