Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

history_detail.blade.php 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. @extends('layout.master', ['uid' => $user->_id, 'token' => $user->token_firebase])
  2. @section('page_title', 'Kompaun (Kertas Siasatan)')
  3. @section('sub_page_title', '')
  4. @section('name', $user->StaffDetail->full_name)
  5. @section('img_profile', $user->StaffDetail->profile_img)
  6. @section('content')
  7. <style type="text/css">
  8. select.form-control, select.form-control:focus, select.form-control:hover {
  9. border: 1px solid #ccc !important;
  10. height: auto !important;
  11. }
  12. .panel-group .panel {
  13. margin-bottom: 0;
  14. overflow: hidden;
  15. border-radius: 4px;
  16. }
  17. .panel-default {
  18. border-color: #ddd;
  19. }
  20. .panel-default>.panel-heading {
  21. color: #333;
  22. background-color: #f5f5f5;
  23. border-color: #ddd;
  24. }
  25. .panel-title {
  26. margin-top: 0;
  27. margin-bottom: 0;
  28. font-size: 16px;
  29. color: inherit;
  30. }
  31. .panel-body .table>thead>tr>th, .panel-body .table>tbody>tr>th, .panel-body .table>tfoot>tr>th, .panel-body .table>thead>tr>td, .panel-body .table>tbody>tr>td, .panel-body .table>tfoot>tr>td , .panel-body div{
  32. padding: 8px 15px;
  33. line-height: 1.428571429;
  34. vertical-align: top;
  35. border-top: 1px solid #ddd;
  36. }
  37. .panel-body { padding:0px; }
  38. .panel-body table tr td { padding-left: 15px }
  39. .panel-body table tr td a:hover , .panel-body div a:hover{ color: #d84315 !important; }
  40. .panel-body .table, .panel-body div {margin-bottom: 0px; }
  41. .glyphicon { margin-right:10px; }
  42. .active { color: #d84315; }
  43. .active:hover { color: #d84315; }
  44. #custom table {
  45. table-layout:fixed !important;
  46. border-collapse: collapse !important;
  47. width: 100%;
  48. word-wrap:break-word !important;
  49. }
  50. #custom td, #custom th {
  51. border-top: 1px solid #dee2e6;
  52. border-bottom: 1px solid #dee2e6;
  53. }
  54. .longtext{
  55. word-wrap: break-word !important;
  56. word-break: break-word !important;
  57. padding: 0.6rem 2rem;
  58. }
  59. .btn i {
  60. margin-right: 0px;
  61. }
  62. .post-timelines{ border-bottom: 1px solid #CCC !important; padding: 10px 20px !important;}
  63. </style>
  64. <div class="inner-page">
  65. <!-- Display message -->
  66. <div class="row">
  67. <div class="col-xl-12">
  68. @if(count($errors) > 0)
  69. <div class="alert alert-danger border-danger">
  70. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  71. <i class="icofont icofont-close-line-circled"></i>
  72. </button>
  73. <strong>Haraf Maaf!</strong><br>
  74. <ul>
  75. @foreach ($errors->all() as $error)
  76. <li>{{ $error }}</li>
  77. @endforeach
  78. </ul>
  79. </div>
  80. @endif
  81. </div>
  82. </div>
  83. <!-- End Display message -->
  84. <div class="row">
  85. <div class="col-xl-2 col-md-12">
  86. <div class="panel panel-default">
  87. <div class="panel-heading">
  88. <h4 class="panel-title"> Maklumat Terperinci </h4>
  89. </div>
  90. <div class="panel-body">
  91. @if($compound->status == 'Belum Bayar')
  92. @if($compound->modul == '02')
  93. <div><a href="{{ url('main/compound') }}/{{ $compound->non }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  94. @else
  95. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  96. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}">Kompaun</a></div>
  97. @endif
  98. @if($compound->modul == '04')
  99. <!-- <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/investigation" class="{{ Request::is('main/compound/*/investigation') ? 'active' : '' }}">Pengesahan Kompaun</a></div> -->
  100. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  101. @elseif($compound->modul == '05')
  102. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/notice" class="{{ Request::is('main/compound/*/notice') ? 'active' : '' }}">Notis Amaran</a></div>
  103. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  104. @elseif($compound->modul == '06')
  105. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/inventory" class="{{ Request::is('main/compound/*/inventory') ? 'active' : '' }}">Inventori</a></div>
  106. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  107. @elseif($compound->modul == '07')
  108. <div><a href="{{ url('main/compound') }}/{{$compound->kpd}}/inventory/auction" class="{{ Request::is('main/compound/*/inventory/auction') ? 'active' : '' }}">Jualan Lelong</a></div>
  109. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  110. @endif
  111. @if($compound->modul == '02')
  112. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->non}}/pdf">Cetak/Papar PDF</a></div>
  113. <div><a href="{{ url('/main/compound') }}/{{$compound->non}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  114. @else
  115. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  116. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  117. @endif
  118. @elseif($compound->status == 'Berbayar')
  119. @if($compound->modul == '02')
  120. <div><a href="{{ url('main/compound') }}/{{ $compound->non }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  121. <div><a href="{{ url('/main/compound') }}/{{$compound->non}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  122. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->non}}/pdf">Cetak/Papar PDF</a></div>
  123. @else
  124. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  125. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  126. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  127. @endif
  128. @endif
  129. </div>
  130. </div>
  131. </div>
  132. <div class="col-xl-10 col-md-12">
  133. <div class="row">
  134. <div class="col-md-12">
  135. <div class="card">
  136. <div class="card-header">
  137. @if(empty($role))
  138. <h5 class="card-header-text">
  139. Maklumat Garis Masa [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>-</code>]
  140. </h5>
  141. @else
  142. <h5 class="card-header-text">
  143. Maklumat Garis Masa [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>{{ $role->name }}</code>]
  144. </h5>
  145. @endif
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <div id="timeline">
  151. @foreach($file->History as $h)
  152. <div class="f-30 text-muted text-center">{{ $h->tarikh_kumpulan }}</div>
  153. <div class="row">
  154. <div class="col-md-12 timeline-dot">
  155. @foreach($h->SubHistory as $sh)
  156. @if($sh->no_siri == $file->no_siri)
  157. <div class="social-timelines p-relative">
  158. <div class="row timeline-right p-t-35">
  159. <div class="col-2 col-sm-2 col-xl-1">
  160. <div class="social-timelines-left">
  161. <img class="img-radius timeline-icon" src=" ../files/assets/images/avatar-2.jpg" alt="">
  162. </div>
  163. </div>
  164. <div class="col-10 col-sm-10 col-xl-11 p-l-5 p-b-35">
  165. <div class="card">
  166. <div class="card-block post-timelines">
  167. <div class="social-time text-muted">{{ $sh->created_at->diffForHumans() }}</div>
  168. </div>
  169. <div class="card-block">
  170. <div class="timeline-details">
  171. <div class="chat-header">{{ $sh->tajuk }}</div>
  172. <p class="text-muted">{!! $sh->huraian !!}</p>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. @endif
  180. @endforeach
  181. </div>
  182. </div>
  183. @endforeach
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. @endsection
  189. @section('external_js')
  190. <script type="text/javascript" src="{{ asset('js/toggle_button_edit.js') }}"></script>
  191. <script type="text/javascript">
  192. $.ajaxSetup({
  193. headers: {
  194. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  195. }
  196. });
  197. $(document).ready(function() {
  198. var origin = window.location.origin;
  199. $(".theme-loader").animate({
  200. opacity: "0"
  201. },1000);
  202. setTimeout(function() {
  203. $(".theme-loader").remove();
  204. }, 800);
  205. $('[data-toggle="tooltip"]').tooltip();
  206. });
  207. </script>
  208. @endsection