-
resources/views/components/forms.blade.php
Open in GitHub// <div class="mb-3"> <label for="birthday">Birthday</label> <div class="input-group"> <span class="input-group-text"> <svg class="icon icon-xs text-gray-600" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd"></path></svg> </span> <input data-datepicker="" class="form-control" id="birthday" type="text" placeholder="dd/mm/yyyy" required> </div> </div> //
-
resources/views/layouts/base.blade.php
Open in GitHub// <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/css/datepicker.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/css/datepicker-bs4.min.css"> // <script src="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/js/datepicker.min.js"></script> //
-
public/assets/js/volt.js
Open in GitHub// var datepickers = [].slice.call(d.querySelectorAll('[data-datepicker]')) var datepickersList = datepickers.map(function (el) { return new Datepicker(el, { buttonClass: 'btn' }); }) //