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.

notice_detail.blade.php 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. @extends('layout.officer', ['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. </style>
  63. <div class="inner-page">
  64. <!-- Display message -->
  65. <div class="row">
  66. <div class="col-md-12">
  67. <div class="fluid">
  68. @if(count($errors) > 0)
  69. <div class="alert alert-danger icons-alert">
  70. @foreach($errors->all() as $error)
  71. <p>{{$error}}</p>
  72. @endforeach
  73. </div>
  74. @endif
  75. @if(Session::get('error_msg'))
  76. <div class="alert alert-danger icons-alert">
  77. {!! Session::get('error_msg') !!}
  78. </div>
  79. @elseif(Session::get('success_msg'))
  80. <div class="alert alert-success icons-alert">
  81. {!! Session::get('success_msg') !!}
  82. </div>
  83. @endif
  84. </div>
  85. </div>
  86. </div>
  87. <!-- End Display message -->
  88. <div class="row">
  89. <div class="col-xl-2 col-md-12">
  90. <div class="panel panel-default">
  91. <div class="panel-heading">
  92. <h4 class="panel-title"> Maklumat Terperinci </h4>
  93. </div>
  94. <div class="panel-body">
  95. @if($compound->status == 'Belum Bayar')
  96. <div><a href="{{ url('officer/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('officer/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  97. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}">Kompaun</a></div>
  98. @if($compound->modul == '04')
  99. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/investigation" class="{{ Request::is('officer/compound/*/investigation') ? 'active' : '' }}">Pengesahan Kompaun</a></div>
  100. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('officer/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  101. @elseif($compound->modul == '05')
  102. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/notice" class="{{ Request::is('officer/compound/*/notice') ? 'active' : '' }}">Notis Amaran</a></div>
  103. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('officer/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  104. @elseif($compound->modul == '06')
  105. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/inventory" class="{{ Request::is('officer/compound/*/inventory') ? 'active' : '' }}">Inventori</a></div>
  106. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('officer/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  107. @elseif($compound->modul == '07')
  108. <div><a href="{{ url('officer/compound') }}/{{$compound->kpd}}/inventory/auction" class="{{ Request::is('officer/compound/*/inventory/auction') ? 'active' : '' }}">Jualan Lelong</a></div>
  109. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('officer/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  110. @endif
  111. <div><a target="_blank" href="{{ url('/officer/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  112. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}/task" class="{{ Request::is('officer/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  113. @elseif($compound->status == 'Berbayar')
  114. <div><a href="{{ url('officer/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('officer/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  115. <div><a href="{{ url('/officer/compound') }}/{{$compound->kpd}}">Kompaun</a></div>
  116. <div><a target="_blank" href="{{ url('/officer/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  117. @endif
  118. </div>
  119. </div>
  120. </div>
  121. <div class="col-xl-10 col-md-12">
  122. <div class="row">
  123. <div class="col-md-12">
  124. <div class="card">
  125. <div class="card-header">
  126. <h5 class="card-header-text">
  127. Maklumat Notis Amaran [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>{{ $role->name }}</code>]
  128. </h5>
  129. <span><code>Perhatian!!</code> Semua maklumat notis amaran boleh diakses sekiranya kompaun ini berada di dalam kategori <code>modul notis amaran</code> dan status dia adalah <code>aktif</code>. Untuk kemaskini template notis amaran, sila ke bahagian tetapan</span>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="row">
  135. <div class="col-md-12">
  136. <div class="card">
  137. <div class="card-block">
  138. <div id="view-surat" class="row">
  139. <div class="col-xl-12">
  140. <div class="data_table_main dt-responsive table-responsive">
  141. <table id="senarai_notis" class="table table-sm table-striped table-bordered nowrap" width="100%">
  142. <thead>
  143. <tr>
  144. <th>#</th>
  145. <th>No.Rujukan</th>
  146. <th>Alasan</th>
  147. <th>No.Pos</th>
  148. <th>Tindakan</th>
  149. </tr>
  150. </thead>
  151. <tfoot>
  152. <tr>
  153. <th>#</th>
  154. <th>No.Rujukan</th>
  155. <th>Alasan</th>
  156. <th>No.Pos</th>
  157. <th>Tindakan</th>
  158. </tr>
  159. </tfoot>
  160. </table>
  161. </div>
  162. <!-- <div class="animation-modal"> -->
  163. <div class="modal fade" id="UpdatePos" tabindex="-1" role="dialog">
  164. <div class="modal-dialog modal-lg" role="document">
  165. <div class="modal-content">
  166. <div class="modal-header">
  167. <h4 class="modal-title">Muatnaik Nombor Pos</h4>
  168. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  169. <span aria-hidden="true">&times;</span>
  170. </button>
  171. </div>
  172. <div class="modal-body" style="padding-left: 2rem;padding-right: 2rem;">
  173. <form action="{{ url('/officer/update/number-pos') }}" class="main cussPayment" method="POST" enctype="multipart/form-data">
  174. <input type="hidden" name="_token" id="csrf-token" value="{{ Session::token() }}" />
  175. <input type="hidden" name="letter_id" id="letter_id" value="" />
  176. <div class="row clearfix">
  177. <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  178. <label for="subject"><b>Nombor Pos <code>*</code></b></label>
  179. <div class="form-group">
  180. <input type="text" name="no_pos" class="form-control" required="">
  181. </div>
  182. </div>
  183. </div>
  184. <div class="row clearfix">
  185. <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  186. <label for="subject"><b>Gambar Pos <code>*</code></b></label>
  187. <div class="form-group">
  188. <input type="file" name="gambar_pos" class="form-control" required="">
  189. </div>
  190. </div>
  191. </div>
  192. <hr>
  193. <button type="button" class="btn btn-sm btn-default waves-effect float-left" data-dismiss="modal">Tutup</button>
  194. <button type="submit" class="btn btn-sm btn-danger float-right waves-effect">Simpan Nombor Pos</button>
  195. </form>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <!-- End <div class="animation-modal"> -->
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. @endsection
  211. @section('external_js')
  212. <script type="text/javascript">
  213. var table = $('#senarai_notis').DataTable({
  214. "ordering": false,
  215. "serverSide": true,
  216. "processing": true,
  217. "ajax": "{{ url('api/setting/template') }}/{{ $compound->kpd }}/aktif/list",
  218. "columns": [
  219. { "data": "index","name": "index"},
  220. { "data": "no_rujukan", "name": "no_rujukan" },
  221. { "data": "alasan", "name": "alasan"},
  222. { "data": "tindakan1", "name": "tindakan1"},
  223. { "data": "tindakan2","name": "tindakan2"}
  224. ],
  225. "columnDefs": [
  226. {
  227. "render": function ( data, type, row ) {
  228. if (data.indexOf("Baru/") >= 0) {
  229. var split = data.split('/');
  230. return '<label class="label label-success">'+split[0]+'</label>&nbsp;'+split[1];
  231. }else {
  232. return data;
  233. }
  234. },
  235. "targets": 0,
  236. },
  237. {
  238. "render": function ( data, type, row ) {
  239. if(data == ""){
  240. return '<a onclick="uploadPosTracker(\''+row.tindakan2+'\',\'' + row.no_rujukan + '\')" class="tabledit-edit-button btn btn-sm btn-warning waves-effect waves-light" style="float: none;color:#333" data-toggle="tooltip" data-placement="top" title="Muatnaik Nombor Pos">Muatnaik Nombor Pos</a>';
  241. }else{
  242. return data;
  243. }
  244. },
  245. "targets": 3,
  246. },
  247. {
  248. "render": function ( data, type, row ) {
  249. var kpd = '{{ $compound->kpd }}';
  250. var pdfLink = "{{ url('/officer/setting/template/notice') }}"+"/"+data+"/"+kpd+"/view/detail";
  251. return '<div class="btn-group btn-group-sm" style="float: none;"><a target="_blank" href="'+pdfLink+'" class="tabledit-edit-button btn btn-success waves-effect waves-light" style="float: none;" data-toggle="tooltip" data-placement="top" title="Maklumat Notis Amaran"><span class="icofont icofont-eye-alt" style="color:white"></span></a></div>';
  252. },
  253. "targets": 4,
  254. },
  255. ],
  256. "language": {
  257. "paginate": {
  258. "previous": "Sebelum",
  259. "next": "Selepas"
  260. },
  261. "sLengthMenu": "Tunjukkan _MENU_ entri",
  262. "zeroRecords": "Tiada Data Ditemui",
  263. "infoEmpty": "Tiada Rekod Yang Wujud",
  264. "infoFiltered": "(Ditapis daripada _MAX_ jumlah rekod)",
  265. "info": "Tunjuk _START_ hingga _END_ daripada _TOTAL_ entri",
  266. "sSearch": "Cari:",
  267. }
  268. });
  269. function uploadPosTracker(cid,rujukan) {
  270. var mid = cid;
  271. var rujukan = rujukan;
  272. $('#letter_id').val(mid);
  273. $('#UpdatePos').modal({
  274. show: true
  275. });
  276. };
  277. $.ajaxSetup({
  278. headers: {
  279. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  280. }
  281. });
  282. $(document).ready(function() {
  283. var origin = window.location.origin;
  284. $(".theme-loader").animate({
  285. opacity: "0"
  286. },1000);
  287. setTimeout(function() {
  288. $(".theme-loader").remove();
  289. }, 800);
  290. $('[data-toggle="tooltip"]').tooltip();
  291. });
  292. </script>
  293. @endsection