<!DOCTYPE html>
<html lang="en">
  
<head>
    <%- include('./partials/head'); -%>
    
    <style>
      :root {
    --building-color: #FF9800;
    --house-color: #0288D1;
    --shop-color: #7B1FA2;
    --warehouse-color: #558B2F;
    }
    


    /*
    * Property styles in unhighlighted state.
    */
    .property {
    align-items: center;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
    }

    .property::after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 95%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease-out;
    width: 0;
    z-index: 1;
    }

    .property .icon {
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
    }

    .property .icon svg {
    height: 20px;
    width: auto;
    }

    .property .details {
    display: none;
    flex-direction: column;
    flex: 1;
    }

    .property .address {
    color: #636363;
    font-size: 12px;
    margin-bottom: 3px;
    margin-top: 0px;
    }

    .property .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
    }

    .property .features > div {
    align-items: center;
    background: #F5F5F5;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 5px;
    }

    /*
    * Property styles in highlighted state.
    */
    .property.highlight {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    height: 90px;
    padding: 8px 15px;
    width: auto;
    }

    .property.highlight::after {
    border-top: 9px solid #FFFFFF;
    }

    .property.highlight .details {
    display: flex;
    }

    .property.highlight .icon svg {
    width: 50px;
    height: 50px;
    }

    .property .bed {
    color: #FFA000;
    }

    .property .bath {
    color: #03A9F4;
    }

    .property .size {
    color: #388E3C;
    }

    /*
    * House icon colors.
    */
    .property.highlight:has(.fa-house) .icon {
    color: var(--house-color);
    }

    .property:not(.highlight):has(.fa-house) {
    background-color: var(--house-color);
    }

    .property:not(.highlight):has(.fa-house)::after {
    border-top: 9px solid var(--house-color);
    }

    /*
    * Building icon colors.
    */
    .property.highlight:has(.fa-building) .icon {
    color: var(--building-color);
    }

    .property:not(.highlight):has(.fa-building) {
    background-color: var(--building-color);
    }

    .property:not(.highlight):has(.fa-building)::after {
    border-top: 9px solid var(--building-color);
    }

    /*
    * Warehouse icon colors.
    */
    .property.highlight:has(.fa-warehouse) .icon {
    color: var(--warehouse-color);
    }

    .property:not(.highlight):has(.fa-warehouse) {
    background-color: var(--warehouse-color);
    }

    .property:not(.highlight):has(.fa-warehouse)::after {
    border-top: 9px solid var(--warehouse-color);
    }

    /*
    * Shop icon colors.
    */
    .property.highlight:has(.fa-shop) .icon {
    color: var(--shop-color);
    }

    .property:not(.highlight):has(.fa-shop) {
    background-color: var(--shop-color);
    }

    .property:not(.highlight):has(.fa-shop)::after {
    border-top: 9px solid var(--shop-color);
    }
</style>

</head>
<body onload="startTime()">
    <%- include('./partials/header_sidebar'); -%>
    
    <!-- tap on top starts-->

        <!-- Page Sidebar Ends-->
        <div class="page-body">
          <div class="container-fluid">
            <div class="page-title">
              <div class="row">
                <div class="col-sm-6">
                  <h3><%= lan.Driver %> <%= lan.Location %></h3>
                </div>
                <div class="col-sm-6">
                  <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="/index"><i data-feather="home"></i></a></li>
                    <li class="breadcrumb-item"><%= lan.Dashboard %></li>
                    <li class="breadcrumb-item active"><%= lan.Driver %> <%= lan.Location %></li>
                  </ol>
                </div>
              </div>
            </div>
          </div>
          <!-- <%= lan.container_fluid_starts %>-->
          <div class="container-fluid">
            <div class="row">
              <div class="col-sm-12">
                <div class="card">
                  <div class="card-body">
                    <div class="row">
                      <div class="col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
                        <label class="col-form-label"><%= lan.Zone %> <%= lan.List %></label>
                        <select class="js-example-basic-single" id="zonedlist" required>
                          <% zone_data.forEach((zdata) => { %>
                            <option value="<%= zdata.id %>"><%= zdata.name %></option>
                          <% }) %>
                        </select>
                      </div>
                      <div class="col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
                        <label class="col-form-label"><%= lan.Vehicle %> <%= lan.List %></label>
                        <select class="js-example-basic-single" id="zonevehicle" required>
                          <option value="0"><%= lan.All %> <%= lan.Vehicle %></option>
                          <% vehicle.forEach((vdata) => { %>
                            <option value="<%= vdata.id %>"><%= vdata.name %></option>
                          <% }) %>
                        </select>
                      </div>
                      <div class="col-12">
                        <div id="map-canvas-edit" style="height: 85vh; width: 100%;"></div>
                        <textarea name="zone_lat_lon" id="add_lat_lon" cols="30" rows="10" hidden></textarea>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!-- <%= lan.container_fluid_ends %>-->
        </div>

        
        <script src="https://maps.googleapis.com/maps/api/js?key=<%= general.google_map_key %>&libraries=drawing&callback=initMap"></script>
        <script src="../../js/map_driver_location.js"></script>
        
        <%- include('./partials/footer'); -%>
        <%- include('./partials/script'); -%>
        <script src="/socket.io/socket.io.js"></script>
        <script src="../socket_function.js"></script>
  </body>
</html>