diff --git a/resources/views/pdf/ecard-lms.blade.php b/resources/views/pdf/ecard-lms.blade.php index eb69d6fe..0687f61c 100755 --- a/resources/views/pdf/ecard-lms.blade.php +++ b/resources/views/pdf/ecard-lms.blade.php @@ -24,7 +24,8 @@ font-size: 20px; margin: 0; /* Reset default margin */ padding: 0; /* Reset default padding */ - background-image: url("{{public_path('images/ecard-background.png')}}"); + background-image: url("{{ 'data:image/png;base64,' . base64_encode(file_get_contents(public_path('images/ecard-background.png'))) }}"); + /* background-image: url("{{public_path('images/ecard-background.png')}}"); */ background-repeat: no-repeat; background-size: cover; /* Adjust as needed */ } @@ -80,7 +81,11 @@

@if($member->currentCorporate->files && count($member->currentCorporate->files) > 0)
- + @php + $imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(public_path('images/logo-default.png'))); + echo ''; + @endphp +
@endif @@ -108,7 +113,11 @@

{{ $member->startDate }}

- + @php + $imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(public_path('images/logo-default.png'))); + echo ''; + @endphp +
diff --git a/resources/views/pdf/ecard.blade.php b/resources/views/pdf/ecard.blade.php index b10641d3..56b9f64c 100755 --- a/resources/views/pdf/ecard.blade.php +++ b/resources/views/pdf/ecard.blade.php @@ -26,7 +26,8 @@ font-size: 20px; margin: 0; /* Reset default margin */ padding: 0; /* Reset default padding */ - background-image: url("{{public_path('images/background-vale.png')}}"); + background-image: url("{{ 'data:image/png;base64,' . base64_encode(file_get_contents(public_path('images/background-vale.png'))) }}"); + /* background-image: url("{{public_path('images/background-vale.png')}}"); */ background-repeat: no-repeat; background-size: cover; /* Adjust as needed */ @@ -113,7 +114,11 @@

{{ $member->startDate }}

- + @php + $imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(public_path('images/logo-default.png'))); + echo ''; + @endphp +