File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 22
33@forelse ($redirections as $key => $redirect )
44<form action =" {{ route (' redirection.destroy' , $redirect -> id ) } }" method =" POST" onsubmit =" confirm('Are you sure?');" >
5- @method (' DELETE ' )
6- @csrf
5+ {!! method_field (' DELETE ' ) ! !}
6+ {!! csrf_field () ! !}
77 <a href =" {{ route (' redirection.edit' , $redirect ) } }" >Edit </a > |
88 <button type =" submit" >Delete</button >
9- {{-- <a href="#" onclick="confirmMessage('Are you sure?');return false">Delete </a> --}}
109 {{ $key + 1 } } . {{ $redirect -> from_url } } => {{ $redirect -> to_url } }
1110</form >
1211@empty
1514
1615<a href =" {{ route (' redirection.create' ) } }" >Create</a >
1716
18- {{-- <script>
19- function confirmMessage(msg) {
20- if (confirm(msg)) {
21- var form = document.getElementById('deleteform');
22- form.submit()
23- }
24- }
25- </script> --}}
26-
You can’t perform that action at this time.
0 commit comments