    <div class="card card-outline-info">
    <div class="row">
    <div class="card-body">
            <h3 class="card-title">Plot Summary</h3>
            <div class="row">
              <div class="col-md-3" id="registryAmount">
                  <div class="form-group">
                      <label class="control-label font-bold" for="registry_amount">Name : </label>
                      <span class="" id="registry_amount">{{ $plot->name }}</span>
                  </div>
              </div>
              <div class="col-md-3" id="registryAmount">
                  <div class="form-group">
                      <label class="control-label font-bold" for="registry_amount">Area : </label>
                      <span class="" id="registry_amount">{{ $plot->area }}</span>
                  </div>
              </div>
              <div class="col-md-3" id="registryAmount">
                  <div class="form-group">
                      <label class="control-label font-bold" for="registry_amount">Dimension : </label>
                      <span class="" id="registry_amount">{{ $plot->dimension }}</span>
                  </div>
              </div>
              <div class="col-md-3" id="registryAmount">
                  <div class="form-group">
                      <label class="control-label font-bold" for="registry_amount">Project Name : </label>
                      <span class="" id="registry_amount">{{ $plot->projectName }}</span>
                  </div>
              </div>
              <div class="col-md-3" id="registryAmount">
                  <div class="form-group">
                      <label class="control-label font-bold" for="registry_amount">Sector Name : </label>
                      <span class="" id="registry_amount">{{ $plot->sectorName }}</span>
                  </div>
              </div>
              <div class="col-md-3" id="registryAmount">
                  <div class="form-group">
                      <label class="control-label font-bold" for="registry_amount">Block Name : </label>
                      <span class="" id="registry_amount">{{ $plot->blockName }}</span>
                  </div>
              </div>
              <div class="col-md-3" id="registryAmount">
                  <div class="form-group">
                      <label class="control-label font-bold" for="registry_amount">Status : </label>
                      <span class="" id="registry_amount">{{ ucfirst($plot->status) }}</span>
                  </div>
              </div>
            </div>
            <h3 class="card-title">Deal Summary</h3>
            <div class="row" id="full_payment">
              @foreach($invoices as $invoice)
                <div class="col-md-3" id="registryAmount">
                    <div class="form-group">
                        <label class="control-label font-bold" for="registry_amount">{{ $invoice->comment }} : </label>
                        <span class="" id="registry_amount">{{ IND_money_format($invoice->amount, 2) }}</span>
                        <span class="label label-{{($invoice->status)?'info':'warning'}}" style="color:#fff;">[{{ ($invoice->status)?'Paid on '.$invoice->paid_on:'Pending' }}]</span>
                    </div>
                </div>
              @endforeach
                <div class="col-md-3" id="registryAmount">
                    <div class="form-group">
                        <label class="control-label font-bold" for="registry_amount">Total Payment Done : </label>
                        <span class="" id="registry_amount">{{ IND_money_format($deal->paid_amount, 2) }}</span>
                    </div>
                </div>
                <div class="col-md-3" id="registryAmount">
                    <div class="form-group">
                        <label class="control-label font-bold" for="registry_amount">Total Due Amount : </label>
                        <span class="" id="registry_amount">{{ IND_money_format($deal->due_amount, 2) }}</span>
                    </div>
                </div>
            </div>
      <h3 class="card-title">Payments Done</h3>
        <div class="x_content">
          <table id="datatable-fixed-header" class="table table-striped table-bordered">
            <thead>
              <tr>
                <th>Amount</th>
                <th>Remark</th>
                <th>Status</th>
                <th>Created at</th>
                <th>Action</th>
              </tr>
            </thead>


            <tbody>
            @foreach ($payments as $payment)
              <tr>
                <td>{{ IND_money_format($payment->amount) }}</td>
                <td>{!! str_replace('/////////////', '<br />', $payment->comment) !!}</td>
                <td>{{ ($payment->status==1)?'Approved':'Pending' }}</td>
                <td>{{ $payment->created_at }}</td>
                <td>
                  @if($payment->status == 0)
                    <span class="label label-light-warning">Pending</a>
                  @else
                    <span class="bg-{{($payment->status == 1)?'info':'danger'}}" style="color: #fff;">{{($payment->status == 1)?'Paid':'Cancelled/Revoked'}} on {{$payment->paid_on}}</span>
                    @if($payment->status == 1)
                      <span class="label label-light-success">Approved</span>
                    @elseif($payment->status == 2)
                      <span class="label label-light-danger">Cancelled</span>
                    @elseif($payment->status == 3)
                      <span class="label label-light-danger">Revoked</span>
                    @endif
                  @endif
                </td>
              </tr>
            @endforeach
            </tbody>
          </table>
        </div>
      </div>
    </div>
<a class="btn btn-info" href="{{url('/').'/payments/addpayments/'.$deal->id}}">View Deal</a>
</div>
