leenooks/resources/components/button/cancel.blade.php

11 lines
339 B
PHP
Raw Normal View History

2024-07-23 13:50:02 +00:00
<button type="cancel" id="cancel" style="margin-top: 2.0rem !important;" {{ $attributes->class(['btn','btn-sm','btn-danger']) }}>Cancel</button>
@section('page-scripts')
<script type="text/javascript">
$(document).ready(function() {
$('#cancel').on('click',function(item) {
return history.back();
});
});
</script>
@append