<?php $__env->startSection('title', $service->name . ' - Texora'); ?>
<?php $__env->startSection('meta_description', $service->short_description); ?>

<?php $__env->startSection('content'); ?>
<?php
    $waNum = App\Models\SiteSetting::where('key','whatsapp_number')->value('value') ?? '923001234567';
    $packages = $service->packages->sortBy('sort_order')->values();
    $minDays = $packages->min('delivery_days');
    $maxDays = $packages->max('delivery_days');
    $firstPrice = $packages->first() ? $packages->first()->currency . ' ' . number_format($packages->first()->price, 0) : 'Custom quote';
?>

<main class="txp-page" data-txp-page>
    <section class="txp-hero txp-hero--dark" data-txp-hero>
        <div class="txp-shell txp-hero-grid">
            <div>
                <a href="<?php echo e(route('services.index')); ?>" class="txp-kicker txp-reveal">Back to services</a>
                <h1 class="txp-title txp-reveal"><?php echo e($service->name); ?><span class="txp-dot">.</span></h1>
                <p class="txp-lede txp-reveal"><?php echo e($service->short_description ?: \Illuminate\Support\Str::limit(strip_tags($service->description), 180)); ?></p>
                <div class="mt-8 flex flex-wrap gap-3 txp-reveal">
                    <a href="#packages" class="txp-button">Start Process</a>
                    <a href="<?php echo e(route('consultation')); ?>" class="txp-button-dark" style="background:#f6f6f4;color:#151515;">Talk to Expert</a>
                    <a href="https://wa.me/<?php echo e(preg_replace('/[^0-9]/', '', $waNum)); ?>?text=<?php echo e(urlencode('Hi Texora, I need help with ' . $service->name)); ?>" target="_blank" class="txp-button-dark" style="background:#37d5a7;color:#151515;">WhatsApp</a>
                </div>
            </div>
            <div class="txp-visual txp-reveal">
                <b><?php echo e($service->name); ?></b>
            </div>
        </div>
    </section>

    <section class="txp-section--tight" data-txp-section>
        <div class="txp-shell txp-grid">
            <div class="txp-card">
                <small>Starting at</small>
                <h3><?php echo e($firstPrice); ?></h3>
                <p>Transparent package pricing from your live Texora service data.</p>
            </div>
            <div class="txp-card">
                <small>Timeline</small>
                <h3><?php echo e($minDays && $maxDays ? $minDays . '-' . $maxDays . ' days' : 'Fast'); ?></h3>
                <p>Document collection, review, submission, and status updates handled by your specialist.</p>
            </div>
            <div class="txp-card">
                <small>Support</small>
                <h3>Expert led</h3>
                <p>Use chat, WhatsApp, or consultation if you need guidance before placing an order.</p>
            </div>
        </div>
    </section>

    <section class="txp-section txp-blue-panel" id="packages" x-data="{ activeModal: null }" @close-modal.window="activeModal = null" data-txp-section>
        <div class="txp-shell">
            <div class="txp-section-head">
                <h2>Packages<span class="txp-dot">.</span></h2>
                <p>Select the profile that matches your case. The checkout and registration flow stays exactly the same.</p>
            </div>

            <div class="txp-grid">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pkg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <article class="txp-card">
                        <small><?php echo e($pkg->is_popular ? 'Popular' : 'Package'); ?></small>
                        <h3><?php echo e($pkg->name); ?></h3>
                        <p><?php echo e($pkg->description ?: 'Includes expert filing support, document review, and completion guidance.'); ?></p>
                        <div class="mb-6 text-4xl font-black tracking-tight"><?php echo e($pkg->currency); ?> <?php echo e(number_format($pkg->price, 0)); ?></div>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($pkg->features)): ?>
                            <ul class="mb-8 space-y-3 text-sm text-white/70">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = array_slice($pkg->features, 0, 5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                                    <li><?php echo e($feature); ?></li>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                            </ul>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        <?php echo $__env->make('frontend.partials.service-card-actions', [
                            'serviceName' => $service->name,
                            'packageName' => $pkg->name,
                            'startClick' => 'activeModal = ' . $pkg->id,
                            'waNumber' => $waNum,
                        ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                    </article>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                    <div class="txp-card">
                        <small>Quote</small>
                        <h3>Custom package</h3>
                        <p>Contact Texora and we will prepare the right scope for this service.</p>
                        <?php echo $__env->make('frontend.partials.service-card-actions', [
                            'serviceName' => $service->name,
                            'startUrl' => route('consultation'),
                            'startLabel' => 'Start Now',
                            'waNumber' => $waNum,
                        ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                    </div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pkg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                <div x-show="activeModal === <?php echo e($pkg->id); ?>" x-cloak class="fixed inset-0 z-[999999] flex items-center justify-center bg-black/45 p-4" style="display:none;">
                    <div @click.away="activeModal = null" class="w-full max-w-[720px]">
                        <?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('frontend.service-registration-flow', ['service-id' => $service->id,'package-id' => $pkg->id]);

$__keyOuter = $__key ?? null;

$__key = 'reg-flow-'.e($pkg->id).'';
$__componentSlots = [];

$__key ??= \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::generateKey('lw-2013724955-0', $__key);

$__html = app('livewire')->mount($__name, $__params, $__key, $__componentSlots);

echo $__html;

unset($__html);
unset($__key);
$__key = $__keyOuter;
unset($__keyOuter);
unset($__name);
unset($__params);
unset($__componentSlots);
unset($__split);
?>
                    </div>
                </div>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
        </div>
    </section>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($service->requirements->count()): ?>
        <section class="txp-section" data-txp-section>
            <div class="txp-shell">
                <div class="txp-section-head">
                    <h2>Documents<span class="txp-dot">.</span></h2>
                    <p>Prepare these requirements before starting. Your specialist will verify everything before filing.</p>
                </div>
                <div class="txp-grid">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $service->requirements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $req): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <div class="txp-card">
                            <small><?php echo e(str_pad($i + 1, 2, '0', STR_PAD_LEFT)); ?></small>
                            <h3><?php echo e($req->document_name); ?></h3>
                            <p><?php echo e($req->description ?: 'Secure upload required for this service.'); ?></p>
                        </div>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                </div>
            </div>
        </section>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    <section class="txp-section txp-dark" data-txp-section>
        <div class="txp-shell">
            <div class="txp-section-head">
                <h2>Process<span class="txp-dot">.</span></h2>
                <p>Simple, tracked, and designed to remove back-and-forth from compliance work.</p>
            </div>
            <div class="space-y-0">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = [
                    ['Select package', 'Choose the package that fits your business case.'],
                    ['Upload documents', 'Share requirements through the secure order workflow.'],
                    ['Expert filing', 'Texora reviews, prepares, files, and updates you.'],
                    ['Receive completion', 'Get your certificate, confirmation, or filed return.'],
                ]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $step): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <div class="txp-row">
                        <strong><?php echo e($step[0]); ?></strong>
                        <span><?php echo e($step[1]); ?></span>
                        <em><?php echo e(str_pad($i + 1, 2, '0', STR_PAD_LEFT)); ?></em>
                    </div>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
            </div>
        </div>
    </section>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($relatedServices->count()): ?>
        <section class="txp-section" data-txp-section>
            <div class="txp-shell">
                <div class="txp-section-head">
                    <h2>Related<span class="txp-dot">.</span></h2>
                    <p>Other services in the same Texora category.</p>
                </div>
                <div class="txp-grid">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $relatedServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $related): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <article class="txp-card" role="link" tabindex="0" data-href="<?php echo e(route('services.show', $related->slug)); ?>">
                            <small><?php echo e($related->category?->name ?? 'Service'); ?></small>
                            <h3><?php echo e($related->name); ?></h3>
                            <p><?php echo e($related->short_description ?: \Illuminate\Support\Str::limit(strip_tags($related->description), 120)); ?></p>
                            <?php echo $__env->make('frontend.partials.service-card-actions', [
                                'serviceName' => $related->name,
                                'startUrl' => route('services.show', $related->slug) . '#packages',
                                'waNumber' => $waNum,
                            ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        </article>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                </div>
            </div>
        </section>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</main>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\User\.gemini\antigravity\scratch\texora\resources\views/frontend/services/show.blade.php ENDPATH**/ ?>