WIP: feature/integrasi-primayan-v2 #3

Closed
mila wants to merge 9 commits from feature/integrasi-primayan-v2 into staging
6 changed files with 18 additions and 12 deletions
Showing only changes of commit 46ac5c8651 - Show all commits

View File

@@ -216,8 +216,9 @@
<div class="triangle2"></div>
<div class="triangle1"></div>
@php
if(!empty($logoPerusahaan->path)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path)));
$logoPath = !empty($logoPerusahaan->path) ? storage_path('app/public/' . $logoPerusahaan->path) : null;
if (!empty($logoPath) && is_file($logoPath)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath));
echo '<img class="logo_company-' . now()->timestamp . '" src="' . $imgSrc . '">';
}
@endphp

View File

@@ -216,8 +216,9 @@
<div class="triangle2"></div>
<div class="triangle1"></div>
@php
if(!empty($logoPerusahaan->path)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path)));
$logoPath = !empty($logoPerusahaan->path) ? storage_path('app/public/' . $logoPerusahaan->path) : null;
if (!empty($logoPath) && is_file($logoPath)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath));
echo '<img class="logo_company-' . now()->timestamp . '" src="' . $imgSrc . '">';
}
@endphp

View File

@@ -210,8 +210,9 @@
<div class="triangle2"></div>
<div class="triangle1"></div>
@php
if(!empty($logoPerusahaan->path)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path)));
$logoPath = !empty($logoPerusahaan->path) ? storage_path('app/public/' . $logoPerusahaan->path) : null;
if (!empty($logoPath) && is_file($logoPath)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath));
echo '<img class="logo_company-' . now()->timestamp . '" src="' . $imgSrc . '">';
}
@endphp

View File

@@ -210,8 +210,9 @@
<div class="triangle2"></div>
<div class="triangle1"></div>
@php
if(!empty($logoPerusahaan->path)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path)));
$logoPath = !empty($logoPerusahaan->path) ? storage_path('app/public/' . $logoPerusahaan->path) : null;
if (!empty($logoPath) && is_file($logoPath)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath));
echo '<img class="logo_company-' . now()->timestamp . '" src="' . $imgSrc . '">';
}
@endphp

View File

@@ -224,8 +224,9 @@
<div class="triangle2"></div>
<div class="triangle1"></div>
@php
if(!empty($logoPerusahaan->path)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path)));
$logoPath = !empty($logoPerusahaan->path) ? storage_path('app/public/' . $logoPerusahaan->path) : null;
if (!empty($logoPath) && is_file($logoPath)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath));
echo '<img class="logo_company-' . now()->timestamp . '" src="' . $imgSrc . '">';
}
@endphp

View File

@@ -222,8 +222,9 @@
<div class="triangle2"></div>
<div class="triangle1"></div>
@php
if(!empty($logoPerusahaan->path)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path)));
$logoPath = !empty($logoPerusahaan->path) ? storage_path('app/public/' . $logoPerusahaan->path) : null;
if (!empty($logoPath) && is_file($logoPath)) {
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath));
echo '<img class="logo_company-' . now()->timestamp . '" src="' . $imgSrc . '">';
}
@endphp