

<b>Pick one Open File</b>
<div class="table-responsive">
                                <table id="myTable" class="table table-striped">
                                    <thead>
                                        <tr>
                                            
                                            <th></th>
                                            
                                            <th>Project</th>
                                            <th>Package Name</th>
                                            <th>Unit #</th>

                                            <th>Dealer Name</th>
                                            <th>Dealer Code</th>
                                          

                                            <th>Cancel Date</th>
                                            <th>Cancel Fee(pkr)</th>
                                            <th>Request Status</th>
                                            
                                        </tr>
                                    </thead>
                                    <tbody>

                                        @foreach ($allopenfile as $openfile)
                                        <tr> 
                                            @if(old('openfile_dealer_info_id') == $openfile->id)
                                            <td><input id="openfile_dealer_info_id" style="zoom: 1.4;" type="radio" checked="" required name='openfile_dealer_info_id' value='{{$openfile->id}}'   onchange="getAmount(this)" ></td>
                                          @else
                                           <td><input id="openfile_dealer_info_id" style="zoom: 1.4;" type="radio" required name='openfile_dealer_info_id'  value='{{$openfile->id}}'  onchange="getAmount(this)"></td>
                                          @endif
                                            


                                          <td>{{ $openfile->inventory->multiProject ? $openfile->inventory->multiProject->name : '' }}</td>
                                          <td>
                                              @if ($openfile->dealerPackage)
                                                  <a
                                                      href='{{ route('openfile.detail', $openfile->dealerPackage->id) }}'>
                                                      {{ $openfile->dealerPackage->package ? $openfile->dealerPackage->package->name : '' }}
                                                  </a>
                                              @endif

                                          </td>
                                          <td>{{ $openfile->inventory->unit_number }}</td>
                                          <td>{{ $openfile->dealer->name }}</td>
                                          <td>{{ $openfile->dealer->code }}</td>





                                          <td>{{ date('d-m-Y', strtotime($openfile->cancelOpenFile->created_at)) }}
                                          </td>
                                          <td>{{ $openfile->cancelOpenFile->fee }} </td>

                                          @if ($openfile->cancelOpenFile->status == 0)
                                              <td><span class="label label-primary"
                                                      style="background-color:#4871c6;;">Pending</span></td>
                                          @elseif($openfile->cancelOpenFile->status == 1)
                                              <td><span class="label label-success">Approved</span></td>
                                          @else
                                              <td></td>
                                          @endif

                                        </tr>
                                    @endforeach



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

  