<template>
  <div class="q-pa-sm bg-white">
    <div class="row">
      <div class="col-12 col-md-12 col-sm-12 col=xs-12">
        <div class="text-h5 q-pb-md">My Requests</div>
        <q-card class="my-card">
          <q-markup-table>
            <thead>
              <tr>
                <th class="text-left">DATE</th>
                <th class="text-right">STUDENT NAME</th>
                <th class="text-right">STATUS</th>
                <th class="text-right">EXPIRY DATE</th>
                <th class="text-right">ACTION</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td class="text-left">Mon, Jan 13, 2020</td>
                <td class="text-right">Asim Khan</td>
                <td class="text-right">
                  <q-badge class="q-pa-xs" color="secondary">Student Enrolled</q-badge>
                </td>
                <td class="text-right">Mon, Jan 15, 2020</td>
                <td class="text-right">
                  <q-icon
                    clickable
                    size="sm"
                    @click="dialog = true"
                    class="text-blue-5 hoverable cursor-pointer"
                    name="visibility"
                  />
                </td>
              </tr>
              <tr>
                <td class="text-left">Mon, Jan 13, 2020</td>
                <td class="text-right">Asim Khan</td>
                <td clickable class="text-right">
                  <q-badge class="q-pa-xs" color="negative">Inactive</q-badge>
                </td>
                <td class="text-right">Mon, Jan 15, 2020</td>
                <td class="text-right">
                  <q-icon
                    clickable
                    size="sm"
                    class="text-blue-5 hoverable cursor-pointer"
                    name="visibility"
                  />
                </td>
              </tr>
              <tr>
                <td class="text-left">Mon, Jan 13, 2020</td>
                <td class="text-right">Asim Khan</td>
                <td class="text-right">
                  <q-badge class="q-pa-xs" color="warning">Panding</q-badge>
                </td>
                <td class="text-right">Mon, Jan 15, 2020</td>
                <td class="text-right">
                  <q-icon
                    clickable
                    size="sm"
                    class="text-blue-5 hoverable cursor-pointer"
                    name="visibility"
                  />
                </td>
              </tr>
            </tbody>
          </q-markup-table>
        </q-card>
      </div>
    </div>
    <q-dialog v-model="dialog">
      <q-card style="width: 700px; max-width: 80vw;">
        <q-card-section class="row items-center q-pb-none">
          <div class="text-h6 text-blue-6">Course wants to connect</div>
          <q-space />
          <q-btn icon="close" flat round dense v-close-popup />
        </q-card-section>
        <q-card-section class="row">
          <div class="col-12 col-md-12 q-pa-sm">
            <div class="text-bold text-grey-8 q-pb-xs">Message:</div>
            <div
              class="text-body1 text-grey-8 q-pb-xs"
            >Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ad quod eos necessitatibus id, reprehenderit laboriosam perspiciatis?</div>
          </div>
          <div class="col-6 col-md-6 col-xs-6 q-pa-sm">
            <div class="text-bold text-grey-8 q-pb-xs">Country:</div>
            <div class="text-body1 text-grey-8 q-pb-xs">United Arab Emerits</div>
          </div>
          <div class="col-6 col-md-6 col-xs-6 q-pa-sm">
            <div class="text-bold text-grey-8 q-pb-xs">Start Date:</div>
            <div class="text-body1 text-grey-8 q-pb-xs">2020/02/22</div>
          </div>
          <div class="col-12">
            <div class="text-h6 q-py-md">Requested Exams</div>
            <q-markup-table>
              <thead>
                <tr>
                  <th class="text-left">#</th>
                  <th class="text-right">EXAMS</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td class="text-left">01</td>
                  <td
                    class="text-right"
                  >Physician/MOH UAE/General Practitioner (GP)/Internal Medicine/Respiratory</td>
                </tr>
                <tr>
                  <td class="text-left">02</td>
                  <td
                    class="text-right"
                  >Physician/MOH UAE/General Practitioner (GP)/Internal Medicine/Infectious Disease</td>
                </tr>
                <tr>
                  <td class="text-left">03</td>
                  <td
                    class="text-right"
                  >Physician/MOH UAE/General Practitioner (GP)/Internal Medicine/Endocrinology</td>
                </tr>
              </tbody>
            </q-markup-table>
          </div>
          <div class="col-12">
            <div class="text-h6 q-py-md">Requested Timings</div>
            <q-markup-table>
              <thead>
                <tr>
                  <th class="text-left">#</th>
                  <th class="text-right">TIMING</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td class="text-left">01</td>
                  <td class="text-right">Sunday/15:56:00 - 15:56:00</td>
                </tr>
              </tbody>
            </q-markup-table>
          </div>
        </q-card-section>
        <q-card-section>
          <q-btn outline color="white" text-color="secondary" label="Proposal Submited" />
          <q-btn
            class="q-ma-sm"
            outline
            color="white"
            text-color="primary"
            label="Cancel"
            @click="icon = false"
            v-close-popup
          />
        </q-card-section>
      </q-card>
    </q-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      stdname: "",
      dialog: false
    };
  }
};
</script>

<style lang="css" scoped>
.hide {
  display: none;
}

.show {
  display: inline;
}

.hoverable:hover {
  filter: grayscale(100%);
}

@media only screen and (min-width: 0px) and (max-width: 900px) {
  .hide {
    display: inline;
  }

  .show {
    display: none;
  }
}

@media only screen and (min-width: 899px) and (max-width: 1280px) {
}
</style>
