<!DOCTYPE html>
<html lang="en">
<head >
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title> Task Detail</title>

  <!-- GoogleFont: Source Sans Pro -->
    <link rel="stylesheet" href="/css/GoogleFont.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/css/adminlte.min.css">
  <!-- bootstrap.css -->
  <link rel="stylesheet" href="/css/bootstrap.css">
  <!-- fontawesome -->
  <link rel="stylesheet" href="/css/fontawesome.css">
    <!-- jQuery library -->
    <script src="/js/jQuery.js"></script>
    <!-- Popper JS -->
    <script src="/js/Popper.js"></script>
    <!-- Latest compiled JavaScript -->
    <script src="/js/compiled.js"></script>

    <link type="text/css" href="/css/style.css" rel="stylesheet">
    
 <!-- Font Awesome Icons -->
 <link type="text/css" rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css">
 <!-- overlayScrollbars -->
 <link type="text/css" rel="stylesheet" href="/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">

<script src="/js/renderTable.js"></script>
<script src="/js/dataTable.js"></script>
 <link rel="stylesheet" href="/css/dataTable.css">
 
 <script src="/dist/js/select2.min.js"></script>
 <link href="/dist/css/select2.min.css" rel="stylesheet" />
 <link href="/dist/css/select22.min.css" rel="stylesheet" />

 <link rel="stylesheet" href="/css/modal-dialog.css">
 <link rel="stylesheet" href="/css/general.css">

 <script src="/js/taskDetail.js"></script>


</head>


<body class="hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed" >
  <!-- Site wrapper -->
