<?php echo Form::open(['route' => ['services.destroy', $id], 'method' => 'delete','id'=> 'formajax']); ?>

<div class='btn-group'>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('service_view')): ?>
    <a href="javascript:void(0);" data-action="<?php echo e(route('services.show', $id)); ?>" data-title="View Service Detail" class='show-modal btn btn-default btn-sm'>
        <i class="fa fa-eye"></i>
    </a>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('service_edit')): ?>
    <a href="javascript:void(0);" data-action="<?php echo e(route('services.edit', $id)); ?>" data-title="Edit Service" class='btn btn-default btn-sm show-modal'>
        <i class="fa fa-edit"></i>
    </a>
    <?php endif; ?>
   
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('service_delete')): ?>
    <?php echo Form::button('<i class="fa fa-trash"></i>', [
        'type' => 'submit',
        'class' => 'btn btn-danger btn-sm',
        'onclick' => 'return confirm("Are you sure, want to delete this service ?")'

    ]); ?>

    <?php endif; ?>
</div>
<?php echo Form::close(); ?>

<?php /**PATH D:\projects\maksoft\saadahsan\resources\views/services/datatables_actions.blade.php ENDPATH**/ ?>