detail.blade.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @extends('admin/layout')
  2. @section('content')
  3. <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
  4. <style>
  5. @media screen and (max-width: 640px) {
  6. .sep-email tr td {
  7. display: block;
  8. text-align: left;
  9. }
  10. .sep-email > div {
  11. padding: 20px 12px !important;
  12. }
  13. }
  14. </style>
  15. <body class="gray-bg">
  16. <div class="wrapper wrapper-content animated fadeInRight">
  17. <div class="row">
  18. <div class="col-sm-12">
  19. <div class="ibox float-e-margins">
  20. <div class="ibox-content">
  21. <form method="get" class="form-horizontal">
  22. <div class="form-group">
  23. <label class="col-sm-2 control-label">姓名:</label>
  24. <label class="col-sm-10 control-label"
  25. style="text-align: left">{{$data->sender_name??''}}</label>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-sm-2 control-label">邮箱:</label>
  29. <label class="col-sm-10 control-label"
  30. style="text-align: left">{{$data->sender_email ??''}}</label>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-sm-2 control-label">详情:</label>
  34. <label class="col-sm-10">{!! $data->content !!}</label>
  35. </div>
  36. {{-- <div class="form-group">
  37. <label class="col-sm-2 control-label">询盘时间:</label>
  38. <label class="col-sm-10 control-label"
  39. style="text-align: left">{{date('Y-m-d H:i:s',$data->mail_time)}}
  40. </label>
  41. </div>--}}
  42. <div class="form-group">
  43. <label class="col-sm-2 control-label">询盘时间:</label>
  44. <label class="col-sm-10 control-label"
  45. style="text-align: left">{{date('Y-m-d H:i:s',$data->create_time)}}
  46. <input type="checkbox" id="whetherReality" name="whetherReality"
  47. class="js-switch" @if($data->is_delete==0) checked @endif
  48. onchange="whetherRealityStatus();">真实询盘
  49. </label>
  50. </div>
  51. <div class="hr-line-dashed"></div>
  52. <div class="form-group">
  53. <div class="col-sm-4 col-sm-offset-2">
  54. <button class="btn btn-white closeLayer" type="button" id="cancel">取消</button>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </body>
  64. @endsection
  65. @section('footer')
  66. <script src="{{asset('js/plugins/switchery/switchery.js')}}"></script>
  67. <script>
  68. $("a").attr({rel: "noopener", target: "_blank"});
  69. var whetherRealitySwitch = document.querySelector(".js-switch");
  70. new Switchery(whetherRealitySwitch, {color: "#1AB394", size: 'small'});
  71. function whetherRealityStatus() {
  72. var isChecked = whetherRealitySwitch.checked ? 0 : 1;
  73. var ajaxConfig = {
  74. url: '/admin/inquires/whetherReality',
  75. type: 'post',
  76. data: {status: isChecked, id: "{{$data->id}}", siteId: "{{$siteId}}"},
  77. success: function (data) {
  78. layer.msg(data.message, {
  79. icon: 1,
  80. time: 1500 //2秒关闭(如果不配置,默认是3秒)
  81. });
  82. }
  83. };
  84. tips.ajax(ajaxConfig);
  85. }
  86. </script>
  87. @endsection