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: view.php Size: 9.70 KB
/home/ankaservis/public_html/app/views/admin/service-requests/view.php

<?php
ob_start();
?>

<div class="bg-white rounded-lg shadow p-6">
    <div class="flex justify-between items-center mb-6">
        <h2 class="text-2xl font-bold text-anka-gray">Servis Talebi Detayı</h2>
        <a href="<?php echo Helper::url('/admin/service-requests'); ?>" class="text-gray-600 hover:text-anka-gray transition flex items-center space-x-2">
            <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="M10 19l-7-7m0 0l7-7m-7 7h18"></path>
            </svg>
            <span>Geri Dön</span>
        </a>
    </div>

    <div class="space-y-6">
        <!-- Talep Bilgileri -->
        <div class="bg-gray-50 rounded-lg p-6">
            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                <div>
                    <label class="text-sm font-semibold text-gray-500">Ad Soyad</label>
                    <p class="text-lg text-gray-900"><?php echo Helper::escape($request['name']); ?></p>
                </div>
                <div>
                    <label class="text-sm font-semibold text-gray-500">E-posta</label>
                    <p class="text-lg">
                        <a href="mailto:<?php echo Helper::escape($request['email']); ?>" class="text-anka-orange hover:text-orange-600">
                            <?php echo Helper::escape($request['email']); ?>
                        </a>
                    </p>
                </div>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Telefon</label>
                    <p class="text-lg">
                        <a href="tel:<?php echo str_replace(' ', '', $request['phone']); ?>" class="text-gray-900 hover:text-anka-orange">
                            <?php echo Helper::escape($request['phone']); ?>
                        </a>
                    </p>
                </div>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Tarih</label>
                    <p class="text-lg text-gray-900"><?php echo Helper::dateFormat($request['created_at']); ?></p>
                </div>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Durum</label>
                    <p class="mt-1">
                        <span class="px-3 py-1 text-sm rounded font-semibold <?php 
                            $statusColors = [
                                'new' => 'bg-yellow-100 text-yellow-800',
                                'contacted' => 'bg-indigo-100 text-indigo-800',
                                'scheduled' => 'bg-purple-100 text-purple-800',
                                'completed' => 'bg-green-100 text-green-800',
                                'cancelled' => 'bg-red-100 text-red-800'
                            ];
                            echo $statusColors[$request['status']] ?? 'bg-gray-100 text-gray-800';
                        ?>">
                            <?php 
                                $statusText = [
                                    'new' => 'Yeni',
                                    'contacted' => 'İletişim',
                                    'scheduled' => 'Planlandı',
                                    'completed' => 'Tamamlandı',
                                    'cancelled' => 'İptal'
                                ];
                                echo $statusText[$request['status']] ?? $request['status'];
                            ?>
                        </span>
                    </p>
                </div>
                <?php if (!empty($request['ip_address'])): ?>
                <div>
                    <label class="text-sm font-semibold text-gray-500">IP Adresi</label>
                    <p class="text-lg text-gray-900"><?php echo Helper::escape($request['ip_address']); ?></p>
                </div>
                <?php endif; ?>
            </div>
        </div>

        <!-- Cihaz Bilgileri -->
        <div class="bg-white border border-gray-200 rounded-lg p-6">
            <h3 class="text-lg font-semibold text-gray-900 mb-4">Cihaz Bilgileri</h3>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                <div>
                    <label class="text-sm font-semibold text-gray-500">Cihaz Tipi</label>
                    <p class="text-gray-900 mt-1"><?php echo Helper::escape($request['device_type'] ?? '-'); ?></p>
                </div>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Marka</label>
                    <p class="text-gray-900 mt-1"><?php echo Helper::escape($request['device_brand'] ?? '-'); ?></p>
                </div>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Model</label>
                    <p class="text-gray-900 mt-1"><?php echo Helper::escape($request['device_model'] ?? '-'); ?></p>
                </div>
                <?php if (!empty($request['address'])): ?>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Adres</label>
                    <p class="text-gray-900 mt-1"><?php echo nl2br(Helper::escape($request['address'])); ?></p>
                </div>
                <?php endif; ?>
                <?php if (!empty($request['preferred_date'])): ?>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Tercih Edilen Tarih</label>
                    <p class="text-gray-900 mt-1"><?php echo date('d.m.Y', strtotime($request['preferred_date'])); ?></p>
                </div>
                <?php endif; ?>
                <?php if (!empty($request['preferred_time'])): ?>
                <div>
                    <label class="text-sm font-semibold text-gray-500">Tercih Edilen Saat</label>
                    <p class="text-gray-900 mt-1"><?php echo Helper::escape($request['preferred_time']); ?></p>
                </div>
                <?php endif; ?>
            </div>
        </div>

        <!-- Problem Açıklaması -->
        <?php if (!empty($request['problem_description'])): ?>
        <div class="bg-white border border-gray-200 rounded-lg p-6">
            <label class="text-sm font-semibold text-gray-500 mb-2 block">Problem Açıklaması</label>
            <div class="text-gray-700 whitespace-pre-wrap leading-relaxed">
                <?php echo nl2br(Helper::escape($request['problem_description'])); ?>
            </div>
        </div>
        <?php endif; ?>

        <!-- İşlemler -->
        <div class="flex flex-wrap gap-4 pt-4 border-t border-gray-200">
            <a href="mailto:<?php echo Helper::escape($request['email']); ?>?subject=Servis Talebi: <?php echo urlencode($request['device_type'] ?? ''); ?>" class="inline-flex items-center space-x-2 bg-anka-orange hover:bg-orange-600 text-white px-6 py-3 rounded-lg transition">
                <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="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>
                <span>E-posta ile Yanıtla</span>
            </a>
            
            <a href="tel:<?php echo str_replace(' ', '', $request['phone']); ?>" class="inline-flex items-center space-x-2 bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg transition">
                <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="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>
                <span>Ara</span>
            </a>
            
            <div class="flex items-center space-x-2">
                <span class="text-sm text-gray-600">Durum:</span>
                <select onchange="window.location.href='<?php echo Helper::url('/admin/service-requests/status/' . $request['id']); ?>?status=' + this.value" class="border border-gray-300 rounded-lg px-4 py-2 text-sm">
                    <option value="new" <?php echo $request['status'] === 'new' ? 'selected' : ''; ?>>Yeni</option>
                    <option value="contacted" <?php echo $request['status'] === 'contacted' ? 'selected' : ''; ?>>İletişim</option>
                    <option value="scheduled" <?php echo $request['status'] === 'scheduled' ? 'selected' : ''; ?>>Planlandı</option>
                    <option value="completed" <?php echo $request['status'] === 'completed' ? 'selected' : ''; ?>>Tamamlandı</option>
                    <option value="cancelled" <?php echo $request['status'] === 'cancelled' ? 'selected' : ''; ?>>İptal</option>
                </select>
            </div>
            
            <a href="<?php echo Helper::url('/admin/service-requests/delete/' . $request['id']); ?>" class="inline-flex items-center space-x-2 bg-red-600 hover:bg-red-700 text-white px-6 py-3 rounded-lg transition" onclick="return confirm('Bu servis talebini silmek istediğinize emin misiniz?')">
                <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="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
                </svg>
                <span>Sil</span>
            </a>
        </div>
    </div>
</div>

<?php
$content = ob_get_clean();
require_once APP_PATH . '/app/views/admin/layout.php';
?>

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
9.01 KB lrw-r--r-- 2025-11-17 19:50:56
Edit Download
9.70 KB lrw-r--r-- 2025-11-17 19:50:56
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