<?php if (isset($component)) { $__componentOriginal91fdd17964e43374ae18c674f95cdaa3 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3 = $attributes; } ?>
<?php $component = App\View\Components\AdminLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AdminLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h1 class="text-2xl font-bold">Tour Details</h1>
     <?php $__env->endSlot(); ?>

    <div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md">
        <!-- Status -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Status</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100">
                <?php echo e($tour->status == 1 ? 'Published' : 'Unpublished'); ?>

            </p>
        </div>

        <!-- Tour Name -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Tour Name</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->name); ?></p>
        </div>

        <!-- Bokun ID -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Bokun ID</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->bokun_id); ?></p>
        </div>

        <!-- Bokun Title -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Bokun Title</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->bokun_title); ?></p>
        </div>

        <!-- Tour Time -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Time</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->time); ?></p>
        </div>

        <!-- Tour Start Time -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Start Time</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->start_time); ?></p>
        </div>

        <!-- Tour End Time -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">End Time</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->end_time); ?></p>
        </div>


        <!-- Duration -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Duration</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->duration); ?></p>
        </div>

        <!-- Region -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Region</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->region->eng_name ?? 'N/A'); ?></p>
        </div>

        <!-- Prefecture -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Prefecture</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->prefecture->eng_name ?? 'N/A'); ?></p>
        </div>

        <!-- City -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">City</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->city->eng_name ?? 'N/A'); ?></p>
        </div>

        <!-- Opteration Area -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Operation Area</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->operation_area); ?></p>
        </div>

        <!-- Operation lat/lng -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Operation lat/lng</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->operation_lat_lng); ?></p>
        </div>

        <!-- Guide Fee -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Guide Fee</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->guide_free); ?></p>
        </div>

        <!-- Manager -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Manager</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->managers->pluck('name')->implode(', ')); ?></p>
        </div>

        <!-- Link Form -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Link Form</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->link_form); ?></p>
        </div>

        <!-- Tour Instructions -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Tour Instructions</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->tour_instructions); ?></p>
        </div>

        <!-- Tour Type Table -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200 mb-2">Tour Type</label>
            <table class="border-collapse border border-gray-300">
                <thead>
                    <tr class="bg-gray-200">
                        <th class="border border-gray-300 px-4 py-2">Name</th>
                        <th class="border border-gray-300 px-4 py-2">Rate</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $tour->tourTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tourType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td class="border border-gray-300 px-4 py-2"><?php echo e($tourType->name); ?></td>
                            <td class="border border-gray-300 px-4 py-2"><?php echo e($tourType->rate); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>

        <!-- Meet Point Table -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200 m-b">Meet Points</label>
            <table class="border-collapse border border-gray-300">
                <thead>
                    <tr class="bg-gray-200">
                        <th class="border border-gray-300 px-4 py-2">Meet Point</th>
                        <th class="border border-gray-300 px-4 py-2">Latitude/Longitude</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                        $meetPoints = json_decode($tour->meet_point, true) ?? [];
                        $meetLatLng = json_decode($tour->meet_lat_lng, true) ?? [];
                    ?>
                    <?php $__currentLoopData = $meetPoints; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $meetPoint): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td class="border border-gray-300 px-4 py-2"><?php echo e($meetPoint); ?></td>
                            <td class="border border-gray-300 px-4 py-2"><?php echo e($meetLatLng[$index] ?? 'N/A'); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>

        <!-- Response Template -->
        <div class="mb-4">
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">Response Template</label>
            <p class="mt-1 text-gray-900 dark:text-gray-100"><?php echo e($tour->groups->pluck('name')->implode(', ')); ?></p>
        </div>

        <!-- Buttons -->
        <div class="flex items-center justify-between mt-6">
            <a href="<?php echo e(route('admin.tour_settings.index')); ?>" class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white">
                Back to Tours List
            </a>
            <div class="flex items-center justify-end space-x-4">
                <a href="<?php echo e(route('admin.tour_settings.edit', $tour->id)); ?>" class="inline-flex items-center px-4 py-2 bg-indigo-600 border border-transparent rounded-md font-semibold text-white text-xs uppercase tracking-widest shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                    Edit Tour
                </a>
                <button type="submit" class="inline-flex items-center bg-red-500 border border-transparent text-white px-4 py-2 rounded-md font-semibold text-xs uppercase tracking-widest shadow-sm hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-400" data-bs-toggle="modal" data-bs-target="#deleteModal<?php echo e($tour->id); ?>">Delete Tour</button>
                <?php if (isset($component)) { $__componentOriginal37b7f052626c638ba0443fdb400d6f57 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal37b7f052626c638ba0443fdb400d6f57 = $attributes; } ?>
<?php $component = App\View\Components\DeleteModal::resolve(['type' => 'tour','id' => $tour->id,'name' => $tour->name,'route' => 'admin.tour_settings.destroy'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('delete-modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\DeleteModal::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal37b7f052626c638ba0443fdb400d6f57)): ?>
<?php $attributes = $__attributesOriginal37b7f052626c638ba0443fdb400d6f57; ?>
<?php unset($__attributesOriginal37b7f052626c638ba0443fdb400d6f57); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal37b7f052626c638ba0443fdb400d6f57)): ?>
<?php $component = $__componentOriginal37b7f052626c638ba0443fdb400d6f57; ?>
<?php unset($__componentOriginal37b7f052626c638ba0443fdb400d6f57); ?>
<?php endif; ?>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $attributes = $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $component = $__componentOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?>
<?php /**PATH C:\xampp8.2\htdocs\Portal\resources\views/admin/tour_setting/show.blade.php ENDPATH**/ ?>