<?php
/**
* Component     : Page
* Controller    : PageController
* File          : page.list.blade.php
----------------------------------------------------------------------------- */
?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('users.partials.header', [
    'title' => __tr('Pages'),
    'description' => '',
    'class' => 'col-lg-7'
    ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
   
    <div class="container-fluid">
        <div class="row">
            <!-- button -->
            <div class="col-xl-12 mb-3 mt-md--5">
                <button type="button" class="lw-btn btn btn-primary float-right" data-toggle="modal"
                    data-target="#lwAddNewPage"> <?= __tr('Add New Page') ?></button>
                    </div>
                    <!--/ button -->
                    <!-- Add New Page Modal -->
                <?php if (isset($component)) { $__componentOriginal64816a37b1766c5cb5d0bcd192fb685f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.modal','data' => ['modalDialogClass' => 'modal-lg','id' => 'lwAddNewPage','header' => __tr('Add New Page'),'hasForm' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.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(['modal-dialog-class' => 'modal-lg','id' => 'lwAddNewPage','header' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Add New Page')),'hasForm' => true]); ?>
                    <!--  Add New Page Form -->
                    <?php if (isset($component)) { $__componentOriginald0b55ee435ec3aeeadffee8b0df479da = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.form','data' => ['id' => 'lwAddNewPageForm','action' => route('page.write.create'),'dataCallbackParams' => ['modalId' => '#lwAddNewPage', 'datatableId' => '#lwPageList'],'dataCallback' => 'afterSuccessfullyCreated']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.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(['id' => 'lwAddNewPageForm','action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('page.write.create')),'data-callback-params' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['modalId' => '#lwAddNewPage', 'datatableId' => '#lwPageList']),'data-callback' => 'afterSuccessfullyCreated']); ?>
                        <!-- form body -->
                        <div class="lw-form-modal-body">
                            <!-- form fields form fields -->
                        <!-- Title -->
                        <div class="form-group">
                            <label for="lwTitleField"><?= __tr('Title') ?></label>
                            <input type="text" class="lw-form-field form-control" placeholder="<?= __tr('Title') ?>" id="lwTitleField"  name="title"  required="true" />
                        </div>
                            <!-- /Title -->
                            <!-- Slug -->
                        <div class="form-group">
                            <label for="lwSlugField"><?= __tr('Slug') ?></label>
                            <input type="text" class="lw-form-field form-control" placeholder="<?= __tr('Slug') ?>" id="lwSlugField"  name="slug"  required="true"                 />
                            <small class="form-text">
                                <?php echo e(__tr('It will be used in url')); ?>

                            </small>
                        </div>
                            <!-- /Slug -->
                            <!-- Description -->
                            <div class="form-group">
                                <label for="lwDescriptionField"><?= __tr('Description') ?></label>
                                <textarea cols="10" rows="3" id="lwDescriptionField"  class="lw-form-field form-control" placeholder="<?= __tr('Description') ?>" name="description"  required="true" ></textarea>
                            </div>
                            <!-- /Description -->
                             <!-- Show in menu -->
                             <div class="form-group">
                                <input type="checkbox" name="show_in_menu" id="lwshowinMenuField" data-lw-plugin="lwSwitchery" class="lw-form-field js-switch" ui-switch="" />
                                <label for="lwshowinMenuField"><?= __tr('Show in menu') ?></label>
                            </div>
                            <!-- /Show in menu -->
                            <!-- Status -->
                            <div class="form-group">
                                <input type="checkbox" name="status" id="lwStatusField" data-lw-plugin="lwSwitchery" class="lw-form-field js-switch" ui-switch="" />
                                <label for="lwStatusField"><?= __tr('Status') ?></label>
                            </div>
                            <!-- /Status -->
                         </div>
                        <!-- form footer -->
                        <div class="modal-footer">
                            <!-- Submit Button -->
                            <button type="submit" class="btn btn-primary"><?php echo e(__tr('Submit')); ?></button>
                            <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__tr('Close')); ?></button>
                        </div>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $attributes = $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $component = $__componentOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
                    <!--/  Add New Page Form -->
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f)): ?>
<?php $attributes = $__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f; ?>
<?php unset($__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal64816a37b1766c5cb5d0bcd192fb685f)): ?>
<?php $component = $__componentOriginal64816a37b1766c5cb5d0bcd192fb685f; ?>
<?php unset($__componentOriginal64816a37b1766c5cb5d0bcd192fb685f); ?>
<?php endif; ?>
                <!--/ Add New Page Modal -->
                <!-- Details Page Modal -->
                    <?php if (isset($component)) { $__componentOriginal64816a37b1766c5cb5d0bcd192fb685f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.modal','data' => ['id' => 'lwDetailsPage','header' => __tr('Page Details')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.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(['id' => 'lwDetailsPage','header' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Page Details'))]); ?>
                        <!--  Details Page Form -->
                        <!-- Details body --> 
                        <div id="lwDetailsPageBody" class="lw-form-modal-body"></div>
                        <script type="text/template" id="lwDetailsPageBody-template">
                            <!-- form fields -->
                            <div>
                                    <label class="small"><?= __tr('Title') ?>:</label>
                                    <div class="lw-details-item"><%- __tData.title %></div>
                                </div>
                                <div>
                                    <label class="small"><?= __tr('Slug') ?>:</label>
                                    <div class="lw-details-item"><%- __tData.slug %></div>
                                </div>
                                <div>
                                
                                    <label class="small"><?= __tr('Description') ?>:</label>
                                    <div class="lw-details-item"><%- __tData.content %></div>
                                </div>
                                <div>
                                    <label class="small"><?= __tr('Status') ?>:</label>
                                    <% if(__tData.status == 1) { %>
                                        <div class="lw-details-item"><?= __tr('Active') ?></div>
                                        <% } else { %>
                                            <div class="lw-details-item"><?= __tr('Inactive') ?></div>
                                            <% } %>
                                </div>
                             </script>
                        <!--/  Details Page Form -->
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f)): ?>
<?php $attributes = $__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f; ?>
<?php unset($__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal64816a37b1766c5cb5d0bcd192fb685f)): ?>
<?php $component = $__componentOriginal64816a37b1766c5cb5d0bcd192fb685f; ?>
<?php unset($__componentOriginal64816a37b1766c5cb5d0bcd192fb685f); ?>
<?php endif; ?>
                    <!--/ Edit Page Modal -->
                            <!-- Edit Page Modal -->
                            <?php if (isset($component)) { $__componentOriginal64816a37b1766c5cb5d0bcd192fb685f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.modal','data' => ['id' => 'lwEditPage','header' => __tr('Edit Page'),'hasForm' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.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(['id' => 'lwEditPage','header' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Edit Page')),'hasForm' => true]); ?>
                            <!--  Edit Page Form -->
                            <?php if (isset($component)) { $__componentOriginald0b55ee435ec3aeeadffee8b0df479da = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.form','data' => ['id' => 'lwEditPageForm','action' => route('page.write.update'),'dataCallbackParams' => ['datatableId' => '#lwPageList'],'dataCallback' => 'afterSuccessfullyCreated']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.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(['id' => 'lwEditPageForm','action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('page.write.update')),'data-callback-params' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['datatableId' => '#lwPageList']),'data-callback' => 'afterSuccessfullyCreated']); ?>
                                <!-- form body -->
                                <div id="lwEditPageBody" class="lw-form-modal-body"></div>
                                <script type="text/template" id="lwEditPageBody-template">
                                    <input type="hidden" name="pageIdOrUid" value="<%- __tData._uid %>" />
                                    <!-- form fields -->
                                    <!-- Title -->
                        <div class="form-group">
                            <label for="lwTitleEditField"><?= __tr('Title') ?></label>
                            <input type="text" class="lw-form-field form-control" placeholder="<?= __tr('Title') ?>" id="lwTitleEditField" value="<%- __tData.title %>" name="title"  required="true" />
                        </div>
                            <!-- /Title -->
                            <!-- Slug -->
                        <div class="form-group">
                            <label for="lwSlugEditField"><?= __tr('Slug') ?></label>
                            <input type="text" class="lw-form-field form-control" placeholder="<?= __tr('Slug') ?>" id="lwSlugEditField" value="<%- __tData.slug %>" name="slug"  required="true"/>
                            <small class="form-text">
                                <?php echo e(__tr('It will be used in url')); ?>

                            </small>
                        </div>
                            <!-- /Slug -->
                            <!-- Description -->
                            <div class="form-group">
                                <label for="lwDescriptionEditField"><?= __tr('Description') ?></label>
                                <textarea cols="10" rows="3" id="lwDescriptionEditField" value="<%- __tData.description %>" class="lw-form-field form-control" placeholder="<?= __tr('Description') ?>" name="description"  required="true"><%- __tData.content %></textarea>
                            </div>
                            <!-- /Description -->
                             <!-- Show in menu -->
                             <div class="form-group">
                                <input type="checkbox" name="show_in_menu" class="lw-form-field js-switch" ui-switch="" id="lwshowinMenuFieldEdit" data-lw-plugin="lwSwitchery" <%- __tData.show_in_menu == 1 ? 'checked' : '' %>>
                                <label for="lwshowinMenuFieldEdit"><?= __tr('Show in menu') ?></label>
                            </div>
                            <!-- /Show in menu -->
                            <!-- Status -->
                            <div class="form-group">
                                <input type="checkbox" id="lwStatusEditField"  class="lw-form-field js-switch" name="status" data-lw-plugin="lwSwitchery" <%- __tData.status == 1 ? 'checked' : '' %>  >
                                <label for="lwStatusEditField"><?= __tr('Status') ?></label>
                            </div>
                            <!-- /Status -->
                                 </script>
                                <!-- form footer -->
                                <div class="modal-footer">
                                    <!-- Submit Button -->
                                    <button type="submit" class="btn btn-primary"><?php echo e(__tr('Submit')); ?></button>
                                    <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__tr('Close')); ?></button>
                                </div>
                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $attributes = $__attributesOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__attributesOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da)): ?>
