@php $data = file_get_contents(public_path('images/invoice_header.svg')); $base64 = 'data:image/svg+xml;base64,' . base64_encode($data); @endphp