<?php if (isset($component)) { $__componentOriginal0e4a5652a74a6d8a86f69fa9a638424b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0e4a5652a74a6d8a86f69fa9a638424b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.application-tools-wrapper','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('application-tools-wrapper'); ?>
<?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([]); ?>
    <?php if (isset($component)) { $__componentOriginal970725fcc3fb24751031cfb6fb5148ba = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal970725fcc3fb24751031cfb6fb5148ba = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tool-wrapper','data' => ['tool' => $tool]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tool-wrapper'); ?>
<?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(['tool' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($tool)]); ?>
        <?php if (isset($component)) { $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ad-slot','data' => ['advertisement' => get_advert_model('above-form')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ad-slot'); ?>
<?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(['advertisement' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(get_advert_model('above-form'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $attributes = $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $component = $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
        <?php if (isset($component)) { $__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form','data' => ['method' => 'post','route' => route('tool.handle', $tool->slug),'enctype' => 'multipart/form-data']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form'); ?>
<?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(['method' => 'post','route' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('tool.handle', $tool->slug)),'enctype' => 'multipart/form-data']); ?>
            <div class="row">
                <div class="col-md-12 mt-3 mb-3">
                    <?php if (isset($component)) { $__componentOriginal134dbb3714f64bb542bee6f2789a8a22 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal134dbb3714f64bb542bee6f2789a8a22 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.upload-wrapper','data' => ['maxFiles' => '1','maxSize' => ''.e($tool->fs_tool).'','accept' => '.mp4,.avi,.mov,.wmv','inputName' => 'video','fileTitle' => __('tools.dropVideoHereTitle'),'fileLabel' => __('tools.convertImageToGif')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('upload-wrapper'); ?>
<?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(['max-files' => '1','max-size' => ''.e($tool->fs_tool).'','accept' => '.mp4,.avi,.mov,.wmv','input-name' => 'video','file-title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('tools.dropVideoHereTitle')),'file-label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('tools.convertImageToGif'))]); ?>
                         <?php $__env->slot('svg', null, []); ?> 
                            <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
                                xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128" x="0" y="0"
                                viewBox="0 0 682.667 682.667" style="enable-background:new 0 0 512 512"
                                xml:space="preserve" class="mb-3">
                                <g>
                                    <defs>
                                        <clipPath id="a" clipPathUnits="userSpaceOnUse">
                                            <path d="M0 512h512V0H0Z" fill="#acafbd" opacity="1"
                                                data-original="#acafbd"></path>
                                        </clipPath>
                                    </defs>
                                    <g clip-path="url(#a)" transform="matrix(1.33333 0 0 -1.33333 0 682.667)">
                                        <path
                                            d="M0 0h-161.134c-22.091 0-40-17.909-40-40v-332c0-22.091 17.909-40 40-40h412c22.092 0 40 17.909 40 40v332c0 22.091-17.908 40-40 40H90"
                                            style="stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
                                            transform="translate(211.134 462)" fill="none" stroke="#acafbd"
                                            stroke-width="20" stroke-linecap="round" stroke-linejoin="round"
                                            stroke-miterlimit="10" stroke-dasharray="none" stroke-opacity=""
                                            data-original="#acafbd" class=""></path>
                                        <path d="M0 0h492"
                                            style="stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
                                            transform="translate(10 170)" fill="none" stroke="#acafbd"
                                            stroke-width="20" stroke-linecap="round" stroke-linejoin="round"
                                            stroke-miterlimit="10" stroke-dasharray="none" stroke-opacity=""
                                            data-original="#acafbd" class=""></path>
                                        <path
                                            d="M0 0c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20S0 11.046 0 0Z"
                                            style="stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
                                            transform="translate(119.924 110)" fill="none" stroke="#acafbd"
                                            stroke-width="20" stroke-linecap="round" stroke-linejoin="round"
                                            stroke-miterlimit="10" stroke-dasharray="none" stroke-opacity=""
                                            data-original="#acafbd" class=""></path>
                                        <path d="M0 0h249.086"
                                            style="stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
                                            transform="translate(182.99 110)" fill="none" stroke="#acafbd"
                                            stroke-width="20" stroke-linecap="round" stroke-linejoin="round"
                                            stroke-miterlimit="10" stroke-dasharray="none" stroke-opacity=""
                                            data-original="#acafbd" class=""></path>
                                        <path
                                            d="m0 0 52.52-30.323c12.347-7.128 12.347-24.949 0-32.078L0-92.723c-12.347-7.129-27.78 1.782-27.78 16.039v60.645C-27.78-1.782-12.347 7.129 0 0Z"
                                            style="stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
                                            transform="translate(242.665 362.362)" fill="none" stroke="#acafbd"
                                            stroke-width="20" stroke-linecap="round" stroke-linejoin="round"
                                            stroke-miterlimit="10" stroke-dasharray="none" stroke-opacity=""
                                            data-original="#acafbd" class=""></path>
                                        <path d="M0 0v0"
                                            style="stroke-width:20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
                                            transform="translate(256.127 462)" fill="none" stroke="#acafbd"
                                            stroke-width="20" stroke-linecap="round" stroke-linejoin="round"
                                            stroke-miterlimit="10" stroke-dasharray="none" stroke-opacity=""
                                            data-original="#acafbd"></path>
                                    </g>
                                </g>
                            </svg>
                         <?php $__env->endSlot(); ?>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal134dbb3714f64bb542bee6f2789a8a22)): ?>
<?php $attributes = $__attributesOriginal134dbb3714f64bb542bee6f2789a8a22; ?>
<?php unset($__attributesOriginal134dbb3714f64bb542bee6f2789a8a22); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal134dbb3714f64bb542bee6f2789a8a22)): ?>
<?php $component = $__componentOriginal134dbb3714f64bb542bee6f2789a8a22; ?>
<?php unset($__componentOriginal134dbb3714f64bb542bee6f2789a8a22); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalf94ed9c5393ef72725d159fe01139746 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf94ed9c5393ef72725d159fe01139746 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input-error','data' => ['messages' => $errors->get('file'),'class' => 'mt-2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('input-error'); ?>
<?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(['messages' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->get('file')),'class' => 'mt-2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf94ed9c5393ef72725d159fe01139746)): ?>
<?php $attributes = $__attributesOriginalf94ed9c5393ef72725d159fe01139746; ?>
<?php unset($__attributesOriginalf94ed9c5393ef72725d159fe01139746); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf94ed9c5393ef72725d159fe01139746)): ?>
<?php $component = $__componentOriginalf94ed9c5393ef72725d159fe01139746; ?>
<?php unset($__componentOriginalf94ed9c5393ef72725d159fe01139746); ?>
<?php endif; ?>
                </div>
            </div>
            <?php if (isset($component)) { $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ad-slot','data' => ['advertisement' => get_advert_model('below-form')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ad-slot'); ?>
