<?php $__env->startSection('content'); ?>
<form>
<div class="side-title">
    <div class="row">
        <div class="col-lg-6">
            <h3><?php echo e($title); ?></h3>
        </div>
        <div class="col-lg-6 valign">
            <!-- <div class="edit-buttons text-right w-100">
                <a href="<?php echo e(route ('loops.destroyAll')); ?>" data-method="delete" class="butn statusButns status_1 tableAction btn disabled bg-warning"> <span><?php echo e(__('dashboard.sendToTrash')); ?></span></a>
                <a href="#" class="butn statusButns status_1 showArchive bg-primary"> <span> <?php echo e(__('dashboard.displayTrash')); ?> </span></a>

                <a href="<?php echo e(route ('loops.destroyAll')); ?>" data-method="delete" class="butn statusButns status_0 tableAction btn disabled bg-danger force"> <span> <?php echo e(__('dashboard.delete')); ?> </span></a>
                <a href="<?php echo e(route ('loops.restoreAll')); ?>" data-method="put" class="butn statusButns status_0 tableAction btn disabled bg-info"> <span> <?php echo e(__('dashboard.restore')); ?> </span></a>
                <a href="#" class="butn statusButns status_0 showActive bg-primary"> <span> <?php echo e(__('dashboard.displayActive')); ?> </span></a>
            </div> -->
        </div>
    </div>
</div>

<!-- ------------ data table ------------- -->
<table class="table table-hover table-bordered">
    <thead>
        <tr>
            <!-- <th scope="col">
                <div class="custom-control custom-checkbox">
                    <input type="checkbox" class="custom-control-input" id="selectall" name="example1">
                    <label class="custom-control-label" for="selectall"> </label>
                </div>
            </th> -->
            <th scope="col"><?php echo e(__('loops.loop')); ?></th>
            <th scope="col"><?php echo e(__('loops.user')); ?></th>
            <th scope="col"><?php echo e(__('loops.period')); ?></th>
            <th scope="col"><?php echo e(__('loops.share')); ?></th>
            <th scope="col"><?php echo e(__('loops.status')); ?></th>
            <th scope="col"><?php echo e(__('loops.encashment_month')); ?></th>
            <th scope="col"><?php echo e(__('dashboard.processes')); ?></th>
        </tr>
    </thead>

    <tbody class="response">
        <tr class="search_filter_form">
            <!-- <th scope="row">
            </th> -->
            <th scope="row">
                <select name="loop_id" id="loop_id" class="form-control">
                    <option value="0"> --- </option>
                    <?php $__currentLoopData = $loops; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($row['id']); ?>"><?php echo e(date('M Y', strtotime($row['date']))); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </th>
            <td>
                <select name="user_id" id="user_id" class="form-control">
                    <option value="0"> --- </option>
                    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($row['id']); ?>"><?php echo e($row['name']); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </td>
            <td>
                <select name="period" id="period" class="form-control">
                    <option value="0"> --- </option>
                    <?php for($i= 3; $i<= 12; $i++): ?>
                    <option value="<?php echo e($i); ?>"><?php echo e($i); ?></option>
                    <?php endfor; ?>
                </select>
            </td>
            <td>
                <input type="number" min="100" max="3000" step="100" placeholder="<?php echo e(__('dashboard.from')); ?>" name="share_from" value="<?php echo e($request->share_from ?? ''); ?>" class="from_number form-control"/>
                <br/>
                <div class="clearfix"></div>
                <input type="number" min="100" max="3000" step="100" placeholder="<?php echo e(__('dashboard.to')); ?>" name="share_to" value="<?php echo e($request->share_to ?? ''); ?>" class="to_number form-control">
            </td>
            <td>
                <select name="loop_status" id="loop_status" class="form-control">
                    <option value="0"> --- </option>
                    <option value="active"><?php echo e(__('loops.active')); ?></option>
                    <option value="cancelled"><?php echo e(__('loops.cancelled')); ?></option>
                </select>
            </td>
            <td>
                <select name="encashment_month" id="encashment_month" class="form-control">
                    <option value="0"> --- </option>
                    <?php for($i= 1; $i<= 12; $i++): ?>
                    <option value="<?php echo e($i); ?>"><?php echo e(date("F", mktime(0, 0, 0, $i, 1))); ?></option>
                    <?php endfor; ?>
                </select>
            </td>
            <th scope="col"><button type="button" class="butn color small search"><span><i class="fas fa-search"></i></span></button></th>
        </tr>
    </tbody>


</table>
<!-- ------------ sidemenu links ------------- -->
</form>
<?php $__env->stopSection(); ?>



<script>
/**
 * Importat to handle ajax requests for filters, deletes, trash and any proccess done on the table's data
 */
var dataTable={
    route: '<?php echo e(url("/admin/loops/grid")); ?>'
}
</script>
<?php $__env->startSection('inner_js'); ?>

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

<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\wamp64\www\gam3iea\resources\views/admin/loops/index.blade.php ENDPATH**/ ?>