<?php $__env->startSection('title', 'Twins Private Sport - Beranda'); ?>

<?php $__env->startSection('content'); ?>
<!-- Slider Area -->
<section class="slider">
    <div class="hero-slider">
        <?php
            $slides = [
                [
                    'image' => 'img/allcoach.jpeg', 
                    'title' => 'Twins ', 
                    'subtitle' => 'Private Sport', 
                    'desc' => 'CV. Twins Private
                        Sport adalah organisasi kewirausahaan yang berbentuk perseroan komanditer dan bersifat
                        independen dengan memasyarakatkan beberapa cabang olahraga.'
                ],
                [
                    'image' => 'img/slidenew3.jpeg', 
                    'title' => 'Twins ', 
                    'subtitle' => 'Active Sport', 
                    'desc' => 'Latihan motorik dasar pada anak memiliki latar belakang yang penting dalam mendukung
                        perkembangan mereka secara keseluruhan.'],
                [
                    'image' => 'img/slidenew2.jpeg', 
                    'title' => 'Twins ', 
                    'subtitle' => ' Swimming Club', 
                    'desc' => 'Twins Swimming Club (TSC) merupakan komunitas olahraga renang yang dirancang untuk mengembangkan kemampuan peserta melalui pelatihan rutin, pembinaan teknik, serta partisipasi dalam berbagai kompetisi. Berbasis di Malang, TSC terbuka bagi anak-anak dan remaja yang ingin menekuni olahraga renang secara lebih serius. Dengan bimbingan pelatih profesional dan program latihan yang terstruktur, TSC berkomitmen membentuk atlet yang berprestasi, berkarakter, dan berjiwa sportivitas tinggi.'
                ],
            ];
        ?>
        <?php $__currentLoopData = $slides; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="single-slider" style="background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('<?php echo e(asset($slide['image'])); ?>'); background-size: cover; background-position: center;">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-7">
                            <div class="text">
                                <h1><?php echo e($slide['title']); ?><span><?php echo e($slide['subtitle']); ?></span></h1>
                                <p><?php echo e($slide['desc']); ?></p>
								<!--<div class="button">-->
        <!--                            <a href="https://api.whatsapp.com/send/?phone=6282132043215&text=Halo%2C+saya+ingin+daftar+latihan&type=phone_number&app_absent=0" class="btn">Gabung Latihan</a>-->
        <!--                            <a href="/about-us" class="btn primary">Tentang Kami</a>-->
        <!--                        </div>-->
        <div class="button">
    <a href="javascript:void(0);" onclick="showBranchModal()" class="btn">Gabung Latihan</a>
    <a href="/about-us" class="btn primary">Tentang Kami</a>
</div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
</section>
<!--/ End Slider Area -->

<!-- Start Why choose -->
<section class="why-choose section" >
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="section-title">
                    <h2>CV. Twins Private Sport</h2>
                    <img src="img/section-img.png" alt="#">
                    <p>CV. Twins Private
                        Sport adalah organisasi kewirausahaan yang berbentuk perseroan komanditer dan bersifat
                        independen dengan memasyarakatkan beberapa cabang olahraga.</p>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-6 col-12">
                <!-- Start Choose Left -->
                <div class="choose-left">
                    <h3>Tentang Kami</h3>
                    <p>
                        CV. Twins Private Sport sebagai wadah profesi dalam bidang olahraga yang memiliki citra baik,
bertanggung jawab, disiplin, dan bermanfaat bagi seluruh masyarakat sebagai jasa pendidikan
olahraga dan rekreasi, club renang, perdagangan eceran khusus peralatan olahraga. CV. Twins Private
Sport adalah organisasi kewirausahaan yang berbentuk perseroan komanditer dan bersifat
independen dengan memasyarakatkan beberapa cabang olahraga.
                    </p>
                    <!-- <div class="row">
                        <div class="col-lg-12">
                            <p>Aktivitas Kami Meliputi :</p>
                            <ul class="list">
                                <li><i class="fa fa-caret-right"></i>Twins Private Swimming Cource (TPSC)</li>
                                <li><i class="fa fa-caret-right"></i>Twins Swimming Club (TSC)</li>
                                <li><i class="fa fa-caret-right"></i>Twins Active Sport (TAS)</li>
                            </ul>
                        </div>
                    </div> -->
                </div>
                <!-- End Choose Left -->
            </div>
            <!-- <div class="col-lg-6 col-12">
                <div class="choose-right">
                    <div class="video-image">
                        <div class="promo-video">
                            <div class="waves-block">
                                <div class="waves wave-1"></div>
                                <div class="waves wave-2"></div>
                                <div class="waves wave-3"></div>
                            </div>
                        </div>
                        <a href="https://www.youtube.com/watch?v=RFVXy6CRVR4" class="video video-popup mfp-iframe"><i class="fa fa-play"></i></a>
                    </div>
                </div>
            </div> -->
            <div class="col-lg-6 col-12 mt-0">
    <!-- Start Choose Rights -->
    <div class="choose">
        <div class="video" style="display: flex; justify-content: center; align-items: center;">
            <video autoplay muted loop playsinline
                style="
                    width: 50%;
                    transform: rotate(-90deg);
                    transform-origin: center center;
                    border-radius: 10px;
                ">
                <source src="/videos/videobaru.mp4" type="video/mp4">
                Browser Anda tidak mendukung tag video.
            </video>
        </div>
    </div>
    <!-- End Choose Rights -->
</div>


        </div>
    </div>
</section>
<!--/ End Why choose -->

<!-- Start Fun-facts -->
<div id="fun-facts" class="fun-facts section overlay">
    <div class="container">
        <div class="row">
            <div class="col-lg-3 col-md-6 col-12">
                <!-- Start Single Fun -->
                <div class="single-fun">
                    <i class="icofont icofont-user-alt-3"></i>
                    <div class="content">
                        <span>20+</span>
                        <p>Trainer Profesional</p>
                    </div>
                </div>
                <!-- End Single Fun -->
            </div>
            <div class="col-lg-3 col-md-6 col-12">
                <!-- Start Single Fun -->
                <div class="single-fun">
                    <i class="icofont-people"></i>
                    <div class="content">
                        <span>500+</span>
                        <p>Peserta</p>
                    </div>
                </div>
                <!-- End Single Fun -->
            </div>
            <div class="col-lg-3 col-md-6 col-12">
                <!-- Start Single Fun -->
                <div class="single-fun">
                    <i class="icofont icofont-table"></i>
                    <div class="content">
                        <span>30+</span>
                        <p>Venue Latihan</p>
                    </div>
                </div>
                <!-- End Single Fun -->
            </div>
            <div class="col-lg-3 col-md-6 col-12">
                <!-- Start Single Fun -->
                <div class="single-fun">
                    <i class="icofont-list"></i>
                    <div class="content">
                        <span>10+</span>
                        <p>Program Latihan</p>
                    </div>
                </div>
                <!-- End Single Fun -->
            </div>
        </div>
    </div>
</div>
<!--/ End Fun-facts -->

	<!-- Start Newsletter Area -->
		<section class="newsletter section">
			<div class="container">
				<div class="row ">
					<div class="col-lg-6  col-12">
						<!-- Start Newsletter Form -->
						<div class="subscribe-text ">
							<h6>Bergabung dengan kami</h6>
							<p class="">kami sangat merasa terhormat jika anda berkenan bergabung latihan dengan kami.<br> silakan hubungi kami.</p>
						</div>
						<!-- End Newsletter Form -->
					</div>
					<div class="col-lg-6  col-12">
						<!-- Start Newsletter Form -->
						<div class="subscribe-form ">
							<form action="mail/mail.php" method="get" target="_blank" class="newsletter-inner">
								<input name="EMAIL" placeholder="Your email address" class="common-input" onfocus="this.placeholder = ''"
									onblur="this.placeholder = 'Your email address'" required="" type="email">
								<button class="btn">Kirim</button>
							</form>
						</div>
						<!-- End Newsletter Form -->
					</div>
				</div>
			</div>
		</section>
		<!-- /End Newsletter Area -->
		
		<!-- Modal Pilihan Cabang -->
<div id="branchModal" class="modal" style="display: none;">
    <div class="modal-content">
        <div class="modal-header">
            <h2>Pilih Cabang</h2>
            <span class="close" onclick="closeModal()">&times;</span>
        </div>
        <div class="modal-body">
            <p>Silakan pilih cabang latihan:</p>
            
            <div class="branch-options">
                <button class="branch-btn" onclick="selectBranch('malang')">
                    Malang
                </button>
                
                <button class="branch-btn" onclick="selectBranch('tulungagung')">
                    Tulungagung
                </button>
            </div>
            
            <div class="whatsapp-info" id="whatsappInfo" style="display: none; margin-top: 20px;">
                <p id="branchText"></p>
                <a id="whatsappLink" class="whatsapp-btn" target="_blank">
                    Hubungi via WhatsApp
                </a>
            </div>
        </div>
    </div>
</div>

<style>
    /* Modal Styles */
    .modal {
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: none;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: white;
        border-radius: 8px;
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .modal-header h2 {
        margin: 0;
        font-size: 1.2rem;
    }

    .close {
        font-size: 24px;
        cursor: pointer;
        color: #666;
    }

    .close:hover {
        color: #000;
    }

    .modal-body p {
        margin-bottom: 15px;
        color: #333;
    }

    .branch-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .branch-btn {
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: white;
        cursor: pointer;
        font-size: 1rem;
        transition: 0.2s;
    }

    .branch-btn:hover {
        border-color: #25D366;
        background: #f9f9f9;
    }

    .whatsapp-info {
        padding: 15px;
        background: #f8f9fa;
        border-radius: 6px;
        border-left: 4px solid #25D366;
    }

    .whatsapp-btn {
        display: inline-block;
        background: #25D366;
        color: white;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
        margin-top: 10px;
    }

    .whatsapp-btn:hover {
        background: #1da851;
    }
</style>

<script>
function showBranchModal() {
    document.getElementById('branchModal').style.display = 'flex';
    document.getElementById('whatsappInfo').style.display = 'none';
}

function closeModal() {
    document.getElementById('branchModal').style.display = 'none';
}

function selectBranch(branch) {
    const whatsappInfo = document.getElementById('whatsappInfo');
    const whatsappLink = document.getElementById('whatsappLink');
    const branchText = document.getElementById('branchText');
    
    let phoneNumber, message;
    
    if (branch === 'malang') {
        phoneNumber = '6282132043215';
        message = "Halo, saya ingin daftar latihan";
        branchText.textContent = "WhatsApp cabang Malang: 0821 3204 3215";
    } else {
        phoneNumber = '6282231494685';
        message = "Halo, saya ingin daftar latihan";
        branchText.textContent = "WhatsApp cabang Tulungagung: 0822 3149 4685";
    }
    
    whatsappLink.href = `https://api.whatsapp.com/send/?phone=${phoneNumber}&text=${encodeURIComponent(message)}&type=phone_number&app_absent=0`;
    
    whatsappInfo.style.display = 'block';
}

// Close modal ketika klik di luar konten
window.onclick = function(event) {
    const modal = document.getElementById('branchModal');
    if (event.target === modal) {
        closeModal();
    }
}
</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('new-website.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tpsm5646/public_html/tpscmalang.com/tpscmalang/resources/views/new-website/home.blade.php ENDPATH**/ ?>