<?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(['advertisement' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(get_advert_model('below-form'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $attributes = $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $component = $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
            <div class="row">
                <div class="col-md-12 text-end">
                    <?php if (isset($component)) { $__componentOriginald0f1fd2689e4bb7060122a5b91fe8561 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button','data' => ['type' => 'submit','class' => 'btn btn-outline-primary rounded-pill']] + (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(['type' => 'submit','class' => 'btn btn-outline-primary rounded-pill']); ?>
                        <?php echo app('translator')->get('tools.convertToGif'); ?>
                     <?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; ?>
                </div>
            </div>
         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab)): ?>
<?php $attributes = $__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab; ?>
<?php unset($__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab)): ?>
<?php $component = $__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab; ?>
<?php unset($__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab); ?>
<?php endif; ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal970725fcc3fb24751031cfb6fb5148ba)): ?>
<?php $attributes = $__attributesOriginal970725fcc3fb24751031cfb6fb5148ba; ?>
<?php unset($__attributesOriginal970725fcc3fb24751031cfb6fb5148ba); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal970725fcc3fb24751031cfb6fb5148ba)): ?>
<?php $component = $__componentOriginal970725fcc3fb24751031cfb6fb5148ba; ?>
<?php unset($__componentOriginal970725fcc3fb24751031cfb6fb5148ba); ?>
<?php endif; ?>
    <?php if(isset($results)): ?>
        <div class="tool-results-wrapper">
            <?php if (isset($component)) { $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ad-slot','data' => ['advertisement' => get_advert_model('above-result')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ad-slot'); ?>
