@php($fmt = in_array(($format ?? '11354'), ['11354','99014'], true) ? $format : '11354') @php($dymoFix = isset($dymoFix) ? (bool) $dymoFix : false) @php($dymoRot = isset($dymoRot) && in_array((int) $dymoRot, [-90, 90], true) ? (int) $dymoRot : -90) @php($dymoDx = isset($dymoDx) ? (float) $dymoDx : 0.0) @php($dymoDy = isset($dymoDy) ? (float) $dymoDy : 0.0) @php($autoPrint = request()->has('autoprint') && filter_var(request()->query('autoprint'), FILTER_VALIDATE_BOOL)) @php($showMarks = request()->has('marks') && filter_var(request()->query('marks'), FILTER_VALIDATE_BOOL)) @if($autoPrint) @endif
@if($showMarks)
{{ $fmt }} · fix={{ $dymoFix ? '1' : '0' }} · rot={{ (int) $dymoRot }} · dx={{ number_format($dymoDx, 2, '.', '') }} · dy={{ number_format($dymoDy, 2, '.', '') }}
@endif
{{ $codiceUnico ?? ($protocollo ?? '') }}
{{ strtoupper((string) ($documento->tipologia ?? 'DOC')) }}
{{ $anno ?? now()->format('Y') }}
Protocollo: {{ $protocollo ?? ($documento->numero_protocollo ?: '—') }}
@if(!empty($documento->nome))
Titolo: {{ $documento->nome }}
@endif @if(!empty($faldone))
Faldone: {{ $faldone }}
@endif
DOC-{{ (int) $documento->id }}
@if($documento->data_scadenza)
Scad.: {{ \Carbon\Carbon::parse($documento->data_scadenza)->format('d-m-Y') }}
@endif
Apri PDF: {{ $openUrl ?? '' }}
@if(! $autoPrint)
@endif