HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/buyercall/assets/vue/widgets/PartnershipTable/PartnershipUsage.vue
<template>
  <div class="row justify-content-center">
    <div class="col-xl-10">
      <div class="card">
        <div class="card-body">
          <h4 class="card-title">Partnership Usage</h4>
          <p class="card-title-desc">
            A quick overview of partnership's usage.
          </p>
          <div class="table-responsive">
            <table class="table table-bordered border-primary mb-0">
              <thead class="table-light">
                <tr>
                  <th></th>
                  <th>Current Month's Total</th>
                  <th>Last Month's Total</th>
                  <th>Total</th>
                </tr>
              </thead>
              <tbody>
                <tr v-for="(v, index) in usage" :key="index">
                  <th scope="row" class="table-light">{{ v.label }}</th>
                  <td>{{ v.currentMonthTotal }}</td>
                  <td>{{ v.lastMonthTotal }}</td>
                  <td>{{ v.total }}</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    usage: {
      type: Array,
      required: false,
    },
  },
};
</script>