<?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(['advertisement' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(get_advert_model('above-result'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $attributes = $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $component = $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal0e8b16662ac81a14be4700ec450d8cbc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0e8b16662ac81a14be4700ec450d8cbc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.page-wrapper','data' => ['title' => __('common.result')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('page-wrapper'); ?>
<?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(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('common.result'))]); ?>
                <div class="row">
                    <div class="col-md-12" id="processing-files">
                        <div class="d-flex align-items-center justify-content-center my-4">
                            <div class="spinner-border" role="status"></div>
                        </div>
                    </div>
                    <div class="col-md-12 text-end">
                        <?php if (isset($component)) { $__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form','data' => ['class' => 'd-none download-all-btn no-app-loader d-inline-block','metho' => 'post','route' => route('tool.postAction', ['tool' => $tool->slug, 'action' => 'download-all'])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form'); ?>
<?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' => 'd-none download-all-btn no-app-loader d-inline-block','metho' => 'post','route' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('tool.postAction', ['tool' => $tool->slug, 'action' => 'download-all']))]); ?>
                            <input type="hidden" name="process_id" value="<?php echo e($results['process_id']); ?>">
                            <?php if (isset($component)) { $__componentOriginala8b20c2a929e5d4303765b144855d57c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8b20c2a929e5d4303765b144855d57c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.download-form-button','data' => ['text' => __('tools.downloadAll')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('download-form-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(['text' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('tools.downloadAll'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8b20c2a929e5d4303765b144855d57c)): ?>
<?php $attributes = $__attributesOriginala8b20c2a929e5d4303765b144855d57c; ?>
<?php unset($__attributesOriginala8b20c2a929e5d4303765b144855d57c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8b20c2a929e5d4303765b144855d57c)): ?>
<?php $component = $__componentOriginala8b20c2a929e5d4303765b144855d57c; ?>
<?php unset($__componentOriginala8b20c2a929e5d4303765b144855d57c); ?>
<?php endif; ?>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab)): ?>
<?php $attributes = $__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab; ?>
<?php unset($__attributesOriginalf9a5f060e1fbbcbc7beb643b113b10ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab)): ?>
<?php $component = $__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab; ?>
<?php unset($__componentOriginalf9a5f060e1fbbcbc7beb643b113b10ab); ?>
<?php endif; ?>
                        <?php if (isset($component)) { $__componentOriginalf16071108ab9e9eddc8ccc5ffe6c02e3 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf16071108ab9e9eddc8ccc5ffe6c02e3 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.reload-button','data' => ['link' => route('tool.show', ['tool' => $tool->slug])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('reload-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(['link' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('tool.show', ['tool' => $tool->slug]))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf16071108ab9e9eddc8ccc5ffe6c02e3)): ?>
<?php $attributes = $__attributesOriginalf16071108ab9e9eddc8ccc5ffe6c02e3; ?>
<?php unset($__attributesOriginalf16071108ab9e9eddc8ccc5ffe6c02e3); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf16071108ab9e9eddc8ccc5ffe6c02e3)): ?>
<?php $component = $__componentOriginalf16071108ab9e9eddc8ccc5ffe6c02e3; ?>
<?php unset($__componentOriginalf16071108ab9e9eddc8ccc5ffe6c02e3); ?>
<?php endif; ?>
                    </div>
                </div>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0e8b16662ac81a14be4700ec450d8cbc)): ?>
<?php $attributes = $__attributesOriginal0e8b16662ac81a14be4700ec450d8cbc; ?>
<?php unset($__attributesOriginal0e8b16662ac81a14be4700ec450d8cbc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0e8b16662ac81a14be4700ec450d8cbc)): ?>
<?php $component = $__componentOriginal0e8b16662ac81a14be4700ec450d8cbc; ?>
<?php unset($__componentOriginal0e8b16662ac81a14be4700ec450d8cbc); ?>
<?php endif; ?>
        </div>
        <?php if (isset($component)) { $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ad-slot','data' => ['advertisement' => get_advert_model('below-result')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ad-slot'); ?>
