<div class="fixed z-10 overflow-y-auto top-0 w-full left-0 hidden" id="modal">
<div
class="flex items-center justify-center min-height-100vh pt-4 px-4 pb-20 text-center sm:block sm:p-0"
>
<div class="fixed inset-0 transition-opacity">
<div class="absolute inset-0 bg-gray-900 opacity-75" />
</div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen"
>​</span
>
<div
class="inline-block align-center bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"
role="dialog"
aria-modal="true"
aria-labelledby="modal-headline"
>
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<label>Name</label>
<input type="text" class="w-full bg-gray-100 p-2 mt-2 mb-3" />
<label>Url</label>
<input type="text" class="w-full bg-gray-100 p-2 mt-2 mb-3" />
</div>
<div class="bg-gray-200 px-4 py-3 text-right">
<a
href="#"
class="py-2 px-4 bg-gray-500 text-white rounded hover:bg-gray-700 mr-2"
onclick="toggleModal()"
>
Cancel</a
>
<button
type="button"
class="py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-700 mr-2"
>
<i class="fas fa-plus"></i> Create
</button>
</div>
</div>
</div>
</div>
<a
href="#"
class="mr-2 inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
onclick="toggleModal()"
>Show Modal</a>
function toggleModal() {
document.getElementById('modal').classList.toggle('hidden')
}
- download link
{{ route('certificates.download', $certs->id) }}