hall_detail.blade.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. @extends('admin/layout')
  2. @section('content')
  3. <body class="gray-bg">
  4. <div class="wrapper wrapper-content animated fadeInRight">
  5. <div class="row">
  6. <div class="ibox ">
  7. <div class="ibox-title">
  8. <form class="form-horizontal">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">公司中文名:</label>
  11. <label class="col-sm-4 control-label" style="text-align: left">{{$site->cn_title??''}}</label>
  12. <label class="col-sm-2 control-label">公司英文名:</label>
  13. <label class="col-sm-4 control-label" style="text-align: left">{{$site->en_title??''}}</label>
  14. </div>
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label">公司品牌:</label>
  17. <label class="col-sm-4 control-label" style="text-align: left">{{$siteEnterprise->brand??''}}</label>
  18. <label class="col-sm-2 control-label">公司网址:</label>
  19. <label class="col-sm-4 control-label" style="text-align: left">{{$site->domain??''}}</label>
  20. </div>
  21. </form>
  22. </div>
  23. <div class="ibox-content">
  24. @foreach($data->group as $item)
  25. <form class="form-horizontal">
  26. <div class="form-group">
  27. <label class="col-sm-1 control-label">中文关键词:</label>
  28. <label class="col-sm-3 control-label" style="text-align: left">{{$item['cn_keyword']??''}}</label>
  29. <label class="col-sm-1 control-label">英文关键词:</label>
  30. <label class="col-sm-3 control-label" style="text-align: left">{{$item['en_keyword']??''}}</label>
  31. <label class="col-sm-1 control-label">锚点链接:</label>
  32. <label class="col-sm-3 control-label" style="text-align: left">{{$item['anchor']??''}}</label>
  33. </div>
  34. </form>
  35. @endforeach
  36. </div>
  37. @if(!empty($siteInfo->article_pt_remark))
  38. <div class="ibox-content">
  39. 注意事项:{{$siteInfo->article_pt_remark}}
  40. </div>
  41. @endif
  42. </div>
  43. </div>
  44. <div class="row">
  45. <div class="col-sm-6">
  46. <div class="ibox ">
  47. <div class="ibox-title">
  48. <h5>{{$data->title??''}}</h5>
  49. </div>
  50. <div class="ibox-content">
  51. <p class="m-b-lg">
  52. {!! $data->content??'' !!}
  53. </p>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="col-sm-6">
  58. <div class="ibox ">
  59. <div class="ibox-title">
  60. <h5>{{$data->translate_title??''}}</h5>
  61. </div>
  62. <div class="ibox-content">
  63. <p class="m-b-lg">
  64. {!! $data->translate_content??'' !!}
  65. </p>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="row">
  71. <div class="col-sm-12" style="text-align: center">
  72. @if (($data->status??null)==1)
  73. <button class="btn btn-info" onclick="units.wantTranslate()">我要翻译</button>
  74. @endif
  75. <button class="btn btn-primary closeLayer">关闭页面</button>
  76. </div>
  77. </div>
  78. </div>
  79. </body>
  80. @endsection
  81. @section('footer')
  82. <script>
  83. var units = {
  84. wantTranslate: function () {
  85. layer.confirm('您确定要接受该任务吗?', {icon: 3, title: '我要翻译'}, function () {
  86. var url = '/admin/articles/' + "{{$data->id??''}}" + '/claim';
  87. var ajaxConfig = {
  88. url: url,
  89. type: 'put',
  90. success: function (result) {
  91. window.location.href = '/admin/articles/' + {{$data->id??''}} + '/translate';
  92. }
  93. };
  94. tips.ajax(ajaxConfig);
  95. });
  96. }
  97. };
  98. </script>
  99. @endsection