1

i am trying to create a delete and edit button so that i can data from list. please hel how i can do it. in laravel 5.4.Below is the interface of the application and the buttons codes. help on how the edit and delete will work.

<td><a class="btn btn-primary btn-sm" href="#">
                <i class="fa fa-pencil-square-o fa-lg" aria-hidden="true"></i> Edit</a> <!-- </td> -->
            <!-- <td> --><a class="btn btn-danger btn-sm" href="{{route('contacts.index', $contacts->id)}}" onclick="return confirm('Are you sure to delete the contact');">
                <i class="fa fa-trash-o fa-lg" aria-hidden="true"></i> Delete</a></td>
        </tr>

enter image description here

0 Answers0