<template>
   <div style="height:30px;
      position:fixed;bottom:0px;
      left:50%;
      color:white;
      font-size:16px;
      padding-bottom:5px;
      font-weight:bold;
      z-index:999;
      margin-left:-150px;width:300px;">
      Pasien hari ini : {{ hari_ini }}  <span style="display:none">, menyusul {{ total - hari_ini}} </span>
   </div>
</template>

 <script>
 module.exports = {
    computed: {
       total() {
          try {
            let pxs = this.$store.state.re_patient.patients
            return pxs.length 
          } catch(e) {
             return 0
          }
       },
       hari_ini() {
          try {
             return this.$store.state.re_patient.total_patient 
             let pxs = this.$store.state.re_patient.patients
             let curdate = moment().format('DD.MM.YYYY')
             let xtot = _.filter(pxs,function(p) { 
                let xdate = moment(p.T_OrderHeaderDate).format('DD.MM.YYYY')
                return curdate == xdate 
             });
             return xtot.length 
          } catch(e) {
             return 0
          }
       }
    },
    methods: {
    }
 }
</script>
