Dashboard sipadu mbip
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

notice_detail.blade.php 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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. </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. @if($compound->modul == '02')
  97. <div><a href="{{ url('main/compound') }}/{{ $compound->non }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  98. {{-- <div><a href="{{ url('/main/compound') }}/{{$compound->non}}">Kompaun</a></div> --}}
  99. @else
  100. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  101. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}">Kompaun</a></div>
  102. @endif
  103. @if($compound->modul == '04')
  104. <!-- <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/investigation" class="{{ Request::is('main/compound/*/investigation') ? 'active' : '' }}">Pengesahan Kompaun</a></div> -->
  105. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  106. @elseif($compound->modul == '05')
  107. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/notice" class="{{ Request::is('main/compound/*/notice') ? 'active' : '' }}">Notis Amaran</a></div>
  108. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  109. @elseif($compound->modul == '06')
  110. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/inventory" class="{{ Request::is('main/compound/*/inventory') ? 'active' : '' }}">Inventori</a></div>
  111. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  112. @elseif($compound->modul == '07')
  113. <div><a href="{{ url('main/compound') }}/{{$compound->kpd}}/inventory/auction" class="{{ Request::is('main/compound/*/inventory/auction') ? 'active' : '' }}">Jualan Lelong</a></div>
  114. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  115. @endif
  116. @if($compound->modul == '02')
  117. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->non}}/pdf">Cetak/Papar PDF</a></div>
  118. <div><a href="{{ url('/main/compound') }}/{{$compound->non}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  119. @else
  120. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  121. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  122. @endif
  123. @elseif($compound->status == 'Berbayar')
  124. @if($compound->modul == '02')
  125. <div><a href="{{ url('main/compound') }}/{{ $compound->non }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  126. <div><a href="{{ url('/main/compound') }}/{{$compound->non}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  127. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->non}}/pdf">Cetak/Papar PDF</a></div>
  128. @else
  129. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  130. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  131. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  132. @endif
  133. @endif
  134. </div>
  135. {{-- <div class="panel-body">
  136. @if($compound->status == 'Belum Bayar')
  137. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  138. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}">Kompaun</a></div>
  139. @if($compound->modul == '04')
  140. <!-- <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/investigation" class="{{ Request::is('main/compound/*/investigation') ? 'active' : '' }}">Pengesahan Kompaun</a></div> -->
  141. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  142. @elseif($compound->modul == '05')
  143. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/notice" class="{{ Request::is('main/compound/*/notice') ? 'active' : '' }}">Notis Amaran</a></div>
  144. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  145. @elseif($compound->modul == '06')
  146. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/inventory" class="{{ Request::is('main/compound/*/inventory') ? 'active' : '' }}">Inventori</a></div>
  147. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  148. @elseif($compound->modul == '07')
  149. <div><a href="{{ url('main/compound') }}/{{$compound->kpd}}/inventory/auction" class="{{ Request::is('main/compound/*/inventory/auction') ? 'active' : '' }}">Jualan Lelong</a></div>
  150. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/memo" class="{{ Request::is('main/compound/*/memo') ? 'active' : '' }}">Memo/Nota</a></div>
  151. @endif
  152. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  153. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  154. @elseif($compound->status == 'Berbayar')
  155. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  156. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  157. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  158. @endif
  159. </div> --}}
  160. </div>
  161. </div>
  162. <div class="col-xl-10 col-md-12">
  163. <div class="row">
  164. <div class="col-md-12">
  165. <div class="card">
  166. <div class="card-header">
  167. <h5 class="card-header-text">
  168. Maklumat Notis Amaran [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>{{ $role->name }}</code>]
  169. </h5>
  170. <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>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="row">
  176. <div class="col-md-12">
  177. <div class="card">
  178. <div class="card-block">
  179. <div id="view-surat" class="row">
  180. <div class="col-xl-12">
  181. <div class="data_table_main dt-responsive table-responsive">
  182. <table id="senarai_notis" class="table table-sm table-striped table-bordered nowrap" width="100%">
  183. <thead>
  184. <tr>
  185. <th>#</th>
  186. <th>No.Rujukan</th>
  187. <th>Alasan</th>
  188. <th>No.Pos</th>
  189. <th>Tindakan</th>
  190. </tr>
  191. </thead>
  192. <tfoot>
  193. <tr>
  194. <th>#</th>
  195. <th>No.Rujukan</th>
  196. <th>Alasan</th>
  197. <th>No.Pos</th>
  198. <th>Tindakan</th>
  199. </tr>
  200. </tfoot>
  201. </table>
  202. </div>
  203. <!-- <div class="animation-modal"> -->
  204. <div class="modal fade" id="UpdatePos" tabindex="-1" role="dialog">
  205. <div class="modal-dialog modal-lg" role="document">
  206. <div class="modal-content">
  207. <div class="modal-header">
  208. <h4 class="modal-title">Muatnaik Nombor Pos</h4>
  209. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  210. <span aria-hidden="true">&times;</span>
  211. </button>
  212. </div>
  213. <div class="modal-body" style="padding-left: 2rem;padding-right: 2rem;">
  214. <form action="{{ url('/main/update/number-pos') }}" class="main cussPayment" method="POST" enctype="multipart/form-data">
  215. <input type="hidden" name="_token" id="csrf-token" value="{{ Session::token() }}" />
  216. <input type="hidden" name="letter_id" id="letter_id" value="" />
  217. <div class="row clearfix">
  218. <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  219. <label for="subject"><b>Nombor Pos <code>*</code></b></label>
  220. <div class="form-group">
  221. <input type="text" name="no_pos" class="form-control" required="">
  222. </div>
  223. </div>
  224. </div>
  225. <div class="row clearfix">
  226. <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  227. <label for="subject"><b>Gambar Pos <code>*</code></b></label>
  228. <div class="form-group">
  229. <input type="file" name="gambar_pos" class="form-control" required="">
  230. </div>
  231. </div>
  232. </div>
  233. <hr>
  234. <button type="button" class="btn btn-sm btn-default waves-effect float-left" data-dismiss="modal">Tutup</button>
  235. <button type="submit" class="btn btn-sm btn-danger float-right waves-effect">Simpan Nombor Pos</button>
  236. </form>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. <!-- End <div class="animation-modal"> -->
  242. </div>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. @endsection
  252. @section('external_js')
  253. <script type="text/javascript" src="{{ asset('js/toggle_button_edit.js') }}"></script>
  254. <script type="text/javascript">
  255. var table = $('#senarai_notis').DataTable({
  256. "ordering": false,
  257. "serverSide": true,
  258. "processing": true,
  259. "ajax": "{{ url('api/setting/template') }}/{{ $compound->kpd }}/aktif/list",
  260. "columns": [
  261. { "data": "index","name": "index"},
  262. { "data": "no_rujukan", "name": "no_rujukan" },
  263. { "data": "alasan", "name": "alasan"},
  264. { "data": "tindakan1", "name": "tindakan1"},
  265. { "data": "tindakan2","name": "tindakan2"}
  266. ],
  267. "columnDefs": [
  268. {
  269. "render": function ( data, type, row ) {
  270. if (data.indexOf("Baru/") >= 0) {
  271. var split = data.split('/');
  272. return '<label class="label label-success">'+split[0]+'</label>&nbsp;'+split[1];
  273. }else {
  274. return data;
  275. }
  276. },
  277. "targets": 0,
  278. },
  279. {
  280. "render": function ( data, type, row ) {
  281. if(data == ""){
  282. 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>';
  283. }else{
  284. return data;
  285. }
  286. },
  287. "targets": 3,
  288. },
  289. {
  290. "render": function ( data, type, row ) {
  291. var kpd = '{{ $compound->kpd }}';
  292. var pdfLink = "{{ url('/main/setting/template/notice') }}"+"/"+data+"/"+kpd+"/view/detail";
  293. 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>';
  294. },
  295. "targets": 4,
  296. },
  297. ],
  298. "language": {
  299. "paginate": {
  300. "previous": "Sebelum",
  301. "next": "Selepas"
  302. },
  303. "sLengthMenu": "Tunjukkan _MENU_ entri",
  304. "zeroRecords": "Tiada Data Ditemui",
  305. "infoEmpty": "Tiada Rekod Yang Wujud",
  306. "infoFiltered": "(Ditapis daripada _MAX_ jumlah rekod)",
  307. "info": "Tunjuk _START_ hingga _END_ daripada _TOTAL_ entri",
  308. "sSearch": "Cari:",
  309. }
  310. });
  311. function uploadPosTracker(cid,rujukan) {
  312. var mid = cid;
  313. var rujukan = rujukan;
  314. $('#letter_id').val(mid);
  315. $('#UpdatePos').modal({
  316. show: true
  317. });
  318. };
  319. $.ajaxSetup({
  320. headers: {
  321. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  322. }
  323. });
  324. $(document).ready(function() {
  325. var origin = window.location.origin;
  326. $(".theme-loader").animate({
  327. opacity: "0"
  328. },1000);
  329. setTimeout(function() {
  330. $(".theme-loader").remove();
  331. }, 800);
  332. $('[data-toggle="tooltip"]').tooltip();
  333. });
  334. </script>
  335. @endsection