| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 | 
							- @extends('admin/layout')
 
- @section('content')
 
-     <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
 
-     <style>
 
-         @media screen and (max-width: 640px) {
 
-             .sep-email tr td {
 
-                 display: block;
 
-                 text-align: left;
 
-             }
 
-             .sep-email > div {
 
-                 padding: 20px 12px !important;
 
-             }
 
-         }
 
-     </style>
 
-     <body class="gray-bg">
 
-     <div class="wrapper wrapper-content animated fadeInRight">
 
-         <div class="row">
 
-             <div class="col-sm-12">
 
-                 <div class="ibox float-e-margins">
 
-                     <div class="ibox-content">
 
-                         <form method="get" class="form-horizontal">
 
-                             <div class="form-group">
 
-                                 <label class="col-sm-2 control-label">姓名:</label>
 
-                                 <label class="col-sm-10 control-label"
 
-                                        style="text-align: left">{{$data->sender_name??''}}</label>
 
-                             </div>
 
-                             <div class="form-group">
 
-                                 <label class="col-sm-2 control-label">邮箱:</label>
 
-                                 <label class="col-sm-10 control-label"
 
-                                        style="text-align: left">{{$data->sender_email ??''}}</label>
 
-                             </div>
 
-                             <div class="form-group">
 
-                                 <label class="col-sm-2 control-label">详情:</label>
 
-                                 <label class="col-sm-10">{!! $data->content !!}</label>
 
-                             </div>
 
-                            {{-- <div class="form-group">
 
-                                 <label class="col-sm-2 control-label">询盘时间:</label>
 
-                                 <label class="col-sm-10 control-label"
 
-                                        style="text-align: left">{{date('Y-m-d H:i:s',$data->mail_time)}}
 
-                                 </label>
 
-                             </div>--}}
 
-                             <div class="form-group">
 
-                                 <label class="col-sm-2 control-label">询盘时间:</label>
 
-                                 <label class="col-sm-10 control-label"
 
-                                        style="text-align: left">{{date('Y-m-d H:i:s',$data->create_time)}}
 
-                                     <input type="checkbox" id="whetherReality" name="whetherReality"
 
-                                            class="js-switch" @if($data->is_delete==0) checked @endif
 
-                                            onchange="whetherRealityStatus();">真实询盘
 
-                                 </label>
 
-                             </div>
 
-                             <div class="hr-line-dashed"></div>
 
-                             <div class="form-group">
 
-                                 <div class="col-sm-4 col-sm-offset-2">
 
-                                     <button class="btn btn-white closeLayer" type="button" id="cancel">取消</button>
 
-                                 </div>
 
-                             </div>
 
-                         </form>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
-     </body>
 
- @endsection
 
- @section('footer')
 
-     <script src="{{asset('js/plugins/switchery/switchery.js')}}"></script>
 
-     <script>
 
-         $("a").attr({rel: "noopener", target: "_blank"});
 
-         var whetherRealitySwitch = document.querySelector(".js-switch");
 
-         new Switchery(whetherRealitySwitch, {color: "#1AB394", size: 'small'});
 
-         function whetherRealityStatus() {
 
-             var isChecked = whetherRealitySwitch.checked ? 0 : 1;
 
-             var ajaxConfig = {
 
-                 url: '/admin/inquires/whetherReality',
 
-                 type: 'post',
 
-                 data: {status: isChecked, id: "{{$data->id}}", siteId: "{{$siteId}}"},
 
-                 success: function (data) {
 
-                     layer.msg(data.message, {
 
-                         icon: 1,
 
-                         time: 1500 //2秒关闭(如果不配置,默认是3秒)
 
-                     });
 
-                 }
 
-             };
 
-             tips.ajax(ajaxConfig);
 
-         }
 
-     </script>
 
- @endsection
 
 
  |