@props(['unitUsaha']) @php $appSettings = app(\App\Services\AppSettingsService::class); // Unique per render so two instances of this component on one page // (unlikely today, but cheap to guard) never collide on the SVG // id. $patternId = 'qr-lattice-'.$unitUsaha->id.'-'.uniqid(); @endphp {{-- QRIS-style payment card: a plain black/white QR (kept untouched for scan reliability - all the branding lives in the frame around it, the same way real QRIS stickers work) inside a card carrying the pondok's own visual identity - the teal gradient + geometric lattice motif used for brand "karakter kita" elsewhere (splash/login/home header on the mobile app), reproduced here as a tiled SVG pattern since this is server-rendered HTML, not the Flutter canvas widget. --}}
{{-- A white chip behind the badge (not a translucent one) so an uploaded logo keeps its own colors/contrast regardless of what's inside it, instead of blending into the teal gradient the way a tinted background would. --}}
@if ($appSettings->hasLogo()) Logo @else {{ mb_strtoupper(mb_substr($appSettings->namaAplikasi(), 0, 1)) }} @endif
{{-- Full nama pondok, never abbreviated - this is the sign that ends up printed and taped to a physical kantin counter, so it needs to read as the pondok's actual name at a glance, not an initialism only staff would recognize. --}}

{{ $appSettings->namaPondok() }}

Scan & Bayar

{{-- w-72 is the panel's PREFERRED width (240px QR + 24px padding either side) - max-w-full lets it shrink on narrower viewports/modals instead of forcing the card wider than its container (the previous w-fit around a fixed-pixel QR SVG couldn't shrink at all, so it overflowed past the card edge on anything narrower than ~330px). [&>svg] forces the QR's own raw width/height attributes to instead fill this shrinkable box, scaling the QR down proportionally right along with it. --}}
{!! QrCode::size(240)->format('svg')->generate($unitUsaha->kode) !!}

{{ $unitUsaha->nama }}

{{ $unitUsaha->kode }}

Scan kode ini lewat menu Scan & Bayar di aplikasi untuk membayar langsung dari saldo santri.

{{-- "Print just this element" - hides everything else on the page so a kantin owner or admin printing this doesn't get nav chrome/modal backdrop in the output, only the card itself. --}}