Advertisement
Rana_093

ReAdded

Jul 23rd, 2020
1,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @extends('common.layout')
  2.  
  3. @section('title', 'PortiaLyzeユーザー画面|転倒情報')
  4. @section('description', 'トップ説明')
  5. @section('keywords', 'トップ検索ワード')
  6.  
  7. @include('common.head')
  8.  
  9. @include('common.header')
  10. @include('common.sidebar')
  11.  
  12. @section('contents')
  13. <script>
  14.     $('.nav-link-overturn').addClass('active');
  15.  
  16. </script>
  17. <div class="content-wrapper">
  18.     <div class="alert alert-success" role="alert">成功しました。</div>
  19.     <section class="content-header">
  20.         <div class="container-fluid">
  21.             <!-- Main row -->
  22.             <div class="row">
  23.                 <!-- Left col -->
  24.                 <div class="col-md-12">
  25.                     <div class="card card-overturn">
  26.                         <div class="card-header">
  27.                             <h3 class="card-title">転倒一覧</h3>
  28.                             <div class="card-tools">
  29.                                 <ul class="pagination pagination-sm m-0 float-right">
  30.                                     <?php echo $fallInfo->render(); ?>
  31.                                 </ul>
  32.                             </div>
  33.                         </div>
  34.                         <!-- /.card-header -->
  35.                         <div class="card-body table-responsive p-0">
  36.                             <table class="table table-hover text-nowrap table-striped">
  37.                                 <thead>
  38.                                     <tr>
  39.                                         <th>転倒日時</th>
  40.                                         <th>事業所</th>
  41.                                         <th>部屋名</th>
  42.                                         <th>利用者名</th>
  43.                                         <th>カメラ</th>{{--
  44.                                         <th>フィードバック</th> --}}
  45.                                     </tr>
  46.                                 </thead>
  47.                                 <tbody>
  48.                                     <tr>
  49.                                         <?php foreach ($fallInfo as $fall){ ?>
  50.                                             <td> <?php echo $fall->fall_time; ?> </td>
  51.                                             <td> <?php echo $fall->address; ?> </td>
  52.                                             <td><?php echo $fall->room_name; ?> </td>
  53.                                             <td> <?php echo $fall->room_user_name; ?> </td>
  54.                                             <td> <?php echo $fall->camera_location; ?> </td>
  55.                                             <td><a href="#"
  56.                                                    class="btn btn-confirmation btn-sm float-right ml-1"
  57.                                                    data-toggle="modal"
  58.                                                    data-target="#videoshow"
  59.                                                    <?php if ($fall->id != null) { ?>
  60.                                                     data-fall_id={{ $fall->id }}
  61.                                                 <?php } ?>
  62.  
  63.                                                 <?php if ($fall->fall_time != null) { ?>
  64.                                                     data-fall_time={{ $fall->fall_time }}
  65.                                                 <?php } ?>
  66.  
  67.                                                 <?php if ($fall->address != null) { ?>
  68.                                                     data-address={{ $fall->address }}
  69.                                                 <?php } ?>
  70.  
  71.                                                 <?php if ($fall->room_name != null) { ?>
  72.                                                     data-room_name={{ $fall->room_name }}
  73.                                                 <?php } ?>
  74.  
  75.                                                 <?php if ($fall->room_user_name != null) { ?>
  76.                                                     data-room_user_name={{ $fall->room_user_name }}
  77.                                                 <?php } ?>
  78.  
  79.                                                 <?php if ($fall->camera_location != null) { ?>
  80.                                                     data-camera_location={{ $fall->camera_location }}
  81.                                                 <?php } ?>
  82.                                                    >動画</a></td>
  83.                                             <td>
  84.                                                 <ul class="pagination pagination-sm m-0 float-left">
  85.                                                  {{--    <li class="page-item"><a class="page-link" href="#" data-toggle="modal" data-target="#feedshow">1</a></li> --}}
  86.                                                 </ul> <a href="#"
  87.                                                         class="btn btn-room btn-sm float-right ml-1"
  88.                                                         data-toggle="modal"
  89.                                                         data-target="#feededit"
  90.                                                         <?php if ($fall->id != null) { ?>
  91.                                                             data-fall_id={{ $fall->id }}
  92.                                                         <?php } ?>
  93.  
  94.                                                         <?php if ($fall->fall_time != null) { ?>
  95.                                                             data-fall_time={{ $fall->fall_time }}
  96.                                                         <?php } ?>
  97.  
  98.                                                         <?php if ($fall->address != null) { ?>
  99.                                                             data-address={{ $fall->address }}
  100.                                                         <?php } ?>
  101.  
  102.                                                         <?php if ($fall->room_name != null) { ?>
  103.                                                             data-room_name={{ $fall->room_name }}
  104.                                                         <?php } ?>
  105.  
  106.                                                         <?php if ($fall->room_user_name != null) { ?>
  107.                                                             data-room_user_name={{ $fall->room_user_name }}
  108.                                                         <?php } ?>
  109.  
  110.                                                         <?php if ($fall->camera_location != null) { ?>
  111.                                                             data-camera_location={{ $fall->camera_location }}
  112.                                                         <?php } ?> >
  113.  
  114.                                                         作成</a>
  115.                                                         <!-- videoEdit-->
  116.  
  117.                                             </td>
  118.                                         </tr>
  119.                                         <?php } ?>
  120.                                         {{-- <td>2020/4/20 16:00:00</td>
  121.                                         <td>品川エリア</td>
  122.                                         <td>101</td>
  123.                                         <td>XXXXX</td>
  124.                                         <td>トイレ<a href="#" class="btn btn-confirmation btn-sm float-right ml-1" data-toggle="modal" data-target="#videoshow">動画</a></td> --}}
  125.                                     {{--     <td>
  126.                                             <ul class="pagination pagination-sm m-0 float-left">
  127.                                                 <li class="page-item"><a class="page-link" href="#" data-toggle="modal" data-target="#feedshow">1</a></li>
  128.                                                 <li class="page-item"><a class="page-link" href="#" data-toggle="modal" data-target="#feedshow">2</a></li>
  129.                                             </ul><a href="?page=overturn.edit" class="btn btn-room btn-sm float-right ml-1" data-toggle="modal" data-target="#feededit">作成</a>
  130.                                         </td> --}}
  131.                                     </tr>
  132.                                     <!-- 動画 -->
  133.                                     <div class="modal fade" id="videoshow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  134.                                         <div class="modal-dialog" role="document">
  135.                                             <div class="modal-content modal-content-logoff">
  136.                                                 <div class="modal-header">
  137.                                                     <h5 class="modal-title" id="exampleModalLabel">動画の確認</h5>
  138.                                                     <button type="button" class="close" data-dismiss="modal" aria-label="閉じる">
  139.                                                         <span aria-hidden="true">&times;</span>
  140.                                                     </button>
  141.                                                 </div>
  142.                                                 <div class="modal-body">
  143.                                                     <dl class="modal-info">
  144.                                                         <dl>
  145.                                                             <dt>事業所名</dt>
  146.                                                             {{-- <dd>
  147.                                                                 <input class="form-control" type="address" id="address" name="address" readonly>
  148.                                                             </dd> --}}
  149.                                                             <dd id="address"></dd>
  150.                                                         </dl>
  151.                                                         <dl>
  152.                                                             <dt>部屋名</dt>
  153.                                                             <dd>
  154.                                                                 <input class="form-control" type="room_name" id="room_name" name="room_name" readonly>
  155.                                                             </dd>
  156.                                                         </dl>
  157.                                                         <dl>
  158.                                                             <dt>利用者名</dt>
  159.                                                             <dd>
  160.                                                                 <input class="form-control" type="room_user_name" id="room_user_name" name="room_user_name" readonly>
  161.                                                             </dd>
  162.                                                         </dl>
  163.  
  164.                                                         <dl>
  165.                                                             <dt>カメラ</dt>
  166.                                                             <dd>
  167.                                                                 <input class="form-control" type="camera_location" id="camera_location" name="camera_location" readonly>
  168.                                                             </dd>
  169.                                                         </dl>
  170.                                                         <dl>
  171.                                                             <dt>該当日時</dt>
  172.                                                             <dd>
  173.                                                                 <input class="form-control" type="fall_time" id="fall_time" name="fall_time" readonly>
  174.                                                             </dd>
  175.                                                         </dl>
  176.                                                         <dl>
  177.                                                             <dt>動画</dt>
  178.                                                             <dd>&nbsp;</dd>
  179.                                                         </dl>
  180.  
  181.                                                     </dl>
  182.                                                     <video class="w-100 mb-2" controls="controls">
  183.                                                         <source src="@asset('/videos/hone.mp4')" type="video/mp4">
  184.                                                     </video>
  185.                                                     <div class="row">
  186.                                                         <div class="offset-lg-6 offset-0 col-6">
  187.                                                             <button type="button" class="btn btn-outline-secondary btn-block" data-dismiss="modal">戻る</button>
  188.                                                         </div>
  189.                                                     </div>
  190.                                                  </div>
  191.                                             </div><!-- /.modal-content -->
  192.                                         </div><!-- /.modal-dialog -->
  193.                                     </div><!-- /.modal -->
  194.                                     <!-- フィードバック確認 -->
  195.                                     <div class="modal fade" id="feededit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  196.                                         <div class="modal-dialog" role="document">
  197.                                             <div class="modal-content modal-content-logoff">
  198.                                                 <div class="modal-header">
  199.                                                     <h5 class="modal-title" id="exampleModalLabel">設定変更</h5>
  200.                                                     <button type="button" class="close" data-dismiss="modal" aria-label="閉じる">
  201.                                                         <span aria-hidden="true">&times;</span>
  202.                                                     </button>
  203.                                                 </div>
  204.                                                 <div class="modal-body">
  205.                                                     <form class="links" action="{{ URL::to('/feedback/new')  }}" method="post">
  206.                                                         {{csrf_field()}}
  207.                                                         <dl class="modal-info">
  208.                                                             <dl>
  209.                                                                 <dt>該当日時</dt>
  210.                                                                 <dd>
  211.                                                                     <input type="hidden" id="fall_id" name="fall_id" type="fall_id" >
  212.                                                                     <input class="form-control" type="fall_time" id="fall_time" name="fall_time" readonly>
  213.                                                                 </dd>
  214.                                                             </dl>
  215.                                                             <dl>
  216.                                                                 <dt>事業所名</dt>
  217.                                                                 <dd>
  218.                                                                     <input class="form-control" type="address" id="address" name="address" readonly>
  219.                                                                 </dd>
  220.                                                             </dl>
  221.                                                             <dl>
  222.                                                                 <dt>部屋名</dt>
  223.                                                                 <dd>
  224.                                                                     <input class="form-control" type="room_name" id="room_name" name="room_name" readonly>
  225.                                                                 </dd>
  226.                                                             </dl>
  227.                                                             <dl>
  228.                                                                 <dt>利用者名</dt>
  229.                                                                 <dd>
  230.                                                                     <input class="form-control" type="room_user_name" id="room_user_name" name="room_user_name" readonly>
  231.                                                                 </dd>
  232.                                                             </dl>
  233.                                                            {{--  <dl>
  234.                                                                 <dt>種別</dt>
  235.                                                                 <dd>
  236.                                                                     <input class="form-control" type="camera_location" id="camera_location" name="camera_location" readonly>
  237.                                                                 </dd>
  238.                                                             </dl> --}}
  239.                                                             <dl>
  240.                                                                 <dt>種別</dt>
  241.                                                                 <dd>
  242.                                                                     <div class="radio-inline">
  243.                                                                         <div class="radio"> <label class=""><input type="radio" id="admin_customer_area_1" name="admin_customer[area]" value="1"> 転倒間違い</label>
  244.                                                                         </div>
  245.                                                                     </div>
  246.                                                                     <div class="radio-inline">
  247.                                                                         <div class="radio"> <label class=""><input type="radio" id="admin_customer_area_2" name="admin_customer[area]" value="2"> その他</label>
  248.                                                                         </div>
  249.                                                                     </div>
  250.                                                                 </dd>
  251.                                                             </dl>
  252.                                                             <dl>
  253.                                                                 <dt>内容</dt>
  254.                                                                 <dd><textarea class="form-control" id="description" name="description" rows="4" placeholder="詳しい内容を入力してください。"></textarea></dd>
  255.                                                             </dl>
  256.                                                         </dl>
  257.                                                         <div class="row">
  258.                                                             <div class="col-6">
  259.                                                                 <button type="submit" class="btn btn-secondary btn-block">保存</button>
  260.                                                             </div>
  261.                                                             <div class="col-6">
  262.                                                                 <button type="button" class="btn btn-outline-secondary btn-block" data-dismiss="modal">取消</button>
  263.                                                             </div>
  264.                                                         </div>
  265.                                                     </form>
  266.                                                 </div>
  267.                                             </div>
  268.                                         </div>
  269.                                     </div>
  270.  
  271.                                 </tbody>
  272.                             </table>
  273.                         </div>
  274.                         <!-- /.card-body -->
  275.                         <div class="card-footer clearfix">
  276.                             <ul class="pagination pagination-sm m-0 float-right">
  277.                                 <?php echo $fallInfo->render(); ?>
  278.                             </ul>
  279.                         </div>
  280.                     </div>
  281.                 </div>
  282.                 <!-- /.col -->
  283.                 <!-- /.col -->
  284.             </div>
  285.             <!-- /.row -->
  286.         </div>
  287.         <!--/. container-fluid -->
  288.     </section>
  289. </div>
  290. <script>
  291.     $('.nav-link-setting').addClass('active');
  292.  
  293.     $(".btn[data-target='#feededit']").click(function(e) {
  294.         console.log("hi");
  295.         console.log(e);
  296.  
  297.         var row = e.currentTarget;
  298.         var modal = $("#feededit");
  299.         var fall_id = row.dataset["fall_id"];
  300.         console.log(row);
  301.         var fall_time = row.dataset["fall_time"];
  302.         var address = row.dataset["address"];
  303.         var room_name = row.dataset["room_name"];
  304.         var room_user_name = row.dataset["room_user_name"];
  305.         var camera_location = row.dataset["camera_location"];
  306.         console.log(fall_time);
  307.         modal.find("#fall_id").val(fall_id);
  308.         modal.find("#fall_time").val(fall_time);
  309.         modal.find("#address").val(address);
  310.         modal.find("#room_name").val(room_name);
  311.  
  312.         modal.find("#room_user_name").val(room_user_name);
  313.         modal.find("#camera_location").val(camera_location);
  314.     });
  315.  
  316.     $(".btn[data-target='#videoshow']").click(function(e) {
  317.         console.log("hi");
  318.         console.log(e);
  319.  
  320.         var row = e.currentTarget;
  321.         var modal = $("#videoshow");
  322.         var fall_id = row.dataset["fall_id"];
  323.         console.log(row);
  324.         var fall_time = row.dataset["fall_time"];
  325.         var address = row.dataset["address"];
  326.         var room_name = row.dataset["room_name"];
  327.         var room_user_name = row.dataset["room_user_name"];
  328.         var camera_location = row.dataset["camera_location"];
  329.         console.log(fall_time);
  330.         modal.find("#fall_id").val(fall_id);
  331.         modal.find("#fall_time").val(fall_time);
  332.         modal.find("#address").val(address);
  333.         modal.find("#room_name").val(room_name);
  334.  
  335.         modal.find("#room_user_name").val(room_user_name);
  336.         modal.find("#camera_location").val(camera_location);
  337.     });
  338.  
  339.     console.log("script");
  340. </script>
  341.  
  342.  
  343. @endsection
  344.  
  345. @include('common.footer')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement