refactor: extract legal info and letterhead sections into separate partial blade templates

This commit is contained in:
Ümit Tunç
2026-06-02 19:58:15 +03:00
parent 88c1657b6a
commit e4e7599cb2
3 changed files with 292 additions and 290 deletions
@@ -632,92 +632,7 @@
@endforelse @endforelse
</div> </div>
<!-- Legal Info Box --> @include('templates.corporate.partials.bank-accounts-legal-info')
<div class="legal-info-box">
<div class="legal-info-box__decor" aria-hidden="true">
<i class="uil uil-shield-check"></i>
</div>
<div class="legal-info-box__content">
<h3 class="legal-info-box__title">
<i class="uil uil-info-circle"></i>
<span>{!! t('Yasal & Fatura Bilgileri') !!}</span>
</h3>
<div class="legal-info-grid">
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Firma Ünvanı') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>TRUNÇGİL TEKNOLOJİ SANAYİ VE TİCARET LİMİTED ŞİRKETİ</span>
<button type="button" class="btn-copy-inline" data-copy-target="TRUNÇGİL TEKNOLOJİ SANAYİ VE TİCARET LİMİTED ŞİRKETİ" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Vergi Dairesi') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>Şahinbey V.D.</span>
<button type="button" class="btn-copy-inline" data-copy-target="Şahinbey V.D." aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Vergi Numarası') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>8591492435</span>
<button type="button" class="btn-copy-inline" data-copy-target="8591492435" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('MERSİS No') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>0859149243500001</span>
<button type="button" class="btn-copy-inline" data-copy-target="0859149243500001" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('D-U-N-S No') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>595948152</span>
<button type="button" class="btn-copy-inline" data-copy-target="595948152" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('SGK Sicil No') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>2-6210-0101-1219355-027-08-80-000</span>
<button type="button" class="btn-copy-inline" data-copy-target="2-6210-0101-1219355-027-08-80-000" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('E-Posta') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<a href="mailto:info@truncgil.com.tr" class="text-reset" style="text-decoration: none;">info@truncgil.com.tr</a>
<button type="button" class="btn-copy-inline" data-copy-target="info@truncgil.com.tr" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Adres') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark No: 4A İç Kapı No: 1 Şahinbey / Gaziantep</span>
<button type="button" class="btn-copy-inline" data-copy-target="Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark No: 4A İç Kapı No: 1 Şahinbey / Gaziantep" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
</div>
</div>
</div>
@if($page->content) @if($page->content)
<div class="row mt-14"> <div class="row mt-14">
@@ -732,210 +647,7 @@
</div> </div>
</section> </section>
@php @include('templates.corporate.partials.bank-accounts-letterhead')
$locale = app()->getLocale();
$isTr = ($locale === 'tr');
@endphp
<!-- A4 Letterhead Preview Modal -->
<div id="letterheadModal" class="a4-letterhead-preview-modal" onclick="if(event.target === this) toggleLetterheadModal(false)">
<div class="a4-letterhead-modal-header d-flex justify-content-between align-items-center mb-4 mx-auto" style="max-width: 210mm; width: 100%;">
<h4 class="text-white mb-0">
@if($isTr)
Antetli Kağıt Önizleme
@else
Official Letterhead Preview
@endif
</h4>
<div class="d-flex gap-2">
<button type="button" class="btn btn-light btn-sm rounded-pill px-4" onclick="printLetterhead()">
<i class="uil uil-print me-1"></i>
@if($isTr)
Yazdır / PDF İndir
@else
Print / Download PDF
@endif
</button>
<button type="button" class="btn btn-danger btn-sm rounded-circle p-2" onclick="toggleLetterheadModal(false)" style="width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; line-height: 1;">
<i class="uil uil-multiply"></i>
</button>
</div>
</div>
<!-- The actual A4 letterhead container -->
<div class="a4-letterhead-print a4-letterhead-preview-content">
<!-- Center faded Watermark -->
<div class="a4-watermark"></div>
<!-- Content Area -->
<div class="a4-letterhead-inner">
<!-- Header Row -->
<div class="d-flex justify-content-between align-items-start pb-3 mb-4 border-bottom-premium">
<div class="a4-logo-wrap" style="margin-top: 0; padding-top: 0; line-height: 1;">
<img src="{{ asset('logos/truncgil-dikey.svg') }}" alt="Trunçgil Teknoloji" style="height: 28mm; max-height: 28mm; width: auto; object-fit: contain; display: block; margin-top: 0;">
</div>
<div class="text-end a4-company-info" style="font-size: 8pt; line-height: 1.4; color: #334155; font-weight: 500; margin-top: -5.5mm;">
<h5 style="font-size: 10pt; font-weight: 800; color: #0f172a; margin: 0 0 4px 0; padding: 0; line-height: 1.1;">TRUNÇGİL TEKNOLOJİ SAN. VE TİC. LTD. ŞTİ.</h5>
<div>Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark</div>
<div>No: 4A İç Kapı No: 1 Şahinbey / Gaziantep / TÜRKİYE</div>
@if($isTr)
<div class="mt-1"><strong>Vergi Dairesi:</strong> Şahinbey V.D. &nbsp;|&nbsp; <strong>Vergi No:</strong> 8591492435</div>
<div><strong>MERSİS No:</strong> 0859149243500001 &nbsp;|&nbsp; <strong>D-U-N-S No:</strong> 595948152</div>
<div><strong>E-Posta:</strong> info@truncgil.com.tr &nbsp;|&nbsp; <strong>Web:</strong> www.truncgil.com.tr</div>
@else
<div class="mt-1"><strong>Tax Office:</strong> Şahinbey V.D. &nbsp;|&nbsp; <strong>Tax ID:</strong> 8591492435</div>
<div><strong>MERSİS No:</strong> 0859149243500001 &nbsp;|&nbsp; <strong>D-U-N-S No:</strong> 595948152</div>
<div><strong>Email:</strong> info@truncgil.com.tr &nbsp;|&nbsp; <strong>Web:</strong> www.truncgil.com.tr</div>
@endif
</div>
</div>
<!-- Title and Date -->
<div class="d-flex justify-content-between align-items-center mb-4">
<div>
<h4 class="a4-doc-title mb-1" style="font-size: 13pt; font-weight: 800; letter-spacing: 0.05em; color: #0f172a;">
@if($isTr)
BANKA HESAP BİLGİLERİ
@else
BANK ACCOUNT DETAILS
@endif
</h4>
<p class="text-muted mb-0" style="font-size: 7.5pt; font-style: italic;">
@if($isTr)
Resmi Tedarikçi Kayıt Bildirimi
@else
Official Vendor Registration Bank Declaration
@endif
</p>
</div>
<div class="text-end" style="font-size: 8pt; font-weight: 600; color: #475569;">
@if($isTr)
<div><strong>Tarih:</strong> {{ date('d.m.Y') }}</div>
<div><strong>Konu:</strong> Banka Hesap Bildirimi</div>
@else
<div><strong>Date:</strong> {{ date('d.m.Y') }}</div>
<div><strong>Subject:</strong> Bank Account Declaration</div>
@endif
</div>
</div>
<!-- Description Statement -->
<div class="p-3 bg-light-premium rounded mb-4" style="border-left: 3.5px solid var(--bs-primary); font-size: 8pt; line-height: 1.5; color: #334155; font-weight: 500;">
@if($isTr)
<p class="mb-0"><strong>Sayın Yetkili,</strong> Şirketimizin resmi banka hesap bilgileri aşağıda bilgilerinize sunulmuştur. Tedarikçi kayıt süreçlerinde ve tüm ticari işlemlerimizde bu hesapların kullanılmasını rica ederiz.</p>
@else
<p class="mb-0"><strong>Dear Sir/Madam,</strong> The official and active bank account details of our company are presented below for your registration and commercial processes.</p>
@endif
</div>
<!-- Bank Accounts Table -->
<table class="a4-table mb-5">
<thead>
<tr>
<th style="width: 30%;">
@if($isTr)
Banka Adı
@else
Bank Name
@endif
</th>
<th style="width: 30%;">
@if($isTr)
Hesap Sahibi
@else
Account Holder
@endif
</th>
<th style="width: 10%;">
@if($isTr)
Para Birimi
@else
Currency
@endif
</th>
<th style="width: 30%;">IBAN / SWIFT / BIC</th>
</tr>
</thead>
<tbody>
@foreach($accounts as $index => $account)
@php
$currency = $account['currency'] ?? 'TRY';
$currencyLabel = ($currencySymbols[$currency] ?? '') . ' ' . $currency;
$swiftCode = !empty($account['swift_code']) ? $account['swift_code'] : 'TRHBTR2A';
@endphp
<tr>
<td class="font-bold" style="color: #0f172a;">
<strong>{{ $account['bank_name'] }}</strong>
@if(!empty($account['branch_name']))
<div style="font-size: 7pt; color: #64748b; font-weight: 500; margin-top: 2px;">{{ $account['branch_name'] }}</div>
@endif
</td>
<td style="font-size: 7.5pt; font-weight: 600; color: #334155;">{{ $account['account_holder'] }}</td>
<td><span class="a4-badge">{{ $currency }}</span></td>
<td>
<div style="font-family: monospace; font-size: 8pt; font-weight: 700; letter-spacing: 0.02em; color: var(--bs-primary);">
{{ $account['iban'] }}
</div>
<div style="font-size: 7pt; color: #64748b; margin-top: 4px; font-weight: 500;">
<strong>SWIFT / BIC:</strong> <span style="font-family: monospace; font-weight: 700; color: #334155;">{{ $swiftCode }}</span>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
<!-- Sign & Stamp section -->
<div class="row mt-5 pt-3">
<div class="col-6">
<div style="font-size: 7.5pt; line-height: 1.5; color: #64748b;">
<strong>
@if($isTr)
İletişim:
@else
Contact:
@endif
</strong><br>
Trunçgil Site Office: Gaziantep Teknopark<br>
Tel: +90 (850) 302 46 22<br>
Web: www.truncgil.com.tr
</div>
</div>
<div class="col-6 text-end">
<div style="display: inline-block; text-align: center; border-top: 1.5px solid #cbd5e1; padding-top: 8px; width: 65mm;">
<h6 class="mb-1" style="font-size: 8.5pt; font-weight: 800; color: #0f172a;">TRUNÇGİL TEKNOLOJİ SAN. VE TİC. LTD. ŞTİ.</h6>
<span style="font-size: 7pt; color: #64748b; font-weight: 600; text-transform: uppercase;">
@if($isTr)
Yetkili İmza & Kaşe
@else
Authorized Signature & Stamp
@endif
</span>
<div style="height: 20mm; position: relative;" class="stamp-signature-space">
<!-- A subtle premium hint for stamp placement -->
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1.5px dashed #cbd5e1; border-radius: 50%; width: 16mm; height: 16mm; display: flex; align-items: center; justify-content: center; font-size: 6pt; color: #94a3b8; pointer-events: none;">
Stamp
</div>
</div>
</div>
</div>
</div>
<!-- Absolute footer page number / disclaimer -->
<div style="position: absolute; bottom: 15mm; left: 15mm; right: 15mm; font-size: 6.5pt; color: #94a3b8; border-top: 1px solid #e2e8f0; padding-top: 8px;" class="d-flex justify-content-between align-items-center">
<span>
@if($isTr)
* Bu belge elektronik olarak üretilmiştir.
@else
* This document has been generated electronically.
@endif
</span>
<span>Page 1 of 1</span>
</div>
</div>
</div>
</div>
@push('scripts') @push('scripts')
<script> <script>
@@ -0,0 +1,86 @@
<!-- Legal Info Box -->
<div class="legal-info-box">
<div class="legal-info-box__decor" aria-hidden="true">
<i class="uil uil-shield-check"></i>
</div>
<div class="legal-info-box__content">
<h3 class="legal-info-box__title">
<i class="uil uil-info-circle"></i>
<span>{!! t('Yasal & Fatura Bilgileri') !!}</span>
</h3>
<div class="legal-info-grid">
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Firma Ünvanı') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>TRUNÇGİL TEKNOLOJİ SANAYİ VE TİCARET LİMİTED ŞİRKETİ</span>
<button type="button" class="btn-copy-inline" data-copy-target="TRUNÇGİL TEKNOLOJİ SANAYİ VE TİCARET LİMİTED ŞİRKETİ" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Vergi Dairesi') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>Şahinbey V.D.</span>
<button type="button" class="btn-copy-inline" data-copy-target="Şahinbey V.D." aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Vergi Numarası') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>8591492435</span>
<button type="button" class="btn-copy-inline" data-copy-target="8591492435" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('MERSİS No') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>0859149243500001</span>
<button type="button" class="btn-copy-inline" data-copy-target="0859149243500001" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('D-U-N-S No') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>595948152</span>
<button type="button" class="btn-copy-inline" data-copy-target="595948152" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('SGK Sicil No') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>2-6210-0101-1219355-027-08-80-000</span>
<button type="button" class="btn-copy-inline" data-copy-target="2-6210-0101-1219355-027-08-80-000" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('E-Posta') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<a href="mailto:info@truncgil.com.tr" class="text-reset" style="text-decoration: none;">info@truncgil.com.tr</a>
<button type="button" class="btn-copy-inline" data-copy-target="info@truncgil.com.tr" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
<div class="legal-info-item">
<span class="legal-info-item__label">{!! t('Adres') !!}</span>
<div class="legal-info-item__value d-flex align-items-center justify-content-between gap-2">
<span>Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark No: 4A İç Kapı No: 1 Şahinbey / Gaziantep</span>
<button type="button" class="btn-copy-inline" data-copy-target="Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark No: 4A İç Kapı No: 1 Şahinbey / Gaziantep" aria-label="{!! t('Kopyala') !!}">
<i class="uil uil-copy"></i>
</button>
</div>
</div>
</div>
</div>
</div>
@@ -0,0 +1,204 @@
@php
$locale = app()->getLocale();
$isTr = ($locale === 'tr');
@endphp
<!-- A4 Letterhead Preview Modal -->
<div id="letterheadModal" class="a4-letterhead-preview-modal" onclick="if(event.target === this) toggleLetterheadModal(false)">
<div class="a4-letterhead-modal-header d-flex justify-content-between align-items-center mb-4 mx-auto" style="max-width: 210mm; width: 100%;">
<h4 class="text-white mb-0">
@if($isTr)
Antetli Kağıt Önizleme
@else
Official Letterhead Preview
@endif
</h4>
<div class="d-flex gap-2">
<button type="button" class="btn btn-light btn-sm rounded-pill px-4" onclick="printLetterhead()">
<i class="uil uil-print me-1"></i>
@if($isTr)
Yazdır / PDF İndir
@else
Print / Download PDF
@endif
</button>
<button type="button" class="btn btn-danger btn-sm rounded-circle p-2" onclick="toggleLetterheadModal(false)" style="width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; line-height: 1;">
<i class="uil uil-multiply"></i>
</button>
</div>
</div>
<!-- The actual A4 letterhead container -->
<div class="a4-letterhead-print a4-letterhead-preview-content">
<!-- Center faded Watermark -->
<div class="a4-watermark"></div>
<!-- Content Area -->
<div class="a4-letterhead-inner">
<!-- Header Row -->
<div class="d-flex justify-content-between align-items-start pb-3 mb-4 border-bottom-premium">
<div class="a4-logo-wrap" style="margin-top: 0; padding-top: 0; line-height: 1;">
<img src="{{ asset('logos/truncgil-dikey.svg') }}" alt="Trunçgil Teknoloji" style="height: 28mm; max-height: 28mm; width: auto; object-fit: contain; display: block; margin-top: 0;">
</div>
<div class="text-end a4-company-info" style="font-size: 8pt; line-height: 1.4; color: #334155; font-weight: 500; margin-top: -5.5mm;">
<h5 style="font-size: 10pt; font-weight: 800; color: #0f172a; margin: 0 0 4px 0; padding: 0; line-height: 1.1;">TRUNÇGİL TEKNOLOJİ SAN. VE TİC. LTD. ŞTİ.</h5>
<div>Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark</div>
<div>No: 4A İç Kapı No: 1 Şahinbey / Gaziantep / TÜRKİYE</div>
@if($isTr)
<div class="mt-1"><strong>Vergi Dairesi:</strong> Şahinbey V.D. &nbsp;|&nbsp; <strong>Vergi No:</strong> 8591492435</div>
<div><strong>MERSİS No:</strong> 0859149243500001 &nbsp;|&nbsp; <strong>D-U-N-S No:</strong> 595948152</div>
<div><strong>E-Posta:</strong> info@truncgil.com.tr &nbsp;|&nbsp; <strong>Web:</strong> www.truncgil.com.tr</div>
@else
<div class="mt-1"><strong>Tax Office:</strong> Şahinbey V.D. &nbsp;|&nbsp; <strong>Tax ID:</strong> 8591492435</div>
<div><strong>MERSİS No:</strong> 0859149243500001 &nbsp;|&nbsp; <strong>D-U-N-S No:</strong> 595948152</div>
<div><strong>Email:</strong> info@truncgil.com.tr &nbsp;|&nbsp; <strong>Web:</strong> www.truncgil.com.tr</div>
@endif
</div>
</div>
<!-- Title and Date -->
<div class="d-flex justify-content-between align-items-center mb-4">
<div>
<h4 class="a4-doc-title mb-1" style="font-size: 13pt; font-weight: 800; letter-spacing: 0.05em; color: #0f172a;">
@if($isTr)
BANKA HESAP BİLGİLERİ
@else
BANK ACCOUNT DETAILS
@endif
</h4>
<p class="text-muted mb-0" style="font-size: 7.5pt; font-style: italic;">
@if($isTr)
Resmi Tedarikçi Kayıt Bildirimi
@else
Official Vendor Registration Bank Declaration
@endif
</p>
</div>
<div class="text-end" style="font-size: 8pt; font-weight: 600; color: #475569;">
@if($isTr)
<div><strong>Tarih:</strong> {{ date('d.m.Y') }}</div>
<div><strong>Konu:</strong> Banka Hesap Bildirimi</div>
@else
<div><strong>Date:</strong> {{ date('d.m.Y') }}</div>
<div><strong>Subject:</strong> Bank Account Declaration</div>
@endif
</div>
</div>
<!-- Description Statement -->
<div class="p-3 bg-light-premium rounded mb-4" style="border-left: 3.5px solid var(--bs-primary); font-size: 8pt; line-height: 1.5; color: #334155; font-weight: 500;">
@if($isTr)
<p class="mb-0"><strong>Sayın Yetkili,</strong> Şirketimizin resmi banka hesap bilgileri aşağıda bilgilerinize sunulmuştur. Tedarikçi kayıt süreçlerinde ve tüm ticari işlemlerimizde bu hesapların kullanılmasını rica ederiz.</p>
@else
<p class="mb-0"><strong>Dear Sir/Madam,</strong> The official and active bank account details of our company are presented below for your registration and commercial processes.</p>
@endif
</div>
<!-- Bank Accounts Table -->
<table class="a4-table mb-5">
<thead>
<tr>
<th style="width: 30%;">
@if($isTr)
Banka Adı
@else
Bank Name
@endif
</th>
<th style="width: 30%;">
@if($isTr)
Hesap Sahibi
@else
Account Holder
@endif
</th>
<th style="width: 10%;">
@if($isTr)
Para Birimi
@else
Currency
@endif
</th>
<th style="width: 30%;">IBAN / SWIFT / BIC</th>
</tr>
</thead>
<tbody>
@foreach($accounts as $index => $account)
@php
$currency = $account['currency'] ?? 'TRY';
$currencyLabel = ($currencySymbols[$currency] ?? '') . ' ' . $currency;
$swiftCode = !empty($account['swift_code']) ? $account['swift_code'] : 'TRHBTR2A';
@endphp
<tr>
<td class="font-bold" style="color: #0f172a;">
<strong>{{ $account['bank_name'] }}</strong>
@if(!empty($account['branch_name']))
<div style="font-size: 7pt; color: #64748b; font-weight: 500; margin-top: 2px;">{{ $account['branch_name'] }}</div>
@endif
</td>
<td style="font-size: 7.5pt; font-weight: 600; color: #334155;">{{ $account['account_holder'] }}</td>
<td><span class="a4-badge">{{ $currency }}</span></td>
<td>
<div style="font-family: monospace; font-size: 8pt; font-weight: 700; letter-spacing: 0.02em; color: var(--bs-primary);">
{{ $account['iban'] }}
</div>
<div style="font-size: 7pt; color: #64748b; margin-top: 4px; font-weight: 500;">
<strong>SWIFT / BIC:</strong> <span style="font-family: monospace; font-weight: 700; color: #334155;">{{ $swiftCode }}</span>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
<!-- Sign & Stamp section -->
<div class="row mt-5 pt-3">
<div class="col-6">
<div style="font-size: 7.5pt; line-height: 1.5; color: #64748b;">
<strong>
@if($isTr)
İletişim:
@else
Contact:
@endif
</strong><br>
Trunçgil Site Office: Gaziantep Teknopark<br>
Tel: +90 (850) 302 46 22<br>
Web: www.truncgil.com.tr
</div>
</div>
<div class="col-6 text-end">
<div style="display: inline-block; text-align: center; border-top: 1.5px solid #cbd5e1; padding-top: 8px; width: 65mm;">
<h6 class="mb-1" style="font-size: 8.5pt; font-weight: 800; color: #0f172a;">TRUNÇGİL TEKNOLOJİ SAN. VE TİC. LTD. ŞTİ.</h6>
<span style="font-size: 7pt; color: #64748b; font-weight: 600; text-transform: uppercase;">
@if($isTr)
Yetkili İmza & Kaşe
@else
Authorized Signature & Stamp
@endif
</span>
<div style="height: 20mm; position: relative;" class="stamp-signature-space">
<!-- A subtle premium hint for stamp placement -->
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1.5px dashed #cbd5e1; border-radius: 50%; width: 16mm; height: 16mm; display: flex; align-items: center; justify-content: center; font-size: 6pt; color: #94a3b8; pointer-events: none;">
Stamp
</div>
</div>
</div>
</div>
</div>
<!-- Absolute footer page number / disclaimer -->
<div style="position: absolute; bottom: 15mm; left: 15mm; right: 15mm; font-size: 6.5pt; color: #94a3b8; border-top: 1px solid #e2e8f0; padding-top: 8px;" class="d-flex justify-content-between align-items-center">
<span>
@if($isTr)
* Bu belge elektronik olarak üretilmiştir.
@else
* This document has been generated electronically.
@endif
</span>
<span>Page 1 of 1</span>
</div>
</div>
</div>
</div>