Print and save button in laravel

How can I add two function which is the print and move the data to another table in a one button?

Please refer to this image.

Here when I click the borrow button the print preview will display only the row data and move the row data to borroweditem table. While the quantity of that item which is in another table will be deducted by 1.

Here’s my view.blade.php

<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Accepted Reservations</h6>
</div>
<div class="card-body">

<div class="table-responsive">
 <table class="table table-bordered tbl_acceptres display" id="dataTable" width="100%" cellspacing="0">
 <thead>
                                                        <tr>
                                                            <th hidden>Id</th>
                                                            <th>Name</th>
                                                            <th>Equipment</th>
                                                            <th>Reservation Date</th>
                                                            <th>Rooms</th>
                                                            <th>Action</th>
                                                         </tr>
                                                    </thead>

<tbody>
                                                         @foreach ($acc as $accdata)

                                                        <tr>
                                                            <td hidden> </td>
                                                            <td>{{ $accdata->name }} </td>
                                                            <td>{{ $accdata->Name_item }}</td>
                                                            <td>{{ $accdata->dt_item }}</td>
                                                            <td>{{ $accdata->room_item }}  </td>
                                                            <td>

                                                               <button type="submit" class="btn btn-primary btn-sm" onClick="window.print()">Borrow <i class="fas fa-chevron-right"></i></button>
                                                            </td>
                                                        </tr>

                                                     @endforeach
                                                    </tbody>
 </table>
 </div>
</div>