{{-- POS installable PWA: manifest + meta (injected only when $pos_layout). Replaces @laravelPWA on POS screens. --}}
@php
$posPwa = config('pos_pwa.manifest', []);
$lw = config('laravelpwa.manifest', []);
$icons = $lw['icons'] ?? [];
$icon192 = $icons['192x192'] ?? ($icons['512x512'] ?? null);
if (! $icon192 && ! empty($icons)) {
$icon192 = reset($icons);
}
if (! is_array($icon192)) {
$icon192 = ['path' => '/images/icons/icon-192x192.png'];
}
$splash = $lw['splash'] ?? [];
@endphp
@if (!empty($splash['640x1136']))
@endif
@if (!empty($splash['750x1334']))
@endif
@if (!empty($splash['1125x2436']))
@endif