<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-dark">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
           <!-- Navbar Search -->
           <li class="nav-item">
            <a class="nav-link" data-widget="navbar-search" href="#" role="button">
              <i class="fas fa-search"></i>
            </a>
            <div class="navbar-search-block">
              <form class="form-inline">
                <div class="input-group input-group-sm">
                  <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
                  <div class="input-group-append">
                    <button class="btn btn-navbar" type="submit">
                      <i class="fas fa-search"></i>
                    </button>
                    <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                      <i class="fas fa-times"></i>
                    </button>
                  </div>
                </div>
              </form>
            </div>
          </li>
    
    
          <li class="nav-item">
            <a class="nav-link" data-widget="fullscreen" href="#" role="button">
              <i class="fas fa-expand-arrows-alt"></i>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
              <i class="fas fa-th-large"></i>
            </a>
          </li>
        </ul>
      </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">


    <!-- Sidebar -->
    <div class="sidebar">


      <!-- SidebarSearch Form -->
      <div class="form-inline">
        <div class="input-group" data-widget="sidebar-search">
          <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
          <div class="input-group-append">
            <button class="btn btn-sidebar">
              <i class="fas fa-search fa-fw"></i>
            </button>
          </div>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <li class="nav-item">
            <a class="nav-link" href="/" >
              <i class="nav-icon fas fa-house-user" ></i>
              <p>home</p>
            </a>
           </li>   
          <li class="nav-item">
              
               <a href="#" class="nav-link">
                 <i class="nav-icon fas fa-book"></i>
                 <p>
                   Project
                   <i class="fas fa-angle-left right"></i>
                 </p>
               </a>
               <ul class="nav nav-treeview">
                 <li class="nav-item" >
                   <a href="/projects" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Projects</p>
                   </a>
                 </li>

                 <li class="nav-item">
                   <a href="/addProject" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Project Add</p>
                   </a>
                  </li>
                 
                 
               </ul>
             </li>

             <li class="nav-item">
              <a href="/tasks" class="nav-link">
                <i class="nav-icon fas fa-tasks"></i>
                <p>All Tasks</p>
              </a>
             </li>


             <li class="nav-item">
              <a href="#" class="nav-link">
                <i class="nav-icon fas fa-users"></i>
                <p>
                  Participants
                  <i class="fas fa-angle-left right"></i>
                </p>
              </a>
              <ul class="nav nav-treeview">
                <li class="nav-item" >
                  <a href="/clients" class="nav-link">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Clients</p>
                  </a>
                </li>

                <li class="nav-item">
                  <a href="/employees" class="nav-link">
                    <i class="far fa-circle nav-icon"></i>
                    <p>Employees</p>
                  </a>
                 </li>

              </ul>
            </li>


        </ul>
        
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>   </h1>
          </div>

        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">

      <!-- Default box -->
      <div class="card">
        <div class="card-header">
          <h1 class="text-primary  fas fa-paint-brush" id="taskName" ></h1>
          

          <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
              <i class="fas fa-minus"></i>
            </button>
            <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
              <i class="fas fa-times"></i>
            </button>
          </div>
        </div>
        <div class="card-body">
          <div class="row">
            <div class="col-12 col-md-12 col-lg-8 order-2 order-md-1">
              <div class="row">
 
                <div class="col-12 col-sm-6">
                  <div class="info-box bg-light">
                    <div class="info-box-content">
                      <span class="info-box-text text-center text-muted">Status</span>
                      <span class="info-box-number text-center text-muted mb-0" id ="taskStatus"></span>
                    </div>
                  </div>
                </div>
                <div class="col-12 col-sm-6">
                  <div class="info-box bg-light">
                    <div class="info-box-content">
                      <span class="info-box-text text-center text-muted" >Deadline</span>
                      <span class="info-box-number text-center text-muted mb-0" id="taskDeadline"></span>
                    </div>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-12 col-sm-6">
                  <div class="info-box bg-light">
                    <div class="info-box-content">
                      <span class="info-box-text text-center text-muted">Defecalt degree</span>
                      <span class="info-box-number text-center text-muted mb-0" id="defecaltDegree"></span>
                    </div>
                  </div>
                </div>

                <div class="col-12 col-sm-6">
                  <div class="info-box bg-light">
                    <div class="info-box-content">
                      <span class="info-box-text text-center text-muted" >Estimated task duration</span>
                      <span class="info-box-number text-center text-muted mb-0" id="estematedTaskDuration"></span>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-12 col-sm-12">
                <div class="info-box bg-light">
                  <div class="info-box-content">
                    <form>
                      <div class="form-group">
                        <label for="changeTaskStatus">change task Status To</label>
                        <select id="changeTaskStatus" class="form-control custom-select" required>
                          <option>Not Started</option>
                          <option>On Hold</option>
                          <option>Canceled</option>
                          <option>Success</option>
                          <option>In progress</option>
                        </select>

                        <button type="submit" value="Change" id="changeStatus">Change</button>
                      </div>
                     </form>
                  </div>
                </div>
              </div>


              
            </div>


            <div class="col-12 col-md-12 col-lg-4 order-1 order-md-2">
              <h3 class="text-primary">Descreption</h3>
              <p class="text-muted"><span id="taskdescreption"></span></p>
              <br>

              <span hidden id="ipfsCid"></span>
              <button  type="submit" id="showIpfsCid">
                <i class="fas fa-file-export"></i>  Show task file
              </button>

              
              <div class="text-muted">

                <!-- <p class="text-sm lli">Project Leader<span hidden id="projectLeaderID"></span>
                  <b class="d-block" id="flname"></b>
                  <b class="d-block coo">Contact Info</b>
                  <b class="d-block" >Phone Number: <span id="phoneNumber"></span></b>
                  <b class="d-block">Email:   <span id="email"></span> </b>
                </p> -->
                <p class="text-sm lli ">task wage 
                  <b class="d-block" id="taskWage"></b>

                </p>
                <br>
                <p class="text-sm">Create Date Time
                  <b class="d-block" id="createDateTime"></b></p>
                  <p class="text-sm">last Updated
                    <b class="d-block" id="lastUpdated"></b></p>

              <div  action="action"   onclick="window.history.go(-1); return false;" type="submit" >
                    <span hidden id="projectID"></span>
                    <a class="nav-link" id="goToProject" ></a>
                     <i class="fas fa-backward nav-icon"></i>
                     back to project
                   </a>

              </div>
              </div>
           
           
            </div> 
            
            
            
          </div>
        </div>
        <!-- /.card-body -->
      </div>






      <div class="card">
        <div class="card-header">
          <h3 class="card-title"> IPFS</h3>
          

          <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
              <i class="fas fa-minus"></i>
            </button>
            <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
              <i class="fas fa-times"></i>
            </button>
          </div>
        </div>
        <div class="card-body">


          <form action="/uploadFile" method="POST" enctype="multipart/form-data" ><!---->
            <input type="text" name="taskId" id="taskId" hidden/>
              <div class="form-group col-12 mb-4">
                <label class="service-form-lable mb-2">
                  Upload file 
                </label>
                <input  type="file" name="file" class="form-control"   placeholder="Result"  required  />
                <br><br>
                <label>commit name</label>
                
                <input type="text"  name ="fileName" class="form-control" required/>
                 <br>
                <input type="submit" value="submit" >
                
              
      
            
          </form>
        </div>
        <!-- /.card-body -->
      </div>

      <div class="card">
        <div class="card-header">
          <h3 class="card-title"> task history</h3>

          <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
              <i class="fas fa-minus"></i>
            </button>
            <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
              <i class="fas fa-times"></i>
            </button>
          </div>
        </div>
        <div class="card-body p-0">
          <table class="table table-striped projects" id ="taskhistory">
              <thead>
                <tr>
                  <th style="width: 5%">
                      #
                  </th>

                  <th style="width: 35%" >
                    modified in
                  </th>
                  <th style="width: 10%">
                    Status
                  </th>
                  <th style="width: 10%">
                    commit name
                  </th>
                  <th style="width: 50%">
                    CID
                  </th>

              </tr>
              </thead>

          </table>



        </div>
        <!-- /.card-body -->
      </div>


<div>
  <br><br><br>
</div>
      
      <div class="card">
        <div class="card-header">
          <h3 class="card-title">task's Employees</h3>

          <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
              <i class="fas fa-minus"></i>
            </button>
            <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
              <i class="fas fa-times"></i>
            </button>
          </div>
        </div>
        <div class="card-body p-0">
          <table class="table table-striped projects" id ="taskemployee">
              <thead>
                <tr>
                  <th style="width: 5%">
                      #
                  </th>
                  <th style="width: 15%">
                    First Name
                  </th>
                  <th style="width: 15%">
                    Last Name
                    <span>in monthe</span>
                  </th>
                  <th style="width: 20%">
                    Phone Number
                  </th>
                  <th style="width: 20%">
                    Email
                  </th>


              </tr>
              </thead>

          </table>

        </div>
        <!-- /.card-body -->
      </div>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->



  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->






  <label for="taskhelper" hidden>Task Name</label>
  <input hidden type="text" id="taskhelper" class="form-control" required>
  <div id="wait" style="display:none;width:69px;height:89px;border:1px solid black;position:absolute;top:50%;left:50%;padding:2px;"><img src='/images/wait.gif' width="64" height="64" /><br>Loading..</div>

<!-- jQuery -->
<script src="/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="/js/demo.js"></script>
<!-- ChartJS -->
<script src="/plugins/chart.js/Chart.min.js"></script>



</body>
</html>

</body>
</html>
