work_flow.blade.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @extends('layouts.master')
  2. @section('style')
  3. <style>
  4. .task-color{
  5. color: green;
  6. }
  7. </style>
  8. @endsection
  9. @section('content')
  10. <!-- Main content -->
  11. <section class="content">
  12. <!-- Main row -->
  13. <div class="row">
  14. <div class="col-md-12">
  15. <table class="table">
  16. @foreach($all as $info)
  17. <tr>
  18. <td colspan="3">
  19. <h3>{{$info->name}}</h3>
  20. </td>
  21. </tr>
  22. <?php
  23. $pen = App\Models\Task::where('user_id',$info->id)->where('status',1)->get();
  24. ?>
  25. @if(count($pen) > 0)
  26. <tr>
  27. <td></td>
  28. <td colspan="2">
  29. <b>Pending Task:</b>
  30. </td>
  31. </tr>
  32. @foreach($pen as $p)
  33. <tr>
  34. <td></td>
  35. <td></td>
  36. <td>
  37. <span class="task-color">{{$p->name}}</span>
  38. (Assign: {{date("d-m-Y H:i", strtotime($p->assign_time))}} # Estimated: {{$p->estimated_time}} )
  39. </td>
  40. </tr>
  41. @endforeach
  42. @endif
  43. <?php
  44. $in_proecss = App\Models\Task::where('user_id',$info->id)->where('status',2)->get();
  45. ?>
  46. @if(count($in_proecss) > 0)
  47. <tr>
  48. <td></td>
  49. <td colspan="2">
  50. <b>Inprocess Task:</b>
  51. </td>
  52. </tr>
  53. @foreach($in_proecss as $p)
  54. <tr>
  55. <td></td>
  56. <td></td>
  57. <td>
  58. <span class="task-color">{{$p->name}}</span> (
  59. Start: {{date("d-m-Y H:i", strtotime($p->start_time))}} # Estimated: {{$p->estimated_time}} )
  60. </td>
  61. </tr>
  62. @endforeach
  63. @endif
  64. <?php
  65. $completed = App\Models\Task::where('user_id',$info->id)
  66. ->where('status',6)->whereDate('closing_time', '=', date('Y-m-d'))->get();
  67. ?>
  68. @if(count($completed) > 0)
  69. <tr>
  70. <td></td>
  71. <td colspan="2">
  72. <b>Today's Completed Task:</b>
  73. </td>
  74. </tr>
  75. @foreach($completed as $p)
  76. <tr>
  77. <td></td>
  78. <td></td>
  79. <td>
  80. <span class="task-color">{{$p->name}}</span>
  81. ( Completed: {{date("d-m-Y H:i", strtotime($p->closing_time))}})
  82. </td>
  83. </tr>
  84. @endforeach
  85. @endif
  86. @endforeach
  87. </table>
  88. </div>
  89. </div>
  90. </section>
  91. <!-- row end -->
  92. @endsection