Advertisement
lukmanulhakim

1. Profile new machine

Feb 17th, 2020
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 140.74 KB | None | 0 0
  1. @extends('layouts.master')
  2. @php
  3. $mold_temp_s = 0;
  4. $cycle_time_s = 0;
  5. $fill_time_s=0;
  6. $fill_peak_s=0;
  7. $scr_most_mm_s=0;
  8. $scr_most_mpa_s=0;
  9. $mtg_ready_s=0;
  10. $plast_tm_s=0;
  11. $inj_end_position_s=0;
  12. $sm_s=0;
  13. $pp1_s=0;
  14. $pp2_s=0;
  15. $pp3_s=0;
  16. $vp_change_s=0;
  17. $pv1_s=0;
  18. $p1_s=0;
  19. $s5_s=0;
  20. $p2_s=0;
  21. $p3_s=0;
  22. $valve_1_s=0;
  23. $valve_2_s=0;
  24. $valve_3_s=0;
  25. $valve_4_s=0;
  26. $valve_5_s=0;
  27. $valve_6_s=0;
  28. $valve_7_s=0;
  29. $valve_8_s=0;
  30. $valve_9_s=0;
  31. $valve_10_s=0;
  32. $valve_11_s=0;
  33. $valve_12_s=0;
  34. $valve_13_s=0;
  35. $valve_14_s=0;
  36. $valve_15_s=0;
  37. $valve_16_s=0;
  38. $diff_s=0;
  39. $gate_delay_time_s=0;
  40. $gate_open_time_s=0;
  41. $cool_tm_s=0;
  42. $a1_top_s=0;
  43. $a1_bottom_s=0;
  44. $b1_top_s=0;
  45. $b1_bottom_s=0;
  46. $a2_top_s=0;
  47. $a2_bottom_s=0;
  48. $b2_top_s=0;
  49. $b2_bottom_s=0;
  50. $chiller_temp_s=0;
  51. $screw_speed_s=0;
  52. $melt_temp_s=0;
  53. $motor_current_s=0;
  54. $weight_s=0;
  55. $span_s=0;
  56. $temp_setting_l1_s=0;
  57. $temp_setting_l2_s=0;
  58. $temp_setting_l3_s=0;
  59. $temp_setting_l4_s=0;
  60. $pre_below_time_l_s=0;
  61. $pre_below_time_r_s=0;
  62. $calibrator_down_l_s=0;
  63. $calibrator_down_r_s=0;
  64. $left_1_s=0;
  65. $left_2_s=0;
  66. $left_3_s=0;
  67. $left_4_s=0;
  68. $right_1_s=0;
  69. $right_2_s=0;
  70. $right_3_s=0;
  71. $right_4_s=0;
  72.  
  73.  
  74.  
  75.  
  76. if($settings->cycle_time != ''){
  77. $cycle_time = json_decode($settings->cycle_time);
  78. $cycle_time_s = $cycle_time[1];
  79. }else{
  80. $cycle_time = "";
  81. }
  82.  
  83. if($settings->mold_temp_controller != ''){
  84. $mold_temp = json_decode($settings->mold_temp_controller);
  85. $mold_temp_s = $mold_temp[1];
  86. }else{
  87. $mold_temp = "";
  88. }
  89.  
  90. if($settings->fill_time != ''){
  91. $fill_time = json_decode($settings->fill_time);
  92. $fill_time_s = $fill_time[1];
  93. }else{
  94. $fill_time = "";
  95. }
  96.  
  97. if($settings->fill_peak != ''){
  98. $fill_peak = json_decode($settings->fill_peak);
  99. $fill_peak_s = $fill_peak[1];
  100. }else{
  101. $fill_peak = "";
  102. }
  103.  
  104. if($settings->scr_most_mm != ''){
  105. $scr_most_mm = json_decode($settings->scr_most_mm);
  106. $scr_most_mm_s = $scr_most_mm[1];
  107. }else{
  108. $scr_most_mm = "";
  109. }
  110.  
  111. if($settings->scr_most_mpa != ''){
  112. $scr_most_mpa = json_decode($settings->scr_most_mpa);
  113. $scr_most_mpa_s = $scr_most_mpa[1];
  114. }else{
  115. $scr_most_mpa = "";
  116. }
  117.  
  118. if($settings->mtg_ready != ''){
  119. $mtg_ready = json_decode($settings->mtg_ready);
  120. $mtg_ready_s = $mtg_ready[1];
  121. }else{
  122. $mtg_ready = "";
  123. }
  124.  
  125. if($settings->plast_tm != ''){
  126. $plast_tm = json_decode($settings->plast_tm);
  127. $plast_tm_s = $plast_tm[1];
  128. }else{
  129. $plast_tm = "";
  130. }
  131.  
  132. if($settings->inj_end_position != ''){
  133. $inj_end_position = json_decode($settings->inj_end_position);
  134. $inj_end_position_s = $inj_end_position[1];
  135. }else{
  136. $inj_end_position = "";
  137. }
  138.  
  139. if($settings->sm != ''){
  140. $sm = json_decode($settings->sm);
  141. $sm_s = $sm[1];
  142. }else{
  143. $sm = "";
  144. }
  145.  
  146. if($settings->pp1 != ''){
  147. $pp1 = json_decode($settings->pp1);
  148. $pp1_s = $pp1[1];
  149. }else{
  150. $pp1 = "";
  151. }
  152.  
  153. if($settings->pp2 != ''){
  154. $pp2 = json_decode($settings->pp2);
  155. $pp2_s = $pp2[1];
  156. }else{
  157. $pp2 = "";
  158. }
  159.  
  160. if($settings->pp3 != ''){
  161. $pp3 = json_decode($settings->pp3);
  162. $pp3_s = $pp3[1];
  163. }else{
  164. $pp3 = "";
  165. }
  166.  
  167. if($settings->vp_change != ''){
  168. $vp_change = json_decode($settings->vp_change);
  169. $vp_change_s = $vp_change[1];
  170. }else{
  171. $vp_change = "";
  172. }
  173.  
  174. if($settings->pv1 != ''){
  175. $pv1 = json_decode($settings->pv1);
  176. $pv1_s = $pv1[1];
  177. }else{
  178. $pv1 = "";
  179. }
  180.  
  181. if($settings->p1 != ''){
  182. $p1 = json_decode($settings->p1);
  183. $p1_s = $p1[1];
  184. }else{
  185. $p1 = "";
  186. }
  187.  
  188. if($settings->s5 != ''){
  189. $s5 = json_decode($settings->s5);
  190. $s5_s = $s5[1];
  191. }else{
  192. $s5 = "";
  193. }
  194.  
  195. if($settings->p2 != ''){
  196. $p2 = json_decode($settings->p2);
  197. $p2_s = $p2[1];
  198. }else{
  199. $p2 = "";
  200. }
  201.  
  202. if($settings->p3 != ''){
  203. $p3 = json_decode($settings->p3);
  204. $p3_s = $p3[1];
  205. }else{
  206. $p3 = "";
  207. }
  208.  
  209. if($settings->valve_1 != ''){
  210. $valve_1 = json_decode($settings->valve_1);
  211. $valve_1_s = $valve_1[1];
  212. }else{
  213. $valve_1 = "";
  214. }
  215.  
  216. if($settings->valve_2 != ''){
  217. $valve_2 = json_decode($settings->valve_2);
  218. $valve_2_s = $valve_2[1];
  219. }else{
  220. $valve_2 = "";
  221. }
  222. if($settings->valve_3 != ''){
  223. $valve_3 = json_decode($settings->valve_3);
  224. $valve_3_s = $valve_3[1];
  225. }else{
  226. $valve_3 = "";
  227. }
  228.  
  229. if($settings->valve_4 != ''){
  230. $valve_4 = json_decode($settings->valve_4);
  231. $valve_4_s = $valve_4[1];
  232. }else{
  233. $valve_4 = "";
  234. }
  235.  
  236. if($settings->valve_5 != ''){
  237. $valve_5 = json_decode($settings->valve_5);
  238. $valve_5_s = $valve_5[1];
  239. }else{
  240. $valve_5 = "";
  241. }
  242.  
  243. if($settings->valve_6 != ''){
  244. $valve_6 = json_decode($settings->valve_6);
  245. $valve_6_s = $valve_6[1];
  246. }else{
  247. $valve_6 = "";
  248. }
  249.  
  250. if($settings->valve_7 != ''){
  251. $valve_7 = json_decode($settings->valve_7);
  252. $valve_7_s = $valve_7[1];
  253. }else{
  254. $valve_7 = "";
  255. }
  256.  
  257. if($settings->valve_8 != ''){
  258. $valve_8 = json_decode($settings->valve_8);
  259. $valve_8_s = $valve_8[1];
  260. }else{
  261. $valve_8 = "";
  262. }
  263.  
  264. if($settings->valve_9 != ''){
  265. $valve_9 = json_decode($settings->valve_9);
  266. $valve_9_s = $valve_9[1];
  267. }else{
  268. $valve_9 = "";
  269. }
  270.  
  271. if($settings->valve_10 != ''){
  272. $valve_10 = json_decode($settings->valve_10);
  273. $valve_10_s = $valve_10[1];
  274. }else{
  275. $valve_10 = "";
  276. }
  277.  
  278. if($settings->valve_11 != ''){
  279. $valve_11 = json_decode($settings->valve_11);
  280. $valve_11_s = $valve_11[1];
  281. }else{
  282. $valve_11 = "";
  283. }
  284.  
  285. if($settings->valve_12 != ''){
  286. $valve_12 = json_decode($settings->valve_12);
  287. $valve_12_s = $valve_12[1];
  288. }else{
  289. $valve_12 = "";
  290. }
  291.  
  292. if($settings->valve_13 != ''){
  293. $valve_13 = json_decode($settings->valve_13);
  294. $valve_13_s = $valve_13[1];
  295. }else{
  296. $valve_13 = "";
  297. }
  298.  
  299. if($settings->valve_14 != ''){
  300. $valve_14 = json_decode($settings->valve_14);
  301. $valve_14_s = $valve_14[1];
  302. }else{
  303. $valve_14 = "";
  304. }
  305.  
  306. if($settings->valve_15 != ''){
  307. $valve_15 = json_decode($settings->valve_15);
  308. $valve_15_s = $valve_15[1];
  309. }else{
  310. $valve_15 = "";
  311. }
  312.  
  313. if($settings->valve_16 != ''){
  314. $valve_16 = json_decode($settings->valve_16);
  315. $valve_16_s = $valve_16[1];
  316. }else{
  317. $valve_16 = "";
  318. }
  319.  
  320. if($settings->diff != ''){
  321. $diff = json_decode($settings->diff);
  322. $diff_s = $diff[1];
  323. }else{
  324. $diff = "";
  325. }
  326.  
  327. if($settings->gate_delay_time != ''){
  328. $gate_delay_time = json_decode($settings->gate_delay_time);
  329. $gate_delay_time_s = $gate_delay_time[1];
  330. }else{
  331. $gate_delay_time = "";
  332. }
  333.  
  334. if($settings->gate_open_time != ''){
  335. $gate_open_time = json_decode($settings->gate_open_time);
  336. $gate_open_time_s = $gate_open_time[1];
  337. }else{
  338. $gate_open_time = "";
  339. }
  340.  
  341. if($settings->cool_tm != ''){
  342. $cool_tm = json_decode($settings->cool_tm);
  343. $cool_tm_s = $cool_tm[1];
  344. }else{
  345. $cool_tm = "";
  346. }
  347.  
  348. if($settings->a1_top != ''){
  349. $a1_top = json_decode($settings->a1_top);
  350. $a1_top_s = $a1_top[1];
  351. }else{
  352. $a1_top = "";
  353. }
  354.  
  355. if($settings->a1_bottom != ''){
  356. $a1_bottom = json_decode($settings->a1_bottom);
  357. $a1_bottom_s = $a1_bottom[1];
  358. }else{
  359. $a1_bottom = "";
  360. }
  361.  
  362. if($settings->b1_top != ''){
  363. $b1_top = json_decode($settings->b1_top);
  364. $b1_top_s = $b1_top[1];
  365. }else{
  366. $b1_top = "";
  367. }
  368.  
  369. if($settings->b1_bottom != ''){
  370. $b1_bottom = json_decode($settings->b1_bottom);
  371. $b1_bottom_s = $b1_bottom[1];
  372. }else{
  373. $b1_bottom = "";
  374. }
  375.  
  376. if($settings->a2_top != ''){
  377. $a2_top = json_decode($settings->a2_top);
  378. $a2_top_s = $a2_top[1];
  379. }else{
  380. $a2_top = "";
  381. }
  382.  
  383. if($settings->a2_bottom != ''){
  384. $a2_bottom = json_decode($settings->a2_bottom);
  385. $a2_bottom_s = $a2_bottom[1];
  386. }else{
  387. $a2_bottom = "";
  388. }
  389.  
  390. if($settings->b2_top != ''){
  391. $b2_top = json_decode($settings->b2_top);
  392. $b2_top_s = $b2_top[1];
  393. }else{
  394. $b2_top = "";
  395. }
  396.  
  397. if($settings->b2_bottom != ''){
  398. $b2_bottom = json_decode($settings->b2_bottom);
  399. $b2_bottom_s = $b2_bottom[1];
  400. }else{
  401. $b2_bottom = "";
  402. }
  403.  
  404. if($settings->chiller_temp != ''){
  405. $chiller_temp = json_decode($settings->chiller_temp);
  406. $chiller_temp_s = $chiller_temp[1];
  407. }else{
  408. $chiller_temp = "";
  409. }
  410.  
  411. if($settings->screw_speed != ''){
  412. $screw_speed = json_decode($settings->screw_speed);
  413. $screw_speed_s = $screw_speed[1];
  414. }else{
  415. $screw_speed = "";
  416. }
  417.  
  418. if($settings->melt_temp != ''){
  419. $melt_temp = json_decode($settings->melt_temp);
  420. $melt_temp_s = $melt_temp[1];
  421. }else{
  422. $melt_temp = "";
  423. }
  424.  
  425. if($settings->motor_current != ''){
  426. $motor_current = json_decode($settings->motor_current);
  427. $motor_current_s = $motor_current[1];
  428. }else{
  429. $motor_current = "";
  430. }
  431.  
  432. if($settings->weight != ''){
  433. $weight = json_decode($settings->weight);
  434. $weight_s = $weight[1];
  435. }else{
  436. $weight = "";
  437. }
  438.  
  439. if($settings->span != ''){
  440. $span = json_decode($settings->span);
  441. $span_s = $span[1];
  442. }else{
  443. $span = "";
  444. }
  445.  
  446. if($settings->temp_setting_l1 != ''){
  447. $temp_setting_l1 = json_decode($settings->temp_setting_l1);
  448. $temp_setting_l1_s = $temp_setting_l1[1];
  449. }else{
  450. $temp_setting_l1 = "";
  451. }
  452.  
  453. if($settings->temp_setting_l2 != ''){
  454. $temp_setting_l2 = json_decode($settings->temp_setting_l2);
  455. $temp_setting_l2_s = $temp_setting_l2[1];
  456. }else{
  457. $temp_setting_l2 = "";
  458. }
  459.  
  460. if($settings->temp_setting_l3 != ''){
  461. $temp_setting_l3 = json_decode($settings->temp_setting_l3);
  462. $temp_setting_l3_s = $temp_setting_l3[1];
  463. }else{
  464. $temp_setting_l3 = "";
  465. }
  466.  
  467. if($settings->temp_setting_l4 != ''){
  468. $temp_setting_l4 = json_decode($settings->temp_setting_l4);
  469. $temp_setting_l4_s = $temp_setting_l4[1];
  470. }else{
  471. $temp_setting_l4 = "";
  472. }
  473.  
  474. if($settings->pre_below_time_l != ''){
  475. $pre_below_time_l = json_decode($settings->pre_below_time_l);
  476. $pre_below_time_l_s = $pre_below_time_l[1];
  477. }else{
  478. $pre_below_time_l = "";
  479. }
  480.  
  481. if($settings->pre_below_time_r != ''){
  482. $pre_below_time_r = json_decode($settings->pre_below_time_r);
  483. $pre_below_time_r_s = $pre_below_time_r[1];
  484.  
  485. }else{
  486. $pre_below_time_r = "";
  487. }
  488.  
  489. if($settings->calibrator_down_l != ''){
  490. $calibrator_down_l = json_decode($settings->calibrator_down_l);
  491. $calibrator_down_l_s = $calibrator_down_l[1];
  492. }else{
  493. $calibrator_down_l = "";
  494. }
  495.  
  496. if($settings->calibrator_down_r != ''){
  497. $calibrator_down_r = json_decode($settings->calibrator_down_r);
  498. $calibrator_down_r_s = $calibrator_down_r[1];
  499. }else{
  500. $calibrator_down_r = "";
  501. }
  502.  
  503. if($settings->left_1 != ''){
  504. $left_1 = json_decode($settings->left_1);
  505. $left_1_s = $left_1[1];
  506. }else{
  507. $left_1 = "";
  508. }
  509.  
  510. if($settings->left_2 != ''){
  511. $left_2 = json_decode($settings->left_2);
  512. $left_2_s = $left_2[1];
  513. }else{
  514. $left_2 = "";
  515. }
  516.  
  517. if($settings->left_3 != ''){
  518. $left_3 = json_decode($settings->left_3);
  519. $left_3_s = $left_3[1];
  520. }else{
  521. $left_3 = "";
  522. }
  523.  
  524. if($settings->left_4 != ''){
  525. $left_4 = json_decode($settings->left_4);
  526. $left_4_s = $left_4[1];
  527. }else{
  528. $left_4 = "";
  529. }
  530.  
  531. if($settings->right_1 != ''){
  532. $right_1 = json_decode($settings->right_1);
  533. $right_1_s = $right_1[1];
  534. }else{
  535. $right_1 = "";
  536. }
  537.  
  538. if($settings->right_2 != ''){
  539. $right_2 = json_decode($settings->right_2);
  540. $right_2_s = $right_2[1];
  541. }else{
  542. $right_2 = "";
  543. }
  544.  
  545. if($settings->right_3 != ''){
  546. $right_3 = json_decode($settings->right_3);
  547. $right_3_s = $right_3[1];
  548. }else{
  549. $right_3 = "";
  550. }
  551.  
  552. if($settings->right_4 != ''){
  553. $right_4 = json_decode($settings->right_4);
  554. $right_4_s = $right_4[1];
  555. }else{
  556. $right_4 = "";
  557. }
  558. @endphp
  559. @section('content')
  560. @section('assets_top')
  561. <link rel="stylesheet" href="{{asset('css/bootstrap-toggle.min.css')}}">
  562. <link rel="stylesheet" href="{{asset('css/Chart.css')}}">
  563. <link rel="stylesheet" type="text/css" href="{{asset('css/Chart.min.css')}}">
  564. <style type="text/css">
  565. .toggle-on {
  566. padding-left: 6px !important;
  567. }
  568. .btn-info {
  569. color: #fff;
  570. background-color: #de86d5;
  571. border-color: #de86d5;
  572. }
  573. </style>
  574. @endsection
  575. <div class="main">
  576.  
  577. <div class="main-content">
  578.  
  579.  
  580. <link rel="stylesheet" href="{{asset('admin/assets/css/datatable/dataTables.bootstrap.min.css')}}">
  581.  
  582.  
  583. <div class="container-fluid">
  584. <div class="panel-title">Identity Machine</div>
  585.  
  586. <table class="table table-striped ">
  587. <thead>
  588. <tr>
  589. <th>Line</th>
  590. <th>Machine Name </th>
  591. <th>Model</th>
  592. <th>Part Name</th>
  593. <th>Part Code</th>
  594. <th>Mold No</th>
  595. <th>Cavity No</th>
  596.  
  597. </tr>
  598. </thead>
  599. <tbody>
  600.  
  601.  
  602. <tr>
  603. <td>{{$machine->line_number}}</td>
  604. <td>{{$machine->machine_name}}</td>
  605. <td>{{$machine->model}}</td>
  606. <td>{{$machine->part_name}}</td>
  607. <td>{{$machine->part_code}}</td>
  608. <td>{{$machine->mold_no}}</td>
  609. <td>{{$machine->cavity_no}}</td>
  610.  
  611. </tr>
  612.  
  613. </tbody>
  614. </table>
  615. </div>
  616.  
  617.  
  618.  
  619.  
  620. <div class="row">
  621. <div class="col-md-12">
  622. <div class="row">
  623. <div class="col-md-12">
  624. <div class="col-md-12" id="camera" style="display: none;text-align: center;">
  625. <br></br>
  626. <canvas id="canvaswebcam"></canvas>
  627. </div>@if(Auth::user()->level == 1 || Auth::user()->level == 2 )
  628. <div class="panel">
  629.  
  630. <div class="panel-heading" align="center"> Scan QR Code
  631. </div>
  632. <div class="panel-body">
  633. <div class="form-group col-md-12">
  634. <br>
  635.  
  636.  
  637. <div class="footer" align="center">
  638.  
  639. <button type="button" id="stop" class="btn btn-primary " style="display: none">Stop Scan</button>
  640. <button type="button" id="scan" class="btn btn-primary ">Scan QRCode</button>
  641.  
  642. </div>
  643. </div>
  644.  
  645.  
  646.  
  647. </div>
  648. </div>
  649. </div>
  650. </div>
  651.  
  652. @endif
  653.  
  654. <div class="panel">
  655.  
  656.  
  657. <div class="panel-body">
  658.  
  659. <div class="form-group col-md-6" align="left">
  660. <a href="/newmachine/"><button type="button" class="btn btn-danger"><i class="fa fa-arrow-left"></i> Back To Machine </button></a>
  661. </div>
  662.  
  663. <div class="form-group col-md-6" align="right">
  664. @if(Auth::user()->level == 1)
  665. <a href="#"><button type="button" class="btn btn-danger" id="submit_ng" style="display: none"><i class="fa fa-plus-square"></i> NG </button></a>
  666. <a href="#"><button type="button" class="btn btn-default" id="commentspv" style="display: none"><i class="fa fa-plus-square"></i> Comment </button></a>
  667. <a href="#"><button type="button" class="btn btn-success" id="submit_approve" style="display: none"><i class="fa fa-plus-square"></i> Submit </button></a>
  668. <a href="#"><button type="button" class="btn btn-success" id="approve"><i class="fa fa-plus-square"></i> Approve </button></a>
  669. @endif
  670.  
  671. @if(Auth::user()->level == 5)
  672. <a href="#"><button type="button" class="btn btn-danger" id="submit_ngmanager" style="display: none"><i class="fa fa-plus-square"></i> NG </button></a>
  673. <a href="#"><button type="button" class="btn btn-success" id="submit_approvemanager" style="display: none"><i class="fa fa-plus-square"></i> Submit </button></a>
  674. <a href="#"><button type="button" class="btn btn-success" id="approvemanager"><i class="fa fa-plus-square"></i> Approve For Manager </button></a>
  675. @endif
  676.  
  677. @if(Auth::user()->level == 1 || Auth::user()->level == 2 )
  678. <a href="/newmachine/{{$machine->id}}/profile/inputdaily"><button type="button" class="btn btn-primary"><i class="fa fa-plus-square"></i> Checksheet Daily </button></a>
  679. @endif
  680. @if(Auth::user()->level == 1 || Auth::user()->level == 2 )
  681. <button type="button" class="btn btn-warning" data-toggle="modal" data-target="#exampleModal"><i class="fa fa-plus-square"></i> Standart Setting </button>
  682. @endif
  683.  
  684.  
  685. <button type="button" class="btn btn-info hotrunner" data-img1="{{$machine->pict1}}">Latest Hot Runner System </button>
  686.  
  687. </div>
  688.  
  689. <div class="form-group col-md-12">
  690.  
  691. <table id="bootstrap-data-table-2" class="table table-striped table-bordered">
  692.  
  693. <thead>
  694.  
  695. <tr>
  696. @if(Auth::user()->level == 1)
  697. <th style="display: none" id="approved">Check</th>
  698. @endif
  699. @if(Auth::user()->level == 1)
  700. <th style="display: none" id="approved"></th>
  701. @endif
  702.  
  703. @if(Auth::user()->level == 5)
  704. <th style="display: none" id="approvedmanager">Check</th>
  705. @endif
  706.  
  707. @if(Auth::user()->level == 2)
  708. <th style="display: none" ></th>
  709. @endif
  710.  
  711. @if(Auth::user()->level == 2)
  712. <th style="display: none" ></th>
  713. @endif
  714.  
  715. @if(Auth::user()->level == 3)
  716. <th style="display: none" ></th>
  717. @endif
  718.  
  719. @if(Auth::user()->level == 4)
  720. <th style="display: none" ></th>
  721. @endif
  722.  
  723. <th style="display: none" ></th>
  724.  
  725. @if(Auth::user()->level == null)
  726. <th style="display: none" ></th>
  727. @endif
  728.  
  729.  
  730.  
  731.  
  732. <th>Date</th>
  733. <th>Day</th>
  734. <th>Actual Time</th>
  735. <th>Duration</th>
  736.  
  737. @if($machine_settingA->mold_temp_controller == 1)
  738. <th>Mold Temp Controller [⁰C]</th>
  739. @endif
  740.  
  741. @if($machine_settingA->cycle_time == 1)
  742. <th>Cycle Time [sec]</th>
  743. @endif
  744.  
  745. @if($machine_settingA->fill_time == 1)
  746. <th>Fill Time [sec]</th>
  747. @endif
  748.  
  749. @if($machine_settingA->fill_peak == 1)
  750. <th>Fill Peak [Mpa]</th>
  751. @endif
  752.  
  753. @if($machine_settingA->scr_most_mm == 1)
  754. <th>Fill Peak [%] </th>
  755. @endif
  756.  
  757. @if($machine_settingA->scr_most_mpa == 1)
  758. <th>Screw Most MPa </th>
  759. @endif
  760.  
  761. @if($machine_settingA->mtg_ready == 1)
  762. <th>Smart Feeder Controller [rpm]</th>
  763. @endif
  764.  
  765. @if($machine_settingA->plast_tm == 1)
  766. <th>Plast TM</th>
  767. @endif
  768.  
  769. @if($machine_settingA->inj_end_position == 1)
  770. <th>Injection End Position [mm]</th>
  771. @endif
  772.  
  773. @if($machine_settingA->sm == 1)
  774. <th>SM [mm]</th>
  775. @endif
  776.  
  777. @if($machine_settingA->pp1 == 1)
  778. <th>PP1 [%]</th>
  779. @endif
  780.  
  781. @if($machine_settingA->pp2 == 1)
  782. <th>PP2 [%]</th>
  783. @endif
  784.  
  785. @if($machine_settingA->pp3 == 1)
  786. <th>PP3 [%]</th>
  787. @endif
  788.  
  789. @if($machine_settingA->vp_change == 1)
  790. <th>V-P Change [mm]</th>
  791. @endif
  792.  
  793. @if($machine_settingA->pv1 == 1)
  794. <th>PV 1 [Mpa]</th>
  795. @endif
  796.  
  797. @if($machine_settingA->p1 == 1)
  798. <th>P1 [%]</th>
  799. @endif
  800.  
  801. @if($machine_settingA->s5 == 1)
  802. <th>S5 [mm]</th>
  803. @endif
  804.  
  805. @if($machine_settingA->p2 == 1)
  806. <th>P2 [%]</th>
  807. @endif
  808.  
  809. @if($machine_settingA->p3 == 1)
  810. <th>P3 [%]</th>
  811. @endif
  812.  
  813. @if($machine_settingA->valve_1 == 1)
  814. <th>Valve Pin Heater 1 [⁰C]</th>
  815. @endif
  816.  
  817. @if($machine_settingA->valve_2 == 1)
  818. <th>Valve Pin Heater 2 [⁰C]</th>
  819. @endif
  820.  
  821. @if($machine_settingA->valve_3 == 1)
  822. <th>Valve Pin Heater 3 [⁰C]</th>
  823. @endif
  824.  
  825. @if($machine_settingA->valve_4 == 1)
  826. <th>Valve Pin Heater 4 [⁰C]</th>
  827. @endif
  828.  
  829. @if($machine_settingA->valve_5 == 1)
  830. <th>Valve Pin Heater 5 [⁰C]</th>
  831. @endif
  832.  
  833. @if($machine_settingA->valve_6 == 1)
  834. <th>Valve Pin Heater 6 [⁰C]</th>
  835. @endif
  836.  
  837. @if($machine_settingA->valve_7 == 1)
  838. <th>Valve Pin Heater 7 [⁰C]</th>
  839. @endif
  840.  
  841. @if($machine_settingA->valve_8 == 1)
  842. <th>Valve Pin Heater 8 [⁰C]</th>
  843. @endif
  844.  
  845. @if($machine_settingA->valve_9 == 1)
  846. <th>Valve Pin Heater 9 [⁰C]</th>
  847. @endif
  848.  
  849. @if($machine_settingA->valve_10 == 1)
  850. <th>Valve Pin Heater 10 [⁰C]</th>
  851. @endif
  852.  
  853. @if($machine_settingA->valve_11 == 1)
  854. <th>Valve Pin Heater 11 [⁰C]</th>
  855. @endif
  856.  
  857. @if($machine_settingA->valve_12 == 1)
  858. <th>Valve Pin Heater 12 [⁰C]</th>
  859. @endif
  860.  
  861. @if($machine_settingA->valve_13 == 1)
  862. <th>Valve Pin Heater 13 [⁰C]</th>
  863. @endif
  864.  
  865. @if($machine_settingA->valve_14 == 1)
  866. <th>Valve Pin Heater 14 [⁰C]</th>
  867. @endif
  868.  
  869. @if($machine_settingA->valve_15 == 1)
  870. <th>Valve Pin Heater 15 [⁰C]</th>
  871. @endif
  872.  
  873. @if($machine_settingA->valve_16 == 1)
  874. <th>Valve Pin Heater 16 [⁰C]</th>
  875. @endif
  876.  
  877. @if($machine_settingA->diff == 1)
  878. <th>DIFF [⁰C]</th>
  879. @endif
  880.  
  881. @if($machine_settingA->gate_delay_time == 1)
  882. <th>Gate Open Delay Time [sec]</th>
  883. @endif
  884.  
  885. @if($machine_settingA->gate_open_time == 1)
  886. <th>Gate Open Time [sec]</th>
  887. @endif
  888.  
  889. @if($machine_settingA->distinction == 1)
  890. <th>Distinction</th>
  891. @endif
  892.  
  893. @if($machine_settingA->distinction_f1 == 1)
  894. <th>Distinction F1</th>
  895. @endif
  896.  
  897. @if($machine_settingA->distinction_f2 == 1)
  898. <th>Distinction F2</th>
  899. @endif
  900.  
  901.  
  902. @if($machine_settingA->cool_tm == 1)
  903. <th>Cool TM [sec]</th>
  904. @endif
  905.  
  906. @if($machine_settingA->a1_top == 1)
  907. <th>Cav 1 Top [⁰C]</th>
  908. @endif
  909.  
  910. @if($machine_settingA->a1_bottom == 1)
  911. <th>Cav 1 Bottom [⁰C]</th>
  912. @endif
  913.  
  914. @if($machine_settingA->b1_top == 1)
  915. <th>Cav 2 Top [⁰C]</th>
  916. @endif
  917.  
  918. @if($machine_settingA->b1_bottom == 1)
  919. <th>Cav 2 Bottom [⁰C]</th>
  920. @endif
  921.  
  922. @if($machine_settingA->a2_top == 1)
  923. <th>Cav 3 Top [⁰C]</th>
  924. @endif
  925.  
  926. @if($machine_settingA->a2_bottom == 1)
  927. <th>Cav 3 Bottom [⁰C]</th>
  928. @endif
  929.  
  930. @if($machine_settingA->b2_top == 1)
  931. <th>Cav 4 Top [⁰C]</th>
  932. @endif
  933.  
  934. @if($machine_settingA->b2_bottom == 1)
  935. <th>Cav 4 Bottom [⁰C]</th>
  936. @endif
  937.  
  938. @if($machine_settingB->chiller_temp == 1)
  939. <th>Chiller Time [⁰C]</th>
  940. @endif
  941.  
  942. @if($machine_settingB->screw_speed == 1)
  943. <th>Screw Speed [rpm]</th>
  944. @endif
  945.  
  946. @if($machine_settingB->melt_temp == 1)
  947. <th>Melt Temp [⁰C]</th>
  948. @endif
  949.  
  950. @if($machine_settingB->motor_current == 1)
  951. <th>Motor Current [A]</th>
  952. @endif
  953.  
  954. @if($machine_settingB->weight == 1)
  955. <th>Wieght [mm]</th>
  956. @endif
  957.  
  958. @if($machine_settingB->span == 1)
  959. <th>Span [mm]</th>
  960. @endif
  961.  
  962. @if($machine_settingB->temp_setting_l1 == 1)
  963. <th>Temperature Setting L1 [⁰C]</th>
  964. @endif
  965.  
  966. @if($machine_settingB->temp_setting_l2 == 1)
  967. <th>Temperature Setting L2 [⁰C]</th>
  968. @endif
  969.  
  970. @if($machine_settingB->temp_setting_l3 == 1)
  971. <th>Temperature Setting L3 [⁰C]</th>
  972. @endif
  973.  
  974. @if($machine_settingB->temp_setting_l4 == 1)
  975. <th>Temperature Setting L4 [⁰C]</th>
  976. @endif
  977.  
  978. @if($machine_settingB->pre_below_time_l == 1)
  979. <th>Pre Below Time Left [sec]</th>
  980. @endif
  981.  
  982. @if($machine_settingB->pre_below_time_r == 1)
  983. <th>Pre Below Time Right [sec]</th>
  984. @endif
  985.  
  986. @if($machine_settingB->calibrator_down_l == 1)
  987. <th>Calibrator Down Left [sec]</th>
  988. @endif
  989.  
  990. @if($machine_settingB->calibrator_down_r == 1)
  991. <th>Calibrator Down Right [sec]</th>
  992. @endif
  993.  
  994. @if($machine_settingB->left_1 == 1)
  995. <th>Left 1 [%]</th>
  996. @endif
  997.  
  998. @if($machine_settingB->left_2 == 1)
  999. <th>Left 2 [%]</th>
  1000. @endif
  1001.  
  1002. @if($machine_settingB->left_3 == 1)
  1003. <th>Left 3 [%]</th>
  1004. @endif
  1005.  
  1006. @if($machine_settingB->left_4 == 1)
  1007. <th>Left 4 [%]</th>
  1008. @endif
  1009.  
  1010. @if($machine_settingB->right_1 == 1)
  1011. <th>Right 1 [%]</th>
  1012. @endif
  1013.  
  1014. @if($machine_settingB->right_2 == 1)
  1015. <th>Right 2 [%]</th>
  1016. @endif
  1017.  
  1018. @if($machine_settingB->right_3 == 1)
  1019. <th>Right 3 [%]</th>
  1020. @endif
  1021.  
  1022. @if($machine_settingB->right_4 == 1)
  1023. <th>Right 4 [%]</th>
  1024. @endif
  1025.  
  1026. <th>Checked</th>
  1027. <th>Remark</th>
  1028. <th>Option</th>
  1029. <th>Status Superior</th>
  1030. <th>Comment Superior</th>
  1031. <th>Status Manager</th>
  1032. <th>Comment Manager</th>
  1033. </tr>
  1034. </thead>
  1035. <tbody>
  1036. @php
  1037. $i = 0;
  1038. @endphp
  1039. @foreach($machine_inputA as $machineA)
  1040. @php
  1041. $i++;
  1042. @endphp
  1043. <tr>
  1044. @if(Auth::user()->level == 1)
  1045. <td class="approved_checkbox" style="display: none"><input id="{{ 'index'.$i }}" type="checkbox" data-unit="{{ $i % 9 == 0 ? 1:0 || $i == 1 ? 1:0 }}" class="form-control approved_data" data-index="{{ $i }}" value="{{ $machineA->daily_id }}" name="approved[]"></td>
  1046. @endif
  1047.  
  1048. @if((Auth::user()->level == 5) && $machineA->status !=null )
  1049. <td class="approvedmanager_checkbox" style="display: none"><input id="{{ 'index'.$i }}" type="checkbox" data-unit="{{ $i % 9 == 0 ? 1:0 || $i == 1 ? 1:0 }}" class="form-control approvedmanager_data" data-index="{{ $i }}" value="{{ $machineA->daily_id }}" name="approvedmanager[]"></td>
  1050. @else
  1051. <td class="approvedmanager_checkbox" style="display: none;">-</td>
  1052. @endif
  1053.  
  1054. @if(Auth::user()->level == 2 )
  1055. <td style="display: none"></td>
  1056. @endif
  1057.  
  1058.  
  1059. <td style="display: none"></td>
  1060.  
  1061.  
  1062.  
  1063.  
  1064. <td>{{ date('d-F-Y', strtotime($machineA->date)) }}</td>
  1065. <td>{{ date('D', strtotime($machineA->date)) }}</td>
  1066. <td>{{ $machineA->actual_time }}</td>
  1067. <td>{{$machineA->downtime}}</td>
  1068.  
  1069.  
  1070. @if($machine_settingA->mold_temp_controller == 1)
  1071.  
  1072. <td style="color: {{$machineA->mold_temp_controller > $mold_temp_s ? 'red':'' }}">{{ $machineA->mold_temp_controller }}</td>
  1073. @endif
  1074.  
  1075. @if($machine_settingA->cycle_time == 1)
  1076. <td style="color : {{$machineA->cycle_time > $cycle_time_s ? 'red':''}}">{{ $machineA->cycle_time }}</td>
  1077. @endif
  1078.  
  1079. @if($machine_settingA->fill_time == 1)
  1080. <td style="color : {{$machineA->fill_time > $fill_time_s ? 'red':''}}">{{ $machineA->fill_time }}</td>
  1081. @endif
  1082.  
  1083. @if($machine_settingA->fill_peak == 1)
  1084. <td style="color : {{$machineA->fill_peak > $fill_peak_s ? 'red':''}}">{{ $machineA->fill_peak }}</td>
  1085. @endif
  1086.  
  1087. @if($machine_settingA->scr_most_mm == 1)
  1088. <td style="color: {{$machineA->scr_most_mm > $scr_most_mm_s ? 'red':''}}">{{ $machineA->scr_most_mm }}</td>
  1089. @endif
  1090.  
  1091. @if($machine_settingA->scr_most_mpa == 1)
  1092. <td style="color: {{$machineA->scr_most_mpa > $scr_most_mpa_s ?'red' :''}}">{{ $machineA->scr_most_mpa }}</td>
  1093. @endif
  1094.  
  1095. @if($machine_settingA->mtg_ready == 1)
  1096. <td style="color: {{$machineA->mtg_ready > $mtg_ready_s ?'red':''}}">{{ $machineA->mtg_ready }}</td>
  1097. @endif
  1098.  
  1099. @if($machine_settingA->plast_tm == 1)
  1100. <td style="color: {{$machineA->plast_tm > $plast_tm_s ? 'red':''}}">{{ $machineA->plast_tm }}</td>
  1101. @endif
  1102.  
  1103. @if($machine_settingA->inj_end_position == 1)
  1104. <td style="color: {{$machineA->inj_end_position > $inj_end_position_s ? 'red':''}}">{{ $machineA->inj_end_position }}</td>
  1105. @endif
  1106.  
  1107. @if($machine_settingA->sm == 1)
  1108. <td style="color: {{$machineA->sm > $sm_s ? 'red':''}}">{{ $machineA->sm }}</td>
  1109. @endif
  1110.  
  1111. @if($machine_settingA->pp1 == 1)
  1112. <td style="color: {{$machineA->pp1 > $pp1_s ?'red':''}}">{{ $machineA->pp1 }}</td>
  1113. @endif
  1114.  
  1115. @if($machine_settingA->pp2 == 1)
  1116. <td style="color: {{$machineA->pp2 > $pp2_s ? 'red':''}}" >{{ $machineA->pp2 }}</td>
  1117. @endif
  1118.  
  1119. @if($machine_settingA->pp3 == 1)
  1120. <td style="color: {{$machineA->pp3 > $pp3_s ? 'red':''}}">{{ $machineA->pp3 }}</td>
  1121. @endif
  1122.  
  1123. @if($machine_settingA->vp_change == 1)
  1124. <td style="color: {{$machineA->vp_change > $vp_change_s ? 'red':''}}">{{ $machineA->vp_change }}</td>
  1125. @endif
  1126.  
  1127. @if($machine_settingA->pv1 == 1)
  1128. <td style="color: {{$machineA->pv1 > $pv1_s ?'red':''}}">{{ $machineA->pv1 }}</td>
  1129. @endif
  1130.  
  1131. @if($machine_settingA->p1 == 1)
  1132. <td style="color: {{$machineA->p1 > $p1_s ? 'red':''}}">{{ $machineA->p1 }}</td>
  1133. @endif
  1134.  
  1135. @if($machine_settingA->s5 == 1)
  1136. <td style="color: {{$machineA->s5 > $s5_s ? 'red':''}}">{{ $machineA->s5 }}</td>
  1137. @endif
  1138.  
  1139. @if($machine_settingA->p2 == 1)
  1140. <td style="color: {{$machineA->p2 > $p2_s ? 'red':''}}">{{ $machineA->p2 }}</td>
  1141. @endif
  1142.  
  1143. @if($machine_settingA->p3 == 1)
  1144. <td style="color: {{$machineA->p3 > $p3_s ? 'red':''}}">{{ $machineA->p3 }}</td>
  1145. @endif
  1146.  
  1147. @if($machine_settingA->valve_1 == 1)
  1148. <td style="color: {{$machineA->valve_1 > $valve_1_s ? 'red':''}}" >{{ $machineA->valve_1 }}</td>
  1149. @endif
  1150.  
  1151. @if($machine_settingA->valve_2 == 1)
  1152. <td style="color: {{$machineA->valve_2 > $valve_2_s ? 'red':''}}">{{ $machineA->valve_2 }}</td>
  1153. @endif
  1154.  
  1155. @if($machine_settingA->valve_3 == 1)
  1156. <td style="color: {{$machineA->valve_3 > $valve_3_s ? 'red':''}}">{{ $machineA->valve_3 }}</td>
  1157. @endif
  1158.  
  1159. @if($machine_settingA->valve_4 == 1)
  1160. <td style="color: {{$machineA->valve_4 > $valve_4_s ? 'red':''}}">{{ $machineA->valve_4 }}</td>
  1161. @endif
  1162.  
  1163. @if($machine_settingA->valve_5 == 1)
  1164. <td style="color: {{$machineA->valve_5 > $valve_5_s ? 'red':''}}">{{ $machineA->valve_5 }}</td>
  1165. @endif
  1166.  
  1167. @if($machine_settingA->valve_6 == 1)
  1168. <td style="color: {{$machineA->valve_6 > $valve_6_s ? 'red':''}}">{{ $machineA->valve_6 }}</td>
  1169. @endif
  1170.  
  1171. @if($machine_settingA->valve_7 == 1)
  1172. <td style="color: {{$machineA->valve_7 > $valve_7_s ? 'red':''}}">{{ $machineA->valve_7 }}</td>
  1173. @endif
  1174.  
  1175. @if($machine_settingA->valve_8 == 1)
  1176. <td style="color: {{$machineA->valve_8 > $valve_8_s ? 'red':''}}">{{ $machineA->valve_8 }}</td>
  1177. @endif
  1178.  
  1179. @if($machine_settingA->valve_9 == 1)
  1180. <td style="color: {{$machineA->valve_9 > $valve_9_s ? 'red':''}}">{{ $machineA->valve_9 }}</td>
  1181. @endif
  1182.  
  1183. @if($machine_settingA->valve_10 == 1)
  1184. <td style="color: {{$machineA->valve_10 > $valve_10_s ? 'red':''}}">{{ $machineA->valve_10 }}</td>
  1185. @endif
  1186.  
  1187. @if($machine_settingA->valve_11 == 1)
  1188. <td style="color: {{$machineA->valve_11 > $valve_11_s ? 'red':''}}">{{ $machineA->valve_11 }}</td>
  1189. @endif
  1190.  
  1191. @if($machine_settingA->valve_12 == 1)
  1192. <td style="color: {{$machineA->valve_12 > $valve_12_s ? 'red':''}}">{{ $machineA->valve_12 }}</td>
  1193. @endif
  1194.  
  1195. @if($machine_settingA->valve_13 == 1)
  1196. <td style="color: {{$machineA->valve_13 > $valve_13_s ? 'red':''}}">{{ $machineA->valve_13 }}</td>
  1197. @endif
  1198.  
  1199. @if($machine_settingA->valve_14 == 1)
  1200. <td style="color: {{$machineA->valve_14 > $valve_14_s ? 'red':''}}">{{ $machineA->valve_14 }}</td>
  1201. @endif
  1202.  
  1203. @if($machine_settingA->valve_15 == 1)
  1204. <td style="color: {{$machineA->valve_15 > $valve_15_s ? 'red':''}}">{{ $machineA->valve_15 }}</td>
  1205. @endif
  1206.  
  1207. @if($machine_settingA->valve_16 == 1)
  1208. <td style="color: {{$machineA->valve_16 > $valve_16_s ? 'red':''}}">{{ $machineA->valve_16 }}</td>
  1209. @endif
  1210.  
  1211. @if($machine_settingA->diff == 1)
  1212. <td style="color: {{$machineA->diff > $diff_s ? 'red':''}}">{{ $machineA->diff }}</td>
  1213. @endif
  1214.  
  1215. @if($machine_settingA->gate_delay_time == 1)
  1216. <td style="color: {{$machineA->gate_delay_time > $gate_delay_time_s ? 'red':''}}"> {{ $machineA->gate_delay_time }}</td>
  1217. @endif
  1218.  
  1219. @if($machine_settingA->gate_open_time == 1)
  1220. <td style="color: {{$machineA->gate_open_time > $gate_open_time_s ? 'red':''}}">{{ $machineA->gate_open_time }}</td>
  1221. @endif
  1222.  
  1223. @if($machine_settingA->distinction == 1)
  1224. <td>{{ $machineA->distinction }}</td>
  1225. @endif
  1226.  
  1227. @if($machine_settingA->distinction_f1 == 1)
  1228. <td>{{ $machineA->distinction_f1 }}</td>
  1229. @endif
  1230.  
  1231. @if($machine_settingA->distinction_f2 == 1)
  1232. <td>{{ $machineA->distinction_f2 }}</td>
  1233. @endif
  1234.  
  1235.  
  1236. @if($machine_settingA->cool_tm == 1)
  1237. <td style="color: {{$machineA->cool_tm > $cool_tm_s ? 'red':''}}">{{ $machineA->cool_tm }}</td>
  1238. @endif
  1239.  
  1240. @if($machine_settingA->a1_top == 1)
  1241. <td>{{ $machineA->a1_top }}</td>
  1242. @endif
  1243.  
  1244. @if($machine_settingA->a1_bottom == 1)
  1245. <td >{{ $machineA->a1_bottom }}</td>
  1246. @endif
  1247.  
  1248. @if($machine_settingA->b1_top == 1)
  1249. <td >{{ $machineA->b1_top }}</td>
  1250. @endif
  1251.  
  1252. @if($machine_settingA->b1_bottom == 1)
  1253. <td >{{ $machineA->b1_bottom }}</td>
  1254. @endif
  1255.  
  1256. @if($machine_settingA->a2_top == 1)
  1257. <td>{{ $machineA->a2_top }}</td>
  1258. @endif
  1259.  
  1260. @if($machine_settingA->a2_bottom == 1)
  1261. <td >{{ $machineA->a2_bottom }}</td>
  1262. @endif
  1263.  
  1264. @if($machine_settingA->b2_top == 1)
  1265. <td >{{ $machineA->b2_top }}</td>
  1266. @endif
  1267.  
  1268. @if($machine_settingA->b2_bottom == 1)
  1269. <td>{{ $machineA->b2_bottom }}</td>
  1270. @endif
  1271.  
  1272. @if($machine_settingB->chiller_temp == 1)
  1273. <td style="color: {{$machineA->chiller_temp > $chiller_temp_s ?'red':''}}">{{ $machineA->chiller_temp }}</td>
  1274. @endif
  1275.  
  1276. @if($machine_settingB->screw_speed == 1)
  1277. <td style="color: {{$machineA->screw_speed > $screw_speed_s ? 'red':''}}">{{ $machineA->screw_speed }}</td>
  1278. @endif
  1279.  
  1280. @if($machine_settingB->melt_temp == 1)
  1281. <td style="color: {{$machineA->melt_temp > $melt_temp_s ? 'red':''}}">{{ $machineA->melt_temp }}</td>
  1282. @endif
  1283.  
  1284. @if($machine_settingB->motor_current == 1)
  1285. <td style="color: {{$machineA->motor_current > $motor_current_s ?'red':''}}">{{ $machineA->motor_current }}</td>
  1286. @endif
  1287.  
  1288. @if($machine_settingB->weight == 1)
  1289. <td style="color: {{$machineA->weight > $weight_s ?'red':''}}">{{ $machineA->weight }}</td>
  1290. @endif
  1291.  
  1292. @if($machine_settingB->span == 1)
  1293. <td style="color: {{$machineA->span >$span_s ?'red':''}}">{{ $machineA->span }}</td>
  1294. @endif
  1295.  
  1296. @if($machine_settingB->temp_setting_l1 == 1)
  1297. <td style="color: {{$machineA->temp_setting_l1 > $temp_setting_l1_s ? 'red':''}}">{{ $machineA->temp_setting_l1 }}</td>
  1298. @endif
  1299.  
  1300. @if($machine_settingB->temp_setting_l2 == 1)
  1301. <td style="color: {{$machineA->temp_setting_l2 > $temp_setting_l2_s ? 'red':''}}">{{ $machineA->temp_setting_l2 }}</td>
  1302. @endif
  1303.  
  1304. @if($machine_settingB->temp_setting_l3 == 1)
  1305. <td style="color: {{$machineA->temp_setting_l3 > $temp_setting_l3_s ? 'red':''}}">{{ $machineA->temp_setting_l3 }}</td>
  1306. @endif
  1307.  
  1308. @if($machine_settingB->temp_setting_l4 == 1)
  1309. <td style="color: {{$machineA->temp_setting_l4 > $temp_setting_l4_s ? 'red':''}}">{{ $machineA->temp_setting_l4 }}</td>
  1310. @endif
  1311.  
  1312. @if($machine_settingB->pre_below_time_l == 1)
  1313. <td style="color: {{$machineA->pre_below_time_l > $pre_below_time_l_s ?'red':''}}">{{ $machineA->pre_below_time_l }}</td>
  1314. @endif
  1315.  
  1316. @if($machine_settingB->pre_below_time_r == 1)
  1317. <td style="color: {{$machineA->pre_below_time_r > $pre_below_time_r_s ?'red':''}}">{{ $machineA->pre_below_time_r }}</td>
  1318. @endif
  1319.  
  1320. @if($machine_settingB->calibrator_down_l == 1)
  1321. <td style="color: {{$machineA->calibrator_down_l > $calibrator_down_l_s ? 'red':''}}">{{ $machineA->calibrator_down_l }}</td>
  1322. @endif
  1323.  
  1324. @if($machine_settingB->calibrator_down_r == 1)
  1325. <td style="color: {{$machineA->calibrator_down_r > $calibrator_down_r_s ? 'red':''}}">{{ $machineA->calibrator_down_r }}</td>
  1326. @endif
  1327.  
  1328. @if($machine_settingB->left_1 == 1)
  1329. <td style="color: {{$machineA->left_1 > $left_1_s ?'red':''}}">{{ $machineA->left_1 }}</td>
  1330. @endif
  1331.  
  1332. @if($machine_settingB->left_2 == 1)
  1333. <td style="color: {{$machineA->left_2 > $left_2_s ?'red':''}}">{{ $machineA->left_2 }}</td>
  1334. @endif
  1335.  
  1336. @if($machine_settingB->left_3 == 1)
  1337. <td style="color: {{$machineA->left_3 > $left_3_s ?'red':''}}">{{ $machineA->left_3 }}</td>
  1338. @endif
  1339.  
  1340. @if($machine_settingB->left_4 == 1)
  1341. <td style="color: {{$machineA->left_4 > $left_4_s ?'red':''}}">{{ $machineA->left_4 }}</td>
  1342. @endif
  1343.  
  1344. @if($machine_settingB->right_1 == 1)
  1345. <td style="color: {{$machineA->right_1 > $right_1_s ?'red':''}}">{{ $machineA->right_1 }}</td>
  1346. @endif
  1347.  
  1348. @if($machine_settingB->right_2 == 1)
  1349. <td style="color: {{$machineA->right_2 > $right_2_s ?'red':''}}">{{ $machineA->right_2 }}</td>
  1350. @endif
  1351.  
  1352. @if($machine_settingB->right_3 == 1)
  1353. <td style="color: {{$machineA->right_3 > $right_3_s ?'red':''}}">{{ $machineA->right_3 }}</td>
  1354. @endif
  1355.  
  1356. @if($machine_settingB->right_4 == 1)
  1357. <td style="color: {{$machineA->right_4 > $right_4_s ?'red':''}}">{{ $machineA->right_4 }}</td>
  1358. @endif
  1359. <td>{{ $machineA->checked }}</td>
  1360. <td>{{ $machineA->remark}}</td>
  1361. <td>
  1362.  
  1363. @if((Auth::user()->level == 1 || Auth::user()->level == 2) && $machineA->status != 1 )
  1364. <a href="/newmachine/{{$machineA->daily_id}}/editinput"><button type='submit' class='btn btn-warning btn-sm'>Edit</button></a>
  1365. @endif
  1366. @if((Auth::user()->level == 1 || Auth::user()->level == 2) && $machineA->status != 1 )
  1367. <a href="/newmachine/deleteDailyMachine" class="btn btn-danger btn-sm delete" data-id="{{ $machineA->daily_id }}"> Delete </a>
  1368. @endif
  1369. </td>
  1370. @if($machineA->status == 1)
  1371. <td><label class="btn btn-success btn-sm" style="cursor: auto;">Approved </label> by {{$machineA->superior}}</td>
  1372. @elseif($machineA->status == 2)
  1373. <td><label class="btn btn-danger btn-sm" style="cursor: auto;">Not Good</label> by {{$machineA->superior}}</td>
  1374. @else
  1375. <td>-</td>
  1376. @endif
  1377.  
  1378. <td>{{ $machineA->note }}</td>
  1379. @if($machineA->statusmanager == 1)
  1380. <td><label class="btn btn-success btn-sm" style="cursor: auto;">Approved </label> by {{$machineA->manager}}</td>
  1381. @elseif($machineA->statusmanager == 2)
  1382. <td><label class="btn btn-danger btn-sm" style="cursor: auto;">Not Good</label> by {{$machineA->manager}}</td>
  1383. @else
  1384. <td>-</td>
  1385. @endif
  1386. <td>{{ $machineA->notemanager }}</td>
  1387.  
  1388. </tr>
  1389. @endforeach
  1390.  
  1391. </tbody>
  1392. </table>
  1393.  
  1394.  
  1395. </div>
  1396. </div>
  1397. </div>
  1398. </div>
  1399. </div>
  1400.  
  1401.  
  1402. <div class="panel">
  1403. <div class="panel-heading"> View Chart
  1404. </div>
  1405. <div class="panel-body">
  1406.  
  1407. <div class="form-group col-md-3">
  1408.  
  1409. <select name="" id="month" class="form-control" required="">
  1410. <option value="">Please select Month </option>
  1411. <option value="1">January</option>
  1412. <option value="2">February</option>
  1413. <option value="3">March</option>
  1414. <option value="4">April</option>
  1415. <option value="5">May</option>
  1416. <option value="6">June</option>
  1417. <option value="7">July</option>
  1418. <option value="8">August</option>
  1419. <option value="9">September</option>
  1420. <option value="10">October</option>
  1421. <option value="11">November</option>
  1422. <option value="12">December</option>
  1423. </select>
  1424. </div>
  1425.  
  1426. <div class="form-group col-md-3">
  1427.  
  1428. <select id="year" class="form-control" required="">
  1429. <option value="">Please select Year</option>
  1430. <option value="2019">2019</option>
  1431. <option value="2020">2020</option>
  1432. <option value="2021">2021</option>
  1433. <option value="2022">2022</option>
  1434. <option value="2023">2023</option>
  1435. <option value="2024">2024</option>
  1436. <option value="2025">2025</option>
  1437. <option value="2026">2026</option>
  1438. <option value="2027">2027</option>
  1439. <option value="2028">2028</option>
  1440. <option value="2029">2029</option>
  1441. <option value="2030">2030</option>
  1442. </select>
  1443. </div>
  1444.  
  1445. <div class="form-group col-md-3">
  1446. <select id="field" class="form-control">
  1447. <option value="">Please Select Data</option>
  1448. @if($machine_settingA->mold_temp_controller == 1)
  1449. <option value="mold_temp_controller">Mold Temp Controller</option>
  1450. @endif
  1451.  
  1452. @if($machine_settingA->cycle_time == 1)
  1453. <option value="cycle_time">Cycle Time</option>
  1454. @endif
  1455.  
  1456. @if($machine_settingA->fill_time == 1)
  1457. <option value="fill_time">Fill Time</option>
  1458. @endif
  1459.  
  1460. @if($machine_settingA->fill_peak == 1)
  1461. <option value="fill_peak">Fill Peak</option>
  1462. @endif
  1463.  
  1464. @if($machine_settingA->scr_most_mm == 1)
  1465. <option value="scr_most_mm">Scr Most MM Peak</option>
  1466. @endif
  1467.  
  1468. @if($machine_settingA->scr_most_mpa == 1)
  1469. <option value="scr_most_mpa">Scr Most Mpa</option>
  1470. @endif
  1471.  
  1472. @if($machine_settingA->mtg_ready == 1)
  1473. <option value="mtg_ready">Smart Feeder Controller [rpm]</option>
  1474. @endif
  1475.  
  1476. @if($machine_settingA->plast_tm == 1)
  1477. <option value="plast_tm">Plast TM</option>
  1478. @endif
  1479.  
  1480. @if($machine_settingA->inj_end_position == 1)
  1481. <option value="inj_end_position">Inj End Position</option>
  1482. @endif
  1483.  
  1484. @if($machine_settingA->sm == 1)
  1485. <option value="sm">SM</option>
  1486. @endif
  1487.  
  1488. @if($machine_settingA->pp1 == 1)
  1489. <option value="pp1">PP1</option>
  1490. @endif
  1491.  
  1492. @if($machine_settingA->pp2 == 1)
  1493. <option value="pp2">PP2</option>
  1494. @endif
  1495.  
  1496. @if($machine_settingA->pp3 == 1)
  1497. <option value="pp3">PP3</option>
  1498. @endif
  1499.  
  1500. @if($machine_settingA->vp_change == 1)
  1501. <option value="vp_change">V-P Change</option>
  1502. @endif
  1503.  
  1504. @if($machine_settingA->pv1 == 1)
  1505. <option value="pv1">PV 1</option>
  1506. @endif
  1507.  
  1508. @if($machine_settingA->p1 == 1)
  1509. <option value="p1">p1</option>
  1510. @endif
  1511.  
  1512. @if($machine_settingA->s5 == 1)
  1513. <option value="s5">S5</option>
  1514. @endif
  1515.  
  1516. @if($machine_settingA->p2 == 1)
  1517. <option value="p2">P2</option>
  1518. @endif
  1519.  
  1520. @if($machine_settingA->p3 == 1)
  1521. <option value="p3">p3</option>
  1522. @endif
  1523.  
  1524. @if($machine_settingA->valve_1 == 1)
  1525. <option value="valve_1">Valve Pin Heater 1</option>
  1526. @endif
  1527.  
  1528. @if($machine_settingA->valve_2 == 1)
  1529. <option value="valve_2">Valve Pin Heater 2</option>
  1530. @endif
  1531.  
  1532. @if($machine_settingA->valve_3 == 1)
  1533. <option value="valve_3">Valve Pin Heater 3</option>
  1534. @endif
  1535.  
  1536. @if($machine_settingA->valve_4 == 1)
  1537. <option value="valve_4">Valve Pin Heater 4</option>
  1538. @endif
  1539.  
  1540. @if($machine_settingA->valve_5 == 1)
  1541. <option value="valve_5">Valve Pin Heater 5</option>
  1542. @endif
  1543.  
  1544. @if($machine_settingA->valve_6 == 1)
  1545. <option value="valve_6">Valve Pin Heater 6</option>
  1546. @endif
  1547.  
  1548. @if($machine_settingA->valve_7 == 1)
  1549. <option value="valve_7">Valve Pin Heater 7</option>
  1550. @endif
  1551.  
  1552. @if($machine_settingA->valve_8 == 1)
  1553. <option value="valve_8">Valve Pin Heater 8</option>
  1554. @endif
  1555.  
  1556. @if($machine_settingA->valve_9 == 1)
  1557. <option value="valve_9">Valve Pin Heater 9</option>
  1558. @endif
  1559.  
  1560. @if($machine_settingA->valve_10 == 1)
  1561. <option value="valve_10">Valve Pin Heater 10</option>
  1562. @endif
  1563.  
  1564. @if($machine_settingA->valve_11 == 1)
  1565. <option value="valve_11">Valve Pin Heater 11</option>
  1566. @endif
  1567.  
  1568. @if($machine_settingA->valve_12 == 1)
  1569. <option value="valve_12">Valve Pin Heater 12</option>
  1570. @endif
  1571.  
  1572. @if($machine_settingA->valve_13 == 1)
  1573. <option value="valve_13">Valve Pin Heater 13</option>
  1574. @endif
  1575.  
  1576. @if($machine_settingA->valve_14 == 1)
  1577. <option value="valve_14">Valve Pin Heater 14</option>
  1578. @endif
  1579.  
  1580. @if($machine_settingA->valve_15 == 1)
  1581. <option value="valve_15">Valve Pin Heater 15</option>
  1582. @endif
  1583.  
  1584. @if($machine_settingA->valve_16 == 1)
  1585. <option value="valve_16">Valve Pin Heater 16</option>
  1586. @endif
  1587.  
  1588. @if($machine_settingA->diff == 1)
  1589. <option value="diff">DIFF</option>
  1590. @endif
  1591.  
  1592. @if($machine_settingA->gate_delay_time == 1)
  1593. <option value="gate_delay_time">Gate Open Delay Time</option>
  1594. @endif
  1595.  
  1596. @if($machine_settingA->gate_open_time == 1)
  1597. <option value="gate_open_time">Gate Open Time</option>
  1598. @endif
  1599.  
  1600. @if($machine_settingA->distinction == 1)
  1601. <th>Distinction</th>
  1602. @endif
  1603.  
  1604. @if($machine_settingA->distinction_f1 == 1)
  1605. <th>Distinction F1</th>
  1606. @endif
  1607.  
  1608. @if($machine_settingA->distinction_f2 == 1)
  1609. <th>Distinction F2</th>
  1610. @endif
  1611.  
  1612.  
  1613. @if($machine_settingA->cool_tm == 1)
  1614. <option value="cool_tm">Cool TM</option>
  1615. @endif
  1616.  
  1617. @if($machine_settingA->a1_top == 1)
  1618. <option value="a1_top">A1 Top</option>
  1619. @endif
  1620.  
  1621. @if($machine_settingA->a1_bottom == 1)
  1622. <option value="a1_bottom">A1 Bottom</option>
  1623. @endif
  1624.  
  1625. @if($machine_settingA->b1_top == 1)
  1626. <option value="b1_top">B1 Top</option>
  1627. @endif
  1628.  
  1629. @if($machine_settingA->b1_bottom == 1)
  1630. <option value="b1_bottom">B1 Bottom</option>
  1631. @endif
  1632.  
  1633. @if($machine_settingA->a2_top == 1)
  1634. <option value="a2_top">A2 Top</option>
  1635. @endif
  1636.  
  1637. @if($machine_settingA->a2_bottom == 1)
  1638. <option value="a2_bottom">A2 Bottom</option>
  1639. @endif
  1640.  
  1641. @if($machine_settingA->b2_top == 1)
  1642. <option value="b2_top">B2 Top</option>
  1643. @endif
  1644.  
  1645. @if($machine_settingA->b2_bottom == 1)
  1646. <option value="b2_bottom">B2 Bottom</option>
  1647. @endif
  1648.  
  1649. @if($machine_settingB->chiller_temp == 1)
  1650. <option value="chiller_temp">Chiller Temp</option>
  1651. @endif
  1652.  
  1653. @if($machine_settingB->screw_speed == 1)
  1654. <option value="screw_speed">Screw Speed</option>
  1655. @endif
  1656.  
  1657. @if($machine_settingB->melt_temp == 1)
  1658. <option value="melt_temp">Melt Temp</option>
  1659. @endif
  1660.  
  1661. @if($machine_settingB->motor_current == 1)
  1662. <option value="motor_current">Motor Current</option>
  1663. @endif
  1664.  
  1665. @if($machine_settingB->weight == 1)
  1666. <option value="weight">Weight</option>
  1667. @endif
  1668.  
  1669. @if($machine_settingB->span == 1)
  1670. <option value="span">SPAN</option>
  1671. @endif
  1672.  
  1673. @if($machine_settingB->temp_setting_l1 == 1)
  1674. <option value="temp_setting_l1">Temperature Setting L1</option>
  1675. @endif
  1676.  
  1677. @if($machine_settingB->temp_setting_l2 == 1)
  1678. <option value="temp_setting_l2">Temperature Setting L2</option>
  1679. @endif
  1680.  
  1681. @if($machine_settingB->temp_setting_l3 == 1)
  1682. <option value="temp_setting_l3">Temperature Setting L3</option>
  1683. @endif
  1684.  
  1685. @if($machine_settingB->temp_setting_l4 == 1)
  1686. <option value="temp_setting_l4">Temperature Setting L4</option>
  1687. @endif
  1688.  
  1689. @if($machine_settingB->pre_below_time_l == 1)
  1690. <option value="pre_below_time_l">Pre Below Time Left</option>
  1691. @endif
  1692.  
  1693. @if($machine_settingB->pre_below_time_r == 1)
  1694. <option value="pre_below_time_r">Pre Below Time Right</option>
  1695. @endif
  1696.  
  1697. @if($machine_settingB->calibrator_down_l == 1)
  1698. <option value="calibrator_down_l">Calibrator Down Left</option>
  1699. @endif
  1700.  
  1701. @if($machine_settingB->calibrator_down_r == 1)
  1702. <option value="calibrator_down_r">Calibrator Down Right</option>
  1703. @endif
  1704.  
  1705. @if($machine_settingB->left_1 == 1)
  1706. <option value="left_1">Left 1</option>
  1707. @endif
  1708.  
  1709. @if($machine_settingB->left_2 == 1)
  1710. <option value="left_2">Left 2</option>
  1711. @endif
  1712.  
  1713. @if($machine_settingB->left_3 == 1)
  1714. <option value="left_3">Left 3</option>
  1715. @endif
  1716.  
  1717. @if($machine_settingB->left_4 == 1)
  1718. <option value="left_4">Left 4</option>
  1719. @endif
  1720.  
  1721. @if($machine_settingB->right_1 == 1)
  1722. <option value="right_1">Right 1</option>
  1723. @endif
  1724.  
  1725. @if($machine_settingB->right_2 == 1)
  1726. <option value="right_2">Right 2</option>
  1727. @endif
  1728.  
  1729. @if($machine_settingB->right_3 == 1)
  1730. <option value="right_3">Right 3</option>
  1731. @endif
  1732.  
  1733. @if($machine_settingB->right_4 == 1)
  1734. <option value="right_4">Right 4</option>
  1735. @endif
  1736. </select>
  1737. </div>
  1738.  
  1739. <div class="form-group col-md-3">
  1740. <input type="hidden" id="machine_id" value="{{ $machine->id }}">
  1741.  
  1742. <button type="button" id="get_data" class="btn btn-primary">Choose</button>
  1743. </div>
  1744.  
  1745. <div class="col-md-12">
  1746. <canvas id="chart" width="400" height="100"></canvas>
  1747. </div>
  1748.  
  1749. </div>
  1750. </div>
  1751. </div>
  1752.  
  1753.  
  1754. </div>
  1755. </div>
  1756.  
  1757.  
  1758.  
  1759. @if(Auth::user()->level == 1)
  1760. <div class="modal fade" id="modalnote" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  1761. <div class="modal-dialog modal-lg" role="document">
  1762. <div class="modal-content">
  1763. <div class="modal-header">
  1764. <h5 class="modal-title" id="exampleModalLabel">NG</h5>
  1765. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  1766. <span aria-hidden="true">&times;</span>
  1767. </button>
  1768. </div>
  1769. <div class="modal-body">
  1770. <div class="row">
  1771. <div class="col-md-12">
  1772. <label for="comment">Comment</label>
  1773. <textarea style="height: 137px" class="form-control" id="comment">
  1774.  
  1775. </textarea>
  1776. </div>
  1777. </div>
  1778. </div>
  1779. <div class="modal-footer">
  1780. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  1781. <button type="button" id="submitng" class="btn btn-primary">Submit</button>
  1782. </div>
  1783. </div>
  1784. </div>
  1785. </div>
  1786. @endif
  1787.  
  1788. @if(Auth::user()->level == 5)
  1789. <div class="modal fade" id="modalnotemanager" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  1790. <div class="modal-dialog modal-lg" role="document">
  1791. <div class="modal-content">
  1792. <div class="modal-header">
  1793. <h5 class="modal-title" id="exampleModalLabel">NG</h5>
  1794. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  1795. <span aria-hidden="true">&times;</span>
  1796. </button>
  1797. </div>
  1798. <div class="modal-body">
  1799. <div class="row">
  1800. <div class="col-md-12">
  1801. <label for="commentmanager">Comment</label>
  1802. <textarea style="height: 137px" class="form-control" id="commentmanager">
  1803.  
  1804. </textarea>
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div class="modal-footer">
  1809. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  1810. <button type="button" id="submitngmanager" class="btn btn-primary">Submit</button>
  1811. </div>
  1812. </div>
  1813. </div>
  1814. </div>
  1815. @endif
  1816.  
  1817. <!-- Modal Standart Setting-->
  1818. <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  1819. <div class="modal-dialog modal-lg" role="document">
  1820. <div class="modal-content">
  1821. <div class="modal-header">
  1822. <h5 class="modal-title" id="exampleModalLabel">Standart Setting</h5>
  1823. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  1824. <span aria-hidden="true">&times;</span>
  1825. </button>
  1826. </div>
  1827. <div class="modal-body">
  1828. <div class="row">
  1829. <form action="/profile/saveSetting" method="POST">
  1830. {{csrf_field()}}
  1831. <div class="col-md-12">
  1832. <input type="hidden" name="id" value="{{ $machine->id }}">
  1833. @if($machine_settingA->mold_temp_controller == 1)
  1834. <div class="form-group col-md-4">
  1835. <label for="">Mold Temp Controller</label><br>
  1836. <div class="row">
  1837. <div class="col-md-12">
  1838. <div class="row">
  1839. <div class="col-md-4">
  1840. <p>Min</p>
  1841. <input type="text" name="mold_temp[]" class="form-control" placeholder="min" value="{{ $mold_temp == '' ? $mold_temp:$mold_temp[0] }}">
  1842. </div>
  1843.  
  1844. <div class="col-md-4">
  1845. <p>Max</p>
  1846. <input type="text" name="mold_temp[]" class="form-control" placeholder="max" value="{{ $mold_temp == '' ? $mold_temp:$mold_temp[1] }}">
  1847. </div>
  1848.  
  1849. <div class="col-md-4">
  1850. <p>Std</p>
  1851. <input type="text" name="mold_temp[]" class="form-control" placeholder="standart" value="{{ $mold_temp == '' ? $mold_temp:$mold_temp[2] }}">
  1852. </div>
  1853. </div>
  1854.  
  1855.  
  1856. </div>
  1857. </div>
  1858. </div>
  1859. @endif
  1860.  
  1861.  
  1862. @if($machine_settingA->cycle_time == 1)
  1863. <div class="form-group col-md-4">
  1864. <label for="mold_temp">Cycle Time</label><br>
  1865. <div class="row">
  1866. <div class="col-md-12">
  1867. <div class="row">
  1868. <div class="col-md-4">
  1869. <p>Min</p>
  1870. <input type="text" name="cycle_time[]" class="form-control" placeholder="min" value="{{ $cycle_time == '' ? $cycle_time:$cycle_time[0] }}">
  1871. </div>
  1872.  
  1873. <div class="col-md-4">
  1874. <p>Max</p>
  1875. <input type="text" name="cycle_time[]" class="form-control" placeholder="max" value="{{ $cycle_time == '' ? $cycle_time:$cycle_time[1] }}">
  1876. </div>
  1877.  
  1878. <div class="col-md-4">
  1879. <p>Std</p>
  1880. <input type="text" name="cycle_time[]" class="form-control" placeholder="standart" value="{{ $cycle_time == '' ? $cycle_time:$cycle_time[2] }}">
  1881. </div>
  1882. </div>
  1883.  
  1884.  
  1885. </div>
  1886. </div>
  1887. </div>
  1888. @endif
  1889.  
  1890. @if($machine_settingA->fill_time == 1)
  1891. <div class="form-group col-md-4">
  1892. <label for="mold_temp">Fill Time</label><br>
  1893. <div class="row">
  1894. <div class="col-md-12">
  1895. <div class="row">
  1896. <div class="col-md-4">
  1897. <p>Min</p>
  1898. <input type="text" name="fill_time[]" class="form-control" placeholder="min"value="{{ $fill_time == '' ? $fill_time:$fill_time[0] }}">
  1899. </div>
  1900.  
  1901. <div class="col-md-4">
  1902. <p>Max</p>
  1903. <input type="text" name="fill_time[]" class="form-control" placeholder="max"value="{{ $fill_time == '' ? $fill_time:$fill_time[1] }}">
  1904. </div>
  1905.  
  1906. <div class="col-md-4">
  1907. <p>Std</p>
  1908. <input type="text" name="fill_time[]" class="form-control" placeholder="standart"value="{{ $fill_time == '' ? $fill_time:$fill_time[2] }}">
  1909. </div>
  1910. </div>
  1911.  
  1912.  
  1913. </div>
  1914. </div>
  1915. </div>
  1916. @endif
  1917.  
  1918. @if($machine_settingA->fill_peak == 1)
  1919. <div class="form-group col-md-4">
  1920. <label for="mold_temp">Fill Peak</label><br>
  1921. <div class="row">
  1922. <div class="col-md-12">
  1923. <div class="row">
  1924. <div class="col-md-4">
  1925. <p>Min</p>
  1926. <input type="text" name="fill_peak[]" class="form-control" placeholder="min"value="{{ $fill_peak == '' ? $fill_peak:$fill_peak[0] }}">
  1927. </div>
  1928.  
  1929. <div class="col-md-4">
  1930. <p>Max</p>
  1931. <input type="text" name="fill_peak[]" class="form-control" placeholder="max"value="{{ $fill_peak == '' ? $fill_peak:$fill_peak[1] }}">
  1932. </div>
  1933.  
  1934. <div class="col-md-4">
  1935. <p>Std</p>
  1936. <input type="text" name="fill_peak[]" class="form-control" placeholder="standart"value="{{ $fill_peak == '' ? $fill_peak:$fill_peak[2] }}">
  1937. </div>
  1938. </div>
  1939.  
  1940.  
  1941. </div>
  1942. </div>
  1943. </div>
  1944. @endif
  1945.  
  1946. @if($machine_settingA->scr_most_mm == 1)
  1947. <div class="form-group col-md-4">
  1948. <label for="mold_temp">Screw Most MM</label><br>
  1949. <div class="row">
  1950. <div class="col-md-12">
  1951. <div class="row">
  1952. <div class="col-md-4">
  1953. <p>Min</p>
  1954. <input type="text" name="scr_most_mm[]" class="form-control" placeholder="min"value="{{ $scr_most_mm == '' ? $scr_most_mm:$scr_most_mm[0] }}">
  1955. </div>
  1956.  
  1957. <div class="col-md-4">
  1958. <p>Max</p>
  1959. <input type="text" name="scr_most_mm[]" class="form-control" placeholder="max"value="{{ $scr_most_mm == '' ? $scr_most_mm:$scr_most_mm[1] }}">
  1960. </div>
  1961.  
  1962. <div class="col-md-4">
  1963. <p>Std</p>
  1964. <input type="text" name="scr_most_mm[]" class="form-control" placeholder="standart"value="{{ $scr_most_mm == '' ? $scr_most_mm:$scr_most_mm[2] }}">
  1965. </div>
  1966. </div>
  1967.  
  1968.  
  1969. </div>
  1970. </div>
  1971. </div>
  1972. @endif
  1973.  
  1974. @if($machine_settingA->scr_most_mpa == 1)
  1975. <div class="form-group col-md-4">
  1976. <label for="mold_temp">Screw Most MPa</label><br>
  1977. <div class="row">
  1978. <div class="col-md-12">
  1979. <div class="row">
  1980. <div class="col-md-4">
  1981. <p>Min</p>
  1982. <input type="text" name="scr_most_mpa[]" class="form-control" placeholder="min"value="{{ $scr_most_mpa == '' ? $scr_most_mpa:$scr_most_mpa[0] }}">
  1983. </div>
  1984.  
  1985. <div class="col-md-4">
  1986. <p>Max</p>
  1987. <input type="text" name="scr_most_mpa[]" class="form-control" placeholder="max"value="{{ $scr_most_mpa == '' ? $scr_most_mpa:$scr_most_mpa[1] }}">
  1988. </div>
  1989.  
  1990. <div class="col-md-4">
  1991. <p>Std</p>
  1992. <input type="text" name="scr_most_mpa[]" class="form-control" placeholder="standart"value="{{ $scr_most_mpa == '' ? $scr_most_mpa:$scr_most_mpa[2] }}">
  1993. </div>
  1994. </div>
  1995. </div>
  1996. </div>
  1997. </div>
  1998. @endif
  1999.  
  2000.  
  2001. @if($machine_settingA->mtg_ready == 1)
  2002.  
  2003. <div class="form-group col-md-4">
  2004. <label for="mold_temp">Smart Feeder Controller [rpm]</label><br>
  2005. <div class="row">
  2006. <div class="col-md-12">
  2007. <div class="row">
  2008. <div class="col-md-4">
  2009. <p>Min</p>
  2010. <input type="text" name="mtg_ready[]" class="form-control" placeholder="min"value="{{ $mtg_ready == '' ? $mtg_ready:$mtg_ready[0] }}">
  2011. </div>
  2012.  
  2013. <div class="col-md-4">
  2014. <p>Max</p>
  2015. <input type="text" name="mtg_ready[]" class="form-control" placeholder="max"value="{{ $mtg_ready == '' ? $mtg_ready:$mtg_ready[1] }}">
  2016. </div>
  2017.  
  2018. <div class="col-md-4">
  2019. <p>Std</p>
  2020. <input type="text" name="mtg_ready[]" class="form-control" placeholder="standart"value="{{ $mtg_ready == '' ? $mtg_ready:$mtg_ready[2] }}">
  2021. </div>
  2022. </div>
  2023. </div>
  2024. </div>
  2025. </div>
  2026. @endif
  2027.  
  2028. @if($machine_settingA->plast_tm == 1)
  2029.  
  2030. <div class="form-group col-md-4">
  2031. <label for="mold_temp">Plast TM</label><br>
  2032. <div class="row">
  2033. <div class="col-md-12">
  2034. <div class="row">
  2035. <div class="col-md-4">
  2036. <p>Min</p>
  2037. <input type="text" name="plast_tm[]" class="form-control" placeholder="min"value="{{ $plast_tm == '' ? $plast_tm:$plast_tm[0] }}">
  2038. </div>
  2039.  
  2040. <div class="col-md-4">
  2041. <p>Max</p>
  2042. <input type="text" name="plast_tm[]" class="form-control" placeholder="max"value="{{ $plast_tm == '' ? $plast_tm:$plast_tm[1] }}">
  2043. </div>
  2044.  
  2045. <div class="col-md-4">
  2046. <p>Std</p>
  2047. <input type="text" name="plast_tm[]" class="form-control" placeholder="standart"value="{{ $plast_tm == '' ? $plast_tm:$plast_tm[2] }}">
  2048. </div>
  2049. </div>
  2050. </div>
  2051. </div>
  2052. </div>
  2053. @endif
  2054.  
  2055.  
  2056. @if($machine_settingA->inj_end_position == 1)
  2057.  
  2058.  
  2059. <div class="form-group col-md-4">
  2060. <label for="mold_temp">Inj. End Position</label><br>
  2061. <div class="row">
  2062. <div class="col-md-12">
  2063. <div class="row">
  2064. <div class="col-md-4">
  2065. <p>Min</p>
  2066. <input type="text" name="inj_end_position[]" class="form-control" placeholder="min"value="{{ $inj_end_position == '' ? $inj_end_position:$inj_end_position[0] }}">
  2067. </div>
  2068.  
  2069. <div class="col-md-4">
  2070. <p>Max</p>
  2071. <input type="text" name="inj_end_position[]" class="form-control" placeholder="max"value="{{ $inj_end_position == '' ? $inj_end_position:$inj_end_position[1] }}">
  2072. </div>
  2073.  
  2074. <div class="col-md-4">
  2075. <p>Std</p>
  2076. <input type="text" name="inj_end_position[]" class="form-control" placeholder="standart"value="{{ $inj_end_position == '' ? $inj_end_position:$inj_end_position[2] }}">
  2077. </div>
  2078. </div>
  2079.  
  2080. </div>
  2081. </div>
  2082. </div>
  2083. @endif
  2084.  
  2085. @if($machine_settingA->sm == 1)
  2086.  
  2087. <div class="form-group col-md-4">
  2088. <label for="mold_temp">SM</label><br>
  2089. <div class="row">
  2090. <div class="col-md-12">
  2091. <div class="row">
  2092. <div class="col-md-4">
  2093. <p>Min</p>
  2094. <input type="text" name="sm[]" class="form-control" placeholder="min"value="{{ $sm == '' ? $sm:$sm[0] }}">
  2095. </div>
  2096.  
  2097. <div class="col-md-4">
  2098. <p>Max</p>
  2099. <input type="text" name="sm[]" class="form-control" placeholder="max"value="{{ $sm == '' ? $sm:$sm[1] }}">
  2100. </div>
  2101.  
  2102. <div class="col-md-4">
  2103. <p>Std</p>
  2104. <input type="text" name="sm[]" class="form-control" placeholder="standart"value="{{ $sm == '' ? $sm:$sm[2] }}">
  2105. </div>
  2106. </div>
  2107. </div>
  2108. </div>
  2109. </div>
  2110. @endif
  2111.  
  2112. @if($machine_settingA->pp1 == 1)
  2113.  
  2114. <div class="form-group col-md-4">
  2115. <label for="mold_temp">PP1</label><br>
  2116. <div class="row">
  2117. <div class="col-md-12">
  2118. <div class="row">
  2119. <div class="col-md-4">
  2120. <p>Min</p>
  2121. <input type="text" name="pp1[]" class="form-control" placeholder="min"value="{{ $pp1 == '' ? $pp1:$pp1[0] }}">
  2122. </div>
  2123.  
  2124. <div class="col-md-4">
  2125. <p>Max</p>
  2126. <input type="text" name="pp1[]" class="form-control" placeholder="max"value="{{ $pp1 == '' ? $pp1:$pp1[1] }}">
  2127. </div>
  2128.  
  2129. <div class="col-md-4">
  2130. <p>Std</p>
  2131. <input type="text" name="pp1[]" class="form-control" placeholder="standart"value="{{ $pp1 == '' ? $pp1:$pp1[2] }}">
  2132. </div>
  2133. </div>
  2134.  
  2135.  
  2136. </div>
  2137. </div>
  2138. </div>
  2139. @endif
  2140.  
  2141. @if($machine_settingA->pp2 == 1)
  2142.  
  2143. <div class="form-group col-md-4">
  2144. <label for="mold_temp">PP2</label><br>
  2145. <div class="row">
  2146. <div class="col-md-12">
  2147. <div class="row">
  2148. <div class="col-md-4">
  2149. <p>Min</p>
  2150. <input type="text" name="pp2[]" class="form-control" placeholder="min"value="{{ $pp2 == '' ? $pp2:$pp2[0] }}">
  2151. </div>
  2152.  
  2153. <div class="col-md-4">
  2154. <p>Max</p>
  2155. <input type="text" name="pp2[]" class="form-control" placeholder="max"value="{{ $pp2 == '' ? $pp2:$pp2[1] }}">
  2156. </div>
  2157.  
  2158. <div class="col-md-4">
  2159. <p>Std</p>
  2160. <input type="text" name="pp2[]" class="form-control" placeholder="standart"value="{{ $pp2 == '' ? $pp2:$pp2[2] }}">
  2161. </div>
  2162. </div>
  2163.  
  2164.  
  2165. </div>
  2166. </div>
  2167. </div>
  2168. @endif
  2169.  
  2170. @if($machine_settingA->pp3 == 1)
  2171.  
  2172. <div class="form-group col-md-4">
  2173. <label for="mold_temp">PP3</label><br>
  2174. <div class="row">
  2175. <div class="col-md-12">
  2176. <div class="row">
  2177. <div class="col-md-4">
  2178. <p>Min</p>
  2179. <input type="text" name="pp3[]" class="form-control" placeholder="min"value="{{ $pp3 == '' ? $pp3:$pp3[0] }}">
  2180. </div>
  2181.  
  2182. <div class="col-md-4">
  2183. <p>Max</p>
  2184. <input type="text" name="pp3[]" class="form-control" placeholder="max"value="{{ $pp3 == '' ? $pp3:$pp3[1] }}">
  2185. </div>
  2186.  
  2187. <div class="col-md-4">
  2188. <p>Std</p>
  2189. <input type="text" name="pp3[]" class="form-control" placeholder="standart"value="{{ $pp3 == '' ? $pp3:$pp3[2] }}">
  2190. </div>
  2191. </div>
  2192.  
  2193.  
  2194. </div>
  2195. </div>
  2196. </div>
  2197. @endif
  2198.  
  2199. @if($machine_settingA->vp_change == 1)
  2200.  
  2201. <div class="form-group col-md-4">
  2202. <label for="mold_temp">V-P Change</label><br>
  2203. <div class="row">
  2204. <div class="col-md-12">
  2205. <div class="row">
  2206. <div class="col-md-4">
  2207. <p>Min</p>
  2208. <input type="text" name="vp_change[]" class="form-control" placeholder="min"value="{{ $vp_change == '' ? $vp_change:$vp_change[0] }}">
  2209. </div>
  2210.  
  2211. <div class="col-md-4">
  2212. <p>Max</p>
  2213. <input type="text" name="vp_change[]" class="form-control" placeholder="max"value="{{ $vp_change == '' ? $vp_change:$vp_change[1] }}">
  2214. </div>
  2215.  
  2216. <div class="col-md-4">
  2217. <p>Std</p>
  2218. <input type="text" name="vp_change[]" class="form-control" placeholder="standart"value="{{ $vp_change == '' ? $vp_change:$vp_change[2] }}">
  2219. </div>
  2220. </div>
  2221.  
  2222.  
  2223. </div>
  2224. </div>
  2225. </div>
  2226. @endif
  2227.  
  2228. @if($machine_settingA->pv1 == 1)
  2229.  
  2230. <div class="form-group col-md-4">
  2231. <label for="mold_temp">PV1</label><br>
  2232. <div class="row">
  2233. <div class="col-md-12">
  2234. <div class="row">
  2235. <div class="col-md-4">
  2236. <p>Min</p>
  2237. <input type="text" name="pv1[]" class="form-control" placeholder="min"value="{{ $pv1 == '' ? $pv1:$pv1[0] }}">
  2238. </div>
  2239.  
  2240. <div class="col-md-4">
  2241. <p>Max</p>
  2242. <input type="text" name="pv1[]" class="form-control" placeholder="max"value="{{ $pv1 == '' ? $pv1:$pv1[1] }}">
  2243. </div>
  2244.  
  2245. <div class="col-md-4">
  2246. <p>Std</p>
  2247. <input type="text" name="pv1[]" class="form-control" placeholder="standart"value="{{ $pv1 == '' ? $pv1:$pv1[2] }}">
  2248. </div>
  2249. </div>
  2250. </div>
  2251. </div>
  2252. </div>
  2253. @endif
  2254.  
  2255. @if($machine_settingA->p1 == 1)
  2256.  
  2257. <div class="form-group col-md-4">
  2258. <label for="p1">P1</label><br>
  2259. <div class="row">
  2260. <div class="col-md-12">
  2261. <div class="row">
  2262. <div class="col-md-4">
  2263. <p>Min</p>
  2264. <input type="text" name="p1[]" class="form-control" placeholder="min"value="{{ $p1 == '' ? $p1:$p1[0] }}">
  2265. </div>
  2266.  
  2267. <div class="col-md-4">
  2268. <p>Max</p>
  2269. <input type="text" name="p1[]" class="form-control" placeholder="max"value="{{ $p1 == '' ? $p1:$p1[1] }}">
  2270. </div>
  2271.  
  2272. <div class="col-md-4">
  2273. <p>Std</p>
  2274. <input type="text" name="p1[]" class="form-control" placeholder="standart"value="{{ $p1 == '' ? $p1:$p1[2] }}">
  2275. </div>
  2276. </div>
  2277. </div>
  2278. </div>
  2279. </div>
  2280. @endif
  2281.  
  2282. @if($machine_settingA->s5 == 1)
  2283.  
  2284. <div class="form-group col-md-4">
  2285. <label for="mold_temp">S5</label><br>
  2286. <div class="row">
  2287. <div class="col-md-12">
  2288. <div class="row">
  2289. <div class="col-md-4">
  2290. <p>Min</p>
  2291. <input type="text" name="s5[]" class="form-control" placeholder="min"value="{{ $s5 == '' ? $s5:$s5[0] }}">
  2292. </div>
  2293.  
  2294. <div class="col-md-4">
  2295. <p>Max</p>
  2296. <input type="text" name="s5[]" class="form-control" placeholder="max"value="{{ $s5 == '' ? $s5:$s5[1] }}">
  2297. </div>
  2298.  
  2299. <div class="col-md-4">
  2300. <p>Std</p>
  2301. <input type="text" name="s5[]" class="form-control" placeholder="standart"value="{{ $s5 == '' ? $s5:$s5[2] }}">
  2302. </div>
  2303. </div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. @endif
  2308.  
  2309. @if($machine_settingA->p2 == 1)
  2310.  
  2311. <div class="form-group col-md-4">
  2312. <label for="mold_temp">P2</label><br>
  2313. <div class="row">
  2314. <div class="col-md-12">
  2315. <div class="row">
  2316. <div class="col-md-4">
  2317. <p>Min</p>
  2318. <input type="text" name="p2[]" class="form-control" placeholder="min"value="{{ $p2 == '' ? $p2:$p2[0] }}">
  2319. </div>
  2320.  
  2321. <div class="col-md-4">
  2322. <p>Max</p>
  2323. <input type="text" name="p2[]" class="form-control" placeholder="max"value="{{ $p2 == '' ? $p2:$p2[1] }}">
  2324. </div>
  2325.  
  2326. <div class="col-md-4">
  2327. <p>Std</p>
  2328. <input type="text" name="p2[]" class="form-control" placeholder="standart"value="{{ $p2 == '' ? $p2:$p2[2] }}">
  2329. </div>
  2330. </div>
  2331. </div>
  2332. </div>
  2333. </div>
  2334. @endif
  2335.  
  2336. @if($machine_settingA->p3 == 1)
  2337.  
  2338. <div class="form-group col-md-4">
  2339. <label for="mold_temp">P3</label><br>
  2340. <div class="row">
  2341. <div class="col-md-12">
  2342. <div class="row">
  2343. <div class="col-md-4">
  2344. <p>Min</p>
  2345. <input type="text" name="p3[]" class="form-control" placeholder="min"value="{{ $p3 == '' ? $p3:$p3[0] }}">
  2346. </div>
  2347.  
  2348. <div class="col-md-4">
  2349. <p>Max</p>
  2350. <input type="text" name="p3[]" class="form-control" placeholder="max"value="{{ $p3 == '' ? $p3:$p3[1] }}">
  2351. </div>
  2352.  
  2353. <div class="col-md-4">
  2354. <p>Std</p>
  2355. <input type="text" name="p3[]" class="form-control" placeholder="standart"value="{{ $p3 == '' ? $p3:$p3[2] }}">
  2356. </div>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. @endif
  2362.  
  2363. <!-- <div class="form-group col-md-4">
  2364. <label for="mold_temp">Distinction</label><br>
  2365. <input type="checkbox" name="distinction" id="distinction" value="1" data-toggle="toggle" data-onstyle="primary">
  2366. </div>
  2367.  
  2368. <div class="form-group col-md-4">
  2369. <label for="mold_temp">Distinction F1</label><br>
  2370. <input type="checkbox" name="f1" id="f1" data-toggle="toggle" value="1" data-onstyle="primary">
  2371. </div>
  2372.  
  2373. <div class="form-group col-md-4">
  2374. <label for="mold_temp">Distinction F2</label><br>
  2375. <input type="checkbox" name="f2" id="f2" data-toggle="toggle" value="1" data-onstyle="primary">
  2376. </div> -->
  2377. </div>
  2378.  
  2379.  
  2380.  
  2381. <div class="col-md-12">
  2382. <div class="col-md-12">
  2383. @if($machine_settingA->valve_1 == 1)
  2384. <label><h4>Hot Runner Heater Controller</h4></label>
  2385. @endif
  2386. </div>
  2387. <br />
  2388.  
  2389. @if($machine_settingA->valve_1 == 1)
  2390.  
  2391. <div class="form-group col-md-4">
  2392. <label for="mold_temp">Valve Pin Heater 1</label><br>
  2393. <div class="row">
  2394. <div class="col-md-12">
  2395. <div class="row">
  2396. <div class="col-md-4">
  2397. <p>Min</p>
  2398. <input type="text" name="valve_1[]" class="form-control" placeholder="min"value="{{ $valve_1 == '' ? $valve_1:$valve_1[0] }}">
  2399. </div>
  2400.  
  2401. <div class="col-md-4">
  2402. <p>Max</p>
  2403. <input type="text" name="valve_1[]" class="form-control" placeholder="max"value="{{ $valve_1 == '' ? $valve_1:$valve_1[1] }}">
  2404. </div>
  2405.  
  2406. <div class="col-md-4">
  2407. <p>Std</p>
  2408. <input type="text" name="valve_1[]" class="form-control" placeholder="standart"value="{{ $valve_1 == '' ? $valve_1:$valve_1[2] }}">
  2409. </div>
  2410. </div>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. @endif
  2415.  
  2416. @if($machine_settingA->valve_2 == 1)
  2417.  
  2418. <div class="form-group col-md-4">
  2419. <label for="mold_temp">Valve Pin Heater 2</label><br>
  2420. <div class="row">
  2421. <div class="col-md-12">
  2422. <div class="row">
  2423. <div class="col-md-4">
  2424. <p>Min</p>
  2425. <input type="text" name="valve_2[]" class="form-control" placeholder="min"value="{{ $valve_2 == '' ? $valve_2:$valve_2[0] }}">
  2426. </div>
  2427.  
  2428. <div class="col-md-4">
  2429. <p>Max</p>
  2430. <input type="text" name="valve_2[]" class="form-control" placeholder="max"value="{{ $valve_2 == '' ? $valve_2:$valve_2[1] }}">
  2431. </div>
  2432.  
  2433. <div class="col-md-4">
  2434. <p>Std</p>
  2435. <input type="text" name="valve_2[]" class="form-control" placeholder="standart"value="{{ $valve_2 == '' ? $valve_2:$valve_2[2] }}">
  2436. </div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. @endif
  2442.  
  2443. @if($machine_settingA->valve_3 == 1)
  2444.  
  2445. <div class="form-group col-md-4">
  2446. <label for="mold_temp">Valve Pin Heater 3</label><br>
  2447. <div class="row">
  2448. <div class="col-md-12">
  2449. <div class="row">
  2450. <div class="col-md-4">
  2451. <p>Min</p>
  2452. <input type="text" name="valve_3[]" class="form-control" placeholder="min"value="{{ $valve_3 == '' ? $valve_3:$valve_3[0] }}">
  2453. </div>
  2454.  
  2455. <div class="col-md-4">
  2456. <p>Max</p>
  2457. <input type="text" name="valve_3[]" class="form-control" placeholder="max"value="{{ $valve_3 == '' ? $valve_3:$valve_3[1] }}">
  2458. </div>
  2459.  
  2460. <div class="col-md-4">
  2461. <p>Std</p>
  2462. <input type="text" name="valve_3[]" class="form-control" placeholder="standart"value="{{ $valve_3 == '' ? $valve_3:$valve_3[2] }}">
  2463. </div>
  2464. </div>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. @endif
  2469.  
  2470. @if($machine_settingA->valve_4 == 1)
  2471.  
  2472. <div class="form-group col-md-4">
  2473. <label for="mold_temp">Valve Pin Heater 4</label><br>
  2474. <div class="row">
  2475. <div class="col-md-12">
  2476. <div class="row">
  2477. <div class="col-md-4">
  2478. <p>Min</p>
  2479. <input type="text" name="valve_4[]" class="form-control" placeholder="min"value="{{ $valve_4 == '' ? $valve_4:$valve_4[0] }}">
  2480. </div>
  2481.  
  2482. <div class="col-md-4">
  2483. <p>Max</p>
  2484. <input type="text" name="valve_4[]" class="form-control" placeholder="max"value="{{ $valve_4 == '' ? $valve_4:$valve_4[1] }}">
  2485. </div>
  2486.  
  2487. <div class="col-md-4">
  2488. <p>Std</p>
  2489. <input type="text" name="valve_4[]" class="form-control" placeholder="standart"value="{{ $valve_4 == '' ? $valve_4:$valve_4[2] }}">
  2490. </div>
  2491. </div>
  2492. </div>
  2493. </div>
  2494. </div>
  2495. @endif
  2496.  
  2497. @if($machine_settingA->valve_5 == 1)
  2498.  
  2499. <div class="form-group col-md-4">
  2500. <label for="mold_temp">Valve Pin Heater 5</label><br>
  2501. <div class="row">
  2502. <div class="col-md-12">
  2503. <div class="row">
  2504. <div class="col-md-4">
  2505. <p>Min</p>
  2506. <input type="text" name="valve_5[]" class="form-control" placeholder="min"value="{{ $valve_5 == '' ? $valve_5:$valve_5[0] }}">
  2507. </div>
  2508.  
  2509. <div class="col-md-4">
  2510. <p>Max</p>
  2511. <input type="text" name="valve_5[]" class="form-control" placeholder="max"value="{{ $valve_5 == '' ? $valve_5:$valve_5[1] }}">
  2512. </div>
  2513.  
  2514. <div class="col-md-4">
  2515. <p>Std</p>
  2516. <input type="text" name="valve_5[]" class="form-control" placeholder="standart"value="{{ $valve_5 == '' ? $valve_5:$valve_5[2] }}">
  2517. </div>
  2518. </div>
  2519. </div>
  2520. </div>
  2521. </div>
  2522. @endif
  2523.  
  2524. @if($machine_settingA->valve_6 == 1)
  2525.  
  2526. <div class="form-group col-md-4">
  2527. <label for="mold_temp">Valve Pin Heater 6</label><br>
  2528. <div class="row">
  2529. <div class="col-md-12">
  2530. <div class="row">
  2531. <div class="col-md-4">
  2532. <p>Min</p>
  2533. <input type="text" name="valve_6[]" class="form-control" placeholder="min"value="{{ $valve_6 == '' ? $valve_6:$valve_6[0] }}">
  2534. </div>
  2535.  
  2536. <div class="col-md-4">
  2537. <p>Max</p>
  2538. <input type="text" name="valve_6[]" class="form-control" placeholder="max"value="{{ $valve_6 == '' ? $valve_6:$valve_6[1] }}">
  2539. </div>
  2540.  
  2541. <div class="col-md-4">
  2542. <p>Std</p>
  2543. <input type="text" name="valve_6[]" class="form-control" placeholder="standart"value="{{ $valve_6 == '' ? $valve_6:$valve_6[2] }}">
  2544. </div>
  2545. </div>
  2546. </div>
  2547. </div>
  2548. </div>
  2549. @endif
  2550.  
  2551. @if($machine_settingA->valve_7 == 1)
  2552.  
  2553. <div class="form-group col-md-4">
  2554. <label for="mold_temp">Valve Pin Heater 7</label><br>
  2555. <div class="row">
  2556. <div class="col-md-12">
  2557. <div class="row">
  2558. <div class="col-md-4">
  2559. <p>Min</p>
  2560. <input type="text" name="valve_7[]" class="form-control" placeholder="min"value="{{ $valve_7 == '' ? $valve_7:$valve_7[0] }}">
  2561. </div>
  2562.  
  2563. <div class="col-md-4">
  2564. <p>Max</p>
  2565. <input type="text" name="valve_7[]" class="form-control" placeholder="max"value="{{ $valve_7 == '' ? $valve_7:$valve_7[1] }}">
  2566. </div>
  2567.  
  2568. <div class="col-md-4">
  2569. <p>Std</p>
  2570. <input type="text" name="valve_7[]" class="form-control" placeholder="standart"value="{{ $valve_7 == '' ? $valve_7:$valve_7[2] }}">
  2571. </div>
  2572. </div>
  2573. </div>
  2574. </div>
  2575. </div>
  2576. @endif
  2577.  
  2578. @if($machine_settingA->valve_8 == 1)
  2579.  
  2580. <div class="form-group col-md-4">
  2581. <label for="mold_temp">Valve Pin Heater 8</label><br>
  2582. <div class="row">
  2583. <div class="col-md-12">
  2584. <div class="row">
  2585. <div class="col-md-4">
  2586. <p>Min</p>
  2587. <input type="text" name="valve_8[]" class="form-control" placeholder="min" value="{{ $valve_8 == '' ? $valve_8:$valve_8[0] }}">
  2588. </div>
  2589.  
  2590. <div class="col-md-4">
  2591. <p>Max</p>
  2592. <input type="text" name="valve_8[]" class="form-control" placeholder="max" value="{{ $valve_8 == '' ? $valve_8:$valve_8[1] }}">
  2593. </div>
  2594.  
  2595. <div class="col-md-4">
  2596. <p>Std</p>
  2597. <input type="text" name="valve_8[]" class="form-control" placeholder="standart" value="{{ $valve_8 == '' ? $valve_8:$valve_8[2] }}">
  2598. </div>
  2599. </div>
  2600. </div>
  2601. </div>
  2602. </div>
  2603. @endif
  2604.  
  2605. @if($machine_settingA->valve_9 == 1)
  2606.  
  2607. <div class="form-group col-md-4">
  2608. <label for="mold_temp">Valve Pin Heater 9</label><br>
  2609. <div class="row">
  2610. <div class="col-md-12">
  2611. <div class="row">
  2612. <div class="col-md-4">
  2613. <p>Min</p>
  2614. <input type="text" name="valve_9[]" class="form-control" placeholder="min"value="{{ $valve_9 == '' ? $valve_9:$valve_9[0] }}">
  2615. </div>
  2616.  
  2617. <div class="col-md-4">
  2618. <p>Max</p>
  2619. <input type="text" name="valve_9[]" class="form-control" placeholder="max"value="{{ $valve_9 == '' ? $valve_9:$valve_9[1] }}">
  2620. </div>
  2621.  
  2622. <div class="col-md-4">
  2623. <p>Std</p>
  2624. <input type="text" name="valve_9[]" class="form-control" placeholder="standart"value="{{ $valve_9 == '' ? $valve_9:$valve_9[2] }}">
  2625. </div>
  2626. </div>
  2627. </div>
  2628. </div>
  2629. </div>
  2630. @endif
  2631.  
  2632. @if($machine_settingA->valve_10 == 1)
  2633.  
  2634. <div class="form-group col-md-4">
  2635. <label for="mold_temp">Valve Pin Heater 10</label><br>
  2636. <div class="row">
  2637. <div class="col-md-12">
  2638. <div class="row">
  2639. <div class="col-md-4">
  2640. <p>Min</p>
  2641. <input type="text" name="valve_10[]" class="form-control" placeholder="min"value="{{ $valve_10 == '' ? $valve_10:$valve_10[0] }}">
  2642. </div>
  2643.  
  2644. <div class="col-md-4">
  2645. <p>Max</p>
  2646. <input type="text" name="valve_10[]" class="form-control" placeholder="max"value="{{ $valve_10 == '' ? $valve_10:$valve_10[1] }}">
  2647. </div>
  2648.  
  2649. <div class="col-md-4">
  2650. <p>Std</p>
  2651. <input type="text" name="valve_10[]" class="form-control" placeholder="standart"value="{{ $valve_10 == '' ? $valve_10:$valve_10[2] }}">
  2652. </div>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. @endif
  2658.  
  2659. @if($machine_settingA->valve_11 == 1)
  2660.  
  2661. <div class="form-group col-md-4">
  2662. <label for="mold_temp">Valve Pin Heater 11</label><br>
  2663. <div class="row">
  2664. <div class="col-md-12">
  2665. <div class="row">
  2666. <div class="col-md-4">
  2667. <p>Min</p>
  2668. <input type="text" name="valve_11[]" class="form-control" placeholder="min"value="{{ $valve_11 == '' ? $valve_11:$valve_11[0] }}">
  2669. </div>
  2670.  
  2671. <div class="col-md-4">
  2672. <p>Max</p>
  2673. <input type="text" name="valve_11[]" class="form-control" placeholder="max"value="{{ $valve_11 == '' ? $valve_11:$valve_11[1] }}">
  2674. </div>
  2675.  
  2676. <div class="col-md-4">
  2677. <p>Std</p>
  2678. <input type="text" name="valve_11[]" class="form-control" placeholder="standart"value="{{ $valve_11 == '' ? $valve_11:$valve_11[2] }}">
  2679. </div>
  2680. </div>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. @endif
  2685.  
  2686. @if($machine_settingA->valve_12 == 1)
  2687.  
  2688. <div class="form-group col-md-4">
  2689. <label for="mold_temp">Valve Pin Heater 12</label><br>
  2690. <div class="row">
  2691. <div class="col-md-12">
  2692. <div class="row">
  2693. <div class="col-md-4">
  2694. <p>Min</p>
  2695. <input type="text" name="valve_12[]" class="form-control" placeholder="min"value="{{ $valve_12 == '' ? $valve_12:$valve_12[0] }}">
  2696. </div>
  2697.  
  2698. <div class="col-md-4">
  2699. <p>Max</p>
  2700. <input type="text" name="valve_12[]" class="form-control" placeholder="max"value="{{ $valve_12 == '' ? $valve_12:$valve_12[1] }}">
  2701. </div>
  2702.  
  2703. <div class="col-md-4">
  2704. <p>Std</p>
  2705. <input type="text" name="valve_12[]" class="form-control" placeholder="standart"value="{{ $valve_12 == '' ? $valve_12:$valve_12[2] }}">
  2706. </div>
  2707. </div>
  2708. </div>
  2709. </div>
  2710. </div>
  2711. @endif
  2712.  
  2713. @if($machine_settingA->valve_13 == 1)
  2714.  
  2715. <div class="form-group col-md-4">
  2716. <label for="mold_temp">Valve Pin Heater 13</label><br>
  2717. <div class="row">
  2718. <div class="col-md-12">
  2719. <div class="row">
  2720. <div class="col-md-4">
  2721. <p>Min</p>
  2722. <input type="text" name="valve_13[]" class="form-control" placeholder="min"value="{{ $valve_13 == '' ? $valve_13:$valve_13[0] }}">
  2723. </div>
  2724.  
  2725. <div class="col-md-4">
  2726. <p>Max</p>
  2727. <input type="text" name="valve_13[]" class="form-control" placeholder="max"value="{{ $valve_13 == '' ? $valve_13:$valve_13[1] }}">
  2728. </div>
  2729.  
  2730. <div class="col-md-4">
  2731. <p>Std</p>
  2732. <input type="text" name="valve_13[]" class="form-control" placeholder="standart"value="{{ $valve_13 == '' ? $valve_13:$valve_13[2] }}">
  2733. </div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. </div>
  2738. @endif
  2739.  
  2740. @if($machine_settingA->valve_14 == 1)
  2741.  
  2742. <div class="form-group col-md-4">
  2743. <label for="mold_temp">Valve Pin Heater 14</label><br>
  2744. <div class="row">
  2745. <div class="col-md-12">
  2746. <div class="row">
  2747. <div class="col-md-4">
  2748. <p>Min</p>
  2749. <input type="text" name="valve_14[]" class="form-control" placeholder="min"value="{{ $valve_14 == '' ? $valve_14:$valve_14[0] }}">
  2750. </div>
  2751.  
  2752. <div class="col-md-4">
  2753. <p>Max</p>
  2754. <input type="text" name="valve_14[]" class="form-control" placeholder="max"value="{{ $valve_14 == '' ? $valve_14:$valve_14[1] }}">
  2755. </div>
  2756.  
  2757. <div class="col-md-4">
  2758. <p>Std</p>
  2759. <input type="text" name="valve_14[]" class="form-control" placeholder="standart"value="{{ $valve_14 == '' ? $valve_14:$valve_14[2] }}">
  2760. </div>
  2761. </div>
  2762. </div>
  2763. </div>
  2764. </div>
  2765. @endif
  2766.  
  2767. @if($machine_settingA->valve_15 == 1)
  2768.  
  2769. <div class="form-group col-md-4">
  2770. <label for="mold_temp">Valve Pin Heater 15</label><br>
  2771. <div class="row">
  2772. <div class="col-md-12">
  2773. <div class="row">
  2774. <div class="col-md-4">
  2775. <p>Min</p>
  2776. <input type="text" name="valve_15[]" class="form-control" placeholder="min"value="{{ $valve_15 == '' ? $valve_15:$valve_15[0] }}">
  2777. </div>
  2778.  
  2779. <div class="col-md-4">
  2780. <p>Max</p>
  2781. <input type="text" name="valve_15[]" class="form-control" placeholder="max"value="{{ $valve_15 == '' ? $valve_15:$valve_15[1] }}">
  2782. </div>
  2783.  
  2784. <div class="col-md-4">
  2785. <p>Std</p>
  2786. <input type="text" name="valve_15[]" class="form-control" placeholder="standart"value="{{ $valve_15 == '' ? $valve_15:$valve_15[2] }}">
  2787. </div>
  2788. </div>
  2789. </div>
  2790. </div>
  2791. </div>
  2792. @endif
  2793.  
  2794. @if($machine_settingA->valve_16 == 1)
  2795.  
  2796. <div class="form-group col-md-4">
  2797. <label for="mold_temp">Valve Pin Heater 16</label><br>
  2798. <div class="row">
  2799. <div class="col-md-12">
  2800. <div class="row">
  2801. <div class="col-md-4">
  2802. <p>Min</p>
  2803. <input type="text" name="valve_16[]" class="form-control" placeholder="min"value="{{ $valve_16 == '' ? $valve_16:$valve_16[0] }}">
  2804. </div>
  2805.  
  2806. <div class="col-md-4">
  2807. <p>Max</p>
  2808. <input type="text" name="valve_16[]" class="form-control" placeholder="max"value="{{ $valve_16 == '' ? $valve_16:$valve_16[1] }}">
  2809. </div>
  2810.  
  2811. <div class="col-md-4">
  2812. <p>Std</p>
  2813. <input type="text" name="valve_16[]" class="form-control" placeholder="standart"value="{{ $valve_16 == '' ? $valve_16:$valve_16[2] }}">
  2814. </div>
  2815. </div>
  2816. </div>
  2817. </div>
  2818. </div>
  2819. @endif
  2820.  
  2821. @if($machine_settingA->diff == 1)
  2822.  
  2823. <div class="form-group col-md-4">
  2824. <label for="mold_temp">Diff</label><br>
  2825. <div class="row">
  2826. <div class="col-md-12">
  2827. <div class="row">
  2828. <div class="col-md-4">
  2829. <p>Min</p>
  2830. <input type="text" name="diff[]" class="form-control" placeholder="min"value="{{ $diff == '' ? $diff:$diff[0] }}">
  2831. </div>
  2832.  
  2833. <div class="col-md-4">
  2834. <p>Max</p>
  2835. <input type="text" name="diff[]" class="form-control" placeholder="max"value="{{ $diff == '' ? $diff:$diff[1] }}">
  2836. </div>
  2837.  
  2838. <div class="col-md-4">
  2839. <p>Std</p>
  2840. <input type="text" name="diff[]" class="form-control" placeholder="standart"value="{{ $diff == '' ? $diff:$diff[2] }}">
  2841. </div>
  2842. </div>
  2843. </div>
  2844. </div>
  2845. </div>
  2846. @endif
  2847.  
  2848. <!-- <div class="form-group col-md-4">
  2849. <label for="mold_temp">DIFF</label><br>
  2850. <input type="checkbox" name="diff" id="diff" data-toggle="toggle" value="1" data-onstyle="primary">
  2851. </div> -->
  2852.  
  2853. @if($machine_settingA->gate_delay_time == 1)
  2854.  
  2855. <div class="form-group col-md-4">
  2856. <label for="mold_temp">Gate Open Delay Time </label><br>
  2857. <div class="row">
  2858. <div class="col-md-12">
  2859. <div class="row">
  2860. <div class="col-md-4">
  2861. <p>Min</p>
  2862. <input type="text" name="gate_delay_time[]" class="form-control" placeholder="min"value="{{ $gate_delay_time == '' ? $gate_delay_time:$gate_delay_time[0] }}">
  2863. </div>
  2864.  
  2865. <div class="col-md-4">
  2866. <p>Max</p>
  2867. <input type="text" name="gate_delay_time[]" class="form-control" placeholder="max"value="{{ $gate_delay_time == '' ? $gate_delay_time:$gate_delay_time[1] }}">
  2868. </div>
  2869.  
  2870. <div class="col-md-4">
  2871. <p>Std</p>
  2872. <input type="text" name="gate_delay_time[]" class="form-control" placeholder="standart"value="{{ $gate_delay_time == '' ? $gate_delay_time:$gate_delay_time[2] }}">
  2873. </div>
  2874. </div>
  2875. </div>
  2876. </div>
  2877. </div>
  2878. @endif
  2879.  
  2880. @if($machine_settingA->gate_open_time == 1)
  2881.  
  2882. <div class="form-group col-md-4">
  2883. <label for="mold_temp">Gate Open Time</label><br>
  2884. <div class="row">
  2885. <div class="col-md-12">
  2886. <div class="row">
  2887. <div class="col-md-4">
  2888. <p>Min</p>
  2889. <input type="text" name="gate_open_time[]" class="form-control" placeholder="min"value="{{ $gate_open_time == '' ? $gate_open_time:$gate_open_time[0] }}">
  2890. </div>
  2891.  
  2892. <div class="col-md-4">
  2893. <p>Max</p>
  2894. <input type="text" name="gate_open_time[]" class="form-control" placeholder="max"value="{{ $gate_open_time == '' ? $gate_open_time:$gate_open_time[1] }}">
  2895. </div>
  2896.  
  2897. <div class="col-md-4">
  2898. <p>Std</p>
  2899. <input type="text" name="gate_open_time[]" class="form-control" placeholder="standart"value="{{ $gate_open_time == '' ? $gate_open_time:$gate_open_time[2] }}">
  2900. </div>
  2901. </div>
  2902. </div>
  2903. </div>
  2904. </div>
  2905. @endif
  2906. </div>
  2907.  
  2908.  
  2909. <div class="col-md-12">
  2910. <div class="col-md-12">
  2911. @if($machine_settingA->cool_tm == 1)
  2912. <label><h4>Get Cut</h4></label>
  2913. @endif
  2914. </div>
  2915. <br />
  2916.  
  2917. @if($machine_settingA->cool_tm == 1)
  2918.  
  2919. <div class="form-group col-md-4">
  2920. <label for="mold_temp">Cool TM</label><br>
  2921. <div class="row">
  2922. <div class="col-md-12">
  2923. <div class="row">
  2924. <div class="col-md-4">
  2925. <p>Min</p>
  2926. <input type="text" name="cool_tm[]" class="form-control" placeholder="min"value="{{ $cool_tm == '' ? $cool_tm:$cool_tm[0] }}">
  2927. </div>
  2928.  
  2929. <div class="col-md-4">
  2930. <p>Max</p>
  2931. <input type="text" name="cool_tm[]" class="form-control" placeholder="max"value="{{ $cool_tm == '' ? $cool_tm:$cool_tm[1] }}">
  2932. </div>
  2933.  
  2934. <div class="col-md-4">
  2935. <p>Std</p>
  2936. <input type="text" name="cool_tm[]" class="form-control" placeholder="standart"value="{{ $cool_tm == '' ? $cool_tm:$cool_tm[2] }}">
  2937. </div>
  2938. </div>
  2939. </div>
  2940. </div>
  2941. </div>
  2942. @endif
  2943.  
  2944. @if($machine_settingA->a1_top == 1)
  2945.  
  2946.  
  2947. <div class="form-group col-md-4">
  2948. <label for="mold_temp">A1 Top</label><br>
  2949. <div class="row">
  2950. <div class="col-md-12">
  2951. <div class="row">
  2952. <div class="col-md-4">
  2953. <p>Min</p>
  2954. <input type="text" name="a1_top[]" class="form-control" placeholder="min"value="{{ $a1_top == '' ? $a1_top:$a1_top[0] }}">
  2955. </div>
  2956.  
  2957. <div class="col-md-4">
  2958. <p>Max</p>
  2959. <input type="text" name="a1_top[]" class="form-control" placeholder="max"value="{{ $a1_top == '' ? $a1_top:$a1_top[1] }}">
  2960. </div>
  2961.  
  2962. <div class="col-md-4">
  2963. <p>Std</p>
  2964. <input type="text" name="a1_top[]" class="form-control" placeholder="standart"value="{{ $a1_top == '' ? $a1_top:$a1_top[2] }}">
  2965. </div>
  2966. </div>
  2967. </div>
  2968. </div>
  2969. </div>
  2970. @endif
  2971.  
  2972. @if($machine_settingA->a1_bottom == 1)
  2973.  
  2974. <div class="form-group col-md-4">
  2975. <label for="mold_temp">A1 Bottom</label><br>
  2976. <div class="row">
  2977. <div class="col-md-12">
  2978. <div class="row">
  2979. <div class="col-md-4">
  2980. <p>Min</p>
  2981. <input type="text" name="a1_bottom[]" class="form-control" placeholder="min"value="{{ $a1_bottom == '' ? $a1_bottom:$a1_bottom[0] }}">
  2982. </div>
  2983.  
  2984. <div class="col-md-4">
  2985. <p>Max</p>
  2986. <input type="text" name="a1_bottom[]" class="form-control" placeholder="max"value="{{ $a1_bottom == '' ? $a1_bottom:$a1_bottom[1] }}">
  2987. </div>
  2988.  
  2989. <div class="col-md-4">
  2990. <p>Std</p>
  2991. <input type="text" name="a1_bottom[]" class="form-control" placeholder="standart"value="{{ $a1_bottom == '' ? $a1_bottom:$a1_bottom[2] }}">
  2992. </div>
  2993. </div>
  2994. </div>
  2995. </div>
  2996. </div>
  2997. @endif
  2998.  
  2999. @if($machine_settingA->b1_top == 1)
  3000.  
  3001. <div class="form-group col-md-4">
  3002. <label for="mold_temp">B1 Top</label><br>
  3003. <div class="row">
  3004. <div class="col-md-12">
  3005. <div class="row">
  3006. <div class="col-md-4">
  3007. <p>Min</p>
  3008. <input type="text" name="b1_top[]" class="form-control" placeholder="min"value="{{ $b1_top == '' ? $b1_top:$b1_top[0] }}">
  3009. </div>
  3010.  
  3011. <div class="col-md-4">
  3012. <p>Max</p>
  3013. <input type="text" name="b1_top[]" class="form-control" placeholder="max"value="{{ $b1_top == '' ? $b1_top:$b1_top[1] }}">
  3014. </div>
  3015.  
  3016. <div class="col-md-4">
  3017. <p>Std</p>
  3018. <input type="text" name="b1_top[]" class="form-control" placeholder="standart"value="{{ $b1_top == '' ? $b1_top:$b1_top[2] }}">
  3019. </div>
  3020. </div>
  3021. </div>
  3022. </div>
  3023. </div>
  3024. @endif
  3025.  
  3026. @if($machine_settingA->b1_bottom == 1)
  3027.  
  3028. <div class="form-group col-md-4">
  3029. <label for="mold_temp">B1 Bottom</label><br>
  3030. <div class="row">
  3031. <div class="col-md-12">
  3032. <div class="row">
  3033. <div class="col-md-4">
  3034. <p>Min</p>
  3035. <input type="text" name="b1_bottom[]" class="form-control" placeholder="min"value="{{ $b1_bottom == '' ? $b1_bottom:$b1_bottom[0] }}">
  3036. </div>
  3037.  
  3038. <div class="col-md-4">
  3039. <p>Max</p>
  3040. <input type="text" name="b1_bottom[]" class="form-control" placeholder="max"value="{{ $b1_bottom == '' ? $b1_bottom:$b1_bottom[1] }}">
  3041. </div>
  3042.  
  3043. <div class="col-md-4">
  3044. <p>Std</p>
  3045. <input type="text" name="b1_bottom[]" class="form-control" placeholder="standart"value="{{ $b1_bottom == '' ? $b1_bottom:$b1_bottom[2] }}">
  3046. </div>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. </div>
  3051. @endif
  3052.  
  3053. @if($machine_settingA->a2_top == 1)
  3054.  
  3055. <div class="form-group col-md-4">
  3056. <label for="mold_temp">A2 Top</label><br>
  3057. <div class="row">
  3058. <div class="col-md-12">
  3059. <div class="row">
  3060. <div class="col-md-4">
  3061. <p>Min</p>
  3062. <input type="text" name="a2_top[]" class="form-control" placeholder="min"value="{{ $a2_top == '' ? $a2_top:$a2_top[0] }}">
  3063. </div>
  3064.  
  3065. <div class="col-md-4">
  3066. <p>Max</p>
  3067. <input type="text" name="a2_top[]" class="form-control" placeholder="max"value="{{ $a2_top == '' ? $a2_top:$a2_top[1] }}">
  3068. </div>
  3069.  
  3070. <div class="col-md-4">
  3071. <p>Std</p>
  3072. <input type="text" name="a2_top[]" class="form-control" placeholder="standart"value="{{ $a2_top == '' ? $a2_top:$a2_top[2] }}">
  3073. </div>
  3074. </div>
  3075. </div>
  3076. </div>
  3077. </div>
  3078. @endif
  3079.  
  3080. @if($machine_settingA->a2_bottom == 1)
  3081.  
  3082. <div class="form-group col-md-4">
  3083. <label for="mold_temp">A2 Bottom</label><br>
  3084. <div class="row">
  3085. <div class="col-md-12">
  3086. <div class="row">
  3087. <div class="col-md-4">
  3088. <p>Min</p>
  3089. <input type="text" name="a2_bottom[]" class="form-control" placeholder="min"value="{{ $a2_bottom == '' ? $a2_bottom:$a2_bottom[0] }}">
  3090. </div>
  3091.  
  3092. <div class="col-md-4">
  3093. <p>Max</p>
  3094. <input type="text" name="a2_bottom[]" class="form-control" placeholder="max"value="{{ $a2_bottom == '' ? $a2_bottom:$a2_bottom[1] }}">
  3095. </div>
  3096.  
  3097. <div class="col-md-4">
  3098. <p>Std</p>
  3099. <input type="text" name="a2_bottom[]" class="form-control" placeholder="standart"value="{{ $a2_bottom == '' ? $a2_bottom:$a2_bottom[2] }}">
  3100. </div>
  3101. </div>
  3102. </div>
  3103. </div>
  3104. </div>
  3105. @endif
  3106.  
  3107. @if($machine_settingA->b2_top == 1)
  3108.  
  3109. <div class="form-group col-md-4">
  3110. <label for="mold_temp">B2 Top</label><br>
  3111. <div class="row">
  3112. <div class="col-md-12">
  3113. <div class="row">
  3114. <div class="col-md-4">
  3115. <p>Min</p>
  3116. <input type="text" name="b2_top[]" class="form-control" placeholder="min"value="{{ $b2_top == '' ? $b2_top:$b2_top[0] }}">
  3117. </div>
  3118.  
  3119. <div class="col-md-4">
  3120. <p>Max</p>
  3121. <input type="text" name="b2_top[]" class="form-control" placeholder="max"value="{{ $b2_top == '' ? $b2_top:$b2_top[1] }}">
  3122. </div>
  3123.  
  3124. <div class="col-md-4">
  3125. <p>Std</p>
  3126. <input type="text" name="b2_top[]" class="form-control" placeholder="standart"value="{{ $b2_top == '' ? $b2_top:$b2_top[2] }}">
  3127. </div>
  3128. </div>
  3129. </div>
  3130. </div>
  3131. </div>
  3132. @endif
  3133.  
  3134. @if($machine_settingA->b2_bottom == 1)
  3135.  
  3136. <div class="form-group col-md-4">
  3137. <label for="mold_temp">B2 Bottom</label><br>
  3138. <div class="row">
  3139. <div class="col-md-12">
  3140. <div class="row">
  3141. <div class="col-md-4">
  3142. <p>Min</p>
  3143. <input type="text" name="b2_bottom[]" class="form-control" placeholder="min"value="{{ $b2_bottom == '' ? $b2_bottom:$b2_bottom[0] }}">
  3144. </div>
  3145.  
  3146. <div class="col-md-4">
  3147. <p>Max</p>
  3148. <input type="text" name="b2_bottom[]" class="form-control" placeholder="max"value="{{ $b2_bottom == '' ? $b2_bottom:$b2_bottom[1] }}">
  3149. </div>
  3150.  
  3151. <div class="col-md-4">
  3152. <p>Std</p>
  3153. <input type="text" name="b2_bottom[]" class="form-control" placeholder="standart"value="{{ $b2_bottom == '' ? $b2_bottom:$b2_bottom[2] }}">
  3154. </div>
  3155. </div>
  3156. </div>
  3157. </div>
  3158. </div>
  3159. @endif
  3160.  
  3161. <div class="col-md-12">
  3162. @if($machine_settingB->chiller_temp == 1)
  3163. <label><h4>Mesin Ink Bottle</h4></label>
  3164. @endif
  3165. </div>
  3166. <br />
  3167.  
  3168. @if($machine_settingB->chiller_temp == 1)
  3169.  
  3170. <div class="form-group col-md-4">
  3171. <label for="mold_temp">Chiller Temp</label><br>
  3172. <div class="row">
  3173. <div class="col-md-12">
  3174. <div class="row">
  3175. <div class="col-md-4">
  3176. <p>Min</p>
  3177. <input type="text" name="chiller_temp[]" class="form-control" placeholder="min"value="{{ $chiller_temp == '' ? $chiller_temp:$chiller_temp[0] }}">
  3178. </div>
  3179.  
  3180. <div class="col-md-4">
  3181. <p>Max</p>
  3182. <input type="text" name="chiller_temp[]" class="form-control" placeholder="max"value="{{ $chiller_temp == '' ? $chiller_temp:$chiller_temp[1] }}">
  3183. </div>
  3184.  
  3185. <div class="col-md-4">
  3186. <p>Std</p>
  3187. <input type="text" name="chiller_temp[]" class="form-control" placeholder="standart"value="{{ $chiller_temp == '' ? $chiller_temp:$chiller_temp[2] }}">
  3188. </div>
  3189. </div>
  3190. </div>
  3191. </div>
  3192. </div>
  3193. @endif
  3194.  
  3195. @if($machine_settingB->screw_speed == 1)
  3196.  
  3197. <div class="form-group col-md-4">
  3198. <label for="mold_temp">Screw Speed</label><br>
  3199. <div class="row">
  3200. <div class="col-md-12">
  3201. <div class="row">
  3202. <div class="col-md-4">
  3203. <p>Min</p>
  3204. <input type="text" name="screw_speed[]" class="form-control" placeholder="min"value="{{ $screw_speed == '' ? $screw_speed:$screw_speed[0] }}">
  3205. </div>
  3206.  
  3207. <div class="col-md-4">
  3208. <p>Max</p>
  3209. <input type="text" name="screw_speed[]" class="form-control" placeholder="max"value="{{ $screw_speed == '' ? $screw_speed:$screw_speed[1] }}">
  3210. </div>
  3211.  
  3212. <div class="col-md-4">
  3213. <p>Std</p>
  3214. <input type="text" name="screw_speed[]" class="form-control" placeholder="standart"value="{{ $screw_speed == '' ? $screw_speed:$screw_speed[2] }}">
  3215. </div>
  3216. </div>
  3217. </div>
  3218. </div>
  3219. </div>
  3220. @endif
  3221.  
  3222. @if($machine_settingB->melt_temp == 1)
  3223.  
  3224. <div class="form-group col-md-4">
  3225. <label for="mold_temp">Melt Temp</label><br>
  3226. <div class="row">
  3227. <div class="col-md-12">
  3228. <div class="row">
  3229. <div class="col-md-4">
  3230. <p>Min</p>
  3231. <input type="text" name="melt_temp[]" class="form-control" placeholder="min"value="{{ $melt_temp == '' ? $melt_temp:$melt_temp[0] }}">
  3232. </div>
  3233.  
  3234. <div class="col-md-4">
  3235. <p>Max</p>
  3236. <input type="text" name="melt_temp[]" class="form-control" placeholder="max"value="{{ $melt_temp == '' ? $melt_temp:$melt_temp[1] }}">
  3237. </div>
  3238.  
  3239. <div class="col-md-4">
  3240. <p>Std</p>
  3241. <input type="text" name="melt_temp[]" class="form-control" placeholder="standart"value="{{ $melt_temp == '' ? $melt_temp:$melt_temp[2] }}">
  3242. </div>
  3243. </div>
  3244. </div>
  3245. </div>
  3246. </div>
  3247. @endif
  3248.  
  3249. @if($machine_settingB->motor_current == 1)
  3250.  
  3251. <div class="form-group col-md-4">
  3252. <label for="mold_temp">Motor Current</label><br>
  3253. <div class="row">
  3254. <div class="col-md-12">
  3255. <div class="row">
  3256. <div class="col-md-4">
  3257. <p>Min</p>
  3258. <input type="text" name="motor_current[]" class="form-control" placeholder="min"value="{{ $motor_current == '' ? $motor_current:$motor_current[0] }}">
  3259. </div>
  3260.  
  3261. <div class="col-md-4">
  3262. <p>Max</p>
  3263. <input type="text" name="motor_current[]" class="form-control" placeholder="max"value="{{ $motor_current == '' ? $motor_current:$motor_current[1] }}">
  3264. </div>
  3265.  
  3266. <div class="col-md-4">
  3267. <p>Std</p>
  3268. <input type="text" name="motor_current[]" class="form-control" placeholder="standart"value="{{ $motor_current == '' ? $motor_current:$motor_current[2] }}">
  3269. </div>
  3270. </div>
  3271. </div>
  3272. </div>
  3273. </div>
  3274. @endif
  3275.  
  3276. @if($machine_settingB->weight == 1)
  3277.  
  3278. <div class="form-group col-md-4">
  3279. <label for="mold_temp">Weight</label><br>
  3280. <div class="row">
  3281. <div class="col-md-12">
  3282. <div class="row">
  3283. <div class="col-md-4">
  3284. <p>Min</p>
  3285. <input type="text" name="weight[]" class="form-control" placeholder="min"value="{{ $weight == '' ? $weight:$weight[0] }}">
  3286. </div>
  3287.  
  3288. <div class="col-md-4">
  3289. <p>Max</p>
  3290. <input type="text" name="weight[]" class="form-control" placeholder="max"value="{{ $weight == '' ? $weight:$weight[1] }}">
  3291. </div>
  3292.  
  3293. <div class="col-md-4">
  3294. <p>Std</p>
  3295. <input type="text" name="weight[]" class="form-control" placeholder="standart"value="{{ $weight == '' ? $weight:$weight[2] }}">
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. @endif
  3302.  
  3303. @if($machine_settingB->span == 1)
  3304.  
  3305. <div class="form-group col-md-4">
  3306. <label for="mold_temp">Span</label><br>
  3307. <div class="row">
  3308. <div class="col-md-12">
  3309. <div class="row">
  3310. <div class="col-md-4">
  3311. <p>Min</p>
  3312. <input type="text" name="span[]" class="form-control" placeholder="min"value="{{ $span == '' ? $span:$span[0] }}">
  3313. </div>
  3314.  
  3315. <div class="col-md-4">
  3316. <p>Max</p>
  3317. <input type="text" name="span[]" class="form-control" placeholder="max"value="{{ $span == '' ? $span:$span[1] }}">
  3318. </div>
  3319.  
  3320. <div class="col-md-4">
  3321. <p>Std</p>
  3322. <input type="text" name="span[]" class="form-control" placeholder="standart"value="{{ $span == '' ? $span:$span[2] }}">
  3323. </div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. @endif
  3329.  
  3330. @if($machine_settingB->temp_setting_l1 == 1)
  3331.  
  3332. <div class="form-group col-md-4">
  3333. <label for="mold_temp">Temp Setting L1</label><br>
  3334. <div class="row">
  3335. <div class="col-md-12">
  3336. <div class="row">
  3337. <div class="col-md-4">
  3338. <p>Min</p>
  3339. <input type="text" name="temp_setting_l1[]" class="form-control" placeholder="min"value="{{ $temp_setting_l1 == '' ? $temp_setting_l1:$temp_setting_l1[0] }}">
  3340. </div>
  3341.  
  3342. <div class="col-md-4">
  3343. <p>Max</p>
  3344. <input type="text" name="temp_setting_l1[]" class="form-control" placeholder="max"value="{{ $temp_setting_l1 == '' ? $temp_setting_l1:$temp_setting_l1[1] }}">
  3345. </div>
  3346.  
  3347. <div class="col-md-4">
  3348. <p>Std</p>
  3349. <input type="text" name="temp_setting_l1[]" class="form-control" placeholder="standart"value="{{ $temp_setting_l1 == '' ? $temp_setting_l1:$temp_setting_l1[2] }}">
  3350. </div>
  3351. </div>
  3352. </div>
  3353. </div>
  3354. </div>
  3355. @endif
  3356.  
  3357. @if($machine_settingB->temp_setting_l2 == 1)
  3358.  
  3359. <div class="form-group col-md-4">
  3360. <label for="mold_temp">Temp Setting L2</label><br>
  3361. <div class="row">
  3362. <div class="col-md-12">
  3363. <div class="row">
  3364. <div class="col-md-4">
  3365. <p>Min</p>
  3366. <input type="text" name="temp_setting_l2[]" class="form-control" placeholder="min"value="{{ $temp_setting_l2 == '' ? $temp_setting_l2:$temp_setting_l2[0] }}">
  3367. </div>
  3368.  
  3369. <div class="col-md-4">
  3370. <p>Max</p>
  3371. <input type="text" name="temp_setting_l2[]" class="form-control" placeholder="max"value="{{ $temp_setting_l2 == '' ? $temp_setting_l2:$temp_setting_l2[1] }}">
  3372. </div>
  3373.  
  3374. <div class="col-md-4">
  3375. <p>Std</p>
  3376. <input type="text" name="temp_setting_l2[]" class="form-control" placeholder="standart"value="{{ $temp_setting_l2 == '' ? $temp_setting_l2:$temp_setting_l2[2] }}">
  3377. </div>
  3378. </div>
  3379. </div>
  3380. </div>
  3381. </div>
  3382. @endif
  3383.  
  3384.  
  3385. @if($machine_settingB->temp_setting_l3 == 1)
  3386.  
  3387. <div class="form-group col-md-4">
  3388. <label for="mold_temp">Temp Setting L3</label><br>
  3389. <div class="row">
  3390. <div class="col-md-12">
  3391. <div class="row">
  3392. <div class="col-md-4">
  3393. <p>Min</p>
  3394. <input type="text" name="temp_setting_l3[]" class="form-control" placeholder="min"value="{{ $temp_setting_l3 == '' ? $temp_setting_l3:$temp_setting_l3[0] }}">
  3395. </div>
  3396.  
  3397. <div class="col-md-4">
  3398. <p>Max</p>
  3399. <input type="text" name="temp_setting_l3[]" class="form-control" placeholder="max"value="{{ $temp_setting_l3 == '' ? $temp_setting_l3:$temp_setting_l3[1] }}">
  3400. </div>
  3401.  
  3402. <div class="col-md-4">
  3403. <p>Std</p>
  3404. <input type="text" name="temp_setting_l3[]" class="form-control" placeholder="standart"value="{{ $temp_setting_l3 == '' ? $temp_setting_l3:$temp_setting_l3[2] }}">
  3405. </div>
  3406. </div>
  3407. </div>
  3408. </div>
  3409. </div>
  3410. @endif
  3411.  
  3412. @if($machine_settingB->temp_setting_l4 == 1)
  3413.  
  3414. <div class="form-group col-md-4">
  3415. <label for="mold_temp">Temp Setting L4</label><br>
  3416. <div class="row">
  3417. <div class="col-md-12">
  3418. <div class="row">
  3419. <div class="col-md-4">
  3420. <p>Min</p>
  3421. <input type="text" name="temp_setting_l4[]" class="form-control" placeholder="min"value="{{ $temp_setting_l4 == '' ? $temp_setting_l4:$temp_setting_l4[0] }}">
  3422. </div>
  3423.  
  3424. <div class="col-md-4">
  3425. <p>Max</p>
  3426. <input type="text" name="temp_setting_l4[]" class="form-control" placeholder="max"value="{{ $temp_setting_l4 == '' ? $temp_setting_l4:$temp_setting_l4[1] }}">
  3427. </div>
  3428.  
  3429. <div class="col-md-4">
  3430. <p>Std</p>
  3431. <input type="text" name="temp_setting_l4[]" class="form-control" placeholder="standart"value="{{ $temp_setting_l4 == '' ? $temp_setting_l4:$temp_setting_l4[2] }}">
  3432. </div>
  3433. </div>
  3434. </div>
  3435. </div>
  3436. </div>
  3437. @endif
  3438.  
  3439. @if($machine_settingB->pre_below_time_l == 1)
  3440.  
  3441. <div class="form-group col-md-4">
  3442. <label for="mold_temp">Pre Below Time Left</label><br>
  3443. <div class="row">
  3444. <div class="col-md-12">
  3445. <div class="row">
  3446. <div class="col-md-4">
  3447. <p>Min</p>
  3448. <input type="text" name="pre_below_time_l[]" class="form-control" placeholder="min"value="{{ $pre_below_time_l == '' ? $pre_below_time_l:$pre_below_time_l[0] }}">
  3449. </div>
  3450.  
  3451. <div class="col-md-4">
  3452. <p>Max</p>
  3453. <input type="text" name="pre_below_time_l[]" class="form-control" placeholder="max"value="{{ $pre_below_time_l == '' ? $pre_below_time_l:$pre_below_time_l[1] }}">
  3454. </div>
  3455.  
  3456. <div class="col-md-4">
  3457. <p>Std</p>
  3458. <input type="text" name="pre_below_time_l[]" class="form-control" placeholder="standart"value="{{ $pre_below_time_l == '' ? $pre_below_time_l:$pre_below_time_l[2] }}">
  3459. </div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. </div>
  3464. @endif
  3465.  
  3466. @if($machine_settingB->pre_below_time_r == 1)
  3467.  
  3468. <div class="form-group col-md-4">
  3469. <label for="mold_temp">Pre Below Time Right</label><br>
  3470. <div class="row">
  3471. <div class="col-md-12">
  3472. <div class="row">
  3473. <div class="col-md-4">
  3474. <p>Min</p>
  3475. <input type="text" name="pre_below_time_r[]" class="form-control" placeholder="min"value="{{ $pre_below_time_r == '' ? $pre_below_time_r:$pre_below_time_r[0] }}">
  3476. </div>
  3477.  
  3478. <div class="col-md-4">
  3479. <p>Max</p>
  3480. <input type="text" name="pre_below_time_r[]" class="form-control" placeholder="max"value="{{ $pre_below_time_r == '' ? $pre_below_time_r:$pre_below_time_r[1] }}">
  3481. </div>
  3482.  
  3483. <div class="col-md-4">
  3484. <p>Std</p>
  3485. <input type="text" name="pre_below_time_r[]" class="form-control" placeholder="standart"value="{{ $pre_below_time_r == '' ? $pre_below_time_r:$pre_below_time_r[2] }}">
  3486. </div>
  3487. </div>
  3488. </div>
  3489. </div>
  3490. </div>
  3491. @endif
  3492.  
  3493. @if($machine_settingB->calibrator_down_l == 1)
  3494.  
  3495. <div class="form-group col-md-4">
  3496. <label for="mold_temp">Calibrator Down Left</label><br>
  3497. <div class="row">
  3498. <div class="col-md-12">
  3499. <div class="row">
  3500. <div class="col-md-4">
  3501. <p>Min</p>
  3502. <input type="text" name="calibrator_down_l[]" class="form-control" placeholder="min"value="{{ $calibrator_down_l == '' ? $calibrator_down_l:$calibrator_down_l[0] }}">
  3503. </div>
  3504.  
  3505. <div class="col-md-4">
  3506. <p>Max</p>
  3507. <input type="text" name="calibrator_down_l[]" class="form-control" placeholder="max"value="{{ $calibrator_down_l == '' ? $calibrator_down_l:$calibrator_down_l[1] }}">
  3508. </div>
  3509.  
  3510. <div class="col-md-4">
  3511. <p>Std</p>
  3512. <input type="text" name="calibrator_down_l[]" class="form-control" placeholder="standart"value="{{ $calibrator_down_l == '' ? $calibrator_down_l:$calibrator_down_l[2] }}">
  3513. </div>
  3514. </div>
  3515. </div>
  3516. </div>
  3517. </div>
  3518. @endif
  3519.  
  3520. @if($machine_settingB->calibrator_down_r == 1)
  3521.  
  3522. <div class="form-group col-md-4">
  3523. <label for="mold_temp">Calibrator Down Right</label><br>
  3524. <div class="row">
  3525. <div class="col-md-12">
  3526. <div class="row">
  3527. <div class="col-md-4">
  3528. <p>Min</p>
  3529. <input type="text" name="calibrator_down_r[]" class="form-control" placeholder="min"value="{{ $calibrator_down_r == '' ? $calibrator_down_r:$calibrator_down_r[0] }}">
  3530. </div>
  3531.  
  3532. <div class="col-md-4">
  3533. <p>Max</p>
  3534. <input type="text" name="calibrator_down_r[]" class="form-control" placeholder="max"value="{{ $calibrator_down_r == '' ? $calibrator_down_r:$calibrator_down_r[1] }}">
  3535. </div>
  3536.  
  3537. <div class="col-md-4">
  3538. <p>Std</p>
  3539. <input type="text" name="calibrator_down_r[]" class="form-control" placeholder="standart"value="{{ $calibrator_down_r == '' ? $calibrator_down_r:$calibrator_down_r[2] }}">
  3540. </div>
  3541. </div>
  3542. </div>
  3543. </div>
  3544. </div>
  3545. @endif
  3546.  
  3547.  
  3548.  
  3549. <div class="col-md-12">
  3550. @if($machine_settingB->left_1 == 1)
  3551. <label><h4>Effective Load Factor Calibrator</h4></label>
  3552. @endif
  3553. </div>
  3554. <br />
  3555.  
  3556. @if($machine_settingB->left_1 == 1)
  3557.  
  3558. <div class="form-group col-md-4">
  3559. <label for="mold_temp">Left 1</label><br>
  3560. <div class="row">
  3561. <div class="col-md-12">
  3562. <div class="row">
  3563. <div class="col-md-4">
  3564. <p>Min</p>
  3565. <input type="text" name="left_1[]" class="form-control" placeholder="min"value="{{ $left_1 == '' ? $left_1:$left_1[0] }}">
  3566. </div>
  3567.  
  3568. <div class="col-md-4">
  3569. <p>Max</p>
  3570. <input type="text" name="left_1[]" class="form-control" placeholder="max"value="{{ $left_1 == '' ? $left_1:$left_1[1] }}">
  3571. </div>
  3572.  
  3573. <div class="col-md-4">
  3574. <p>Std</p>
  3575. <input type="text" name="left_1[]" class="form-control" placeholder="standart"value="{{ $left_1 == '' ? $left_1:$left_1[2] }}">
  3576. </div>
  3577. </div>
  3578. </div>
  3579. </div>
  3580. </div>
  3581. @endif
  3582.  
  3583. @if($machine_settingB->left_2 == 1)
  3584.  
  3585. <div class="form-group col-md-4">
  3586. <label for="mold_temp">Left 2</label><br>
  3587. <div class="row">
  3588. <div class="col-md-12">
  3589. <div class="row">
  3590. <div class="col-md-4">
  3591. <p>Min</p>
  3592. <input type="text" name="left_2[]" class="form-control" placeholder="min"value="{{ $left_2 == '' ? $left_2:$left_2[0] }}">
  3593. </div>
  3594.  
  3595. <div class="col-md-4">
  3596. <p>Max</p>
  3597. <input type="text" name="left_2[]" class="form-control" placeholder="max"value="{{ $left_2 == '' ? $left_2:$left_2[1] }}">
  3598. </div>
  3599.  
  3600. <div class="col-md-4">
  3601. <p>Std</p>
  3602. <input type="text" name="left_2[]" class="form-control" placeholder="standart"value="{{ $left_2 == '' ? $left_2:$left_2[2] }}">
  3603. </div>
  3604. </div>
  3605. </div>
  3606. </div>
  3607. </div>
  3608. @endif
  3609.  
  3610.  
  3611. @if($machine_settingB->left_3 == 1)
  3612.  
  3613. <div class="form-group col-md-4">
  3614. <label for="mold_temp">Left 3</label><br>
  3615. <div class="row">
  3616. <div class="col-md-12">
  3617. <div class="row">
  3618. <div class="col-md-4">
  3619. <p>Min</p>
  3620. <input type="text" name="left_3[]" class="form-control" placeholder="min"value="{{ $left_3 == '' ? $left_3:$left_3[0] }}">
  3621. </div>
  3622.  
  3623. <div class="col-md-4">
  3624. <p>Max</p>
  3625. <input type="text" name="left_3[]" class="form-control" placeholder="max"value="{{ $left_3 == '' ? $left_3:$left_3[1] }}">
  3626. </div>
  3627.  
  3628. <div class="col-md-4">
  3629. <p>Std</p>
  3630. <input type="text" name="left_3[]" class="form-control" placeholder="standart"value="{{ $left_3 == '' ? $left_3:$left_3[2] }}">
  3631. </div>
  3632. </div>
  3633. </div>
  3634. </div>
  3635. </div>
  3636. @endif
  3637.  
  3638. @if($machine_settingB->left_4 == 1)
  3639.  
  3640. <div class="form-group col-md-4">
  3641. <label for="mold_temp">Left 4</label><br>
  3642. <div class="row">
  3643. <div class="col-md-12">
  3644. <div class="row">
  3645. <div class="col-md-4">
  3646. <p>Min</p>
  3647. <input type="text" name="left_4[]" class="form-control" placeholder="min"value="{{ $left_4 == '' ? $left_4:$left_4[0] }}">
  3648. </div>
  3649.  
  3650. <div class="col-md-4">
  3651. <p>Max</p>
  3652. <input type="text" name="left_4[]" class="form-control" placeholder="max"value="{{ $left_4 == '' ? $left_4:$left_4[1] }}">
  3653. </div>
  3654.  
  3655. <div class="col-md-4">
  3656. <p>Std</p>
  3657. <input type="text" name="left_4[]" class="form-control" placeholder="standart"value="{{ $left_4 == '' ? $left_4:$left_4[2] }}">
  3658. </div>
  3659. </div>
  3660. </div>
  3661. </div>
  3662. </div>
  3663. @endif
  3664.  
  3665. @if($machine_settingB->right_1 == 1)
  3666.  
  3667. <div class="form-group col-md-4">
  3668. <label for="mold_temp">Right 1</label><br>
  3669. <div class="row">
  3670. <div class="col-md-12">
  3671. <div class="row">
  3672. <div class="col-md-4">
  3673. <p>Min</p>
  3674. <input type="text" name="right_1[]" class="form-control" placeholder="min"value="{{ $right_1 == '' ? $right_1:$right_1[0] }}">
  3675. </div>
  3676.  
  3677. <div class="col-md-4">
  3678. <p>Max</p>
  3679. <input type="text" name="right_1[]" class="form-control" placeholder="max"value="{{ $right_1 == '' ? $right_1:$right_1[1] }}">
  3680. </div>
  3681.  
  3682. <div class="col-md-4">
  3683. <p>Std</p>
  3684. <input type="text" name="right_1[]" class="form-control" placeholder="standart"value="{{ $right_1 == '' ? $right_1:$right_1[2] }}">
  3685. </div>
  3686. </div>
  3687. </div>
  3688. </div>
  3689. </div>
  3690. @endif
  3691.  
  3692. @if($machine_settingB->right_2 == 1)
  3693.  
  3694. <div class="form-group col-md-4">
  3695. <label for="mold_temp">Right 2</label><br>
  3696. <div class="row">
  3697. <div class="col-md-12">
  3698. <div class="row">
  3699. <div class="col-md-4">
  3700. <p>Min</p>
  3701. <input type="text" name="right_2[]" class="form-control" placeholder="min"value="{{ $right_2 == '' ? $right_2:$right_2[0] }}">
  3702. </div>
  3703.  
  3704. <div class="col-md-4">
  3705. <p>Max</p>
  3706. <input type="text" name="right_2[]" class="form-control" placeholder="max"value="{{ $right_2 == '' ? $right_2:$right_2[1] }}">
  3707. </div>
  3708.  
  3709. <div class="col-md-4">
  3710. <p>Std</p>
  3711. <input type="text" name="right_2[]" class="form-control" placeholder="standart"value="{{ $right_2 == '' ? $right_2:$right_2[2] }}">
  3712. </div>
  3713. </div>
  3714. </div>
  3715. </div>
  3716. </div>
  3717. @endif
  3718.  
  3719. @if($machine_settingB->right_3 == 1)
  3720.  
  3721. <div class="form-group col-md-4">
  3722. <label for="mold_temp">Right 3</label><br>
  3723. <div class="row">
  3724. <div class="col-md-12">
  3725. <div class="row">
  3726. <div class="col-md-4">
  3727. <p>Min</p>
  3728. <input type="text" name="right_3[]" class="form-control" placeholder="min"value="{{ $right_3 == '' ? $right_3:$right_3[0] }}">
  3729. </div>
  3730.  
  3731. <div class="col-md-4">
  3732. <p>Max</p>
  3733. <input type="text" name="right_3[]" class="form-control" placeholder="max"value="{{ $right_3 == '' ? $right_3:$right_3[1] }}">
  3734. </div>
  3735.  
  3736. <div class="col-md-4">
  3737. <p>Std</p>
  3738. <input type="text" name="right_3[]" class="form-control" placeholder="standart"value="{{ $right_3 == '' ? $right_3:$right_3[2] }}">
  3739. </div>
  3740. </div>
  3741. </div>
  3742. </div>
  3743. </div>
  3744. @endif
  3745.  
  3746. @if($machine_settingB->right_4 == 1)
  3747.  
  3748. <div class="form-group col-md-4">
  3749. <label for="mold_temp">Right 4</label><br>
  3750. <div class="row">
  3751. <div class="col-md-12">
  3752. <div class="row">
  3753. <div class="col-md-4">
  3754. <p>Min</p>
  3755. <input type="text" name="right_4[]" class="form-control" placeholder="min"value="{{ $right_4 == '' ? $right_4:$right_4[0] }}">
  3756. </div>
  3757.  
  3758. <div class="col-md-4">
  3759. <p>Max</p>
  3760. <input type="text" name="right_4[]" class="form-control" placeholder="max"value="{{ $right_4 == '' ? $right_4:$right_4[1] }}">
  3761. </div>
  3762.  
  3763. <div class="col-md-4">
  3764. <p>Std</p>
  3765. <input type="text" name="right_4[]" class="form-control" placeholder="standart"value="{{ $right_4 == '' ? $right_4:$right_4[2] }}">
  3766. </div>
  3767. </div>
  3768. </div>
  3769. </div>
  3770. </div>
  3771. @endif
  3772.  
  3773.  
  3774.  
  3775.  
  3776.  
  3777. <div class="form-group col-md-12">
  3778. <table id="bootstrap-data-table-12" class="table table-striped table-bordered">
  3779.  
  3780. <thead>
  3781. <tr>
  3782. <h3><b>Revisi History</b></h3>
  3783. <a href="/newmachine/{{$machine->id}}/profile/revisi"><button type="button" class="btn btn-success"><i class="fa fa-plus-square"></i> Add Revisi </button></a>
  3784.  
  3785.  
  3786.  
  3787. @if(Auth::user()->level == null)
  3788. <th style="display: none" ></th>
  3789. @endif
  3790.  
  3791. @if(Auth::user()->level == 2)
  3792. <th style="display: none" ></th>
  3793. @endif
  3794.  
  3795. @if(Auth::user()->level == 1)
  3796. <th style="display: none" ></th>
  3797. @endif
  3798. @if(Auth::user()->level == 3)
  3799. <th style="display: none" ></th>
  3800. @endif
  3801. @if(Auth::user()->level == 4)
  3802. <th style="display: none" ></th>
  3803. @endif
  3804.  
  3805. @if(Auth::user()->level == 5)
  3806. <th style="display: none" ></th>
  3807. @endif
  3808.  
  3809. <th>Rev</th>
  3810. <th>Date</th>
  3811. <th>Change Item</th>
  3812. <th>Reason</th>
  3813. <th>Checked By</th>
  3814. <th>Change By</th>
  3815. <th>Action</th>
  3816.  
  3817. </tr>
  3818. </thead>
  3819. <tbody>
  3820. @php
  3821. $i = 0;
  3822. @endphp
  3823. @foreach($all_revisi as $revisi)
  3824. <tr>
  3825.  
  3826. <td style="display: none"></td>
  3827. <td>{{$revisi->rev}}</td>
  3828. <td>{{ date('d-F-Y', strtotime($revisi->date)) }}</td>
  3829. <td>{{$revisi->change_item}}</td>
  3830. <td>{{$revisi->reason}}</td>
  3831. <td>{{$revisi->checked}}</td>
  3832. <td>{{$revisi->change}}</td>
  3833. <td>
  3834.  
  3835. <a href="/newmachine/{{$revisi->revisi_id}}/editrevisi"><span type='submit' class='btn btn-warning btn-sm'>Edit</span></a>
  3836.  
  3837. <a href="/newmachine/deleteRevisiHistory" class="btn btn-danger btn-sm deleterevisi" data-id="{{$revisi->revisi_id}}"> Delete </a>
  3838.  
  3839. </td>
  3840. </tr>
  3841. @endforeach
  3842. </tbody>
  3843. </table>
  3844.  
  3845. </div>
  3846.  
  3847.  
  3848.  
  3849.  
  3850.  
  3851. </div>
  3852.  
  3853. </div>
  3854. </div>
  3855. <div class="modal-footer">
  3856. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  3857. <button type="submit" class="btn btn-primary">Submit</button>
  3858. </div>
  3859. </form>
  3860. </div>
  3861. </div>
  3862. </div>
  3863.  
  3864.  
  3865.  
  3866. <!-- MODAl HOT RUNNER SYSTEM -->
  3867. <div class="modal fade" id="HRS" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  3868. <div class="modal-dialog modal-sm" role="document">
  3869. <div class="modal-content">
  3870. <div class="modal-header">
  3871. <h5 class="modal-title" id="exampleModalLabel">Hot Runner System</h5>
  3872. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  3873. <span aria-hidden="true">&times;</span>
  3874. </button>
  3875. </div>
  3876. <div class="modal-body">
  3877. <div class="row">
  3878.  
  3879. {{csrf_field()}}
  3880. <div class="col-md-12">
  3881. <div class="form-group col-md-2">
  3882. <label for="date">Latest Update</label>
  3883. <input type="date" class="form-control" name="date" value="" >
  3884. </div>
  3885. <div class="form-group col-md-10" align="right">
  3886. <br>
  3887.  
  3888. @if((Auth::user()->level == 1 || Auth::user()->level == 2) && $machine->stock1 != 1 )
  3889. <button type="button" class="btn btn-success uploadnewhotrunner"><i class="fa fa-plus-square"></i> Upload New Hot Runner System</button>
  3890. @endif
  3891.  
  3892.  
  3893. <button type="button" class="btn btn-warning uploadhotrunner">Upload Edit Hot Runner System</button>
  3894. </div>
  3895. <div class="col-md-12">
  3896. <div class="col-md-12">
  3897. <div class="slideshow-container">
  3898.  
  3899. </div>
  3900.  
  3901.  
  3902. </div>
  3903.  
  3904. </div>
  3905.  
  3906.  
  3907.  
  3908.  
  3909. <br>
  3910. </br>
  3911. <br>
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918. </div>
  3919. </div>
  3920. <div class="modal-footer">
  3921. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  3922.  
  3923. </div>
  3924.  
  3925. </div>
  3926. </div>
  3927. </div>
  3928. </div>
  3929.  
  3930.  
  3931. <!-- MODAl UPLOAD NEW HOT RUNNER SYSTEM -->
  3932.  
  3933. <!-- Modal -->
  3934. <div class="modal fade" id="uploadNEWHRS" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  3935. <div class="modal-dialog modal-lg" role="document">
  3936. <div class="modal-content">
  3937. <div class="modal-header">
  3938. <h5 class="modal-title" id="exampleModalLabel">Upload NEW Hot Runner System</h5>
  3939. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  3940. <span aria-hidden="true">&times;</span>
  3941. </button>
  3942. </div>
  3943. <div class="modal-body">
  3944. <div class="row">
  3945. <form action="/profile/hrsaddnew" method="POST" enctype="multipart/form-data">
  3946. {{csrf_field()}}
  3947.  
  3948. <div class="col-md-12">
  3949. <div class="form-group col-md-4">
  3950. <label for="date">Select Date</label>
  3951. <input type="date" class="form-control" name="date" value="{{ date('Y-m-d') }}" >
  3952. <input type="hidden" name="id" value="{{$machine->id}}">
  3953. </div>
  3954.  
  3955. <div class="form-group col-md-2">
  3956. <label for="reason">Reason</label>
  3957. <input type="text" class="form-control" name="reason" required="" value="" >
  3958. </div>
  3959.  
  3960. <div class="form-group col-md-4">
  3961. <label for="pict1">Choose File</label>
  3962. <input type="file" class="form-control" name="pict1[]" value="" >
  3963.  
  3964. </div>
  3965.  
  3966. </div>
  3967.  
  3968. </div>
  3969. </div>
  3970.  
  3971. <div class="modal-footer">
  3972. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  3973. <button type="submit" class="btn btn-primary">Submit</button>
  3974. </div>
  3975. </form>
  3976. </div>
  3977. </div>
  3978. </div>
  3979. </div>
  3980.  
  3981.  
  3982.  
  3983.  
  3984.  
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995. <!-- MODAl UPLOAD EDIT HOT RUNNER SYSTEM -->
  3996. <div class="modal fade" id="uploadHRS" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  3997. <div class="modal-dialog modal-lg" role="document">
  3998. <div class="modal-content">
  3999. <div class="modal-header">
  4000. <h5 class="modal-title" id="exampleModalLabel">EDIT Hot Runner System</h5>
  4001. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  4002. <span aria-hidden="true">&times;</span>
  4003. </button>
  4004. </div>
  4005. <div class="modal-body">
  4006. <div class="row">
  4007. <form action="" method="POST">
  4008. {{csrf_field()}}
  4009. <div class="col-md-12">
  4010. <div class="form-group col-md-4">
  4011. <label for="date">Select Date</label>
  4012. <input type="date" class="form-control" name="date" value="" >
  4013. </div>
  4014.  
  4015. <div class="form-group col-md-2">
  4016. <label for="date">Reason</label>
  4017. <input type="text" class="form-control" name="" required="" value="" >
  4018. </div>
  4019.  
  4020. <div class="form-group col-md-4">
  4021. <label for="date">Choose File</label>
  4022. <input type="file" class="form-control" name="" value="" >
  4023.  
  4024. </div>
  4025.  
  4026. </div>
  4027. </div>
  4028. <div class="modal-footer">
  4029. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  4030. <button type="button" class="btn btn-primary">Submit</button>
  4031.  
  4032. </div>
  4033. </form>
  4034. </div>
  4035. </div>
  4036. </div>
  4037. </div>
  4038.  
  4039.  
  4040.  
  4041.  
  4042.  
  4043.  
  4044.  
  4045.  
  4046.  
  4047.  
  4048. @stop
  4049.  
  4050. @section('content1')
  4051.  
  4052. @if(session('sukses'))
  4053. <div class="alert alert-primary" role="alert">
  4054. {{session('sukses')}}
  4055. </div>
  4056. @endif
  4057.  
  4058.  
  4059.  
  4060.  
  4061. @endsection
  4062. @section('assets_bottom')
  4063.  
  4064. <script type="text/javascript" src="{{asset('js/bootstrap-toggle.min.js')}}"></script>
  4065. <script src="{{asset('admin/assets/js/data-table/datatables.min.js')}}"></script>
  4066. <script type="text/javascript" src="{{ asset('assets/js/qrcodelib.js') }}"></script>
  4067. <script type="text/javascript" src="{{ asset('assets/js/webcodecamjquery.js') }}"></script>
  4068. <script src="{{asset('admin/assets/js/data-table/dataTables.bootstrap.min.js')}}"></script>
  4069. <script src="{{asset('admin/assets/js/data-table/datatables-init.js')}}"></script>
  4070. <script type="text/javascript" src="{{asset('js/Chart.bundle.min.js')}}"></script>
  4071. <script type="text/javascript" src="{{asset('js/chartjs-plugin-annotation.min.js')}}"></script>
  4072. <script type="text/javascript" src="{{asset('admin/assetsnew/js/date-eu.js')}}"></script>
  4073.  
  4074. <script type="text/javascript">
  4075. document.querySelectorAll("input").forEach(data => {
  4076. data.setAttribute('required','true')
  4077. })
  4078. $(document).on('change','#mold_temp', function(e){
  4079. if($("#mold_temp:checked").val()){
  4080. // alert('on')
  4081. }else{
  4082. // alert('off')
  4083. }
  4084. })
  4085. <?php
  4086. if(Auth::user()->level == 1){
  4087. ?>
  4088.  
  4089. $(document).on('change', '.approved_data', function(){
  4090. if( $('.approved_data:checked').length > 0 ){
  4091. $("#submit_approve").css('display','')
  4092. $("#commentspv").css('display','')
  4093. $("#submit_ng").css('display','');
  4094. }else{
  4095. $("#submit_approve").css('display','none')
  4096. $("#commentspv").css('display','none')
  4097. $("#submit_ng").css('display','none')
  4098. }
  4099.  
  4100. if($(this).data('unit') == 1){
  4101. var index = $(this).data('index');
  4102. if($(this).is(':checked')){
  4103. for(var i = 1;i < 7 ;i++ ){
  4104. $('#index'+(i+index)).prop('checked',true);
  4105. }
  4106. }else{
  4107. for(var i = 1;i < 7 ;i++ ){
  4108. $('#index'+(i+index)).prop('checked',false);
  4109. }
  4110. }
  4111.  
  4112. if( $('.approved_data:checked').length > 0 ){
  4113. $("#submit_approve").css('display','')
  4114. $("#commentspv").css('display','')
  4115. $("#submit_ng").css('display','');
  4116. }else{
  4117. $("#submit_approve").css('display','none')
  4118. $("#commentspv").css('display','none')
  4119. $("#submit_ng").css('display','none')
  4120. }
  4121. }
  4122. })
  4123.  
  4124.  
  4125.  
  4126. $(document).on('click','#submit_approve', function(e){
  4127. var data = new Array();
  4128. $("#bootstrap-data-table-2 input[type=checkbox]:checked").each(function () {
  4129. data.push(this.value);
  4130. });
  4131. data.join(',');
  4132. $.ajax({
  4133. type: "POST",
  4134. url: '/saveApprove',
  4135. data: {
  4136. data: data,
  4137. _token: $('meta[name="csrf-token"]').attr('content'),
  4138. },
  4139. success: function(value){
  4140. location.reload()
  4141. },
  4142. error: function(xhr){
  4143.  
  4144. }
  4145. })
  4146.  
  4147.  
  4148. })
  4149.  
  4150. $(document).on('click','#submit_ng' && '#commentspv', function(e){
  4151. $("#modalnote").modal('show')
  4152. })
  4153.  
  4154. $(document).on('click','#submitng', function(e){
  4155. var data = new Array();
  4156. $("#bootstrap-data-table-2 input[type=checkbox]:checked").each(function () {
  4157. data.push(this.value);
  4158. });
  4159. var comment = $("#comment").val();
  4160. data.join(',');
  4161. $.ajax({
  4162. type: "POST",
  4163. url: '/saveNG' && '/savecommentspv',
  4164. data: {
  4165. data: data,
  4166. comment: comment,
  4167. _token: $('meta[name="csrf-token"]').attr('content'),
  4168. },
  4169. success: function(value){
  4170. location.reload()
  4171. },
  4172. error: function(xhr){
  4173.  
  4174. }
  4175. })
  4176. })
  4177.  
  4178.  
  4179. $(document).on('click','#approve', function(e){
  4180. e.preventDefault()
  4181. // console.log($("#approved").css('display'))
  4182. if( $("#approved").css('display') == "table-cell"){
  4183. // alert('aaa')
  4184. $("#approved").css('display', 'none');
  4185. $(".approved_checkbox").css('display', 'none');
  4186. $(".approved_data").removeAttr('checked');
  4187. var table = $('#bootstrap-data-table-2').DataTable();
  4188. table.draw();
  4189. }else{
  4190. $("#approved").css('display','');
  4191. $(".approved_checkbox").css('display','');
  4192. var table = $('#bootstrap-data-table-2').DataTable();
  4193. table.draw();
  4194. }
  4195.  
  4196. // $('example').DataTable().ajax.reload();
  4197. })
  4198.  
  4199.  
  4200. <?php
  4201. }
  4202. ?>
  4203.  
  4204.  
  4205. $(document).ready(function() {
  4206. $('#bootstrap-data-table-12').DataTable( {
  4207.  
  4208. } );
  4209. } );
  4210.  
  4211.  
  4212. $(document).ready(function() {
  4213. $('#bootstrap-data-table-2').DataTable( {
  4214. "scrollX": true
  4215. } );
  4216. } );
  4217.  
  4218. $(document).on('click', '#get_data', function(){
  4219. var month = $("#month").val();
  4220. var year = $("#year").val();
  4221. var field = $("#field").val();
  4222. var text = $("#field :selected").text();
  4223. console.log(text);
  4224. var machine = $("#machine_id").val();
  4225.  
  4226. $.ajax({
  4227. type: "POST",
  4228. url: '/getChart',
  4229. data: {
  4230. month: month,
  4231. year: year,
  4232. field: field,
  4233. machine: machine,
  4234. _token: $('meta[name="csrf-token"]').attr('content'),
  4235. },
  4236. success: function(data){
  4237. console.log(data)
  4238. var setting = JSON.parse(data.setting.field);
  4239. var min = 0,max = 0;
  4240. if(setting.length > 0){
  4241. min = setting[0];
  4242. max = setting[1];
  4243. }
  4244.  
  4245.  
  4246. data.all_data.forEach(function(part, index, array) {
  4247. array[index].x = new Date(part.x);
  4248. }, data.all_data);
  4249. var lines = [], id = 0;
  4250. var myChart = new Chart('chart', {
  4251. type: 'line',
  4252. data: {
  4253. // labels: ["2015-03-15T13:03:00Z", "2015-03-25T13:02:00Z", "2015-04-25T14:12:00Z"],
  4254. datasets: [{
  4255. label: text+' Chart',
  4256. data: data.all_data,
  4257. backgroundColor: [
  4258. 'rgba(255, 99, 132, 0.0)',
  4259. 'rgba(54, 162, 235, 0.0)',
  4260. 'rgba(255, 206, 86, 0.0)',
  4261. 'rgba(75, 192, 192, 0.0)',
  4262. 'rgba(153, 102, 255, 0.0)',
  4263. 'rgba(255, 159, 64, 0.0)'
  4264. ],
  4265.  
  4266. borderColor: [
  4267. 'rgba(255,99,132,1)',
  4268. 'rgba(54, 162, 235, 1)',
  4269. 'rgba(255, 206, 86, 1)',
  4270. 'rgba(75, 192, 192, 1)',
  4271. 'rgba(153, 102, 255, 1)',
  4272. 'rgba(255, 159, 64, 1)'
  4273. ],
  4274. borderWidth: 1
  4275. }]
  4276. },
  4277. options: {
  4278. annotation: {
  4279. annotations: [{
  4280. type: 'line',
  4281. mode: 'horizontal',
  4282. scaleID: 'y-axis',
  4283. value: max,
  4284. borderColor: 'red',
  4285. borderWidth: 4,
  4286. label: {
  4287. enabled: true,
  4288. content: 'max('+max+')'
  4289. }
  4290. },
  4291. {
  4292. type: 'line',
  4293. mode: 'horizontal',
  4294. scaleID: 'y-axis',
  4295. value: min,
  4296. borderColor: 'rgb(75, 192, 192)',
  4297. borderWidth: 4,
  4298. label: {
  4299. enabled: true,
  4300. content: 'min('+min+')'
  4301. }
  4302. }],
  4303. },
  4304. scales: {
  4305. xAxes: [{
  4306. type: 'time',
  4307. time: {
  4308. unit: 'day'
  4309. },
  4310. distribution: 'series',
  4311. bounds: 'ticks',
  4312. ticks: {
  4313. source: 'data'
  4314. }
  4315. }],
  4316. yAxes: [{
  4317. id: 'y-axis'
  4318. }]
  4319. }
  4320. }
  4321. });
  4322.  
  4323.  
  4324.  
  4325. }
  4326.  
  4327. });
  4328. })
  4329.  
  4330.  
  4331. $(document).on('click','.delete', function(e){
  4332. e.preventDefault()
  4333. if(confirm('Are you sure ?')){
  4334. var id = $(this).data('id');
  4335. $.ajax({
  4336. type: "POST",
  4337. url: '/newmachine/deleteDailyMachine',
  4338. data: {
  4339. id: id,
  4340. _token: $('meta[name="csrf-token"]').attr('content')
  4341. },
  4342. success: function(data){
  4343. if(data.status == 1){
  4344. location.reload();
  4345. }
  4346. }
  4347. })
  4348. }
  4349.  
  4350. })
  4351.  
  4352.  
  4353. $(document).on('click','.deleterevisi', function(e){
  4354. e.preventDefault()
  4355. if(confirm('Are you sure ?')){
  4356. var id = $(this).data('id');
  4357. $.ajax({
  4358. type: "POST",
  4359. url: '/newmachine/deleteRevisiHistory',
  4360. data: {
  4361. id: id,
  4362. _token: $('meta[name="csrf-token"]').attr('content')
  4363. },
  4364. success: function(data){
  4365. if(data.status == 1){
  4366. location.reload();
  4367. }
  4368. }
  4369. })
  4370. }
  4371.  
  4372. })
  4373.  
  4374.  
  4375.  
  4376.  
  4377. <?php
  4378. if(Auth::user()->level == 5){
  4379. ?>
  4380.  
  4381. $(document).on('change', '.approvedmanager_data', function(){
  4382. if( $('.approvedmanager_data:checked').length > 0 ){
  4383. $("#submit_approvemanager").css('display','')
  4384. $("#submit_ng").css('display','');
  4385. }else{
  4386. $("#submit_approvemanager").css('display','none')
  4387. $("#submit_ng").css('display','none')
  4388. }
  4389.  
  4390. if($(this).data('unit') == 1){
  4391. var index = $(this).data('index');
  4392. if($(this).is(':checked')){
  4393. for(var i = 1;i < 7 ;i++ ){
  4394. $('#index'+(i+index)).prop('checked',true);
  4395. }
  4396. }else{
  4397. for(var i = 1;i < 7 ;i++ ){
  4398. $('#index'+(i+index)).prop('checked',false);
  4399. }
  4400. }
  4401.  
  4402. if( $('.approvedmanager_data:checked').length > 0 ){
  4403. $("#submit_approvemanager").css('display','')
  4404. $("#submit_ngmanager").css('display','');
  4405. }else{
  4406. $("#submit_approvemanager").css('display','none')
  4407. $("#submit_ngmanager").css('display','none')
  4408. }
  4409. }
  4410. })
  4411.  
  4412. $(document).on('click','#submit_approvemanager', function(e){
  4413. var data = new Array();
  4414. $("#bootstrap-data-table-2 input[type=checkbox]:checked").each(function () {
  4415. data.push(this.value);
  4416. });
  4417. data.join(',');
  4418. $.ajax({
  4419. type: "POST",
  4420. url: '/saveApprovemanager',
  4421. data: {
  4422. data: data,
  4423. _token: $('meta[name="csrf-token"]').attr('content'),
  4424. },
  4425. success: function(value){
  4426. location.reload()
  4427. },
  4428. error: function(xhr){
  4429.  
  4430. }
  4431. })
  4432.  
  4433.  
  4434. })
  4435.  
  4436. $(document).on('click','#submit_ngmanager', function(e){
  4437. $("#modalnotemanager").modal('show')
  4438. })
  4439.  
  4440. $(document).on('click','#submitngmanager', function(e){
  4441. var data = new Array();
  4442. $("#bootstrap-data-table-2 input[type=checkbox]:checked").each(function () {
  4443. data.push(this.value);
  4444. });
  4445. var commentmanager = $("#commentmanager").val();
  4446. data.join(',');
  4447. $.ajax({
  4448. type: "POST",
  4449. url: '/saveNGmanager',
  4450. data: {
  4451. data: data,
  4452. commentmanager: commentmanager,
  4453. _token: $('meta[name="csrf-token"]').attr('content'),
  4454. },
  4455. success: function(value){
  4456. location.reload()
  4457. },
  4458. error: function(xhr){
  4459.  
  4460. }
  4461. })
  4462. })
  4463.  
  4464.  
  4465. $(document).on('click','#approvemanager', function(e){
  4466. e.preventDefault()
  4467. // console.log($("#approved").css('display'))
  4468. if( $("#approvedmanager").css('display') == "table-cell"){
  4469. // alert('aaa')
  4470. $("#approvedmanager").css('display', 'none');
  4471. $(".approvedmanager_checkbox").css('display', 'none');
  4472. $(".approvedmanager_data").removeAttr('checked');
  4473. var table = $('#bootstrap-data-table-2').DataTable();
  4474. table.draw();
  4475. }else{
  4476. $("#approvedmanager").css('display','');
  4477. $(".approvedmanager_checkbox").css('display','');
  4478. var table = $('#bootstrap-data-table-2').DataTable();
  4479. table.draw();
  4480. }
  4481.  
  4482. // $('example').DataTable().ajax.reload();
  4483. })
  4484.  
  4485.  
  4486. <?php
  4487. }
  4488. ?>
  4489.  
  4490.  
  4491.  
  4492.  
  4493. </script>
  4494.  
  4495.  
  4496.  
  4497. <script type="text/javascript">
  4498. // var txt = "innerText" in HTMLElement.prototype ? "innerText" : "textContent";
  4499.  
  4500. $(document).on('click','#scan', function(){
  4501. $('#camera').css('display','');
  4502. $('#stop').css('display','');
  4503. var arg = {
  4504. resultFunction: function(result) {
  4505. console.log(result.code)
  4506. // var aChild = document.createElement('li');
  4507. // aChild[txt] = result.format + ': ' + result.code;
  4508. // document.querySelector('canvas').appendChild(aChild);
  4509. // decoder.stop();
  4510. location.href = result.code;
  4511. decoder.stop();
  4512.  
  4513. }
  4514. };
  4515. var decoder = $("#canvaswebcam").WebCodeCamJQuery(arg).data().plugin_WebCodeCamJQuery;
  4516. decoder.play();
  4517.  
  4518. $(document).on('click','#stop', function(){
  4519. $('#camera').css('display','none');
  4520. $('#stop').css('display','none');
  4521. decoder.stop();
  4522. })
  4523. })
  4524.  
  4525.  
  4526.  
  4527.  
  4528.  
  4529. $(document).on('click', '.hotrunner', function() {
  4530.  
  4531.  
  4532. $('#HRS').modal('show');
  4533. });
  4534.  
  4535.  
  4536.  
  4537. $(document).on('click', '.uploadnewhotrunner', function() {
  4538.  
  4539.  
  4540. $('#uploadNEWHRS').modal('show');
  4541. });
  4542.  
  4543. $(document).on('click', '.uploadhotrunner', function() {
  4544.  
  4545.  
  4546. $('#uploadHRS').modal('show');
  4547. });
  4548.  
  4549.  
  4550.  
  4551.  
  4552.  
  4553.  
  4554. </script>
  4555. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement