Laravel: How to use Sweet Alert 2 instead of Confirmation Message while Deletion?

76 Views Asked by At

I have Created a Front end Page where user can delete a row from the table. I have added the Confirmation message as:

<a rel="tooltip" class="btn btn-danger btn-link" href="{{action('outboundController@destroy',$row['shipment_id'])}}" onclick = "if (! confirm('Confirm: Press OK to delete the Entry. Shipment ID: {{$row['shipment_id']}}')) { return false; }"style="color: red;">
        <i class="material-icons">close</i></a>

Now I want to replace the simple confirm message with Sweet Alert 2. How to do so?

0

There are 0 best solutions below