<?php $component = $__componentOriginald0b55ee435ec3aeeadffee8b0df479da; ?>
<?php unset($__componentOriginald0b55ee435ec3aeeadffee8b0df479da); ?>
<?php endif; ?>
                            <!--/  Edit Page Form -->
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f)): ?>
<?php $attributes = $__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f; ?>
<?php unset($__attributesOriginal64816a37b1766c5cb5d0bcd192fb685f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal64816a37b1766c5cb5d0bcd192fb685f)): ?>
<?php $component = $__componentOriginal64816a37b1766c5cb5d0bcd192fb685f; ?>
<?php unset($__componentOriginal64816a37b1766c5cb5d0bcd192fb685f); ?>
<?php endif; ?>
                        <!--/ Edit Page Modal -->
                        <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' => ['id' => 'lwPageList','url' => route('page.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(['id' => 'lwPageList','url' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('page.read.list'))]); ?>
                                <th  data-orderable="true" data-template="#pageTemplate" data-name="title"><?= __tr('Title') ?></th>
                                    <th  data-orderable="true"  data-name="slug"><?= __tr('Slug') ?></th>
                                    <th  data-name="formattedContent"><?= __tr('Description') ?></th>
                                    <th  data-orderable="true" data-name="status"><?= __tr('Status') ?></th>
                                    <th data-template="#pageActionColumnTemplate" name="null"><?= __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; ?>
                    </div>
                    <!-- action template -->
                      <!--title link action template  -->
                    <script type="text/_template" id="pageTemplate">
                        <!-- Preview URL -->

                                <a  target="_blank" href="<%= __tData.preview_url %>"></i><%= __tData.title %> <small><i
                                    class="fa fa-external-link-alt"></i></small></a>
                                <!-- /Preview URL -->
                    </script>
                      <!--title link action template -->
                    <script type="text/template" id="pageActionColumnTemplate">
                                    <a data-pre-callback="appFuncs.clearContainer" title="<?php echo e(__tr('Details')); ?>" class="lw-btn btn btn-sm btn-default lw-ajax-link-action" data-response-template="#lwDetailsPageBody" href="<%= __Utils.apiURL("<?php echo e(route('page.read.update.data', ['pageIdOrUid'])); ?>", {'pageIdOrUid': __tData._uid}) %>"  data-toggle="modal" data-target="#lwDetailsPage"><i class="fa fa-info-circle"></i> <?php echo e(__tr('Details')); ?></a>
                        <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="#lwEditPageBody" href="<%= __Utils.apiURL("<?php echo e(route('page.read.update.data', ['pageIdOrUid'])); ?>", {'pageIdOrUid': __tData._uid}) %>"  data-toggle="modal" data-target="#lwEditPage"><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('page.write.delete', ['pageIdOrUid'])); ?>", {'pageIdOrUid': __tData._uid}) %>" class="btn btn-danger btn-sm lw-ajax-link-action-via-confirm" data-confirm="#lwDeletePage-template" title="<?php echo e(__tr('Delete')); ?>" data-toggle="modal" data-target="#deletePage" data-callback-params="<?php echo e(json_encode(['datatableId' => '#lwPageList'])); ?>" data-callback="appFuncs.modelSuccessCallback"><i class="fa fa-trash"></i> <?php echo e(__tr('Delete')); ?></a>
                </script>
            <!-- /action template -->
                <!-- Page delete template -->
                <script type="text/template" id="lwDeletePage-template">
                        <h2><?= __tr('Are You Sure!') ?></h2>
                        <p><?= __tr('You want to delete this Page?') ?></p>
                </script>
                <!-- /Page delete template -->
                    </div>
                    <?php $__env->startPush('appScripts'); ?>
                <script>
                    (function($) {
                        'use strict';
                        window.afterSuccessfullyCreated = function (responseData) {
                        if (responseData.reaction == 1) {
                            __Utils.viewReload();
                        }
                    }
                    })(jQuery);
                </script>
                <?php $__env->stopPush(); ?>
            </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', ['title' => __tr('Pages')], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\waba9\resources\views/page/list.blade.php ENDPATH**/ ?>