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

<div class='btn-group'>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('source_view')): ?>
    <a href="javascript:void(0);" data-title="View"
    data-action="<?php echo e(route('sources.show',$id)); ?>"  class='btn btn-default btn-sm show-modal'>
        <i class="fa fa-eye"></i>
    </a>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('source_edit')): ?>
    <a href="javascript:void(0);" data-title="Edit" data-action="<?php echo e(route('sources.edit', $id)); ?>" 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('source_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?').'")'

    ]); ?>

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

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