This is my code :
@php
$id = 1;
@endphp
<form action="{{route('upload.submit_rencana_kerja_bulanan',$id)}}" method="post">
{{ csrf_field() }}
<!-- Begin body content -->
<div class="card-body">
{{-- TABLE --}}
<!-- Begin body content -->
<div class="table-responsive">
<table data-toggle="table" data-height="460" data-width="600" data-search="true" data-visible-search="true" data-show-columns="true"
data-show-footer="false">
<thead>
<tr>
<th data-sortable="true">Nomor</th>
<th data-sortable="true">ID</th>
<th data-sortable="true">Customer</th>
<th data-sortable="true">Outlet</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($masterCustomer as $masterCustomers)
<tr>
<td>{{$nomorTable2}}</td>
<td>{{$masterCustomers->id}}</td>
<td>{{$masterCustomers->customer_name}}</td>
<td>{{$masterCustomers->customer_outlet}}</td>
<td class="text-center">
<a href="{{url('add_customer/'. $masterCustomers->id . '/' . $emp_name . '/' . $date . '/rencana_kerja_bulanan')}}">
<button class="btn btn-success" type="submit">
Add
</button>
</a>
</td>
</tr>
@php
$nomorTable2++;
@endphp
@endforeach
</tbody>
</table>
<!-- end of body content -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
{{-- <button id="btnsubmit" class="btn btn-success" type="submit">
Submit Data
</button> --}}
</div>
</div>
</div>
</div>
{{-- SAMPAI SINI MODALNYA --}}
</div>
</form>
i'm want to change the $id = 1; value to what user will choose in the table after clicking the button form the table
can you change the value by this method?
cant add more code , because stackoverflow not allowing me to do that , to much code it said