Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form class="delete" action="{{action('Asset\GarduController@destroy', $Gardu['id_gardu'])}}" method="post">
- {{csrf_field()}}
- <input name="_method" type="hidden" value="DELETE">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- <button class="btn btn-danger" type="submit">Delete</button>
- </form>
- @endforeach
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- @endsection
- <script>
- $(".delete").on("submit", function(){
- return confirm("Do you want to delete this item?");
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement