@includeIf('billing.billing_pdf_css')
|
@php
$logoUrl = global_setting()->logo_url;
$logoBase64 = null;
if ($logoUrl) {
try {
// If the URL is relative, prepend the app URL
if (!preg_match('/^https?:\/\//', $logoUrl)) {
$logoUrl = url($logoUrl);
}
$logoImageContents = @file_get_contents($logoUrl);
if ($logoImageContents !== false) {
$imageInfo = @getimagesizefromstring($logoImageContents);
$mimeType = $imageInfo ? $imageInfo['mime'] : 'image/png';
$logoBase64 = 'data:' . $mimeType . ';base64,' . base64_encode($logoImageContents);
}
} catch (\Exception $e) {
$logoBase64 = null;
}
}
@endphp
@if ($logoBase64)
{{ global_setting()->name }} |
@lang('modules.billing.paymentReceipt')
|
||||||
|
@lang('modules.billing.billedTo') |
@lang('modules.billing.paid')
|
||||||
| @lang('modules.package.description') | @lang('modules.package.packageName') | @lang('modules.package.packagePrice') | @lang('modules.package.amount') ({{ $invoice->globalCurrency->currency_code }}) | ||
| {{ $invoice->package->description }} | {{ $invoice->package->package_name }} ({{ $invoice->package_type }}) | {{ $invoice->sub_total ?? 0 }} | {{ $invoice->sub_total ?? 0 }} | ||
|
|
||||