     @php(
                        $date = date('Y-m-d'))
                        @php($operator ='<=') 
                         @php($types = 'Booking')

                      @foreach($booking_overdues as $rows)
                        <tr>

                          <td><span class="text-muted"></span>{{$loop->iteration}}</td>
                          <td>{{EF::showPlotFormat($rows->booking->plot)}} </td>
                          <td>
                            {{ucfirst($rows->booking->user->name)}} 
                          </td>
                          <td>
                            {{ucfirst($rows->booking->user->contact)}} 
                          </td>
                        
                          <td>
                         {{EF::numberFormat($rows->balance)}}
                          </td>
                          <td>{{EF::dateFormat($rows->getLatestDueDate($date,$operator,$rows->booking_id))}}</td>
                          <td>
                              @if(Auth::user()->hasAnyPermission(['All','Push Sms']))
                            <a style="color: #FFFFFF;" onClick = "pushSms('{{Crypt::encrypt($types)}}','{{Crypt::encrypt($rows->booking_id)}}')" class="btn btn-primary btn-sm">SMS</a>
                            @endif
                          </td>
                        </tr>
                        @endforeach