Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layouts.master')
- @section('content')
- @section('assets_top')
- <link rel="stylesheet" href="{{asset('css/bootstrap-toggle.min.css')}}">
- <style type="text/css">
- .toggle-on {
- padding-left: 6px !important;
- }
- * {box-sizing: border-box}
- .mySlides {display: none}
- img {vertical-align: middle;}
- /* Slideshow container */
- .slideshow-container {
- max-width: 1000px;
- position: relative;
- margin: auto;
- }
- /* Next & previous buttons */
- .prev, .nextt {
- cursor: pointer;
- position: absolute;
- top: 50%;
- width: auto;
- padding: 16px;
- margin-top: -22px;
- color: white;
- font-weight: bold;
- font-size: 18px;
- transition: 0.6s ease;
- border-radius: 0 3px 3px 0;
- user-select: none;
- }
- /* Position the "next button" to the right */
- .nextt {
- right: 0;
- border-radius: 3px 0 0 3px;
- }
- /* On hover, add a black background color with a little bit see-through */
- .prev:hover, .nextt:hover {
- background-color: rgba(0,0,0,0.8);
- }
- /* Caption text */
- .text {
- color: #f2f2f2;
- font-size: 15px;
- padding: 8px 12px;
- position: absolute;
- bottom: 8px;
- width: 100%;
- text-align: center;
- }
- /* Number text (1/3 etc) */
- .numbertext {
- color: #f2f2f2;
- font-size: 12px;
- padding: 8px 12px;
- position: absolute;
- top: 0;
- }
- /* The dots/bullets/indicators */
- .dot {
- cursor: pointer;
- height: 15px;
- width: 15px;
- margin: 0 2px;
- background-color: #bbb;
- border-radius: 50%;
- display: inline-block;
- transition: background-color 0.6s ease;
- }
- .active, .dot:hover {
- background-color: #717171;
- }
- /* Fading animation */
- .fade {
- -webkit-animation-name: fade;
- -webkit-animation-duration: 1.5s;
- animation-name: fade;
- animation-duration: 1.5s;
- }
- @-webkit-keyframes fade {
- from {opacity: .4}
- to {opacity: 1}
- }
- @keyframes fade {
- from {opacity: .4}
- to {opacity: 1}
- }
- /* On smaller screens, decrease text size */
- @media only screen and (max-width: 300px) {
- .prev, .nextt,.text {font-size: 11px}
- }
- </style>
- @endsection
- <div class="main">
- <div class="main-content">
- <link rel="stylesheet" href="{{asset('admin/assets/css/datatable/dataTables.bootstrap.min.css')}}">
- <div class="container-fluid">
- <h1 align="center"> MCL Daily </h1>
- <br>
- <div class="row">
- <div class="col-md-12">
- <div class="panel">
- <div class="panel-body">
- <div class="form-group col-md-12" style="padding-top: 20px">
- @if(Auth::user()->level == 1 || Auth::user()->level == 2 )
- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"><i class="fa fa-plus-square"></i> Add New Machine </button>
- @endif
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-12">
- <div class="panel">
- <div class="panel-body">
- <table id="bootstrap-data-table" class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>Line</th>
- <th>Machine Name</th>
- <th>Model</th>
- <th>Part Name</th>
- <th>Part Code</th>
- <th>Mold No</th>
- <th>Cavity No</th>
- <th>Action</th>
- </tr>
- </thead>
- <form method='post' action='#'>
- <tbody id="line_data">
- @foreach($data_machine as $machineA)
- <tr>
- <td><a href="/newmachine/{{$machineA->id}}/profile"> {{$machineA->line_number}} </a></td>
- <td><a href="/newmachine/{{$machineA->id}}/profile"> {{$machineA->machine_name}} </a></td>
- <td>{{$machineA->model}}</td>
- <td>{{$machineA->part_name}}</td>
- <td>{{$machineA->part_code}}</td>
- <td>{{$machineA->mold_no}}</td>
- <td>{{$machineA->cavity_no}}</td>
- <td>
- @if(Auth::user()->level == 1 || Auth::user()->level == 2 )<a href="#" class="btn btn-warning btn-sm edit_machine" data-id="{{ $machineA->id }}" data-name="{{ $machineA->machine_name }}" data-model="{{ $machineA->model }}" data-partname="{{ $machineA->part_name }}" data-partcode="{{ $machineA->part_code }}" data-mold="{{ $machineA->mold_no }}" data-cavity="{{ $machineA->cavity_no }}" data-line="{{ $machineA->line_number }}"> Edit </a>
- @endif
- @if(Auth::user()->level == 1)
- <a href="#" class="btn btn-danger btn-sm delete" data-id="{{ $machineA->id }}"> Delete </a>
- @endif
- <a href="#" class="btn btn-primary btn-sm print" data-id="{{ $machineA->id }}"> Print </a>
- @if(Auth::user()->level == 1 || Auth::user()->level == 2 )
- <a href="/downloadBarcode/{{ $machineA->id }}" download class="btn btn-success btn-sm">Download QR Code</a>
- @endif
- <a href="#" class="btn btn-info btn-sm viewmcl" data-img="{{ $machineA->gambar1 }}"> View MCL </a>
- </td>
- </tr>
- @endforeach
- </tbody>
- </form>
- </table>
- </div>
- </div>
- <div class="col-md-12">
- <div id="chartContainer" style="height: 370px; width: 100%;"></div>
- </div>
- <script src="{{asset('admin/assets/js/data-table/datatables.min.js')}}"></script>
- <script src="{{asset('admin/assets/js/data-table/dataTables.bootstrap.min.js')}}"></script>
- <script src="{{asset('admin/assets/js/data-table/datatables-init.js')}}"></script>
- <!-- <script type="text/javascript">
- $(document).ready(function() {
- $("#bootstrap-data-table-export").DataTable();
- } );
- </script> -->
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="printmcl" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel">Print MCL</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <div class="row">
- <form method="POST" target="_blank" action="/printmcl">
- <input type="hidden" name="mclid" id="mclid" value="">
- @csrf
- <div class="panel">
- <div class="panel-heading"> Print MCL montly
- </div>
- <div class="panel-body">
- <div class="form-group col-md-4">
- <select name="month" id="select" class="form-control" required="">
- <option value="">Please select Month </option>
- <option value="1">January</option>
- <option value="2">February</option>
- <option value="3">March</option>
- <option value="4">April</option>
- <option value="5">May</option>
- <option value="6">June</option>
- <option value="7">July</option>
- <option value="8">August</option>
- <option value="9">September</option>
- <option value="10">October</option>
- <option value="11">November</option>
- <option value="12">December</option>
- </select>
- </div>
- <div class="form-group col-md-4">
- <select name="year" id="select" class="form-control" required="">
- <option value="">Please select Year</option>
- <option value="2019">2019</option>
- <option value="2020">2020</option>
- <option value="2021">2021</option>
- <option value="2022">2022</option>
- <option value="2023">2023</option>
- <option value="2024">2024</option>
- <option value="2025">2025</option>
- <option value="2026">2026</option>
- <option value="2027">2027</option>
- <option value="2028">2028</option>
- <option value="2029">2029</option>
- <option value="2030">2030</option>
- </select>
- </div>
- <div class="form-group col-md-4">
- <button type="submit" class="btn btn-primary"><i class="lnr lnr-printer"></i> Print</button>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel">Edit Machine</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <div class="row">
- <form action="/newmachine/editmachine" method="POST">
- {{csrf_field()}}
- <div class="col-md-12">
- <div class="form-group col-md-4">
- <label for="line">Line</label>
- <input type="hidden" id="edit_machine_id" name="id">
- <input name="line" type="text" class="form-control" id="edit_line" placeholder="Line" required>
- </div>
- <div class="form-group col-md-4">
- <label for="machine_name">Machine Name</label>
- <input name="machine_name" type="text" class="form-control" id="edit_machine_name" placeholder="Machine Name" required>
- </div>
- <div class="form-group col-md-4">
- <label for="model">Model</label>
- <input name="model" type="text" class="form-control" id="edit_model" placeholder="Model" required>
- </div>
- <div class="form-group col-md-4">
- <label for="part_name">Part Name</label>
- <input name="part_name" type="text" class="form-control" id="edit_part_name" placeholder="Part Name" required>
- </div>
- <div class="form-group col-md-4">
- <label for="part_code">Part Code</label>
- <input name="part_code" type="text" class="form-control" id="edit_part_code" placeholder="Part Code" required>
- </div>
- <div class="form-group col-md-4">
- <label for="mold_no">Mold No</label>
- <input name="mold_no" type="text" class="form-control" id="edit_mold_no" placeholder="Mold No" required=>
- </div>
- <div class="form-group col-md-4">
- <label for="cavity_no">Cavity No</label>
- <input name="cavity_no" type="text" class="form-control" id="edit_cavity_no" placeholder="Cavity No" required>
- </div>
- <!-- <div class="form-group col-md-4">
- <label for="mold_temp">Mold Temp Controller [⁰C]</label><br>
- <input type="checkbox" name="mold_temp" id="mold_temp" value="1" data-toggle="toggle" data-onstyle="primary">
- </div> -->
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- <button type="submit" class="btn btn-primary">Submit</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!-- Modal -->
- <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel">New Machine</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <div class="row">
- <form action="/newmachine/new" method="POST">
- {{csrf_field()}}
- <div class="col-md-12">
- <div class="form-group col-md-4">
- <label for="line">Line</label>
- <input name="line" type="text" class="form-control" id="line" placeholder="Example : A-01" required>
- </div>
- <div class="form-group col-md-4">
- <label for="machine_name">Machine Name</label>
- <input name="machine_name" type="text" class="form-control" id="machine_name" placeholder="Example : NEX 110" required>
- </div>
- <div class="form-group col-md-4">
- <label for="model">Model</label>
- <input name="model" type="text" class="form-control" id="model" placeholder="Example : 41AF475C" required>
- </div>
- <div class="form-group col-md-4">
- <label for="part_name">Part Name</label>
- <input name="part_name" type="text" class="form-control" id="part_name" placeholder="Example : CASE, S, 475C" required>
- </div>
- <div class="form-group col-md-4">
- <label for="part_code">Part Code</label>
- <input name="part_code" type="text" class="form-control" id="part_code" placeholder="Example : Refers to Attacment" required>
- </div>
- <div class="form-group col-md-4">
- <label for="mold_no">Mold No</label>
- <input name="mold_no" type="text" class="form-control" id="mold_no" placeholder="Example : #01" required=>
- </div>
- <div class="form-group col-md-4">
- <label for="cavity_no">Cavity No</label>
- <input name="cavity_no" type="text" class="form-control" id="cavity_no" placeholder="Example : 1, 2, 3, 4" required>
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Mold Temp Controller [⁰C]</label><br>
- <input type="checkbox" name="mold_temp" id="mold_temp" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cycle Time [sec]</label><br>
- <input type="checkbox" name="cycle_time" id="cycle_time" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Fill Time [sec]</label><br>
- <input type="checkbox" name="fill_time" id="fill_time" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Fill Peak [Mpa]</label><br>
- <input type="checkbox" name="fill_peak" id="fill_peak" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Fill Peak [%]</label><br>
- <input type="checkbox" name="scr_most_mm" id="scr_most_mm" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Screw Most MPa</label><br>
- <input type="checkbox" name="scr_most_mpa" id="scr_most_mpa" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Smart Feeder Controller [rpm]</label><br>
- <input type="checkbox" name="mtg_ready" id="mtg_ready" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Plast TM</label><br>
- <input type="checkbox" name="plast_tm" id="plast_tm" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Inj. End Position [mm]</label><br>
- <input type="checkbox" name="inj_end_position" id="inj_end_position" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">SM [mm]</label><br>
- <input type="checkbox" name="sm" id="sm" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">PP1 [%]</label><br>
- <input type="checkbox" name="pp1" id="pp1" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">PP2 [%]</label><br>
- <input type="checkbox" name="pp2" id="pp2" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">PP3 [%]</label><br>
- <input type="checkbox" name="pp3" id="pp3" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">V-P Change [mm]</label><br>
- <input type="checkbox" name="vp_change" id="vp_change" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">PV1 [Mpa]</label><br>
- <input type="checkbox" name="pv1" id="pv1" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="p1">P1 [%]</label><br>
- <input type="checkbox" name="p1" id="p1" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">S5 [mm]</label><br>
- <input type="checkbox" name="s5" id="s5" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">P2 [%]</label><br>
- <input type="checkbox" name="p2" id="p2" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">P3 [%]</label><br>
- <input type="checkbox" name="p3" id="p3" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Distinction</label><br>
- <input type="checkbox" name="distinction" id="distinction" value="1" data-toggle="toggle" data-onstyle="primary"> </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Distinction F1</label><br>
- <input type="checkbox" name="f1" id="f1" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Distinction F2</label><br>
- <input type="checkbox" name="f2" id="f2" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- </div>
- <div class="col-md-12">
- <div class="col-md-12">
- <label><h4>Hot Runner Heater Controller</h4></label>
- </div>
- <br />
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 1 [⁰C]</label><br>
- <input type="checkbox" name="h1" id="h1" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 2 [⁰C]</label><br>
- <input type="checkbox" name="h2" id="h2" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 3 [⁰C]</label><br>
- <input type="checkbox" name="h3" id="h3" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 4 [⁰C]</label><br>
- <input type="checkbox" name="h4" id="h4" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 5 [⁰C]</label><br>
- <input type="checkbox" name="h5" id="h5" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 6 [⁰C]</label><br>
- <input type="checkbox" name="h6" id="h6" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 7 [⁰C]</label><br>
- <input type="checkbox" name="h7" id="h7" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 8 [⁰C]</label><br>
- <input type="checkbox" name="h8" id="h8" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 9 [⁰C]</label><br>
- <input type="checkbox" name="h9" id="h9" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 10 [⁰C]</label><br>
- <input type="checkbox" name="h10" id="h10" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 11 [⁰C]</label><br>
- <input type="checkbox" name="h11" id="h11" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 12 [⁰C]</label><br>
- <input type="checkbox" name="h12" id="h12" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 13 [⁰C]</label><br>
- <input type="checkbox" name="h13" id="h13" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 14 [⁰C]</label><br>
- <input type="checkbox" name="h14" id="h14" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 15 [⁰C]</label><br>
- <input type="checkbox" name="h15" id="h15" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Valve Pin Heater 16 [⁰C]</label><br>
- <input type="checkbox" name="h16" id="h16" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">DIFF [⁰C]</label><br>
- <input type="checkbox" name="diff" id="diff" data-toggle="toggle" value="1" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Gate Open Delay Time [sec] </label><br>
- <input type="checkbox" name="gate_open_delay" id="gate_open_delay" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Gate Open Time [sec]</label><br>
- <input type="checkbox" name="gate_open_time" id="gate_open_time" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- </div>
- <div class="col-md-12">
- <div class="col-md-12">
- <label><h4>Get Cut</h4></label>
- </div>
- <br />
- <div class="form-group col-md-4">
- <label for="mold_temp">Cool TM</label><br>
- <input type="checkbox" name="cool_tm" id="cool_tm" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 1 Top</label><br>
- <input type="checkbox" name="a1t" id="a1t" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 1 Bottom</label><br>
- <input type="checkbox" name="a1b" id="a1b" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 2 Top</label><br>
- <input type="checkbox" name="b1t" id="b1t" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 2 Bottom</label><br>
- <input type="checkbox" name="b1b" id="b1b" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 3 Top</label><br>
- <input type="checkbox" name="a2t" id="a2t" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 3 Bottom</label><br>
- <input type="checkbox" name="a2b" id="a2b" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 4 Top</label><br>
- <input type="checkbox" name="b2t" id="b2t" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Cav 4 Bottom</label><br>
- <input type="checkbox" name="b2b" id="b2b" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="col-md-12">
- <label><h4>Mesin Ink Bottle</h4></label>
- </div>
- <br />
- <div class="form-group col-md-4">
- <label for="mold_temp">Chiller Temp [⁰C]</label><br>
- <input type="checkbox" name="chiller_temp" id="chiller_temp" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Screw Speed [rpm]</label><br>
- <input type="checkbox" name="screw_speed" id="screw_speed" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Melt Temp [⁰C]</label><br>
- <input type="checkbox" name="melt_temp" id="melt_temp" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Motor Current [A]</label><br>
- <input type="checkbox" name="motor_current" id="motor_current" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Weight [mm]</label><br>
- <input type="checkbox" name="weight" id="weight" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Span [mm]</label><br>
- <input type="checkbox" name="span" id="span" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Temp Setting L1 [⁰C]</label><br>
- <input type="checkbox" name="temp_setting_l1" id="temp_setting_l1" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Temp Setting L2 [⁰C]</label><br>
- <input type="checkbox" name="temp_setting_l2" id="temp_setting_l2" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Temp Setting L3 [⁰C]</label><br>
- <input type="checkbox" name="temp_setting_l3" id="temp_setting_l3" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Temp Setting L4 [⁰C]</label><br>
- <input type="checkbox" name="temp_setting_l4" id="temp_setting_l4" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Pre Below Time Left [sec]</label><br>
- <input type="checkbox" name="pre_below_time_l" id="pre_below_time_l" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Pre Below Time Right [sec]</label><br>
- <input type="checkbox" name="pre_below_time_r" id="pre_below_time_r" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Calibrator Down Left [sec]</label><br>
- <input type="checkbox" name="calibrator_down_l" id="calibrator_down_l" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Calibrator Down Right [sec]</label><br>
- <input type="checkbox" name="calibrator_down_r" id="calibrator_down_r" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="col-md-12">
- <label><h4>Effective Load Factor Calibrator</h4></label>
- </div>
- <br />
- <div class="form-group col-md-4">
- <label for="mold_temp">Left 1</label><br>
- <input type="checkbox" name="left_1" id="left_1" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Left 2</label><br>
- <input type="checkbox" name="left_2" id="left_2" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Left 3</label><br>
- <input type="checkbox" name="left_3" id="left_3" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Left 4</label><br>
- <input type="checkbox" name="left_4" id="left_4" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Right 1</label><br>
- <input type="checkbox" name="right_1" id="right_1" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Right 2</label><br>
- <input type="checkbox" name="right_2" id="right_2" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Right 3</label><br>
- <input type="checkbox" name="right_3" id="right_3" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- <div class="form-group col-md-4">
- <label for="mold_temp">Right 4</label><br>
- <input type="checkbox" name="right_4" id="right_4" value="1" data-toggle="toggle" data-onstyle="primary">
- </div>
- </div>
- <!-- </form> -->
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- <button type="submit" class="btn btn-primary">Submit</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!-- MODAl HOT RUNNER SYSTEM -->
- <div class="modal fade" id="MCL" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-sm" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel">MCL</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <div class="row">
- <form action="" method="POST">
- {{csrf_field()}}
- <div class="col-md-12">
- <div class="form-group col-md-2">
- <label for="date">Latest Update</label>
- <input type="date" class="form-control" name="date" value="" >
- </div>
- <div class="form-group col-md-10" align="right">
- <br>
- <button type="button" class="btn btn-warning uploadhotrunner">Upload New MCL</button>
- </div>
- <div class="col-md-12">
- <div class="slideshow-container">
- <a class="prev" onclick="plusSlides(-1)">❮</a>
- <a class="nextt" onclick="plusSlides(1)">❯</a>
- </div>
- </div>
- <br>
- </br>
- <br>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- @stop
- @section('content1')
- @if(session('sukses'))
- <div class="alert alert-primary" role="alert">
- {{session('sukses')}}
- </div>
- @endif
- <div class="row">
- <div class="col-6">
- <h1>Data Machine</h1>
- </div>
- <div class="col-6">
- <!-- Button trigger modal -->
- </div>
- <table class="table table-hover">
- </table>
- </div>
- </div>
- @endsection
- @section('assets_bottom')
- <script type="text/javascript" src="{{ asset('assets/js/qrcodelib.js') }}"></script>
- <script type="text/javascript" src="{{ asset('assets/js/webcodecamjquery.js') }}"></script>
- <script type="text/javascript" src="{{asset('js/bootstrap-toggle.min.js')}}"></script>
- <script type="text/javascript" src="{{ asset('assets/js/canvasjs.min.js')}}"></script>
- <script type="text/javascript">
- $(document).on('click','.print', function(e){
- e.preventDefault();
- var id = $(this).data('id');
- $("#mclid").val(id)
- $('#printmcl').modal('show')
- })
- $(document).on('change','#mold_temp', function(e){
- if($("#mold_temp:checked").val()){
- // alert('on')
- }else{
- // alert('off')
- }
- })
- $.ajaxSetup({
- headers: {
- 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
- }
- });
- $(document).on('change', '#select_line', function(){
- $.ajax({
- type: "POST",
- url: '/lineChange',
- data: {
- line: $(this).val()
- },
- success: function(data){
- $("#line_data").html(data)
- }
- })
- })
- $(document).on('click','.edit_machine', function(e){
- var line_number = $(this).data('line');
- var name = $(this).data('name');
- var model = $(this).data('model');
- var part_code = $(this).data('partcode');
- var part_name = $(this).data('partname');
- var mold = $(this).data('mold');
- var cavity = $(this).data('cavity');
- var id = $(this).data('id');
- $('#edit_machine_id').val(id);
- $('#edit_model').val(model);
- $('#edit_line').val(line_number);
- $('#edit_mold_no').val(mold);
- $('#edit_cavity_no').val(cavity);
- $('#edit_part_code').val(part_code);
- $('#edit_part_name').val(part_name);
- $('#edit_machine_name').val(name);
- $("#editModal").modal('show');
- })
- $(document).on('click','.delete', function(e){
- e.preventDefault()
- if(confirm('Are you sure ?')){
- var id = $(this).data('id');
- $.ajax({
- type: "POST",
- url: '/newmachine/deleteMachine',
- data: {
- id: id
- },
- success: function(data){
- if(data.status == 1){
- location.reload();
- }
- }
- })
- }
- })
- $(document).on('click', '.viewmcl', function(e) {
- e.preventDefault();
- $(".mySlides").remove();
- var image = $(this).data('img');
- image = image.split(',');
- var img_filter = image.filter((e) => {
- return e !=''
- })
- img_filter.forEach((item,index) => {
- $(".slideshow-container").append(`<div class='mySlides'>
- <div class='numbertext'>1</div>
- <img src='/images/mcl/${item}' style="width:100%">
- </div>`);
- })
- $(".slideshow-container").change();
- if(img_filter.length > 0){
- showSlides(slideIndex);
- }
- // console.log(img_filter)
- // $(".modal-body #myImage").attr("src", myImageId);
- $('#MCL').modal('show');
- });
- </script>
- <script>
- var slideIndex = 1;
- function plusSlides(n) {
- showSlides(slideIndex += n);
- }
- function currentSlide(n) {
- showSlides(slideIndex = n);
- }
- function showSlides(n) {
- var i;
- var slides = document.getElementsByClassName("mySlides");
- // var dots = document.getElementsByClassName("dot");
- // console.log(slides);
- // console.log(dots);
- if (n > slides.length) {slideIndex = 1}
- if (n < 1) {slideIndex = slides.length}
- for (i = 0; i < slides.length; i++) {
- slides[i].style.display = "none";
- }
- // for (i = 0; i < dots.length; i++) {
- // dots[i].className = dots[i].className.replace(" active", "");
- // }
- slides[slideIndex-1].style.display = "block";
- // dots[slideIndex-1].className += " active";
- }
- </script>
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement