1<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
2 Open Form
3</button>
4
5<!-- Modal -->
6<div wire:ignore.self class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
7 <div class="modal-dialog" role="document">
8 <div class="modal-content">
9 <div class="modal-header">
10 <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
11 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
12 <span aria-hidden="true close-btn">×</span>
13 </button>
14 </div>
15 <div class="modal-body">
16 <form>
17 <div class="form-group">
18 <label for="exampleFormControlInput1">Name</label>
19 <input type="text" class="form-control" id="exampleFormControlInput1" placeholder="Enter Name" wire:model="name">
20 @error('name') <span class="text-danger error">{{ $message }}</span>@enderror
21 </div>
22 <div class="form-group">
23 <label for="exampleFormControlInput2">Email address</label>
24 <input type="email" class="form-control" id="exampleFormControlInput2" wire:model="email" placeholder="Enter Email">
25 @error('email') <span class="text-danger error">{{ $message }}</span>@enderror
26 </div>
27 </form>
28 </div>
29 <div class="modal-footer">
30 <button type="button" class="btn btn-secondary close-btn" data-dismiss="modal">Close</button>
31 <button type="button" wire:click.prevent="store()" class="btn btn-primary close-modal">Save changes</button>
32 </div>
33 </div>
34 </div>
35</div>