<?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(['advertisement' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(get_advert_model('below-result'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $attributes = $__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__attributesOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805)): ?>
<?php $component = $__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805; ?>
<?php unset($__componentOriginal43e1d90ca5f26d2b3f1aa3bef8ea2805); ?>
<?php endif; ?>
    <?php endif; ?>
    <?php if (isset($component)) { $__componentOriginal6d6c7c82b1aa6d3dea85c61a68ca611a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal6d6c7c82b1aa6d3dea85c61a68ca611a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tool-content','data' => ['tool' => $tool]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tool-content'); ?>
<?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(['tool' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($tool)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal6d6c7c82b1aa6d3dea85c61a68ca611a)): ?>
<?php $attributes = $__attributesOriginal6d6c7c82b1aa6d3dea85c61a68ca611a; ?>
<?php unset($__attributesOriginal6d6c7c82b1aa6d3dea85c61a68ca611a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6d6c7c82b1aa6d3dea85c61a68ca611a)): ?>
<?php $component = $__componentOriginal6d6c7c82b1aa6d3dea85c61a68ca611a; ?>
<?php unset($__componentOriginal6d6c7c82b1aa6d3dea85c61a68ca611a); ?>
<?php endif; ?>
    <?php if(isset($results)): ?>
        <?php $__env->startPush('page_scripts'); ?>
            <script>
                const APP = function() {
                    let processed = 0;
                    const process_id = '<?php echo e($results['process_id']); ?>',
                        data = <?php echo json_encode($results['file'], 15, 512) ?>,
                        route = '<?php echo e(route('tool.postAction', ['tool' => $tool->slug, 'action' => 'process-file'])); ?>',
                        element = document.querySelector('#processing-files'),
                        attachEvents = function(cursor) {
                            document.querySelector('#download-file-btn').addEventListener('click', e => {
                                ArtisanApp.downloadFromUrl(e.target.dataset.url, e.target.dataset.filename)
                            })
                        },
                        startConversion = async function(file) {
                                await axios.post(route, {
                                    process_id: process_id,
                                    file: file.original_filename
                                }).then(resp => {
                                    if(resp.data.status === true) {
                                        showDownload(resp.data)
                                    } else {
                                        throw new Error(resp.data.message || '<?php echo e(__('common.somethingWentWrong')); ?>');
                                    }
                                }).catch(err => {
                                    element.innerHTML = `<div class="alert alert-danger">${err.message}</div>`;;
                                    ArtisanApp.toastError(err.message)
                                })
                            },
                            showDownload = function(data) {
                                const html = data.status? `<div class="row">
                                        <div class="col-md-6">
                                            <img src="${data.url}" class="img-fluid" alt="${data.filename}" />
                                        </div>
                                        <div class="col-md-6 d-flex align-items-center justify-content-center">
                                            <div class="file-info text-center">
                                                <p class="fw-semibold">${data.filename}</p>
                                                <p>${data.filesize.filesize(true)}</p>
                                                <button class="btn btn-outline-primary rounded-pill px-4" type="button" id="download-file-btn" data-url="${data.url}" data-filename="${data.filename}">
                                                    <?php echo e(__('common.download')); ?>

                                                </button>
                                            </div>
                                        </div>
                                    </div>` : `<div class="alert alert-danger">${data.message}</div>`;

                                element.innerHTML = html;
                                attachEvents()
                            };

                    return {
                        init: function() {
                            startConversion(data)
                        }
                    }
                }();
                document.addEventListener("DOMContentLoaded", function(event) {
                    APP.init();
                });
            </script>
        <?php $__env->stopPush(); ?>
    <?php endif; ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0e4a5652a74a6d8a86f69fa9a638424b)): ?>
<?php $attributes = $__attributesOriginal0e4a5652a74a6d8a86f69fa9a638424b; ?>
<?php unset($__attributesOriginal0e4a5652a74a6d8a86f69fa9a638424b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0e4a5652a74a6d8a86f69fa9a638424b)): ?>
<?php $component = $__componentOriginal0e4a5652a74a6d8a86f69fa9a638424b; ?>
<?php unset($__componentOriginal0e4a5652a74a6d8a86f69fa9a638424b); ?>
<?php endif; ?>
<?php /**PATH /www/wwwroot/webtoolzone.com/resources/themes/canvas/tools/video-to-gif.blade.php ENDPATH**/ ?>