<template>
    <v-layout column fill-height>
    <one-dialog-info :status="xinfo" :msg="xmsginfo"  @close-dialog-info="closeInfo()"></one-dialog-info>

            <v-toolbar  class="pa-1 mb-2" color="blue lighten-3" dark height="50px">
              <v-toolbar-title>DAFTAR REPORT</v-toolbar-title>
              <v-spacer></v-spacer>
              <v-select   v-model="Select" :items="items"   :rules="[v => !!v || 'Item is required']" label="Group Report" ></v-select>

                <v-spacer></v-spacer>
                <v-text-field   v-model="search" :rules="nameRules"   label="Search" ></v-text-field>
            </v-toolbar>

     <v-card class="pa-3 p-left-side grow" grow >
       <div style=" font-weight: bold; font-size: large;">GROUP FRONT OFFICE</div>
     <v-container grid-list-md text-md-center fluid fill-height>

     <v-card  color="dark blue lighten-3" dark max-width="200" style="height: 250px" @click.stop="drawer = !drawer">
    <v-card-title primary-title class="justify-center" >
      <span  >FO-001</span>
    </v-card-title>
 <v-divider ></v-divider>
    <v-card-text   class="subheading"  >
     Laporan Pasien Berdasarkan Tanggal Pemeriksaan
      </v-card-text>
<v-divider ></v-divider>
      <v-card-text class ="caption">
       Laporan Pasien Berdasarkan Tanggal Pemeriksaan
        </v-card-text>
 </v-card>

 <v-card class="ml-3" color="dark blue lighten-3" dark max-width="200" style="height: 250px" @click.stop="drawer = !drawer">
 <v-card-title primary-title class="justify-center" >
  <span  >FO-002</span>
 </v-card-title>
 <v-divider dark></v-divider>
 <v-card-text   class="subheading"  >
 Laporan dokter  Berdasarkan Tanggal Pemeriksaan
  </v-card-text>
 <v-divider ></v-divider>
  <v-card-text class ="caption">
   Laporan Pasien Berdasarkan Tanggal Pemeriksaan
    </v-card-text>
 </v-card>

 <v-card class="ml-3" color="dark blue lighten-3" dark max-width="200"style="height: 250px" @click.stop="drawer = !drawer">
 <v-card-title primary-title class="justify-center" >
  <span  >FO-003</span>
 </v-card-title>
 <v-divider dark></v-divider>
 <v-card-text   class="subheading"  >
 Laporan dokter  Berdasarkan Tanggal Pemeriksaan
  </v-card-text>
 <v-divider ></v-divider>
  <v-card-text class ="caption">
   Laporan Pasien Berdasarkan Tanggal Pemeriksaan
    </v-card-text>
 </v-card>

 <v-card class="ml-3" color="dark blue lighten-3" dark max-width="200"style="height: 250px" @click.stop="drawer = !drawer">
 <v-card-title primary-title class="justify-center" >
  <span  >FO-004</span>
 </v-card-title>
 <v-divider dark></v-divider>
 <v-card-text   class="subheading"  >
 Laporan dokter  Berdasarkan
  </v-card-text>
 <v-divider ></v-divider>
  <v-card-text class ="caption">
   Laporan Pasien Berdasarkan Tanggal Pemeriksaan
    </v-card-text>
 </v-card>

</v-container>
 </v-card>

    <v-navigation-drawer v-model="drawer" :mini-variant="mini" fixed app    temporary right :width="350">
          <v-list class="pa-1">

            <v-list-tile v-if="mini" @click.stop="mini = !mini">

            </v-list-tile>
              <v-list-tile-content>
                <v-list-tile-title><h2>Parameter</h2></v-list-tile-title>
              </v-list-tile-content>
              </v-list-tile>
          </v-list>

          <v-list class="pt-0" dense>
          </br>
            <v-divider light></v-divider>

                  <v-card  style="padding:10px;" >
                        <v-flex>
                                  <v-menu
                                    ref="menu1"
                                    v-model="menu1"
                                    :close-on-content-click="false"
                                    :nudge-right="40"
                                    lazy
                                    transition="scale-transition"
                                    offset-y
                                    full-width
                                    max-width="290px"
                                    min-width="290px"
                                  >
                                    <template v-slot:activator="{ on }">
                                      <v-text-field
                                        v-model="dateFormatted"
                                        label="Start Date"
                                        hint="MM/DD/YYYY format"
                                        persistent-hint
                                        @blur="date = parseDate(dateFormatted)"
                                        v-on="on"
                                      ></v-text-field>
                                    </template>
                                    <v-date-picker v-model="date" no-title @input="menu1 = false"></v-date-picker>
                                  </v-menu>
                                </v-flex> </br>
             <v-divider light></v-divider>
                                <v-flex >
                                          <v-menu
                                            ref="menu1"
                                            v-model="menu1"
                                            :close-on-content-click="false"
                                            :nudge-right="40"
                                            lazy
                                            transition="scale-transition"
                                            offset-y
                                            full-width
                                            max-width="290px"
                                            min-width="290px"
                                          >
                                            <template v-slot:activator="{ on }">
                                              <v-text-field
                                                v-model="dateFormatted"
                                                label="End Date"
                                                hint="MM/DD/YYYY format"
                                                persistent-hint
                                                @blur="date = parseDate(dateFormatted)"
                                                v-on="on"
                                              ></v-text-field>
                                            </template>
                                            <v-date-picker v-model="date" no-title @input="menu1 = false"></v-date-picker>
                                          </v-menu>
                                        </v-flex>
             </br> <v-divider light></v-divider>

             <v-select
                 v-model="select"
                 :items="items"
                 :rules="[v => !!v || 'Item is required']"
                 label="Item"
                 required
               ></v-select>
             </br> <v-divider light></v-divider>


               <v-btn color="success">Create</v-btn>
                   <v-btn color="error">Cancel</v-btn>

     </v-card >
        </v-navigation-drawer>
     </v-card>


    </v-layout>

</template>

<style scoped>
.v-divider {
    border-color: rgba(90,114,246,1) !important;
}
</style>

<script>
module.exports = {
    data () {
      return {
        drawer: null,
        items: [
          { title: 'Home', icon: 'dashboard' },
          { title: 'About', icon: 'question_answer' }
        ],
        mini: false,
        right: null
      }
    }
  }
</script>
