<?php if(\App\Facades\General::isSchoolAdmin() || \App\Facades\General::isSuperAdmin()): ?>
<?php if(isset($ajax) && $ajax == true): ?>
    <button class="btn btn-danger btn-xs __sms__delete__record"
            data-id="<?php echo e($model->id); ?>"
            style="margin: 0;"
            title="<?php echo e(trans('common.delete')); ?>">
        <i class="fa fa-trash-o "></i>
    </button>
<?php else: ?>
    <?php if(!isset($message)): ?>
        <?php
            $message = trans('common.delete_alert')
        ?>
    <?php endif; ?>
    <?php echo Form::open(['name'=>'delete','method'=> 'delete','class'=> 'btn btn-sm btn-clean btn-icon btn-icon-md', 'style' => 'padding: 0;border: 0;' , 'route' => [$route, $model->id] ]); ?>

    <button class="btn btn-danger btn-xs" style="margin: 0;"
            onclick="if (confirm('<?php echo e($message); ?>')) { $(this).closest('form').submit(); }"
            title="<?php echo e(trans('common.delete')); ?>">
        <i class="fa fa-trash-o "></i>
    </button>
    <?php echo Form::close(); ?>

<?php endif; ?>
<?php endif; ?>
<?php /**PATH /var/www/html/sms/resources/views/layouts/actions/delete.blade.php ENDPATH**/ ?>