{{-- The hospital logo faded in the middle of a printed report, like a watermark — only for users given the permission (lab-report-watermark / image-report-watermark / prescription-watermark). Include inside the printed area: ['perm' => 'lab-report-watermark']. Inline styles only: the lab / image prints copy the area into a new window. --}} @php $__wmCompany = get_company_settings(); $__wmLogo = $__wmCompany->logo ?? null; if (!$__wmLogo || !is_file(public_path('storage/settings/' . $__wmLogo))) { $__wmLogo = \App\Models\Setting::query()->where('name', 'icon')->value('value') ?? null; } $__wmShow = auth()->check() && auth()->user()->can($perm ?? '') && $__wmLogo && is_file(public_path('storage/settings/' . $__wmLogo)); @endphp @if ($__wmShow) @endif