diff --git a/resources/views/receipt/pdf.blade.php b/resources/views/receipt/pdf.blade.php index 263af50..7dfab4c 100644 --- a/resources/views/receipt/pdf.blade.php +++ b/resources/views/receipt/pdf.blade.php @@ -134,22 +134,14 @@ @php - // $stamp_file = null; - // $extensions = ['png', 'jpeg', 'jpg']; - // foreach ($extensions as $ext) { - // $file_path = public_path('images/' . $inv_setting->t_name . '_stamp.' . $ext); - // if (file_exists($file_path)) { - // $stamp_file = $inv_setting->t_name . '_stamp.' . $ext; - // break; - // } - // } $stamp_file = null; if (!empty($inv_setting->company_image_path)) { // company_image_path: storage/app/public/xxx.png → other-storage/xxx.png $stamp_file = str_replace('storage/app/public/', 'other-storage/', $inv_setting->company_image_path); + } @endphp @if($stamp_file) -