import React from 'react'

function InvoiceKPI({num}) {
  
   
  return (
   
        <div className="card">
        <div className="card-header">
                    <h4 className="card-title">Previous Invoices</h4>
                </div>
        <div className="card-body ">
           
        <div className="invoice-table">
                                    <div className="table-responsive">
                                        <table className="table">
                                            <thead>
                                                <tr>
                                                    
                                                    <th>Client</th>
                                                    <th>Amount</th>
                                                    <th>Status</th>
                                                    <th>Due</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    
                                                    <td>
                                                        
                                                        Weston P. Thomas
                                                    </td>
                                                    <td>₹7000</td>
                                                    <td>
                                                        <span className="badge px-3 py-2 bg-success">
                                                            Paid
                                                        </span>
                                                    </td>
                                                    <td>February 16, 2021</td>
                                                </tr>
                                                <tr>
                                                    
                                                    <td>
                                                       
                                                        William D. Gibson
                                                    </td>
                                                    <td>₹650</td>
                                                    <td>
                                                        <span className="badge px-3 py-2 bg-success">
                                                            Paid
                                                        </span>
                                                    </td>
                                                    <td>December 21, 2021</td>
                                                </tr>


                                               
                                                <tr>
                                                    
                                                    <td>
                                                      
                                                        Terry P. Camacho
                                                    </td>
                                                    <td>₹465</td>
                                                    <td>
                                                        <span className="badge px-3 py-2 bg-danger">
                                                            Cancel
                                                        </span>
                                                    </td>
                                                    <td>November 26, 2021</td>
                                                </tr>

                                                <tr>
                                                    
                                                    <td>
                                                      
                                                        Terry P. Camacho
                                                    </td>
                                                    <td>₹465</td>
                                                    <td>
                                                        <span className="badge px-3 py-2 bg-danger">
                                                            Cancel
                                                        </span>
                                                    </td>
                                                    <td>November 26, 2021</td>
                                                </tr>
                                                {num?<React.Fragment>
                                                    <tr>
                                                   
                                                    <td>
                                                      
                                                        Terry P. Camacho
                                                    </td>
                                                    <td>₹645</td>
                                                    <td>
                                                        <span className="badge px-3 py-2 bg-danger">
                                                            Cancel
                                                        </span>
                                                    </td>
                                                    <td>November 26, 2021</td>
                                                </tr>
                                               
                                                </React.Fragment>:null}
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
        </div>
        </div>

  )
}

export default InvoiceKPI