<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-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\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    
    

    <div class="bg-white shadow rounded-lg p-6">

        <?php $__currentLoopData = $homes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $home): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
             <?php $__env->slot('title', null, []); ?> 
                <?php echo e($home->tituloseo); ?>

             <?php $__env->endSlot(); ?>
             <?php $__env->slot('description', null, []); ?> 
                <?php echo e($home->descripcionseo); ?>

             <?php $__env->endSlot(); ?>




            <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  lg:mb-16 mb-8">
                        <p
                            class="mb-4 text-3xl lg:text-4xl text-center tracking-tight font-extrabold text-gray-900">
                            <?php echo e($home->title); ?>

                        </p>
                        <h1 class="text-xs italic text-start py-10"><?php echo e($home->h1); ?></h1>
                        <p class="font-normal text-gray-500 sm:text-xl">
                            <?php echo $home->content; ?>

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


                    </div>
                </div>
                <?php if($home->path == 'Seleccionar archivo'): ?>
               
            <?php else: ?>
                <?php switch(substr($home->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($home->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($home->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($home->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($home->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(); ?>

    </div>

    <div class="bg-white shadow rounded-lg p-6  mt-4">
        <form action="<?php echo e(route('email.store')); ?>" class="max-w-sm mx-auto" method="POST">
            <?php echo csrf_field(); ?>
            <label for="email-address-icon" class="block mb-2 text-sm font-medium text-gray-900">Tú
                Email</label>
            <div class="relative">
                <div class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none">
                    <svg class="w-4 h-4 text-gray-500" aria-hidden="true"
                        xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 16">
                        <path
                            d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z" />
                        <path
                            d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z" />
                    </svg>
                </div>
                <input type="email" id="email-address-icon"
                    class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5"
                    placeholder="tuemail@gmail.com" name="email">
            </div>
            <?php if (isset($component)) { $__componentOriginald0f1fd2689e4bb7060122a5b91fe8561 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button','data' => ['class' => 'mt-2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mt-2']); ?>
                Suscribirme
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561)): ?>
<?php $attributes = $__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561; ?>
<?php unset($__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald0f1fd2689e4bb7060122a5b91fe8561)): ?>
<?php $component = $__componentOriginald0f1fd2689e4bb7060122a5b91fe8561; ?>
<?php unset($__componentOriginald0f1fd2689e4bb7060122a5b91fe8561); ?>
<?php endif; ?>
        </form>
    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\Users\Sergio\Desktop\Disco D\webs\base\resources\views/welcome.blade.php ENDPATH**/ ?>