<?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, []); ?> 
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            <?php echo e(__('Pagina de Gracias')); ?>

        </h2>
     <?php $__env->endSlot(); ?>
    <div class="bg-white shadow rounded-lg p-6">
        <?php $__empty_1 = true; $__currentLoopData = $parties; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $party): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <div class="">
                <a href="<?php echo e(route('party.edit', $party)); ?>"
                    class="inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-50 transition ease-in-out duration-150">
                    Editar pagina
                </a>
            </div>


            <section class="bg-white">
                <div class="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6">
                    <div class="mx-auto max-w-screen-sm text-center lg:mb-16 mb-8">
                        <h2
                            class="mb-4 text-3xl lg:text-4xl tracking-tight font-extrabold text-gray-900">
                            <?php echo e($party->title); ?>

                        </h2>
                        <p class="font-normal text-gray-500 sm:text-xl">
                            <?php echo $party->content; ?>

                        </p>
                    </div>
                    <div class="grid gap-8 lg:grid-cols-2">


                    </div>
                </div>
                <?php if($party->path == 'Seleccionar archivo'): ?>
               
            <?php else: ?>
                <?php switch(substr($party->path, -3)):
                    case ('jpg'): ?>
                    <div class="grid grid-cols-1 md:grid-cols-3">
                        <div class="md:col-start-2">
                            <img class="h-auto max-w-full rounded-lg" src="<?php echo e(Storage::url($party->path)); ?>"
                                alt="Gallery image" />
                        </div>
                    </div>
                        <?php break; ?>
                    <?php case ('png'): ?>
                    <div class="grid grid-cols-1 md:grid-cols-3">
                        <div class="md:col-start-2">
                            <img class="h-auto max-w-full rounded-lg" src="<?php echo e(Storage::url($party->path)); ?>"
                                alt="Gallery image" />
                        </div>
                    </div>
                        <?php break; ?>
                    <?php case ('mp3'): ?>
                    <audio controls class="w-full mx-auto md:w-1/2">
                        <source src="<?php echo e(Storage::url($party->path)); ?>"
                            type="audio/mpeg">
                    </audio>
                        <?php break; ?>
                    <?php case ('mp4'): ?>
                    
                    <video class="h-full w-1/2 rounded-lg mx-auto" controls>
                        <source
                            src="<?php echo e(Storage::url($party->path)); ?>"
                            type="video/mp4"
                        />
                        Your browser does not support the video tag.
                    </video>
                    
                        <?php break; ?>
                    
                    <?php default: ?>
                        
                <?php endswitch; ?>
                
            <?php endif; ?>
            </section>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <div class="">
                <a href="<?php echo e(route('party.create')); ?>"
                    class="inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-50 transition ease-in-out duration-150">
                    Crear pagina
                </a>
            </div>
        <?php endif; ?>





    </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:\Users\Sergio\Desktop\Disco D\webs\base\resources\views/admin/party/index.blade.php ENDPATH**/ ?>