From e4e7599cb23c7956f4eb09d703b86d11ae7026d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 2 Jun 2026 19:58:15 +0300 Subject: [PATCH] refactor: extract legal info and letterhead sections into separate partial blade templates --- .../corporate/bank-accounts.blade.php | 292 +----------------- .../bank-accounts-legal-info.blade.php | 86 ++++++ .../bank-accounts-letterhead.blade.php | 204 ++++++++++++ 3 files changed, 292 insertions(+), 290 deletions(-) create mode 100644 resources/views/templates/corporate/partials/bank-accounts-legal-info.blade.php create mode 100644 resources/views/templates/corporate/partials/bank-accounts-letterhead.blade.php diff --git a/resources/views/templates/corporate/bank-accounts.blade.php b/resources/views/templates/corporate/bank-accounts.blade.php index 9ce4a80..3b2ac48 100644 --- a/resources/views/templates/corporate/bank-accounts.blade.php +++ b/resources/views/templates/corporate/bank-accounts.blade.php @@ -632,92 +632,7 @@ @endforelse - - + @include('templates.corporate.partials.bank-accounts-legal-info') @if($page->content)
@@ -732,210 +647,7 @@
-@php - $locale = app()->getLocale(); - $isTr = ($locale === 'tr'); -@endphp - - -
-
-

- @if($isTr) - Antetli Kağıt Önizleme - @else - Official Letterhead Preview - @endif -

-
- - -
-
- - -
- -
- - -
- -
-
- Trunçgil Teknoloji -
-
-
TRUNÇGİL TEKNOLOJİ SAN. VE TİC. LTD. ŞTİ.
-
Çamtepe Mah. Mahmut Tevfik Atay Bul. Gaziantep Teknopark
-
No: 4A İç Kapı No: 1 Şahinbey / Gaziantep / TÜRKİYE
- - @if($isTr) -
Vergi Dairesi: Şahinbey V.D.  |  Vergi No: 8591492435
-
MERSİS No: 0859149243500001  |  D-U-N-S No: 595948152
-
E-Posta: info@truncgil.com.tr  |  Web: www.truncgil.com.tr
- @else -
Tax Office: Şahinbey V.D.  |  Tax ID: 8591492435
-
MERSİS No: 0859149243500001  |  D-U-N-S No: 595948152
-
Email: info@truncgil.com.tr  |  Web: www.truncgil.com.tr
- @endif -
-
- - -
-
-

- @if($isTr) - BANKA HESAP BİLGİLERİ - @else - BANK ACCOUNT DETAILS - @endif -

-

- @if($isTr) - Resmi Tedarikçi Kayıt Bildirimi - @else - Official Vendor Registration Bank Declaration - @endif -

-
-
- @if($isTr) -
Tarih: {{ date('d.m.Y') }}
-
Konu: Banka Hesap Bildirimi
- @else -
Date: {{ date('d.m.Y') }}
-
Subject: Bank Account Declaration
- @endif -
-
- - -
- @if($isTr) -

Sayın Yetkili, Ş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.

- @else -

Dear Sir/Madam, The official and active bank account details of our company are presented below for your registration and commercial processes.

- @endif -
- - - - - - - - - - - - - @foreach($accounts as $index => $account) - @php - $currency = $account['currency'] ?? 'TRY'; - $currencyLabel = ($currencySymbols[$currency] ?? '') . ' ' . $currency; - $swiftCode = !empty($account['swift_code']) ? $account['swift_code'] : 'TRHBTR2A'; - @endphp - - - - - - - @endforeach - -
- @if($isTr) - Banka Adı - @else - Bank Name - @endif - - @if($isTr) - Hesap Sahibi - @else - Account Holder - @endif - - @if($isTr) - Para Birimi - @else - Currency - @endif - IBAN / SWIFT / BIC
- {{ $account['bank_name'] }} - @if(!empty($account['branch_name'])) -
{{ $account['branch_name'] }}
- @endif -
{{ $account['account_holder'] }}{{ $currency }} -
- {{ $account['iban'] }} -
-
- SWIFT / BIC: {{ $swiftCode }} -
-
- - -
-
-
- - @if($isTr) - İletişim: - @else - Contact: - @endif -
- Trunçgil Site Office: Gaziantep Teknopark
- Tel: +90 (850) 302 46 22
- Web: www.truncgil.com.tr -
-
-
-
-
TRUNÇGİL TEKNOLOJİ SAN. VE TİC. LTD. ŞTİ.
- - @if($isTr) - Yetkili İmza & Kaşe - @else - Authorized Signature & Stamp - @endif - -
- -
- Stamp -
-
-
-
-
- - -
- - @if($isTr) - * Bu belge elektronik olarak üretilmiştir. - @else - * This document has been generated electronically. - @endif - - Page 1 of 1 -
-
-
-
+@include('templates.corporate.partials.bank-accounts-letterhead') @push('scripts')