| 契約駐輪場名 | {{ $contract->park_name ?? '' }} |
| 小計(10%対象) | {{ isset($contract->contract_money) ? number_format(floor($contract->contract_money / 1.1)) : '' }} 円 |
| 消費税額(10%) | {{ isset($contract->contract_money) ? number_format($contract->contract_money - floor($contract->contract_money / 1.1)) : '' }} 円 |
| 合計 | {{ number_format($contract->contract_money ?? 0) }} 円 |
|
{{ $inv_setting->t_name ?? '' }}
{{ $inv_setting->zipcode ?? '' }} {{ $inv_setting->adrs ?? '' }} 適格事業者番号:{{ $inv_setting->t_number ?? '' }} @if(!empty($inv_setting->tel_num)) TEL:{{ $inv_setting->tel_num}} @endif @if(!empty($inv_setting->fax_num)) FAX:{{ $inv_setting->fax_num}} @endif |
@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)