

<b>Pick one property</b>
<div class="table-responsive">
                                <table id="myTable" class="table table-striped">
                                    <thead>
                                        <tr>
                                            <th></th>
                                            <th>Plot No.</th>
                                             <th>Net Amount of plot</th>
                                            <th>Received Amount</th>
                                            <th>Remaining Amount</th>
                                            <th>Last Payment Date</th>
                                        </tr>
                                    </thead>
                                    <tbody>

                                        @foreach($properties as $property)
                                        <tr>
                                            @if(old('customer_property_id') == $property->id)
                                            <td><input id="property_id" type="radio" checked="" required name='customer_property_id' value='{{$property->id}}' ></td>
                                          @else
                                           <td><input id="property_id" type="radio" required name='customer_property_id' value='{{$property->id}}' ></td>
                                          @endif
                                            <td>{{$property->inventory->plot_number}}</td>
                                            <td>{{number_format($property->net_pay)}} PKR</td>
                                            <td>{{number_format($receivedAmount[$property->id])}} PKR</td>
                                            <td>{{number_format($remainingAmount[$property->id])}} PKR</td>
                                             <td> {{$lastDate[$property->id] ? date('d-m-Y', strtotime($lastDate[$property->id]->receipt_date)) : ''}}</td>

                                             <input type="hidden" id="rem{{$property->id}}" value="{{$remainingAmount[$property->id]}}">

                                        </tr>
                                        @endforeach


                                    </tbody>
                                </table>
                            </div>