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.

auction_detail.blade.php 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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. <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. @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. <div><a target="_blank" href="{{ url('/main/compound') }}/{{$compound->kpd}}/pdf">Cetak/Papar PDF</a></div>
  112. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}/task" class="{{ Request::is('main/compound/*/task') ? 'active' : '' }}">Serahan Modul/PenguatKuasa</a></div>
  113. @elseif($compound->status == 'Berbayar')
  114. <div><a href="{{ url('main/compound') }}/{{ $compound->kpd }}/index" class="{{ Request::is('main/compound/*/index') ? 'active' : '' }}">Garis Masa/Sejarah</a></div>
  115. <div><a href="{{ url('/main/compound') }}/{{$compound->kpd}}" class="{{ Request::is('main/compound/*') ? 'active' : '' }}">Kompaun</a></div>
  116. <div><a target="_blank" href="{{ url('/main/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 Inventori [ 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 inventori boleh diakses sekiranya kompaun ini berada di dalam kategori <code>modul sitaan - lelong</code></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 class="column-labels">
  139. <div class="row">
  140. <div class="col-lg-6 offset-lg-3">
  141. <p class="txt-highlight text-center m-t-20">Masukkan barcode di sini untuk tambah inventori dijual</p>
  142. </div>
  143. </div>
  144. <div class="row seacrh-header" style="margin-top: 0px">
  145. <div class="col-lg-4 offset-lg-4 offset-sm-3 col-sm-6 offset-sm-1 col-xs-12">
  146. <div class="md-group-add-on form-group form-primary">
  147. <span class="md-add-on-file">
  148. <button class="btn btn-md btn-primary waves-effect waves-light" onclick="addCart()" style="margin-bottom: 15%;">Tambah</button>
  149. </span>
  150. <div class="md-input-file">
  151. <input id="barcode" type="text" class="md-form-control md-form-file form-control" placeholder="Search here...">
  152. <span class="form-bar"></span>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="col-lg-4 offset-lg-4 offset-sm-3 col-sm-6 offset-sm-1 col-xs-12" style="text-align: center;">
  157. @if($errors->any())
  158. <p class="alert alert-danger">{{$errors->first()}}</p>
  159. @endif
  160. </div>
  161. </div>
  162. <div class="row">
  163. <div class="col-lg-12 col-md-12">
  164. <div class="data_table_main dt-responsive table-responsive">
  165. <table id="saman1" class="table table-sm table-striped table-bordered nowrap" style="width:100%">
  166. <thead>
  167. <tr>
  168. <th>Bilangan</th>
  169. <th>Nama</th>
  170. <th>Harga</th>
  171. <th>Tindakan</th>
  172. </tr>
  173. </thead>
  174. <tfoot>
  175. <tr>
  176. <th>Kod</th>
  177. <th>Nama</th>
  178. <th>Harga</th>
  179. <th>Tindakan</th>
  180. </tr>
  181. </tfoot>
  182. </table>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="row">
  187. <div class="col-lg-6 offset-lg-6">
  188. @if(Session::has('cart'))
  189. <div class="p-20 z-depth-bottom-0 waves-effect" style="color: white; background-color: red"><b>Total Price: RM {{$totalPrice}}</b></div>
  190. @endif
  191. </div>
  192. </div>
  193. @if($file->modul == '07')
  194. <div class="row">
  195. <div class="col-lg-12 col-md-12">
  196. <a type="button" href="" class="btn btn-sm btn-out-dashed waves-effect waves-light btn-danger btn-square f-right" style="margin-left: 10%">Bayar</a>
  197. </div>
  198. </div>
  199. @endif
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. @endsection
  209. @section('external_js')
  210. <script type="text/javascript" src="{{ asset('js/toggle_button_edit.js') }}"></script>
  211. <script type="text/javascript">
  212. $.ajaxSetup({
  213. headers: {
  214. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  215. }
  216. });
  217. $('#boleh-alih').hide();
  218. $('#tak-alih').hide();
  219. $(document).ready(function() {
  220. var origin = window.location.origin;
  221. <!-- Theme Loader -->
  222. $(".theme-loader").animate({
  223. opacity: "0"
  224. },1000);
  225. setTimeout(function() {
  226. $(".theme-loader").remove();
  227. }, 800);
  228. $('[data-toggle="tooltip"]').tooltip();
  229. $('#inv-kategori').change(function(){
  230. if( $(this).val()=="alih"){
  231. $('#boleh-alih').show();
  232. $('#tak-alih').hide();
  233. };
  234. if( $(this).val()=="xalih"){
  235. $('#boleh-alih').hide();
  236. $('#tak-alih').show();
  237. };
  238. })
  239. });
  240. </script>
  241. @endsection