<template>
  <div
    class="PaymentDetails tw-bg-neutrals-0 tw-rounded-[20px] tw-text-base-primary tw-p-5 tw-h-auto"
  >
    <div class="tw-body-3 tw-font-bold tw-mb-[11.5px]">{{ $t('Payment Details') }}</div>
    <div v-if="PaymentDetails.length == 1" class="tw-mb-[10px]">
      <div class="tw-py-[20px] t14 tw-font-bold tw-inline-block tw-mr-[40px]">
        <div class="tw-mb-[12px]">{{ $t('Payment Method') }}</div>
        <div class="tw-mb-[12px]">{{ $t('Payment Terms') }}</div>
        <div class="tw-mb-[12px]">{{ $t('Payment Date') }}</div>
        <div>{{ $t('Total Amount') }}</div>
      </div>
      <div class="t14 tw-inline-block">
        <div class="tw-mb-[12px]">
          {{ PaymentDetails[0].payment_type }}
        </div>
        <div class="tw-mb-[12px]">
          {{ $t('Full Payment') }}
        </div>
        <div class="tw-mb-[12px]">
          {{ PaymentDetails[0].modify_at }}
        </div>
        <div>
          {{ PaymentDetails[0].amount }}{{ Currency }}
        </div>
      </div>
    </div>
    <div
      class="tw-grid tw-grid-rows-[40px_40px_auto] tw-gap-[10px_12px] md:tw-grid-cols-[129px_175px_auto] md:tw-grid-rows-none md:tw-items-center md:tw-gap-[24px]"
    >
      <button
        class="t14 tw-text-complementary-1 tw-p-[11px] tw-font-bold tw-bg-[#EFF3FF] tw-max-w-[129px] tw-rounded-[10px] hover:tw-text-[#A0B5FF]"
        @click="$modal.show('BankingDetails')"
      >
        {{ $t('Banking Details') }}
      </button>
      <button
        class="button-border t14 tw-text-primary-1 tw-p-[11px] tw-font-bold tw-border tw-border-solid tw-rounded-[10px] tw-border-primary-1 tw-max-w-[175px] hover:tw-bg-primary-3"
        @click="$modal.show('UploadRemittanceSlip')"
      >
        {{ $t('Upload Remittance Slip') }}
      </button>
      <div class="t14 tw-font-normal tw-text-[#EE9546]">
        {{ $t('Please upload your remittance slip as soon as the bill has been transferred.') }}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: {
    PaymentDetails: {
      type: Array,
    },
    Currency:{
      type:String,
    },
  },
};
</script>
<style lang="scss" scoped></style>
