Dashboard sipadu mbip
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

compound_memo_edit.blade.php 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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"> Navigasi </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. @if(empty($role))
  127. <h5 class="card-header-text">
  128. Maklumat Memo/Nota [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>-</code>]
  129. </h5>
  130. @else
  131. <h5 class="card-header-text">
  132. Maklumat Memo/Nota [ No.Kompaun : <code>{{ $compound->kpd }}</code> | No.Siri : <code>{{ $file->no_siri }}</code> | Modul: <code>{{ $role->name }}</code>]
  133. </h5>
  134. @endif
  135. <span><code>Perhatian!!</code>Memo boleh ditambah mahupun dikemaskini sekiranya kompaun bukan berada dalam <code>kategori modul kompaun</code>. Memo ini perlu disahkan semua sekiranya <code>pegawai yang kemaskini</code>.</span>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="row">
  141. <div class="col-md-12">
  142. <div class="card">
  143. <div class="card-block">
  144. <form method="POST" action="{{ url('/officer/compound/memo/request/edit') }}" enctype="multipart/form-data">
  145. <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
  146. <input type="hidden" name="kpd" value="{{ $compound->kpd }}">
  147. <input type="hidden" name="memo_id" value="{{ $memo->_id }}">
  148. <div class="row">
  149. <div class="col-lg-12 col-md-12">
  150. <div class="form-group form-primary">
  151. <label class="float-label"><b>Jenis Memo/Nota <code>*</code></b></label>
  152. <select id="jenis_memo" name="jenis_memo" class="form-control" required>
  153. <option value="">Pilih Jenis Memo</option>
  154. if($memo->jenis_memo == "Tambahan")
  155. <option selected value="Tambahan">Tambahan Harga</option>
  156. <option value="Lain-lain">Lain-lain</option>
  157. @elseif($memo->jenis_memo == "Lain-lain")
  158. <option value="Tambahan">Tambahan Harga</option>
  159. <option selected value="Lain-lain" selected>Lain-lain</option>
  160. @else
  161. <option value="Tambahan">Tambahan Harga</option>
  162. <option selected value="Lain-lain">Lain-lain</option>
  163. @endif
  164. </select>
  165. <span class="form-bar"></span>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="row">
  170. <div class="col-lg-6 col-md-12">
  171. <div class="form-group form-primary">
  172. <label class="float-label"><b>No.Rujukan <code>*</code></b></label>
  173. <input type="text" name="no_rujukan" class="form-control" value="{{ $memo->no_rujukan }}" required="">
  174. <span class="form-bar"></span>
  175. </div>
  176. </div>
  177. <div class="col-lg-6 col-md-12">
  178. <div class="form-group form-primary">
  179. <label class="float-label"><b>Tawaran Kompaun Baru <code>Optional</code></b></label>
  180. <input type="text" name="tawaran" class="form-control" value="{{ $memo->tawaran_kompaun }}" placeholder="5%">
  181. <span class="form-bar"></span>
  182. <code>Format tawaran kompaun mesti dalam bentuk <b>peratus (%)</b></code>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="row">
  187. <div class="col-lg-12 col-md-12">
  188. <div class="form-group form-primary">
  189. <label class="float-label"><b>Subjek <code>*</code></b></label>
  190. <input type="text" name="subjek" class="form-control" value="{{ $memo->subjek }}" required="">
  191. <span class="form-bar"></span>
  192. </div>
  193. </div>
  194. <div class="col-lg-12 col-md-12">
  195. <div class="form-group form-primary">
  196. <label class="float-label"><b>Penerangan <code>*</code></b></label>
  197. <textarea type="text" name="penerangan" id="penerangan" style="width: 100%; height: 200px" required=""> {{ $memo->penerangan }}</textarea>
  198. <span class="form-bar"></span>
  199. </div>
  200. </div>
  201. </div>
  202. <!-- Drag Drop -->
  203. <div class="row" style="margin-bottom: 1.25em;">
  204. <div class="col-lg-12">
  205. <div class="dropzone" id="uploadF">
  206. <label class="float-label"><b>Tekan untuk memuat PDF. <code>Optional</code></b></label>
  207. <div class="fallback">
  208. <input name="attachment[]" id="attachment" type="file" class="form-control form-control-sm" multiple />
  209. </div>
  210. </div>
  211. <code>Format <b>PDF</b> sahaja yang diterima</code>
  212. </div>
  213. </div>
  214. <div class="row">
  215. <div class="col-lg-6 col-md-12">
  216. <div class="form-group form-primary">
  217. <label class="float-label"><b>Tarikh Mula <code>*</code></b></label>
  218. <input type="datetime-local" name="tarikh_mula" value="{{ $memo->tarikh_mula }}" class="form-control">
  219. <span class="form-bar"></span>
  220. </div>
  221. </div>
  222. <div class="col-lg-6 col-md-12">
  223. <div class="form-group form-primary">
  224. <label class="float-label"><b>Tarikh Akhir <code>*</code></b></label>
  225. <input type="date" name="tarikh_akhir" value="{{ $memo->tarikh_akhir }}" class="form-control">
  226. <span class="form-bar"></span>
  227. </div>
  228. </div>
  229. </div>
  230. <hr>
  231. <div class="md-group-add-on"></div>
  232. <div class="f-right m-t-20">
  233. <button type="submit" class="btn btn-sm btn-outline-danger waves-effect">Kemaskini Rekod Memo</button>
  234. </div>
  235. </form>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. @endsection
  244. @section('external_js')
  245. <script type="text/javascript" src="{{ asset('js/toggle_button_edit.js') }}"></script>
  246. <script type="text/javascript">
  247. var ellipsis = "...";
  248. function TrimLength(text, maxLength)
  249. {
  250. text = $.trim(text);
  251. if (text.length > maxLength)
  252. {
  253. text = text.substring(0, maxLength - ellipsis.length)
  254. return text.substring(0, text.lastIndexOf(" ")) + ellipsis;
  255. }
  256. else
  257. return text;
  258. }
  259. $.ajaxSetup({
  260. headers: {
  261. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  262. }
  263. });
  264. $(document).ready(function() {
  265. var origin = window.location.origin;
  266. $(".theme-loader").animate({
  267. opacity: "0"
  268. },1000);
  269. setTimeout(function() {
  270. $(".theme-loader").remove();
  271. }, 800);
  272. $('[data-toggle="tooltip"]').tooltip();
  273. });
  274. </script>
  275. @endsection