Fork to use with Tailwind CSS / Turbolinks / Laravel LiveWire
Script:
<script type="text/javascript">
function Datepicker() {
$('#datetimepicker').datetimepicker({
format: 'YYYY-MM-DD H:mm'
}).on("dp.change", function (e) {
@this.set('pay_date', e.date);
});
};
window.addEventListener('turbolinks:load', Datepicker);
</script>
HTML:
<label>
<div wire:ignore>
<input type="text" class="form-input block w-full text-xs" placeholder="{{ __('Pay Date') }}" id="datetimepicker">
</div>
</label>
INFO:
Enter the code between and add height so that nothing obstructs:
<div style="position: relative; height: 90vh;></div>