D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
www
/
storage
/
framework
/
views
/
Filename :
80b5af215247722cfc070acf7a7722554cb1bfc6.php
back
Copy
<?php $__env->startSection('content'); ?> <p><?php echo link_to_route(config('quickadmin.route').'.artist.create', trans('quickadmin::templates.templates-view_index-add_new') , null, array('class' => 'btn btn-success')); ?></p> <?php if($artist->count()): ?> <div class="portlet box green"> <div class="portlet-title"> <div class="caption"><?php echo e(trans('quickadmin::templates.templates-view_index-list')); ?></div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-responsive datatable" id="datatable"> <thead> <tr> <th> <?php echo Form::checkbox('delete_all',1,false,['class' => 'mass']); ?> </th> <th>name</th> <th>saloon_id</th> <th>picture</th> <th>categories</th> <th>contacts</th> <th>order_by</th> <th>showhide</th> <th> </th> </tr> </thead> <tbody> <?php $__currentLoopData = $artist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <?php echo Form::checkbox('del-'.$row->id,1,false,['class' => 'single','data-id'=> $row->id]); ?> </td> <td><?php echo e($row->name); ?></td> <td><?php echo e(isset($row->saloon->name) ? $row->saloon->name : ''); ?></td> <td><?php if($row->picture != ''): ?><img src="<?php echo e(asset('uploads/thumb') . '/'. $row->picture); ?>"><?php endif; ?></td> <td><?php echo e($row->categories); ?></td> <td><?php echo e($row->contacts); ?></td> <td><?php echo e($row->order_by); ?></td> <td><?php echo e($row->showhide); ?></td> <td> <?php echo link_to_route(config('quickadmin.route').'.artist.edit', trans('quickadmin::templates.templates-view_index-edit'), array($row->id), array('class' => 'btn btn-xs btn-info')); ?> <?php echo Form::open(array('style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => "return confirm('".trans("quickadmin::templates.templates-view_index-are_you_sure")."');", 'route' => array(config('quickadmin.route').'.artist.destroy', $row->id))); ?> <?php echo Form::submit(trans('quickadmin::templates.templates-view_index-delete'), array('class' => 'btn btn-xs btn-danger')); ?> <?php echo Form::close(); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <div class="row"> <div class="col-xs-12"> <button class="btn btn-danger" id="delete"> <?php echo e(trans('quickadmin::templates.templates-view_index-delete_checked')); ?> </button> </div> </div> <?php echo Form::open(['route' => config('quickadmin.route').'.artist.massDelete', 'method' => 'post', 'id' => 'massDelete']); ?> <input type="hidden" id="send" name="toDelete"> <?php echo Form::close(); ?> </div> </div> <?php else: ?> <?php echo e(trans('quickadmin::templates.templates-view_index-no_entries_found')); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('javascript'); ?> <script> $(document).ready(function () { $('#delete').click(function () { if (window.confirm('<?php echo e(trans('quickadmin::templates.templates-view_index-are_you_sure')); ?>')) { var send = $('#send'); var mass = $('.mass').is(":checked"); if (mass == true) { send.val('mass'); } else { var toDelete = []; $('.single').each(function () { if ($(this).is(":checked")) { toDelete.push($(this).data('id')); } }); send.val(JSON.stringify(toDelete)); } $('#massDelete').submit(); } }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>