admin_dashboard1.blade.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. @extends('layouts.master')
  2. @section('style')
  3. <link href="{{URL::asset('assets/css/jquery.datetimepicker.css')}}" rel="stylesheet" type="text/css"/>
  4. <style type="text/css">
  5. .cls-overflow{
  6. height: 800px;
  7. overflow: scroll;
  8. }
  9. .cls-overflow-one{
  10. height: 200px;
  11. overflow: scroll;
  12. }
  13. </style>
  14. @endsection
  15. @section('content')
  16. <!-- Main content -->
  17. <section class="content">
  18. <!-- Main row -->
  19. <div class="row">
  20. <div class="col-md-6">
  21. <section class="panel tasks-widget">
  22. <header class="panel-heading">
  23. In-Process Task
  24. </header>
  25. <div class="cls-overflow table-responsive project-list">
  26. <table class="table table-striped">
  27. <tbody>
  28. @if(!empty($in_process_task))
  29. <?php $count=1; ?>
  30. @foreach($in_process_task as $pt)
  31. <tr>
  32. <td>
  33. {{$count++ .") "}}
  34. <a style="color: #1ab394;" href="{{url("admin/project_details/$pt->proj_id")}}">
  35. {{$pt->name}} -
  36. </a>
  37. <span style="color:green;">
  38. {{$pt->proj_name->name}} -
  39. </span>
  40. <span style="color:red;">
  41. @if(!empty($pt->user->name))
  42. {{$pt->user->name}}
  43. @else
  44. {{"Not assigned"}}
  45. @endif
  46. </span> -
  47. {{date("d-m-Y H:i", strtotime($pt->start_time))}} # {{$pt->estimated_time}}
  48. </td>
  49. </tr>
  50. @endforeach
  51. @endif
  52. </tbody>
  53. </table>
  54. <hr>
  55. </hr>
  56. </div>
  57. <div class="panel-body">
  58. <div class=" add-task-row">
  59. </div>
  60. <div class="table-foot">
  61. </div>
  62. </div>
  63. </section>
  64. </div>
  65. <div class="col-md-6">
  66. <section class="panel tasks-widget">
  67. <header class="panel-heading">
  68. Today's Completed Tasks
  69. </header>
  70. <div class="cls-overflow table-responsive project-list">
  71. <table class="table table-striped">
  72. <tbody>
  73. @if(!empty($pending_task))
  74. <?php $count = 1; ?>
  75. @foreach($pending_task as $pt)
  76. <tr>
  77. <td>
  78. {{$count++ .") "}}
  79. <a style="color: #1ab394;" href="{{url("admin/project_details/$pt->proj_id")}}">
  80. {{$pt->name}}
  81. </a> -
  82. <span style="color: green;">
  83. {{$pt->proj_name->name}} -
  84. </span>
  85. <span style="color:red;">
  86. @if(!empty($pt->user->name))
  87. {{$pt->user->name}} -
  88. @else
  89. <span style="color:#FF6000;">
  90. {{"Not assigned"}} -
  91. </span>
  92. @endif
  93. </span>
  94. {{date("d-m-Y H:i", strtotime($pt->closing_time))}}
  95. </td>
  96. </tr>
  97. @endforeach
  98. @endif
  99. </tbody>
  100. </table>
  101. <hr>
  102. </hr>
  103. </div>
  104. <div class="panel-body">
  105. <div class=" add-task-row">
  106. </div>
  107. <div class="table-foot">
  108. </div>
  109. </div>
  110. </section>
  111. </div>
  112. </div>
  113. <div class="row">
  114. <div class="col-md-6">
  115. <section class="panel tasks-widget">
  116. <header class="panel-heading">
  117. Important Notes
  118. <button class="btn btn-success btn-xs pull-right" data-toggle="modal" data-target="#myModal2"><i class="fa fa-plus-circle" data-toggle="modal" data-target="#myModal2" aria-hidden="true"></i> Add Note</button>
  119. </header>
  120. <div class="cls-overflow-one table-responsive project-list">
  121. <table class="table table-striped">
  122. <thead>
  123. <tr>
  124. <th>
  125. Note
  126. </th>
  127. <th>
  128. Date Time
  129. </th>
  130. <th>
  131. Status
  132. </th>
  133. </tr>
  134. </thead>
  135. <tbody>
  136. @if(!empty($notes))
  137. @foreach($notes as $nott)
  138. <tr>
  139. <td>{{$nott->note}}</td>
  140. <td>{{$nott->time}}</td>
  141. <td style="cursor:pointer;">
  142. @if($nott->status > 0)
  143. <a href="{{url("admin/change_note_status/$nott->id")}}">
  144. <i style="color:green;" class="fa fa-check-square-o" aria-hidden="true"></i>
  145. </a>
  146. @else
  147. <a href="{{url("admin/change_note_status/$nott->id")}}">
  148. <i class="fa fa-square-o" aria-hidden="true"></i>
  149. </a>
  150. @endif
  151. &nbsp; &nbsp;
  152. <a onclick="return confirm ('want to delete?')" href="{{url("admin/remove_note/$nott->id")}}">
  153. <i style="color:red" class="fa fa-times" aria-hidden="true"></i>
  154. </a>
  155. </td>
  156. </tr>
  157. @endforeach
  158. @endif
  159. </tbody>
  160. </table>
  161. <hr>
  162. </hr>
  163. </div>
  164. </section>
  165. </div>
  166. </div>
  167. </section>
  168. <!-- row end -->
  169. <!-- /.content -->
  170. <!-- Add note modal -->
  171. <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  172. <div class="modal-dialog" role="document">
  173. <div class="modal-content">
  174. <div class="modal-header">
  175. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  176. <h4 class="modal-title" id="gridSystemModalLabel">Add User</h4>
  177. </div>
  178. <div class="modal-body">
  179. <form role="form" action="{{url('admin/add_note')}}" method="POST">
  180. {!! csrf_field() !!}
  181. <div class="form-group">
  182. <label for="Add new Project">
  183. Note
  184. </label>
  185. <textarea name="note" rows="5" class="form-control" id="new-project" placeholder="Write down your important notes..." ></textarea>
  186. </div>
  187. <div class="form-group">
  188. <label for="Add new Project">
  189. Select Date Time
  190. </label>
  191. <input name="date_time" class="form-control" id="datetimepicker" type="text">
  192. </div>
  193. <div class="form-group">
  194. <button class="btn btn-info" type="submit">
  195. Submit
  196. </button>
  197. </div>
  198. </form>
  199. </div>
  200. <div class="modal-footer">
  201. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  202. </div>
  203. </div><!-- /.modal-content -->
  204. </div><!-- /.modal-dialog -->
  205. </div>
  206. @endsection
  207. @section('script')
  208. <script src="{{URL::asset('assets/js/jquery.datetimepicker.full.min.js')}}" type="text/javascript"></script>
  209. <script type="text/javascript">
  210. //jQuery('#datetimepicker').datetimepicker();
  211. jQuery('#datetimepicker').datetimepicker({
  212. format:'Y-m-d H:i:s',
  213. lang:'ru'
  214. });
  215. $(document).ready(function() {
  216. var timeout = setTimeout("location.reload(true);",600000);
  217. function resetTimeout() {
  218. clearTimeout(timeout);
  219. timeout = setTimeout("location.reload(true);",600000);
  220. }
  221. });
  222. </script>
  223. @endsection