<?php $__env->startSection('filter-section'); ?>
    <!-- FILTER START -->
    <!-- PROJECT HEADER START -->
    <div class="d-flex filter-box project-header bg-white">

        <div class="mobile-close-overlay w-100 h-100" id="close-client-overlay"></div>
        <div class="project-menu d-lg-flex" id="mob-client-detail">

            <a class="d-none close-it" href="javascript:;" id="close-client-detail">
                <i class="fa fa-times"></i>
            </a>

            <?php if (isset($component)) { $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c = $component; } ?>
<?php $component = App\View\Components\Tab::resolve(['href' => route('contracts.show', $contract->id),'text' => __('modules.contracts.summery')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Tab::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'profile']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c)): ?>
<?php $component = $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c; ?>
<?php unset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c = $component; } ?>
<?php $component = App\View\Components\Tab::resolve(['href' => route('contracts.show', $contract->id).'?tab=discussion','text' => __('modules.contracts.discussion')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Tab::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'discussion']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c)): ?>
<?php $component = $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c; ?>
<?php unset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c = $component; } ?>
<?php $component = App\View\Components\Tab::resolve(['href' => route('contracts.show', $contract->id).'?tab=files','text' => __('app.contractFiles')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Tab::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'files']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c)): ?>
<?php $component = $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c; ?>
<?php unset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c = $component; } ?>
<?php $component = App\View\Components\Tab::resolve(['href' => route('contracts.show', $contract->id).'?tab=renew','text' => __('modules.contracts.contractRenewalHistory')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('tab'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Tab::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'renew']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c)): ?>
<?php $component = $__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c; ?>
<?php unset($__componentOriginal125a1007b8c7d7586d1783de327a3e32c58c3f3c); ?>
<?php endif; ?>

        </div>

        <a class="mb-0 d-block d-lg-none text-dark-grey ml-auto mr-2 border-left-grey"
            onclick="openClientDetailSidebar()"><i class="fa fa-ellipsis-v "></i></a>

    </div>
    <!-- FILTER END -->
    <!-- PROJECT HEADER END -->

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

<?php $__env->startPush('styles'); ?>
    <script src="<?php echo e(asset('vendor/jquery/frappe-charts.min.iife.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>

    <div class="content-wrapper border-top-0 client-detail-wrapper">
        <?php echo $__env->make($view, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>

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

<?php $__env->startPush('scripts'); ?>
    <script>
        $("body").on("click", ".ajax-tab", function(event) {
            event.preventDefault();

            $('.project-menu .p-sub-menu').removeClass('active');
            $(this).addClass('active');


            const requestUrl = this.href;

            $.easyAjax({
                url: requestUrl,
                blockUI: true,
                container: ".content-wrapper",
                historyPush: true,
                success: function(response) {
                    if (response.status == "success") {
                        $('.content-wrapper').html(response.html);
                        init('.content-wrapper');
                    }
                }
            });
        });

    </script>
    <script>
        const activeTab = "<?php echo e($activeTab); ?>";
        $('.project-menu .' + activeTab).addClass('active');

    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/surab432/sap.internalcsi.my.id/resources/views/contracts/show.blade.php ENDPATH**/ ?>