<form method="post" action="{{ path('vendor_delete', {'id': vendor.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
    <input type="hidden" name="_token" value="{{ csrf_token('delete' ~ vendor.id) }}">
     <button class="btn" style="margin-bottom:5px;">
        <a role="tab" class="nav-link">
            <span><i class="fa fa-trash-o"> Delete</i></span>
        </a>
    </button>
</form>
