<template>
   <v-layout fil-height column>
      <v-card class="mb-2">
         <v-layout row wrap>
            <v-flex xs12>

               <v-layout>
                  <v-flex xs3 pa-2>
                     <v-layout row wrap>
                        <v-flex xs12>
                           <v-img
                              src="https://www.sgm-inc.com/wp-content/uploads/2014/06/no-profile-male-img.gif"
                              aspect-ratio="1"
                              class="grey lighten-2 elevation-2"
                              >
                        </v-flex>



                  </v-flex>

                  <v-flex xs9>
                     <v-flex xs12>
                        <v-layout>
                           <v-flex xs7 pa-1>
                              <v-text-field
                                 label="Nama"
                                 placeholder=""
                                 :value="p_name"
                                 readonly
                                 ></v-text-field>
                           </v-flex>
                           <v-flex xs5 pa-1>
                              <v-text-field
                                 label="RM"
                                 placeholder=""
                                 :value="p_mr"
                                 readonly
                                 ></v-text-field>
                           </v-flex>
                        </v-layout>

                     </v-flex>

                     <v-flex xs12 pa-1>
                        <v-textarea
                           auto-grow
                           label="Alamat"
                           rows="2"
                           :value="p_address"
                           readonly
                           ></v-textarea>

                     </v-flex>

                     <v-flex xs12>
                        <v-layout>
                           <v-flex xs7 pa-1>
                              <v-text-field
                                 label="Telephon / HP"
                                 placeholder=""
                                 :value="p_phone"
                                 readonly
                                 ></v-text-field>
                           </v-flex>

                           <v-flex xs5 pa-1>
                              <v-text-field
                                 label="Jenis Kelamin"
                                 placeholder=""
                                 :value="p_kelamin"
                                 readonly
                                 ></v-text-field>
                           </v-flex>
                        </v-layout>
                     </v-flex>

                     <v-flex xs12>
                        <v-layout>
                           <v-flex xs7 pa-1>
                              <v-text-field
                                 label="Tanggal Lahir"
                                 placeholder=""
                                 :value="p_dob"
                                 readonly
                                 ></v-text-field>
                           </v-flex>

                           <v-flex xs5 pa-1>
                              <v-text-field
                                 label="Umur"
                                 placeholder=""
                                 :value="p_age"
                                 readonly
                                 ></v-text-field>
                           </v-flex>
                        </v-layout>
                     </v-flex>
                  </v-flex>
                     </v-layout>

            </v-flex>

            <v-flex xs12 >
               <v-layout>
                  <v-flex xs6 pa-2>
                     <one-field-verification
                        :is_error="true"
                        label="Nama sudah sesuai"
                        @x_change="companyChange"
                        value=false
                        ></one-field-verification>
                  </v-flex>

               <v-flex xs6 pa-2>
                  <one-field-verification
                     :is_error="true"
                     label="No RM sudah sesuai  "
                     @x_change="companyChange"
                     value=false
                     ></one-field-verification>
               </v-flex>
               </v-layout>
            </v-flex>


            <v-flex xs12 >
               <v-layout>
                  <v-flex xs6 pa-2>
                     <one-field-verification
                        :is_error="true"
                        label="Alamat sudah sesuai"
                        @x_change="companyChange"
                        value=false
                        ></one-field-verification>
                  </v-flex>

               <v-flex xs6 pa-2>
                  <one-field-verification
                     :is_error="true"
                     label="No HP sudah sesuai  "
                     @x_change="companyChange"
                     value=false
                     ></one-field-verification>
               </v-flex>
               </v-layout>
            </v-flex>


            <v-flex xs12 >
               <v-layout>
                  <v-flex xs6 pa-2>
                     <one-field-verification
                        :is_error="true"
                        label="DOB sudah sesuai"
                        @x_change="companyChange"
                        value=false
                        ></one-field-verification>
                  </v-flex>

               <v-flex xs6 pa-2>
                  <one-field-verification
                     :is_error="true"
                     label="Umur sudah sesuai  "
                     @x_change="companyChange"
                     value=false
                     ></one-field-verification>
               </v-flex>
               </v-layout>
            </v-flex>

      </v-card>

      <v-card >
         <v-subheader>
            DATA DOKTER
         </v-subheader>

         <v-divider></v-divider>
         <v-flex xs12 pa-3>
            <v-text-field
               label="Nama"
               placeholder=""
               :value="p_namedoctor"
               readonly
               ></v-text-field>
         </v-flex>

         <v-flex xs12 pa-3>
            <v-text-field
               label="Alamat Dokter"
               placeholder=""
               :value="p_addressdokter"
               readonly
               ></v-text-field>
         </v-flex>


         <v-flex xs12 >
            <v-layout>
               <v-flex xs6 pa-2>
                  <one-field-verification
                     :is_error="true"
                     label="Nama DOkter sudah sesuai"
                     @x_change="companyChange"
                     value=false
                     ></one-field-verification>
               </v-flex>

            <v-flex xs6 pa-2>
               <one-field-verification
                  :is_error="true"
                  label="Alamat Dokter sudah sesuai  "
                  @x_change="companyChange"
                  value=false
                  ></one-field-verification>
            </v-flex>
            </v-layout>
         </v-flex>



      </v-card>
               </v-layout>

</template>

<style scoped>
</style>

<script>
module.exports = {
   components : {
      'one-field-verification' : httpVueLoader('../../common/oneFieldVerification.vue')
   },

   data() {
      return {
         p_name : 'HERI SURYAWAN ST.',
         p_address : `KPA Regency 221 Klipang\nSendangmulyo Semarang`,
         p_phone : '0898-5945-837',
         p_note : `Pasien ini agak bawel, tidak usah ditanggapi kalau sedang ngomel - ngomel`,
         p_dob : '19-09-1999',
         p_age : '20th 3bl 2hr',
         p_mr : 'MR-1902020001',
         p_kelamin : 'Laki-Laki',
         p_namedoctor : 'Dr. Anwar Sonot',
         p_addressdokter : 'Jl DUrian No 5 Jogjakarta'
      }
   },

   methods : {
      companyChange : function (p){
         console.log(p)
      }
   }
}
</script>
