|
@php
$base64 = '';
if (!empty($setting->logo)) {
// Try storage path first (actual file location)
$path = storage_path('app/public/logo/' . $setting->logo);
// Fallback to public path (symlink)
if (!file_exists($path)) {
$path = public_path('storage/logo/' . $setting->logo);
}
if (file_exists($path)) {
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
}
}
@endphp
@if($base64)
|
{{ $setting->nama_perusahaan ?? 'PERUSAHAAN' }}{{ $setting->alamat ?? '' }} Telp : {{ $setting->telepon ?? '-' }} @if(strtolower(trim($setting->nama_perusahaan ?? '')) == 'demetria store') , IG : @demetria_grosir, FB : Demetria Store Grosir Online Cirebon. @endif |