@php if ($isPdf) { //Default logo path $defaultLogo = 'app/public/images/noimages/no-image-found.jpg'; //Company logo path $companyLogoPath = 'app/public/images/company/'; $companyLogo = storage_path( !empty(app('company')['colored_logo']) && file_exists(storage_path($companyLogoPath . app('company')['colored_logo'])) ? $companyLogoPath . app('company')['colored_logo'] : $defaultLogo, ); } else { //Routing or direct view $companyLogo = url('/company/getimage/' . app('company')['colored_logo']); } @endphp