
<?php $__env->startSection('title', 'پاسخ‌های آماده'); ?>

<?php $__env->startSection('breadcrumb'); ?>
    <!-- start page title -->
    <div class="row">
        <div class="col-12">
            <div class="page-title-box">
                <div class="page-title-right">
                    <ol class="breadcrumb m-0">
                        <li class="breadcrumb-item"><a href="javascript: void(0);">پنل کاربری</a></li>
                        <li class="breadcrumb-item active">پاسخ‌های آماده</li>
                    </ol>
                </div>
                <h4 class="page-title">پاسخ‌های آماده</h4>
            </div>
        </div>
    </div>
    <!-- end page title -->
<?php $__env->stopSection(); ?>

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

    <div class="row">
        <div class="col">
            <div class="card-box">
                <div class="clearfix">
                    <div class="float-left">
                        <h4 class="header-title">لیست پاسخ‌های آماده</h4>
                    </div>
                    <a href="<?php echo e(route('panel.quick-responses.create')); ?>" class="btn btn-primary waves-effect waves-light float-right mb-3"><i class="fe-folder-plus mr-2 align-middle"></i>افزودن</a>
                </div>
                <?php if(session('success')): ?>
                    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
                <?php endif; ?>
                <div class="table-responsive">
                    <table class="table table-hover text-center">
                        <thead class="thead-light">
                        <tr>
                            <th>#</th>
                            <th>عنوان</th>
                            <th>متن</th>
                            <th>آخرین ویرایش</th>
                            <th>گزینه ها</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $quickResponses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $quickResponse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td><?php echo e($quickResponse->id); ?></td>
                                <td><?php echo e($quickResponse->title); ?></td>
                                <td><?php echo e(\Illuminate\Support\Str::words($quickResponse->text, 15)); ?></td>
                                <td><span data-toggle="tooltip" title="<?php echo jdate($quickResponse->created_at)->format('H:i:s Y/m/d'); ?>"><?php echo jdate($quickResponse->created_at)->ago(); ?></span></td>
                                <td>
                                    <a href="<?php echo e(route('panel.quick-responses.edit', $quickResponse)); ?>" class="btn btn-secondary btn-xs">
                                        <span class="remixicon-folder-settings-line"></span>
                                    </a>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <td colspan="5" class="bg-light text-muted text-center">داده ای یافت نشد</td>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                <?php echo e($quickResponses->links()); ?>

            </div>
        </div><!-- end col -->
    </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/iphoneun/public_html/peygirsho.ir/patronic/resources/views/panel/quick-responses/list.blade.php ENDPATH**/ ?>