All files / components/Admin/AdminOrders/AdminOrder/modals FraudAnalysisModal.vue

0% Statements 0/2
100% Branches 0/0
100% Functions 0/0
0% Lines 0/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105                                                                                                                                                                                                                 
<template>
  <BModal v-model="show" id="fraud-analysis" title="Fraud Analysis" centered>
    <BProgress class="mt-2" :max="100">
      <BProgressBar :value="45 * (6 / 10)" variant="success" />
      <BProgressBar :value="45 * (2.5 / 10)" variant="warning" />
      <BProgressBar :value="45 * (1.5 / 10)" variant="danger" />
    </BProgress>
    <div class="row mb-2">
      <span class="col-4 text-center">LOW</span>
      <span class="col-4 text-center">MEDIUM</span>
      <span class="col-4 text-center">HIGH</span>
    </div>
    <div class="d-flex flex-column">
      <span class="horisontal font-weight-bold position-relative"
        >Indicators</span
      >
      <ul class="d-flex flex-column p-0">
        <li
          v-for="indicator in indicators"
          :key="indicator.title"
          class="
            horisontal
            indicator
            d-flex
            align-items-center
            position-relative
            mb-2
          "
        >
          <BIconDot scale="2" class="mr-2" />
          {{ indicator.title }}
        </li>
      </ul>
    </div>
 
    <template #modal-footer>
      <div class="d-flex flex-column w-100">
        <span class="horisontal font-weight-bold position-relative"
          >Additional information</span
        >
        <div
          class="
            horisontal
            indicator
            d-flex
            align-items-center
            position-relative
            mb-2
          "
        >
          <BIconDot scale="2" class="mr-2" />
          This order was placed from IP address 127.0.0.1
        </div>
      </div>
    </template>
  </BModal>
</template>

<script>
export default {
  name: "FraudAnalysisModal",
  data: () => ({
    show: false,
    indicators: [
      {
        title:
          "Characteristic of this order similat to non-fraudulent orders observed in the past",
        status: true,
      },
      {
        title: "There was 1 payment attempt",
        status: false,
      },
      {
        title: "Payment was made with 1 credit card",
        status: true,
      },
      {
        title:
          "Billing country matches the country from which the order was placed",
        status: true,
      },
    ],
  }),
};
</script>
 
<style scoped>
.horisontal::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  position: absolute;
  background-color: #dee2e6;
}
 
.horisontal.indicator::after {
  bottom: -2px;
}
 
.border-bottom {
  border-bottom: 1px solid #dee2e6;
}
</style>