PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: company-info.php Size: 38.46 KB
/home/ankaservis/public_html/app/views/pages/company-info.php

<?php
ob_start();
?>

<section class="py-16 tech-bg-pattern dark:bg-gray-900 transition-colors duration-300">
    <div class="container mx-auto px-4">
        <div class="text-center mb-12">
            <h1 class="text-3xl md:text-4xl font-bold text-anka-gray dark:text-white mb-4">Ankara Beyaz Eşya Kombi Servisi Şirket Bilgileri</h1>
            <p class="text-anka-orange font-semibold"><?php echo defined('COMPANY_NAME') ? COMPANY_NAME : ''; ?></p>
            <div class="w-24 h-1 bg-gradient-to-r from-anka-orange-dark to-anka-orange mx-auto mt-4 rounded"></div>
        </div>
        
        <div class="max-w-5xl mx-auto">
            <!-- Vergi Levhası Bilgileri -->
            <div class="bg-gradient-to-br from-gray-50 via-white to-gray-50 dark:bg-gray-800 p-8 rounded-xl shadow-lg border border-gray-200 dark:border-gray-700 mb-8">
                <h2 class="text-2xl md:text-3xl font-bold text-anka-gray dark:text-white mb-6 text-center">Vergi Levhası Bilgileri</h2>
                
                <div class="overflow-x-auto">
                    <table class="w-full border-collapse">
                        <tbody class="bg-white dark:bg-gray-700">
                            <tr class="border-b border-gray-200 dark:border-gray-600">
                                <td class="px-6 py-4 font-bold text-anka-gray dark:text-white bg-gray-50 dark:bg-gray-800 w-1/3">Ticaret Ünvanı</td>
                                <td class="px-6 py-4 text-gray-700 dark:text-gray-300"><?php echo defined('TRADE_NAME') ? TRADE_NAME : (defined('COMPANY_NAME') ? COMPANY_NAME : ''); ?></td>
                            </tr>
                            <tr class="border-b border-gray-200 dark:border-gray-600">
                                <td class="px-6 py-4 font-bold text-anka-gray dark:text-white bg-gray-50 dark:bg-gray-800">İş Yeri Adresi</td>
                                <td class="px-6 py-4 text-gray-700 dark:text-gray-300"><?php echo defined('CONTACT_ADDRESS') ? CONTACT_ADDRESS : ''; ?></td>
                            </tr>
                            <tr class="border-b border-gray-200 dark:border-gray-600">
                                <td class="px-6 py-4 font-bold text-anka-gray dark:text-white bg-gray-50 dark:bg-gray-800">Vergi Dairesi</td>
                                <td class="px-6 py-4 text-gray-700 dark:text-gray-300"><?php echo defined('TAX_OFFICE') && !empty(TAX_OFFICE) ? TAX_OFFICE : ($company_info && !empty($company_info['tax_office']) ? Helper::escape($company_info['tax_office']) : ''); ?></td>
                            </tr>
                            <tr class="border-b border-gray-200 dark:border-gray-600">
                                <td class="px-6 py-4 font-bold text-anka-gray dark:text-white bg-gray-50 dark:bg-gray-800">Vergi Kimlik No</td>
                                <td class="px-6 py-4 text-gray-700 dark:text-gray-300 font-mono text-lg font-semibold"><?php echo defined('TAX_NO') && !empty(TAX_NO) ? TAX_NO : ($company_info && !empty($company_info['tax_no']) ? Helper::escape($company_info['tax_no']) : ''); ?></td>
                            </tr>
                            <tr class="border-b border-gray-200 dark:border-gray-600">
                                <td class="px-6 py-4 font-bold text-anka-gray dark:text-white bg-gray-50 dark:bg-gray-800">Vergi Türü</td>
                                <td class="px-6 py-4 text-gray-700 dark:text-gray-300">Kurumlar Vergisi</td>
                            </tr>
                            <tr class="border-b border-gray-200 dark:border-gray-600">
                                <td class="px-6 py-4 font-bold text-anka-gray dark:text-white bg-gray-50 dark:bg-gray-800">Ana Faaliyet Kodu ve Adı</td>
                                <td class="px-6 py-4 text-gray-700 dark:text-gray-300">
                                    <?php if (defined('ACTIVITY_CODE') && defined('ACTIVITY_NAME')): ?>
                                        <span class="font-semibold"><?php echo ACTIVITY_CODE; ?></span> - <?php echo ACTIVITY_NAME; ?>
                                    <?php else: ?>
                                        <?php echo defined('ACTIVITY_CODE') ? ACTIVITY_CODE : ''; ?> <?php echo defined('ACTIVITY_NAME') ? ACTIVITY_NAME : ''; ?>
                                    <?php endif; ?>
                                </td>
                            </tr>
                            <?php if ($company_info && !empty($company_info['mersis_no'])): ?>
                            <tr class="border-b border-gray-200 dark:border-gray-600">
                                <td class="px-6 py-4 font-bold text-anka-gray dark:text-white bg-gray-50 dark:bg-gray-800">Mersis No</td>
                                <td class="px-6 py-4 text-gray-700 dark:text-gray-300"><?php echo Helper::escape($company_info['mersis_no']); ?></td>
                            </tr>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                
                <div class="mt-6 pt-6 border-t border-gray-200 dark:border-gray-700">
                    <p class="text-sm text-gray-600 dark:text-gray-400 text-center">
                        <a href="https://dijital.gib.gov.tr/" target="_blank" rel="noopener noreferrer" class="text-anka-orange hover:underline inline-flex items-center space-x-1">
                            <span>https://dijital.gib.gov.tr</span>
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
                            </svg>
                        </a>
                        <span class="block mt-2">adresinden güncelliğini ve doğruluğunu sorgulayabilirsiniz.</span>
                    </p>
                </div>
            </div>
            
            <!-- Belgelerimiz - Tab Sistemi -->
            <?php 
            function formatCertificateName($filename) {
                $name = pathinfo($filename, PATHINFO_FILENAME);
                $name = str_replace(['-', '_'], ' ', $name);
                $name = ucwords($name);
                $name = str_replace(['Gultekin', 'Veli', 'Usta', 'Ogreticilik', 'Ustalik', 'Vestel', 'Egitim', 'Sertifikasi', 'Belgesi', 'Ato', 'Ticaert', 'Odasi', 'Turkiye', 'Esnaf', 'Sanatkarlar', 'Konfedarasyonu', 'Fiyat', 'Listesi', 'Klimacilar', 'Buzdolapcilar', 'Vergi', 'Levhasi'], 
                    ['Gültekin', 'Veli', 'Usta', 'Öğreticilik', 'Ustalık', 'Vestel', 'Eğitim', 'Sertifikası', 'Belgesi', 'ATO', 'Ticaret', 'Odası', 'Türkiye', 'Esnaf', 'Sanatkarlar', 'Konfederasyonu', 'Fiyat', 'Listesi', 'Klimacılar', 'Buzdolabıcılar', 'Vergi', 'Levhasi'], 
                    $name);
                return $name;
            }
            ?>
            <div class="bg-gradient-to-br from-gray-50 via-white to-gray-50 dark:bg-gray-800 p-8 rounded-xl shadow-lg border border-gray-200 dark:border-gray-700 mb-8">
                <h2 class="text-2xl md:text-3xl font-bold text-anka-gray dark:text-white mb-6 text-center">Belgelerimiz</h2>
                
                <!-- Tab Navigation -->
                <div class="flex flex-wrap justify-center gap-2 mb-8 border-b border-gray-200 dark:border-gray-700">
                    <button onclick="showTab('corporate')" id="tab-corporate" class="tab-button px-6 py-3 font-bold text-sm md:text-base rounded-t-lg transition-all border-b-2 border-anka-orange text-anka-orange bg-white/50 dark:bg-gray-700">
                        Şirket Belgeleri
                    </button>
                    <button onclick="showTab('ustalik')" id="tab-ustalik" class="tab-button px-6 py-3 font-bold text-sm md:text-base rounded-t-lg transition-all border-b-2 border-transparent text-gray-600 dark:text-gray-400 hover:text-anka-orange">
                        Ustalık Belgeleri
                    </button>
                    <button onclick="showTab('ogretici')" id="tab-ogretici" class="tab-button px-6 py-3 font-bold text-sm md:text-base rounded-t-lg transition-all border-b-2 border-transparent text-gray-600 dark:text-gray-400 hover:text-anka-orange">
                        Usta Öğretici Belgeleri
                    </button>
                    <button onclick="showTab('egitim')" id="tab-egitim" class="tab-button px-6 py-3 font-bold text-sm md:text-base rounded-t-lg transition-all border-b-2 border-transparent text-gray-600 dark:text-gray-400 hover:text-anka-orange">
                        Eğitim Belgeleri
                    </button>
                </div>
                
                <!-- Tab Content -->
                <!-- Şirket Belgeleri -->
                <div id="tab-content-corporate" class="tab-content">
                    <?php if (!empty($corporate_certificates)): ?>
                        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                            <?php foreach ($corporate_certificates as $file): 
                                $display_name = formatCertificateName($file);
                                $pdf_url = Helper::asset('uploads/certificates/' . $file);
                            ?>
                                <button onclick="openPdfModal('<?php echo Helper::escape($pdf_url); ?>', '<?php echo Helper::escape($display_name); ?>')" class="group bg-white dark:bg-gray-700 border-2 border-gray-200 dark:border-gray-600 rounded-xl p-4 hover:border-anka-orange transition-all transform hover:-translate-y-1 shadow-md hover:shadow-lg w-full text-left">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0 w-12 h-12 bg-gradient-to-br from-anka-orange-dark to-anka-orange rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                                            </svg>
                                        </div>
                                        <div class="flex-1 min-w-0">
                                            <h4 class="text-sm font-bold text-anka-gray dark:text-white group-hover:text-anka-orange transition mb-1 line-clamp-2">
                                                <?php echo Helper::escape($display_name); ?>
                                            </h4>
                                            <p class="text-xs text-gray-500 dark:text-gray-400">PDF Belgesi</p>
                                        </div>
                                        <svg class="w-5 h-5 text-gray-400 group-hover:text-anka-orange transition flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
                                        </svg>
                                    </div>
                                </button>
                            <?php endforeach; ?>
                        </div>
                    <?php else: ?>
                        <p class="text-center text-gray-500 dark:text-gray-400 py-8">Şirket belgesi bulunmamaktadır.</p>
                    <?php endif; ?>
                </div>
                
                <!-- Ustalık Belgeleri -->
                <div id="tab-content-ustalik" class="tab-content hidden">
                    <?php if (!empty($ustalik_certificates)): ?>
                        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                            <?php foreach ($ustalik_certificates as $file): 
                                $display_name = formatCertificateName($file);
                                $pdf_url = Helper::asset('uploads/certificates/' . $file);
                            ?>
                                <button onclick="openPdfModal('<?php echo Helper::escape($pdf_url); ?>', '<?php echo Helper::escape($display_name); ?>')" class="group bg-white dark:bg-gray-700 border-2 border-gray-200 dark:border-gray-600 rounded-xl p-4 hover:border-anka-orange transition-all transform hover:-translate-y-1 shadow-md hover:shadow-lg w-full text-left">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0 w-12 h-12 bg-gradient-to-br from-anka-orange-dark to-anka-orange rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                                            </svg>
                                        </div>
                                        <div class="flex-1 min-w-0">
                                            <h4 class="text-sm font-bold text-anka-gray dark:text-white group-hover:text-anka-orange transition mb-1 line-clamp-2">
                                                <?php echo Helper::escape($display_name); ?>
                                            </h4>
                                            <p class="text-xs text-gray-500 dark:text-gray-400">PDF Belgesi</p>
                                        </div>
                                        <svg class="w-5 h-5 text-gray-400 group-hover:text-anka-orange transition flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
                                        </svg>
                                    </div>
                                </button>
                            <?php endforeach; ?>
                        </div>
                    <?php else: ?>
                        <p class="text-center text-gray-500 dark:text-gray-400 py-8">Ustalık belgesi bulunmamaktadır.</p>
                    <?php endif; ?>
                </div>
                
                <!-- Usta Öğretici Belgeleri -->
                <div id="tab-content-ogretici" class="tab-content hidden">
                    <?php if (!empty($ogretici_certificates)): ?>
                        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                            <?php foreach ($ogretici_certificates as $file): 
                                $display_name = formatCertificateName($file);
                                $pdf_url = Helper::asset('uploads/certificates/' . $file);
                            ?>
                                <button onclick="openPdfModal('<?php echo Helper::escape($pdf_url); ?>', '<?php echo Helper::escape($display_name); ?>')" class="group bg-white dark:bg-gray-700 border-2 border-gray-200 dark:border-gray-600 rounded-xl p-4 hover:border-anka-orange transition-all transform hover:-translate-y-1 shadow-md hover:shadow-lg w-full text-left">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0 w-12 h-12 bg-gradient-to-br from-anka-orange-dark to-anka-orange rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                                            </svg>
                                        </div>
                                        <div class="flex-1 min-w-0">
                                            <h4 class="text-sm font-bold text-anka-gray dark:text-white group-hover:text-anka-orange transition mb-1 line-clamp-2">
                                                <?php echo Helper::escape($display_name); ?>
                                            </h4>
                                            <p class="text-xs text-gray-500 dark:text-gray-400">PDF Belgesi</p>
                                        </div>
                                        <svg class="w-5 h-5 text-gray-400 group-hover:text-anka-orange transition flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
                                        </svg>
                                    </div>
                                </button>
                            <?php endforeach; ?>
                        </div>
                    <?php else: ?>
                        <p class="text-center text-gray-500 dark:text-gray-400 py-8">Usta öğretici belgesi bulunmamaktadır.</p>
                    <?php endif; ?>
                </div>
                
                <!-- Eğitim Belgeleri -->
                <div id="tab-content-egitim" class="tab-content hidden">
                    <?php if (!empty($egitim_certificates)): ?>
                        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                            <?php foreach ($egitim_certificates as $file): 
                                $display_name = formatCertificateName($file);
                                $pdf_url = Helper::asset('uploads/certificates/' . $file);
                            ?>
                                <button onclick="openPdfModal('<?php echo Helper::escape($pdf_url); ?>', '<?php echo Helper::escape($display_name); ?>')" class="group bg-white dark:bg-gray-700 border-2 border-gray-200 dark:border-gray-600 rounded-xl p-4 hover:border-anka-orange transition-all transform hover:-translate-y-1 shadow-md hover:shadow-lg w-full text-left">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0 w-12 h-12 bg-gradient-to-br from-anka-orange-dark to-anka-orange rounded-lg flex items-center justify-center">
                                            <svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                                            </svg>
                                        </div>
                                        <div class="flex-1 min-w-0">
                                            <h4 class="text-sm font-bold text-anka-gray dark:text-white group-hover:text-anka-orange transition mb-1 line-clamp-2">
                                                <?php echo Helper::escape($display_name); ?>
                                            </h4>
                                            <p class="text-xs text-gray-500 dark:text-gray-400">PDF Belgesi</p>
                                        </div>
                                        <svg class="w-5 h-5 text-gray-400 group-hover:text-anka-orange transition flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
                                        </svg>
                                    </div>
                                </button>
                            <?php endforeach; ?>
                        </div>
                    <?php else: ?>
                        <p class="text-center text-gray-500 dark:text-gray-400 py-8">Eğitim belgesi bulunmamaktadır.</p>
                    <?php endif; ?>
                </div>
            </div>
            
            <!-- Şubeler -->
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mt-8">
                <!-- Çankaya Genel Merkez -->
                <div class="bg-gradient-to-br from-gray-50 via-white to-gray-50 dark:bg-gray-800 p-6 rounded-xl shadow-lg border border-gray-200 dark:border-gray-700">
                    <div class="flex items-center space-x-3 mb-4">
                        <div class="w-12 h-12 bg-gradient-to-br from-anka-orange-dark to-anka-orange rounded-lg flex items-center justify-center">
                            <svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"></path>
                            </svg>
                        </div>
                        <div>
                            <h3 class="text-xl font-bold text-anka-gray dark:text-white">Çankaya</h3>
                            <p class="text-sm text-anka-orange font-semibold">Genel Merkez</p>
                        </div>
                    </div>
                    <div class="space-y-3 text-gray-700 dark:text-gray-300">
                        <div class="flex items-start space-x-3">
                            <svg class="w-5 h-5 text-anka-orange mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                            </svg>
                            <span class="text-sm"><?php echo defined('BRANCH_CANKAYA') ? BRANCH_CANKAYA['address'] : $contact_address; ?></span>
                        </div>
                        <div class="flex items-center space-x-3">
                            <svg class="w-5 h-5 text-anka-orange flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path>
                            </svg>
                            <a href="tel:<?php echo str_replace(' ', '', $contact_phone); ?>" class="text-sm hover:text-anka-orange transition"><?php echo $contact_phone; ?></a>
                        </div>
                        <div class="flex items-center space-x-3">
                            <svg class="w-5 h-5 text-anka-orange flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
                            </svg>
                            <a href="mailto:<?php echo $contact_email; ?>" class="text-sm hover:text-anka-orange transition"><?php echo $contact_email; ?></a>
                        </div>
                    </div>
                </div>
                
                <!-- Keçiören Şubesi -->
                <div class="bg-gradient-to-br from-gray-50 via-white to-gray-50 dark:bg-gray-800 p-6 rounded-xl shadow-lg border border-gray-200 dark:border-gray-700">
                    <div class="flex items-center space-x-3 mb-4">
                        <div class="w-12 h-12 bg-gradient-to-br from-anka-orange-dark to-anka-orange rounded-lg flex items-center justify-center">
                            <svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"></path>
                            </svg>
                        </div>
                        <div>
                            <h3 class="text-xl font-bold text-anka-gray dark:text-white">Keçiören</h3>
                            <p class="text-sm text-anka-orange font-semibold">Şube</p>
                        </div>
                    </div>
                    <div class="space-y-3 text-gray-700 dark:text-gray-300">
                        <div class="flex items-start space-x-3">
                            <svg class="w-5 h-5 text-anka-orange mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                            </svg>
                            <span class="text-sm"><?php echo defined('BRANCH_KECIOREN') ? BRANCH_KECIOREN['address'] : 'İncirli Mah. Sezgin Cd. 19-A, Keçiören, Ankara'; ?></span>
                        </div>
                        <div class="flex items-center space-x-3">
                            <svg class="w-5 h-5 text-anka-orange flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path>
                            </svg>
                            <a href="tel:<?php echo str_replace(' ', '', $contact_phone); ?>" class="text-sm hover:text-anka-orange transition"><?php echo $contact_phone; ?></a>
                        </div>
                        <div class="flex items-center space-x-3">
                            <svg class="w-5 h-5 text-anka-orange flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
                            </svg>
                            <a href="mailto:<?php echo $contact_email; ?>" class="text-sm hover:text-anka-orange transition"><?php echo $contact_email; ?></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- PDF.js Script -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js"></script>
    
    <!-- PDF Modal -->
    <div id="pdfModal" class="fixed inset-0 bg-black/80 backdrop-blur-sm z-50 hidden items-center justify-center p-4">
        <div class="bg-white dark:bg-gray-800 rounded-xl shadow-2xl w-full max-w-6xl h-[90vh] flex flex-col">
            <!-- Modal Header -->
            <div class="flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700">
                <h3 id="pdfModalTitle" class="text-xl font-bold text-anka-gray dark:text-white"></h3>
                <div class="flex items-center space-x-2">
                    <a id="pdfDownloadLink" href="#" download class="p-2 text-gray-600 dark:text-gray-400 hover:text-anka-orange transition rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700" title="İndir">
                        <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path>
                        </svg>
                    </a>
                    <button onclick="closePdfModal()" class="p-2 text-gray-600 dark:text-gray-400 hover:text-red-500 transition rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700" title="Kapat">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
                        </svg>
                    </button>
                </div>
            </div>
            <!-- Modal Body - PDF Viewer -->
            <div class="flex-1 overflow-hidden bg-gray-100 dark:bg-gray-900">
                <div id="pdfContainer" class="w-full h-full overflow-auto">
                    <canvas id="pdfCanvas" class="mx-auto"></canvas>
                </div>
                <div id="pdfLoading" class="flex items-center justify-center h-full">
                    <div class="text-center">
                        <div class="animate-spin rounded-full h-12 w-12 border-b-2 border-anka-orange mx-auto mb-4"></div>
                        <p class="text-gray-600 dark:text-gray-400">PDF yükleniyor...</p>
                    </div>
                </div>
                <div id="pdfError" class="hidden flex items-center justify-center h-full">
                    <div class="text-center p-8">
                        <svg class="w-16 h-16 text-red-500 mx-auto mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                        </svg>
                        <p class="text-gray-600 dark:text-gray-400 mb-4">PDF yüklenemedi.</p>
                        <a id="pdfFallbackLink" href="#" target="_blank" class="inline-block bg-anka-orange text-white px-6 py-2 rounded-lg hover:bg-anka-orange-dark transition">
                            PDF'yi yeni sekmede aç
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script>
    function showTab(tabName) {
        // Tüm tab içeriklerini gizle
        document.querySelectorAll('.tab-content').forEach(content => {
            content.classList.add('hidden');
        });
        
        // Tüm tab butonlarını pasif yap
        document.querySelectorAll('.tab-button').forEach(button => {
            button.classList.remove('border-anka-orange', 'text-anka-orange', 'bg-white/50', 'dark:bg-gray-700');
            button.classList.add('border-transparent', 'text-gray-600', 'dark:text-gray-400');
        });
        
        // Seçili tab içeriğini göster
        document.getElementById('tab-content-' + tabName).classList.remove('hidden');
        
        // Seçili tab butonunu aktif yap
        const activeButton = document.getElementById('tab-' + tabName);
        activeButton.classList.remove('border-transparent', 'text-gray-600', 'dark:text-gray-400');
        activeButton.classList.add('border-anka-orange', 'text-anka-orange', 'bg-white/50', 'dark:bg-gray-700');
    }
    
    // PDF.js worker'ı ayarla
    if (typeof pdfjsLib !== 'undefined') {
        pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js';
    }
    
    let currentPdfDoc = null;
    let currentPageNum = 1;
    let totalPages = 0;
    
    function openPdfModal(pdfUrl, title) {
        const modal = document.getElementById('pdfModal');
        const modalTitle = document.getElementById('pdfModalTitle');
        const downloadLink = document.getElementById('pdfDownloadLink');
        const pdfContainer = document.getElementById('pdfContainer');
        const pdfCanvas = document.getElementById('pdfCanvas');
        const pdfLoading = document.getElementById('pdfLoading');
        const pdfError = document.getElementById('pdfError');
        const fallbackLink = document.getElementById('pdfFallbackLink');
        
        modalTitle.textContent = title;
        downloadLink.href = pdfUrl;
        fallbackLink.href = pdfUrl;
        
        // URL'yi düzelt
        let finalUrl = pdfUrl;
        if (pdfUrl.startsWith('/')) {
            finalUrl = window.location.origin + pdfUrl;
        }
        
        // Modal'ı göster
        modal.classList.remove('hidden');
        modal.classList.add('flex');
        document.body.style.overflow = 'hidden';
        
        // Loading göster
        pdfLoading.classList.remove('hidden');
        pdfContainer.classList.add('hidden');
        pdfError.classList.add('hidden');
        
        // PDF.js ile PDF'i yükle (CORS ile)
        if (typeof pdfjsLib !== 'undefined') {
            // Fetch ile PDF'i yükle (CORS sorununu çözmek için)
            fetch(finalUrl)
                .then(response => {
                    if (!response.ok) {
                        throw new Error('PDF yüklenemedi');
                    }
                    return response.arrayBuffer();
                })
                .then(arrayBuffer => {
                    return pdfjsLib.getDocument({ data: arrayBuffer }).promise;
                })
                .then(function(pdf) {
                    currentPdfDoc = pdf;
                    totalPages = pdf.numPages;
                    currentPageNum = 1;
                    
                    // İlk sayfayı render et
                    renderPage(currentPageNum);
                    
                    pdfLoading.classList.add('hidden');
                    pdfContainer.classList.remove('hidden');
                })
                .catch(function(error) {
                    console.error('PDF yüklenemedi:', error);
                    // Fallback: iframe ile dene
                    pdfLoading.classList.add('hidden');
                    const iframe = document.createElement('iframe');
                    iframe.src = finalUrl;
                    iframe.className = 'w-full h-full border-0';
                    iframe.onerror = function() {
                        pdfError.classList.remove('hidden');
                    };
                    pdfContainer.innerHTML = '';
                    pdfContainer.appendChild(iframe);
                    pdfContainer.classList.remove('hidden');
                });
        } else {
            // PDF.js yüklenemediyse, iframe fallback
            pdfLoading.classList.add('hidden');
            const iframe = document.createElement('iframe');
            iframe.src = finalUrl;
            iframe.className = 'w-full h-full border-0';
            pdfContainer.innerHTML = '';
            pdfContainer.appendChild(iframe);
            pdfContainer.classList.remove('hidden');
        }
    }
    
    function renderPage(pageNum) {
        if (!currentPdfDoc) return;
        
        const pdfCanvas = document.getElementById('pdfCanvas');
        const pdfContainer = document.getElementById('pdfContainer');
        const ctx = pdfCanvas.getContext('2d');
        
        currentPdfDoc.getPage(pageNum).then(function(page) {
            // Container genişliğini al (padding dahil)
            const containerWidth = pdfContainer.clientWidth - 40; // 20px padding her iki tarafta
            const containerHeight = pdfContainer.clientHeight - 40;
            
            // PDF'in orijinal boyutlarını al
            const pdfViewport = page.getViewport({ scale: 1.0 });
            const pdfWidth = pdfViewport.width;
            const pdfHeight = pdfViewport.height;
            
            // Ölçek hesapla - hem genişlik hem yükseklik için
            const scaleX = containerWidth / pdfWidth;
            const scaleY = containerHeight / pdfHeight;
            // En küçük ölçeği kullan ki PDF tamamen görünsün
            const scale = Math.min(scaleX, scaleY, 2.0); // Maksimum 2x zoom
            
            // Yeni viewport oluştur
            const viewport = page.getViewport({ scale: scale });
            
            // Canvas boyutlarını ayarla
            pdfCanvas.height = viewport.height;
            pdfCanvas.width = viewport.width;
            
            const renderContext = {
                canvasContext: ctx,
                viewport: viewport
            };
            
            page.render(renderContext);
        });
    }
    
    // Pencere boyutu değiştiğinde PDF'i yeniden render et
    let resizeTimeout;
    window.addEventListener('resize', function() {
        if (currentPdfDoc) {
            clearTimeout(resizeTimeout);
            resizeTimeout = setTimeout(function() {
                renderPage(currentPageNum);
            }, 250); // Debounce - 250ms bekle
        }
    });
    
    function closePdfModal() {
        const modal = document.getElementById('pdfModal');
        const pdfContainer = document.getElementById('pdfContainer');
        const pdfCanvas = document.getElementById('pdfCanvas');
        
        modal.classList.add('hidden');
        modal.classList.remove('flex');
        
        // PDF'i temizle
        if (currentPdfDoc) {
            currentPdfDoc.destroy();
            currentPdfDoc = null;
        }
        const ctx = pdfCanvas.getContext('2d');
        ctx.clearRect(0, 0, pdfCanvas.width, pdfCanvas.height);
        
        document.body.style.overflow = '';
    }
    
    // ESC tuşu ile kapat
    document.addEventListener('keydown', function(e) {
        if (e.key === 'Escape') {
            closePdfModal();
        }
    });
    
    // Modal dışına tıklayınca kapat
    document.getElementById('pdfModal').addEventListener('click', function(e) {
        if (e.target === this) {
            closePdfModal();
        }
    });
    
    // İlk tab'ı varsayılan olarak göster
    document.addEventListener('DOMContentLoaded', function() {
        showTab('corporate');
    });
    </script>
</section>

<?php
$content = ob_get_clean();
require_once APP_PATH . '/app/views/layouts/header.php';
echo $content;
require_once APP_PATH . '/app/views/layouts/footer.php';
?>

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
40.99 KB lrw-r--r-- 2025-11-17 19:50:49
Edit Download
38.46 KB lrw-r--r-- 2025-11-17 19:50:49
Edit Download
5.48 KB lrw-r--r-- 2025-11-17 19:50:50
Edit Download
9.24 KB lrw-r--r-- 2025-11-17 19:50:50
Edit Download
10.95 KB lrw-r--r-- 2025-11-17 19:50:50
Edit Download
9.07 KB lrw-r--r-- 2025-11-17 19:50:50
Edit Download
8.38 KB lrw-r--r-- 2025-11-17 19:50:50
Edit Download
9.18 KB lrw-r--r-- 2025-11-17 19:50:51
Edit Download
6.82 KB lrw-r--r-- 2025-11-17 19:50:51
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI