

<?php $__env->startSection('title', 'Detail Paket - TUNJUK-i'); ?>

<?php $__env->startSection('content'); ?>
<div class="container mx-auto px-4 py-8">
    <div class="mb-4">
        <a href="javascript:history.back()" class="text-[#c9a84c] hover:underline">
            <i class="fas fa-arrow-left"></i> Kembali
        </a>
    </div>

    <div class="bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden">
        <div class="bg-gradient-to-r from-[#0b2b4a] to-[#1a4a6e] px-6 py-4">
            <span class="text-xs text-[#c9a84c] font-semibold uppercase tracking-wider">
                <i class="fas fa-folder-open"></i> <?php echo e($package->category ?? 'Paket'); ?>

            </span>
            <h1 class="text-2xl md:text-3xl font-bold text-white mt-1"><?php echo e($package->name); ?></h1>
        </div>

        <div class="p-6">
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <div>
                    <h3 class="text-sm font-semibold text-gray-700 mb-2">Deskripsi</h3>
                    <p class="text-gray-600"><?php echo e($package->description ?? 'Tidak ada deskripsi'); ?></p>

                    <div class="mt-4">
                        <h3 class="text-sm font-semibold text-gray-700 mb-2">Detail Paket</h3>
                        <ul class="space-y-2 text-sm">
                            <li class="flex justify-between border-b border-gray-100 pb-2">
                                <span class="text-gray-500">Pagu Anggaran</span>
                                <span class="font-semibold">Rp <?php echo e(number_format($package->price ?? 0, 0, ',', '.')); ?></span>
                            </li>
                            <li class="flex justify-between border-b border-gray-100 pb-2">
                                <span class="text-gray-500">Kualifikasi</span>
                                <span class="font-semibold"><?php echo e($package->qualification ?? 'Kecil'); ?></span>
                            </li>
                            <li class="flex justify-between border-b border-gray-100 pb-2">
                                <span class="text-gray-500">Status</span>
                                <span class="px-2 py-1 rounded-full text-xs <?php echo e(($package->status ?? 'active') == 'active' ? 'bg-green-100 text-green-600' : 'bg-gray-100 text-gray-600'); ?>">
                                    <?php echo e(($package->status ?? 'active') == 'active' ? 'Terbuka' : 'Ditutup'); ?>

                                </span>
                            </li>
                            <li class="flex justify-between border-b border-gray-100 pb-2">
                                <span class="text-gray-500">Tanggal Dibuat</span>
                                <span class="font-semibold"><?php echo e($package->created_at ? $package->created_at->format('d/m/Y') : '-'); ?></span>
                            </li>
                            <li class="flex justify-between">
                                <span class="text-gray-500">Penyedia</span>
                                <span class="font-semibold"><?php echo e($package->provider ?? 'Belum ada'); ?></span>
                            </li>
                        </ul>
                    </div>
                </div>

                <div>
                    <div class="bg-gray-50 rounded-lg p-4 border border-gray-100">
                        <h3 class="text-sm font-semibold text-gray-700 mb-3">Informasi Tambahan</h3>
                        <ul class="space-y-2 text-sm">
                            <li class="flex justify-between">
                                <span class="text-gray-500">Lokasi</span>
                                <span class="font-semibold"><?php echo e($package->location ?? 'Papua'); ?></span>
                            </li>
                            <li class="flex justify-between">
                                <span class="text-gray-500">Durasi</span>
                                <span class="font-semibold"><?php echo e($package->duration ?? '-'); ?></span>
                            </li>
                            <li class="flex justify-between">
                                <span class="text-gray-500">Jenis</span>
                                <span class="font-semibold"><?php echo e($package->type ?? 'Barang/Jasa'); ?></span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="mt-6 pt-4 border-t border-gray-200 flex gap-3 flex-wrap">
                <a href="javascript:history.back()" class="px-6 py-2 bg-gray-200 hover:bg-gray-300 text-gray-700 rounded-lg text-sm font-semibold transition">
                    <i class="fas fa-arrow-left"></i> Kembali
                </a>
                
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(auth()->guard()->check()): ?>
                    <a href="#" class="px-6 py-2 bg-[#c9a84c] hover:bg-[#b8973a] text-white rounded-lg text-sm font-semibold transition inline-flex items-center gap-2">
                        <i class="fas fa-file-signature"></i> Ajukan Penawaran
                    </a>
                <?php else: ?>
                    <a href="<?php echo e(route('login')); ?>" class="px-6 py-2 bg-[#c9a84c] hover:bg-[#b8973a] text-white rounded-lg text-sm font-semibold transition inline-flex items-center gap-2">
                        <i class="fas fa-sign-in-alt"></i> Login untuk Mengajukan Penawaran
                    </a>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\tunjuk-i-backend\resources\views/packages/show.blade.php ENDPATH**/ ?>