sudo apt update && sudo apt upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div | |
x-data="{ | |
model: @entangle($attributes->wire('model')), | |
}" | |
x-init=" | |
select2 = $($refs.select) | |
.not('.select2-hidden-accessible') | |
.select2({ | |
theme: 'bootstrap', | |
dropdownAutoWidth: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bsPopup(title = 'Alert', msg = 'Are you sure?') { | |
return new Promise((resolve, reject) => { | |
const autoId = 'modal' + new Date().getTime(); | |
const modal = ` | |
<div class="modal fade" id="${autoId}" tabindex="-1"> | |
<div class="modal-dialog modal-dialog-centered" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title"><i class="fa fa-exclamation-triangle mr-1"></i> ${title}</h5> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |