<?php
/**
* Component : BotReply
* Controller : BotReplyController
* File : BotReply.list.blade.php
* ----------------------------------------------------------------------------- */
?>

<?php $__env->startSection('content'); ?>
<?php echo $__env->make('users.partials.header', [
'title' => __tr('Bot Replies'),
'description' => '',
'class' => 'col-lg-7'
], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<div class="container-fluid mt-lg--6">
    <div class="row" x-data="{isAdvanceBot:'interactive',botFlowUid:null}">
        <!-- button -->
        <div class="col-xl-12 mb-3">
            <div class="float-right">
                <!-- Example single danger button -->
                <div class="btn-group">
                <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                <?php echo e(__tr('Create New Bot')); ?>

                </button>
                <div class="dropdown-menu dropdown-menu-right">
                <button type="button" @click="isAdvanceBot = 'simple'" class="dropdown-item btn" data-toggle="modal"
                data-target="#lwAddNewAdvanceBotReply"> <?php echo e(__tr('Simple Bot Reply')); ?></button>
                <button type="button" @click="isAdvanceBot = 'media'"  class="dropdown-item btn" data-toggle="modal"
                data-target="#lwAddNewAdvanceBotReply"> <?php echo e(__tr('Media Bot Reply')); ?></button>
                <button type="button" @click="isAdvanceBot = 'interactive'"  class="dropdown-item btn" data-toggle="modal"
                data-target="#lwAddNewAdvanceBotReply"> <?php echo e(__tr('Advance Interactive Bot Reply')); ?></button>
                <button type="button" @click="isAdvanceBot = 'template'"  class="dropdown-item btn" data-toggle="modal"
                data-target="#lwAddNewAdvanceBotReply"> <?php echo e(__tr('Template Bot Reply')); ?></button>
                </div>
            </div>
                <?php if (isset($component)) { $__componentOriginal21e2f2f77ab650a41f95e1bc077aa724 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal21e2f2f77ab650a41f95e1bc077aa724 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.help-modal','data' => ['subject' => __tr('What are the Bots Replies and How to use it?')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.help-modal'); ?>
<?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(['subject' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('What are the Bots Replies and How to use it?'))]); ?>
                    <h3><?php echo e(__tr('Whats are Bots')); ?></h3>
                    <p><?php echo e(__tr('Bots are instructions given to the system so when you get message you can set reply message so it will get triggered automatically.')); ?></p>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal21e2f2f77ab650a41f95e1bc077aa724)): ?>
<?php $attributes = $__attributesOriginal21e2f2f77ab650a41f95e1bc077aa724; ?>
<?php unset($__attributesOriginal21e2f2f77ab650a41f95e1bc077aa724); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal21e2f2f77ab650a41f95e1bc077aa724)): ?>
<?php $component = $__componentOriginal21e2f2f77ab650a41f95e1bc077aa724; ?>
<?php unset($__componentOriginal21e2f2f77ab650a41f95e1bc077aa724); ?>
<?php endif; ?>
            </div>
        </div>
        <!--/ button -->
       
        <div class="col-xl-12">
            <?php if (isset($component)) { $__componentOriginal49c2f9c26fb91807a4f87ab8f845e982 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal49c2f9c26fb91807a4f87ab8f845e982 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.datatable','data' => ['dataPageLength' => '100','id' => 'lwBotReplyList','url' => route('vendor.bot_reply.read.list')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.datatable'); ?>
<?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(['data-page-length' => '100','id' => 'lwBotReplyList','url' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('vendor.bot_reply.read.list'))]); ?>
                <th data-orderable="true" data-name="name"><?php echo e(__tr('Name')); ?></th>
                <th data-name="bot_type"><?php echo e(__tr('Bot Type')); ?></th>
                <th data-orderable="true" data-name="trigger_type"><?php echo e(__tr('Trigger Type')); ?></th>
                <th data-orderable="true" data-name="reply_trigger"><?php echo e(__tr('Trigger Subject')); ?></th>
                <th data-orderable="true" data-name="status"><?php echo e(__tr('Status')); ?></th>
                <th data-orderable="true" data-name="created_at"><?php echo e(__tr('Created At')); ?></th>
                <th data-template="#botReplyActionColumnTemplate" name="null"><?php echo e(__tr('Action')); ?></th>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal49c2f9c26fb91807a4f87ab8f845e982)): ?>
