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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. <div><a href="{{ url('/main/compound') }}/{{$compound->non}}">Kompaun</a></div>
  95. @else
  96. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  97. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}">Kompaun</a></div>
  98. @endif
  99. @if($compound->modul == '04')
  100. <!-- <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/investigation" class="{{ Request::is('main/compound/*/investigation') ? 'active' : '' }}">Pengesahan Kompaun</a></div> -->
  101. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  102. @elseif($compound->modul == '05')
  103. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/notice" class="{{ Request::is('main/compound/*/notice') ? 'active' : '' }}">Notis Amaran</a></div>
  104. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  105. @elseif($compound->modul == '06')
  106. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/inventory" class="{{ Request::is('main/compound/*/inventory') ? 'active' : '' }}">Inventori</a></div>
  107. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  108. @elseif($compound->modul == '07')
  109. <div><a href="{{ url('main/compound') }}/{{$compound->kpd}}/inventory/auction" class="{{ Request::is('main/compound/*/inventory/auction') ? 'active' : '' }}">Jualan Lelong</a></div>
  110. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  111. @endif
  112. @if($compound->modul == '02')
  113. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->non}}/pdf">Cetak/Papar PDF</a></div>
  114. <div><a href="{{ url('/main/compound') }}/{{$compound->non}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  115. @else
  116. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  117. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  118. @endif
  119. @elseif($compound->status == 'Berbayar')
  120. @if($compound->modul == '02')
  121. <div><a href="{{ url('main/compound') }}/{{ $compound->non }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  122. <div><a href="{{ url('/main/compound') }}/{{$compound->non}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  123. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->non}}/pdf">Cetak/Papar PDF</a></div>
  124. @else
  125. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  126. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  127. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  128. @endif
  129. @endif
  130. </div>
  131. </div>
  132. </div>
  133. <div class="col-xl-10 col-md-12">
  134. <div class="row">
  135. <div class="col-md-12">
  136. <div class="card">
  137. <div class="card-header">
  138. @if(empty($role))
  139. <h5 class="card-header-text">
  140. Maklumat Garis Masa [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>-</code>]
  141. </h5>
  142. @else
  143. <h5 class="card-header-text">
  144. Maklumat Garis Masa [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>{{ $role->name }}</code>]
  145. </h5>
  146. @endif
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div id="timeline">
  152. @foreach($file->History as $h)
  153. <div class="f-30 text-muted text-center">{{ $h->tarikh_kumpulan }}</div>
  154. <div class="row">
  155. <div class="col-md-12 timeline-dot">
  156. @foreach($h->SubHistory as $sh)
  157. @if($sh->no_siri == $file->no_siri)
  158. <div class="social-timelines p-relative">
  159. <div class="row timeline-right p-t-35">
  160. <div class="col-2 col-sm-2 col-xl-1">
  161. <div class="social-timelines-left">
  162. <img class="img-radius timeline-icon" src=" ../files/assets/images/avatar-2.jpg" alt="">
  163. </div>
  164. </div>
  165. <div class="col-10 col-sm-10 col-xl-11 p-l-5 p-b-35">
  166. <div class="card">
  167. <div class="card-block post-timelines">
  168. <div class="social-time text-muted">{{ $sh->created_at->diffForHumans() }}</div>
  169. </div>
  170. <div class="card-block">
  171. <div class="timeline-details">
  172. <div class="chat-header">{{ $sh->tajuk }}</div>
  173. <p class="text-muted">{!! $sh->huraian !!}</p>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. @endif
  181. @endforeach
  182. </div>
  183. </div>
  184. @endforeach
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. @endsection
  190. @section('external_js')
  191. <script type="text/javascript" src="{{ asset('js/toggle_button_edit.js') }}"></script>
  192. <script type="text/javascript">
  193. $.ajaxSetup({
  194. headers: {
  195. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  196. }
  197. });
  198. $(document).ready(function() {
  199. var origin = window.location.origin;
  200. $(".theme-loader").animate({
  201. opacity: "0"
  202. },1000);
  203. setTimeout(function() {
  204. $(".theme-loader").remove();
  205. }, 800);
  206. $('[data-toggle="tooltip"]').tooltip();
  207. });
  208. </script>
  209. @endsection