<!DOCTYPE html>
<html lang="id">

<head>
    <meta charset="UTF-8">
    <title>Cetak Laporan Service #<?php echo e($data->id); ?></title>
    <link rel="stylesheet" href="<?php echo e(asset('css/style-print.css')); ?>">
</head>

<body onload="window.print()">
    <table style="width: 100%; border: none; margin-bottom: 20px;">
        <tr>
            <td style="border: none; text-align: center; vertical-align: middle;">
                <div style="display: flex; align-items: center; justify-content: center; gap: 15px;">

                    <?php
                    $lokasiFix = strtolower($data->lokasi ?? '');
                    ?>

                    <?php if(str_contains($lokasiFix, 'retail')): ?>
                    <img src="<?php echo e(asset('img/simba-toko.jpg')); ?>" style="width: 100px;">
                    <?php elseif(str_contains($lokasiFix, 'ruko')): ?>
                    
                    <img src="<?php echo e(asset('img/sju.png')); ?>" style="width: 80px;">
                    <?php else: ?>
                    <img src="<?php echo e(asset('img/sju.png')); ?>" style="width: 80px;">
                    <?php endif; ?>

                    <div style="text-align: left;">
                        <h3 style="margin: 0; color: #000080;">PT. SIMBA JAYA UTAMA</h3>
                        <p style="margin: 0; font-weight: bold;">
                            Laporan Perbaikan - <?php echo e(ucwords($data->lokasi ?? 'Kantor')); ?>

                        </p>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <hr style="border: 1px solid black; margin-top: -10px;">

    <p style="text-align: center;" class="judul">HASIL ANALISIS SERVICE</p>

    <table>
        <tr>
            <th>Nomor Laporan</th>
            <td>#<?php echo e($data->id); ?></td>
        </tr>
        <tr>
            <th>Nama Pelapor</th>
            <td><?php echo e($data->pelapor); ?></td>
        </tr>
        <tr>
            <th>Perangkat</th>
            <td><?php echo e($data->perangkat); ?></td>
        </tr>
        <tr>
            <th>Keluhan</th>
            <td><?php echo e($data->keluhan); ?></td>
        </tr>
        <tr>
            <th>Hasil Analisis</th>
            <td><?php echo e($data->analisis_it); ?></td>
        </tr>
        <tr>
            <th>Tindakan</th>
            <td><?php echo e($data->tindakan ?? 'Belum Diisi'); ?></td>
        </tr>
        <tr>
            <th>Rekomendasi</th>
            <td><?php echo e($data->rekomendasi ?? 'Tidak Ada Rekomendasi'); ?></td>
        </tr>
        <tr>
            <th>Status Akhir</th>
            <td><?php echo e($data->status); ?></td>
        </tr>
        <tr>
            <th>Tanggal Laporan</th>
            <td><?php echo e(date('d F Y', strtotime($data->created_at))); ?></td>
        </tr>
        <tr>
            <th>Tanggal Selesai</th>
            <td><?php echo e($data->tgl_selesai ? date('d F Y', strtotime($data->tgl_selesai)) : '-'); ?></td>
        </tr>
    </table>

    <table style="width: 100%; margin-top: 40px; border-collapse: collapse; border: none;">

        <tr style="text-align: center; font-weight: bold; border: none;">
            <td style="width: 25%; border: none; vertical-align: bottom;">Pelapor</td>
            <td style="width: 25%; border: none; vertical-align: bottom;">Pemeriksa</td>
            <td style="width: 25%; border: none; vertical-align: bottom;">Verifikator</td>
            <td style="width: 100%; border: none; vertical-align: bottom; position: relative;">
                <div style="font-weight: normal; white-space: nowrap; margin-top: -25px; margin-bottom: 5px;">
                    Sidoarjo, <?php echo date('d F Y'); ?>
                </div>
                Manager Corp. & Support
            </td>
        </tr>

        <tr style="border: none; height: 80px;">
            <td style="border: none;"></td>
            <td style="border: none;">
                <img src="<?php echo e(asset('img/ttd-it.png')); ?>" style="width: 100px; height: 100px; display: block;">
            </td>
            <td style="border: none;"></td>
            <td style="border: none;"></td>
            <td style="border: none;"></td>
        </tr>

        <tr style="text-align: center; font-weight: normal; vertical-align: bottom; border: none;">
            <td style="border: none;">( <?php echo e($data->pelapor); ?> )</td>
            <td style="border: none;">( ILHAM )</td>
            <td style="border: none;">( IPANG )</td>
            <td style="border: none;">( PAK INDRA )</td>
        </tr>
    </table>
</body>

</html>
<?php /**PATH C:\laragon\www\sju-service\resources\views/service/print.blade.php ENDPATH**/ ?>