<?php $attributes = $__attributesOriginal49c2f9c26fb91807a4f87ab8f845e982; ?>
<?php unset($__attributesOriginal49c2f9c26fb91807a4f87ab8f845e982); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal49c2f9c26fb91807a4f87ab8f845e982)): ?>
<?php $component = $__componentOriginal49c2f9c26fb91807a4f87ab8f845e982; ?>
<?php unset($__componentOriginal49c2f9c26fb91807a4f87ab8f845e982); ?>
<?php endif; ?>
            <?php echo $__env->make('bot-reply.bot-forms-partial', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        </div>
        <!-- action template -->
        <script type="text/template" id="botReplyActionColumnTemplate">
            <a data-pre-callback="appFuncs.clearContainer" title="<?php echo e(__tr('Edit')); ?>" class="lw-btn btn btn-sm btn-default lw-ajax-link-action" data-response-template="#lwEditBotReplyBody" href="<%= __Utils.apiURL("<?php echo e(route('vendor.bot_reply.read.update.data', [ 'botReplyIdOrUid'])); ?>", {'botReplyIdOrUid': __tData._uid}) %>"  data-toggle="modal" data-target="#lwEditBotReply"><i class="fa fa-edit"></i> <?php echo e(__tr('Edit')); ?></a>
<!--  Delete Action -->
<a data-method="post" href="<%= __Utils.apiURL("<?php echo e(route('vendor.bot_reply.write.delete', [ 'botReplyIdOrUid'])); ?>", {'botReplyIdOrUid': __tData._uid}) %>" class="btn btn-danger btn-sm lw-ajax-link-action-via-confirm" data-confirm="#lwDeleteBotReply-template" title="<?php echo e(__tr('Delete')); ?>" data-callback-params="<?php echo e(json_encode(['datatableId' => '#lwBotReplyList'])); ?>" data-callback="appFuncs.modelSuccessCallback"><i class="fa fa-trash"></i> <?php echo e(__tr('Delete')); ?></a>
<!--  Duplicate Action -->
<a data-method="post" href="<%= __Utils.apiURL("<?php echo e(route('vendor.bot_reply.write.duplicate', [ 'botReplyIdOrUid'])); ?>", {'botReplyIdOrUid': __tData._uid}) %>" class="btn btn-light btn-sm lw-ajax-link-action-via-confirm" data-confirm="#lwDuplicateBotReply-template" title="<?php echo e(__tr('Duplicate')); ?>" data-callback-params="<?php echo e(json_encode(['datatableId' => '#lwBotReplyList'])); ?>" data-callback="appFuncs.modelSuccessCallback"><i class="fa fa-copy"></i> <?php echo e(__tr('Duplicate')); ?></a>
    </script>
        <!-- /action template -->

        <!-- Bot Reply delete template -->
        <script type="text/template" id="lwDeleteBotReply-template">
            <h2><?php echo e(__tr('Are You Sure!')); ?></h2>
            <p><?php echo e(__tr('You want to delete this Bot Reply?')); ?></p>
    </script>
        <!-- /Bot Reply delete template -->
        <!-- Bot Reply duplicate template -->
        <script type="text/template" id="lwDuplicateBotReply-template">
            <h2><?php echo e(__tr('Are You Sure!')); ?></h2>
            <p><?php echo e(__tr('You want to duplicate this Bot Reply?')); ?></p>
    </script>
        <!-- /Bot Reply duplicate template -->
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', ['title' => __tr('Bot Replies')], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/agentkoncepts/public_html/resources/views/bot-reply/list.blade.php ENDPATH**/ ?>