File Manager Lite
Dir:
/home/codewavebd/public_html/storage/framework/views
Upload
[..]
0419c3b4397b677ba7ac1eda5123e17f.php (1.29 KB)
Edit
Rename
Del
068c18d520b27a8ff1423722b6312560.php (22.36 KB)
Edit
Rename
Del
0795cca15855983b141802e4fd89e461.php (4.39 KB)
Edit
Rename
Del
0e1be39358f755311010acf398697d60.php (2.08 KB)
Edit
Rename
Del
15856b5c36f519621cce359f1a26e2d7.php (994 B)
Edit
Rename
Del
3e1710ec4e21ac5493271cb2b5552cf7.php (2.85 KB)
Edit
Rename
Del
447a9b2c8727517da36054dd2c1b33d6.php (3.52 KB)
Edit
Rename
Del
515e1f03c298c659e9db197609ba08b1.php (6.12 KB)
Edit
Rename
Del
5b3a79cc21083b027681cdf0634241fb.php (400 B)
Edit
Rename
Del
688c94919a2fc26ad1abb77981d242f2.php (8.86 KB)
Edit
Rename
Del
756242eee78ae49f4422220d2464f45c.php (438 B)
Edit
Rename
Del
866e2c7ac5e30bd257fc6fc609436265.php (31.52 KB)
Edit
Rename
Del
89098a8dad14253bcf8af2d780582679.php (10.75 KB)
Edit
Rename
Del
94028580101043519a8504a8cf2b0892.php (10.07 KB)
Edit
Rename
Del
9dcc282f9339af30c47dc4137c473f69.php (8.87 KB)
Edit
Rename
Del
a9664f07548515009c37c65f764a4a82.php (3.91 KB)
Edit
Rename
Del
be1e3f3b055d6c88ab57c2af7ec12e8b.php (30.91 KB)
Edit
Rename
Del
c23f28f2630b479d46f1d3d0c3746956.php (2.73 KB)
Edit
Rename
Del
c9cec9b4bcd4de27034c2c6796387677.php (539 B)
Edit
Rename
Del
d0417fa560098e9ae4583d5383628327.php (10.14 KB)
Edit
Rename
Del
f3e7d0cccc04f872034d614e09e81b12.php (3 KB)
Edit
Rename
Del
f9acbcec80f93d909aae9a145c283e31.php (908 B)
Edit
Rename
Del
Edit: 866e2c7ac5e30bd257fc6fc609436265.php
<?php $__env->startSection('content'); ?> <!-- 1. Hero Section --> <section class="hero-wrapper"> <div class="animated-bg"></div> <div class="hero-glow-1"></div> <div class="hero-glow-2"></div> <div class="container hero-content"> <div class="row align-items-center"> <div class="col-lg-7 text-center text-lg-start"> <span class="badge bg-secondary border border-info rounded-pill px-3 py-2 text-info uppercase tracking-wider mb-3 small"> <i class="bi bi-rocket-takeoff-fill me-2"></i>Leading Software & Web Agency </span> <h1 class="hero-title"> We Wave Code Into <span class="gradient-text">Enterprise Reality</span> </h1> <p class="text-secondary fs-5 mb-4 max-width-600"> CodeWave BD engineered custom CRM databases, high-speed billing POS systems, and corporate web engines. No heavy page-builders, no bloated code. Just pure performance. </p> <div class="d-flex flex-wrap justify-content-center justify-content-lg-start"> <a href="#contact" class="btn btn-primary-glow me-3 mb-2"><i class="bi bi-patch-check-fill me-2"></i>Get Free Quote</a> <a href="#software" class="btn btn-secondary-outline me-3 mb-2"><i class="bi bi-layers me-2"></i>Explore Software</a> <a href="https://wa.me/<?php echo e(\App\Models\Setting::get('contact_whatsapp')); ?>?text=Hello%20Tanvir%20from%20CodeWave.%20I%20want%20to%20discuss%20a%20project." class="btn btn-outline-success rounded-pill px-4 mb-2" target="_blank"> <i class="bi bi-whatsapp me-2"></i>WhatsApp Us </a> </div> </div> <div class="col-lg-5 mt-5 mt-lg-0"> <div class="glass-card p-4 text-center border-info"> <div class="p-3 border-bottom border-secondary mb-3"> <h5 class="mb-0 font-heading text-info">Fast Project Blueprint</h5> <p class="small text-muted mb-0">Estimate your digital solution budget in minutes</p> </div> <form action="<?php echo e(route('contact.submit')); ?>" method="POST" class="form-custom text-start"> <?php echo csrf_field(); ?> <div class="mb-3"> <label class="form-label text-secondary small">Your Name</label> <input type="text" name="name" class="form-control" placeholder="John Doe" required> </div> <div class="row"> <div class="col-md-6 mb-3"> <label class="form-label text-secondary small">Phone Number</label> <input type="text" name="phone" class="form-control" placeholder="+880..." required> </div> <div class="col-md-6 mb-3"> <label class="form-label text-secondary small">Select Service</label> <select name="service_id" class="form-control" required> <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $svc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($svc->id); ?>"><?php echo e($svc->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="mb-3"> <label class="form-label text-secondary small">Brief Project Specs</label> <textarea name="description" rows="2" class="form-control" placeholder="Specify requirements..." required></textarea> </div> <div class="mb-3"> <label class="form-label text-secondary small">Math Verification: What is <?php echo e($num1); ?> + <?php echo e($num2); ?>?</label> <input type="number" name="math_answer" class="form-control" placeholder="Answer..." required> </div> <?php if($errors->has('captcha')): ?> <div class="alert alert-danger py-2 small mb-3"> <?php echo e($errors->first('captcha')); ?> </div> <?php endif; ?> <?php if(session('success')): ?> <div class="alert alert-success py-2 small mb-3"> <?php echo e(session('success')); ?> </div> <?php endif; ?> <button type="submit" class="btn btn-primary-glow w-100 py-3">Send Specs Request</button> </form> </div> </div> </div> </div> </section> <!-- 2. Services Section --> <section class="section-premium section-separator-top shade-bg-secondary" id="services"> <div class="container py-5"> <div class="row justify-content-center text-center mb-5"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">Our Core Capability</span> <h2 class="font-heading fs-1 mt-2 mb-3">High-Performance IT Engineering</h2> <p class="text-muted">We build systems that increase operations speed and maximize client conversion indices.</p> </div> </div> <div class="row g-4"> <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-6 col-lg-3"> <div class="glass-card p-4 h-100 d-flex flex-column justify-content-between"> <div> <div class="service-icon-box"> <i class="bi <?php echo e($service->icon); ?>"></i> </div> <h5 class="font-heading mb-3"><?php echo e($service->title); ?></h5> <p class="text-muted small mb-4"><?php echo e($service->short_description); ?></p> </div> <a href="<?php echo e(route('services.show', $service->slug)); ?>" class="text-info text-decoration-none small fw-semibold"> Learn More <i class="bi bi-arrow-right ms-1"></i> </a> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </section> <!-- 3. Portfolio Projects Section --> <section class="section-premium section-separator-top shade-bg-primary" id="portfolio"> <div class="container py-5"> <div class="row justify-content-center text-center mb-5"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">Case Studies Portfolio</span> <h2 class="font-heading fs-1 mt-2 mb-3">Tested Products & Integrations</h2> <p class="text-muted">Explore how our engineering teams solved workflow frictions for leading regional brands.</p> <!-- Filters --> <div class="d-flex flex-wrap justify-content-center mt-4"> <button class="filter-btn active" data-filter="all">All Projects</button> <button class="filter-btn" data-filter="web-app">Web Apps</button> <button class="filter-btn" data-filter="e-commerce">E-Commerce</button> <button class="filter-btn" data-filter="software-integration">Software Integration</button> <button class="filter-btn" data-filter="erp-system">ERP Systems</button> </div> </div> </div> <div class="row g-4" id="portfolioItemsGrid"> <?php $__currentLoopData = $projects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $project): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-6 col-lg-4 portfolio-item" data-category="<?php echo e($project->category->slug ?? 'other'); ?>"> <div class="glass-card overflow-hidden h-100"> <div class="position-relative"> <?php if($project->image): ?> <img src="<?php echo e(asset('uploads/' . $project->image)); ?>" class="img-fluid w-100" style="height: 220px; object-fit: cover;" alt="<?php echo e($project->name); ?>" loading="lazy"> <?php else: ?> <div class="bg-secondary d-flex align-items-center justify-content-center text-muted" style="height: 220px;">No Image Handoff</div> <?php endif; ?> <span class="badge bg-dark border border-secondary text-info position-absolute bottom-0 end-0 m-3 px-3 py-2 small"> <?php echo e($project->category->name ?? 'Project'); ?> </span> </div> <div class="p-4"> <h5 class="font-heading mb-2"><?php echo e($project->name); ?></h5> <p class="text-secondary small mb-3"><?php echo e($project->client_name); ?></p> <p class="text-muted small mb-4"><?php echo e(Str::limit($project->description, 130)); ?></p> <div class="d-flex justify-content-between align-items-center"> <span class="text-muted small"><i class="bi bi-tools text-info me-1"></i> <?php echo e(Str::limit($project->technologies, 22)); ?></span> <a href="<?php echo e(route('portfolio.show', $project->slug)); ?>" class="text-info text-decoration-none small fw-semibold"> Case Study <i class="bi bi-chevron-right small"></i> </a> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </section> <!-- 4. Software Showcase Module --> <section class="section-premium section-separator-top shade-bg-secondary" id="software"> <div class="container py-5"> <div class="row justify-content-center text-center mb-5"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">CodeWave Product Suite</span> <h2 class="font-heading fs-1 mt-2 mb-3">Enterprise Software Products</h2> <p class="text-muted">Licensable software engines optimized to streamline complex retail and administrative operations.</p> </div> </div> <div class="row g-4 justify-content-center"> <?php $__currentLoopData = $software; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-lg-4 col-md-6"> <div class="glass-card overflow-hidden h-100 d-flex flex-column justify-content-between border-info"> <div> <div class="position-relative"> <?php if($product->gallery && count($product->gallery) > 0): ?> <img src="<?php echo e(asset('uploads/' . $product->gallery[0])); ?>" class="img-fluid w-100" style="height: 220px; object-fit: cover;" alt="<?php echo e($product->name); ?>" loading="lazy"> <?php else: ?> <div class="bg-secondary d-flex align-items-center justify-content-center text-muted" style="height: 220px;">No Image</div> <?php endif; ?> <span class="badge bg-dark border border-secondary text-info position-absolute bottom-0 end-0 m-3 px-3 py-2 small"> <?php echo e($product->category->name ?? 'Software'); ?> </span> </div> <div class="p-4"> <div class="d-flex justify-content-between align-items-start mb-3"> <h4 class="font-heading mb-0 fs-5"><?php echo e($product->name); ?></h4> <span class="text-white fs-5 fw-bold">৳<?php echo e(number_format($product->price)); ?></span> </div> <p class="text-muted small mb-4"><?php echo e($product->short_description); ?></p> <h6 class="text-uppercase text-secondary font-heading mb-3 small tracking-wider">Top Modules Included:</h6> <ul class="list-unstyled mb-0"> <?php if($product->features): ?> <?php $__currentLoopData = array_slice($product->features, 0, 4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="text-secondary small mb-2"><i class="bi bi-check2-circle text-info me-2"></i><?php echo e($feature); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </ul> </div> </div> <div class="p-4 pt-0 d-grid gap-2"> <a href="<?php echo e(route('software.show', $product->slug)); ?>" class="btn btn-primary-glow py-3"> <i class="bi bi-box-arrow-up-right me-2"></i>Show Details & Pricing </a> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </section> <!-- 5. Statistics Counter Widget --> <section class="section-premium section-separator-top section-separator-bottom shade-bg-gradient-accent"> <div class="container py-3"> <div class="row g-4"> <div class="col-md-3 col-6 text-center"> <div class="stat-box"> <div class="stat-number" data-target="95">0</div> <p class="text-muted mb-0">Successful Deployments</p> </div> </div> <div class="col-md-3 col-6 text-center"> <div class="stat-box"> <div class="stat-number" data-target="98">0</div> <p class="text-muted mb-0">PageSpeed Performance Index</p> </div> </div> <div class="col-md-3 col-6 text-center"> <div class="stat-box"> <div class="stat-number" data-target="32">0</div> <p class="text-muted mb-0">Automated POS Nodes</p> </div> </div> <div class="col-md-3 col-6 text-center"> <div class="stat-box"> <div class="stat-number" data-target="15">0</div> <p class="text-muted mb-0">Enterprise ERP Installs</p> </div> </div> </div> </div> </section> <!-- 6. Process Section --> <section class="section-premium shade-bg-secondary"> <div class="container py-5"> <div class="row justify-content-center text-center mb-5"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">Workflow Steps</span> <h2 class="font-heading fs-1 mt-2 mb-3">Our Core Development Process</h2> <p class="text-muted">We combine rigorous operations analysis with scalable database modeling to launch robust platforms.</p> </div> </div> <div class="row g-4"> <div class="col-md-3"> <div class="p-4 text-center"> <div class="d-inline-flex align-items-center justify-content-center bg-secondary text-info rounded-circle mb-3 fs-3" style="width: 70px; height: 70px;">1</div> <h5 class="font-heading mb-2">Requirements Map</h5> <p class="text-muted small">We analyze transaction volumes, cash flows, and customer journey bottlenecks.</p> </div> </div> <div class="col-md-3"> <div class="p-4 text-center"> <div class="d-inline-flex align-items-center justify-content-center bg-secondary text-info rounded-circle mb-3 fs-3" style="width: 70px; height: 70px;">2</div> <h5 class="font-heading mb-2">Architectural Blueprint</h5> <p class="text-muted small">We sketch database indexes, schema models, and secure server connections.</p> </div> </div> <div class="col-md-3"> <div class="p-4 text-center"> <div class="d-inline-flex align-items-center justify-content-center bg-secondary text-info rounded-circle mb-3 fs-3" style="width: 70px; height: 70px;">3</div> <h5 class="font-heading mb-2">Laravel Construction</h5> <p class="text-muted small">We build clean monolithic codebases avoiding slow page builders or bloatware.</p> </div> </div> <div class="col-md-3"> <div class="p-4 text-center"> <div class="d-inline-flex align-items-center justify-content-center bg-secondary text-info rounded-circle mb-3 fs-3" style="width: 70px; height: 70px;">4</div> <h5 class="font-heading mb-2">Rigorous Audit</h5> <p class="text-muted small">We enforce SQL parameters, CSRF checks, and script sanitization before launch.</p> </div> </div> </div> </div> </section> <!-- 7. Testimonials Section --> <section class="section-premium section-separator-top shade-bg-primary"> <div class="container py-5"> <div class="row justify-content-center text-center mb-5"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">Partners Voice</span> <h2 class="font-heading fs-1 mt-2 mb-3">Enterprise Feedback</h2> <p class="text-muted">What CTOs and Operations heads write about their system integrations.</p> </div> </div> <div class="row g-4 justify-content-center"> <?php $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $test): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-6"> <div class="glass-card testimonial-card h-100 d-flex flex-column justify-content-between"> <p class="testimonial-text">"<?php echo e($test->review); ?>"</p> <div class="d-flex align-items-center"> <div class="client-info"> <h6 class="mb-0 text-white font-heading fw-bold"><?php echo e($test->client_name); ?></h6> <span class="small text-muted"><?php echo e($test->client_role); ?>, <?php echo e($test->company_name); ?></span> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </section> <!-- 8. Technologies We Use Section --> <section class="section-premium section-separator-top shade-bg-secondary"> <div class="container py-5"> <div class="row justify-content-center text-center mb-4"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">Technical Ecosystem</span> <h4 class="font-heading mt-2">Modern Technology Infrastructure</h4> </div> </div> <div class="text-center"> <span class="tech-badge">Laravel 12</span> <span class="tech-badge">PHP 8.3</span> <span class="tech-badge">MySQL</span> <span class="tech-badge">PostgreSQL</span> <span class="tech-badge">Bootstrap 5</span> <span class="tech-badge">Vanilla JS</span> <span class="tech-badge">CSS3 Variables</span> <span class="tech-badge">Flutter</span> <span class="tech-badge">Vue.js APIs</span> <span class="tech-badge">AWS Hosting</span> </div> </div> </section> <!-- 9. FAQ Section (General FAQs) --> <section class="section-premium section-separator-top shade-bg-primary" id="faq"> <div class="container py-5"> <div class="row justify-content-center text-center mb-5"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">Got Questions?</span> <h2 class="font-heading fs-1 mt-2 mb-3">Frequently Asked Questions</h2> <p class="text-muted">Clear answers regarding our services, contract agreements, and updates policy.</p> </div> </div> <div class="row justify-content-center"> <div class="col-lg-8"> <div class="accordion accordion-custom" id="generalFaqAccordion"> <?php $__currentLoopData = $faqs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $faq): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="accordion-item"> <h2 class="accordion-header" id="heading<?php echo e($faq->id); ?>"> <button class="accordion-button <?php if($index > 0): ?> collapsed <?php endif; ?>" type="button" data-bs-toggle="collapse" data-bs-target="#collapse<?php echo e($faq->id); ?>"> <?php echo e($faq->question); ?> </button> </h2> <div id="collapse<?php echo e($faq->id); ?>" class="accordion-collapse collapse <?php if($index === 0): ?> show <?php endif; ?>" data-bs-parent="#generalFaqAccordion"> <div class="accordion-body"> <?php echo e($faq->answer); ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> </section> <!-- 10. Contact Lead Generation Form --> <section class="section-premium section-separator-top shade-bg-secondary" id="contact"> <div class="container py-5"> <div class="row justify-content-center text-center mb-5"> <div class="col-lg-8"> <span class="text-info text-uppercase fw-bold tracking-wider small">Build Your Software</span> <h2 class="font-heading fs-1 mt-2 mb-3">Initiate A Project Spec Request</h2> <p class="text-muted">Tell us about your operations bottleneck. We will coordinate a blueprint within 24 hours.</p> </div> </div> <div class="row justify-content-center"> <div class="col-lg-8"> <div class="glass-card p-5 border-info"> <form action="<?php echo e(route('contact.submit')); ?>" method="POST" class="form-custom"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-md-6 mb-3"> <label class="form-label text-secondary small">Your Full Name <span class="text-danger">*</span></label> <input type="text" name="name" class="form-control" placeholder="Rahat Chowdhury" required> </div> <div class="col-md-6 mb-3"> <label class="form-label text-secondary small">Email Address</label> <input type="email" name="email" class="form-control" placeholder="rahat@company.com"> </div> </div> <div class="row"> <div class="col-md-4 mb-3"> <label class="form-label text-secondary small">Active Phone <span class="text-danger">*</span></label> <input type="text" name="phone" class="form-control" placeholder="e.g. 01712345678" required> </div> <div class="col-md-4 mb-3"> <label class="form-label text-secondary small">WhatsApp Number</label> <input type="text" name="whatsapp" class="form-control" placeholder="e.g. 01712345678"> </div> <div class="col-md-4 mb-3"> <label class="form-label text-secondary small">Approximate Budget (Optional)</label> <select name="budget" class="form-control"> <option value="">Select Range...</option> <option value="৳30,000 - ৳50,000">৳30,000 - ৳50,000</option> <option value="৳50,000 - ৳1,00,000">৳50,000 - ৳1,00,000</option> <option value="৳1,00,000 - ৳3,00,000">৳1,00,000 - ৳3,00,000</option> <option value="৳3,00,000+">৳3,00,000+</option> </select> </div> </div> <div class="mb-3"> <label class="form-label text-secondary small">Required Service <span class="text-danger">*</span></label> <select name="service_id" class="form-control" required> <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $svc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($svc->id); ?>"><?php echo e($svc->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="mb-4"> <label class="form-label text-secondary small">Operation Scope / Spec Requirements <span class="text-danger">*</span></label> <textarea name="description" rows="5" class="form-control" placeholder="Detail your operational needs (e.g. 3 cashier nodes, inventory alert thresholds...)" required></textarea> </div> <!-- Math Captcha --> <div class="mb-4 col-md-6"> <label class="form-label text-secondary small">Security Challenge: What is <?php echo e($num1); ?> + <?php echo e($num2); ?>? <span class="text-danger">*</span></label> <input type="number" name="math_answer" class="form-control" placeholder="Your Answer" required> </div> <?php if($errors->any()): ?> <div class="alert alert-danger py-2 small mb-3"> <?php echo e($errors->first()); ?> </div> <?php endif; ?> <?php if(session('success')): ?> <div class="alert alert-success py-2 small mb-3"> <?php echo e(session('success')); ?> </div> <?php endif; ?> <div class="text-center mt-4"> <button type="submit" class="btn btn-primary-glow px-5 py-3 fs-6">Submit Spec Request</button> </div> </form> </div> </div> </div> </div> </section> <!-- Vanilla JS Client-Side Counter & Portfolio Filter --> <script> document.addEventListener('DOMContentLoaded', () => { // 1. Portfolio Grid Filter logic const filterBtns = document.querySelectorAll('.filter-btn'); const portfolioItems = document.querySelectorAll('.portfolio-item'); filterBtns.forEach(btn => { btn.addEventListener('click', () => { // Remove active class from all buttons filterBtns.forEach(b => b.classList.remove('active')); // Add active to current btn.classList.add('active'); const filterValue = btn.getAttribute('data-filter'); portfolioItems.forEach(item => { const itemCat = item.getAttribute('data-category'); if (filterValue === 'all' || itemCat === filterValue) { item.style.display = 'block'; } else { item.style.display = 'none'; } }); }); }); // 2. Animated Stats Counter logic const stats = document.querySelectorAll('.stat-number'); const speed = 100; // lower is faster const animateCounter = (counter) => { const target = +counter.getAttribute('data-target'); const count = +counter.innerText; const inc = target / speed; if (count < target) { counter.innerText = Math.ceil(count + inc); setTimeout(() => animateCounter(counter), 20); } else { counter.innerText = target + '+'; } }; // Scroll observer to trigger stats count const observerOptions = { threshold: 0.5 }; const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { if(entry.isIntersecting) { animateCounter(entry.target); observer.unobserve(entry.target); } }); }, observerOptions); stats.forEach(stat => observer.observe(stat)); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.frontend', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/codewavebd/public_html/resources/views/frontend/index.blade.php ENDPATH**/ ?>
Simpan