@php $logo_path = storage_path('app/public/' . $tarjeta->logo); $logo_base64 = ''; $logo_mime = ''; if (file_exists($logo_path)) { $logo_base64 = base64_encode(file_get_contents($logo_path)); $logo_mime = mime_content_type($logo_path); } $qr_svg = \SimpleSoftwareIO\QrCode\Facades\QrCode::format('svg') ->size(100) ->generate(route('tarjetas.show', $tarjeta->id)); $qr_base64 = base64_encode($qr_svg); @endphp @if($logo_base64) @endif
{{ $tarjeta->nombre_comercio }}
Puntos: {{ $tarjeta->puntos }}
Categoría: {{ ucfirst($tarjeta->categoria ?? 'N/A') }}
ID: #{{ $tarjeta->id }}
QR Code