123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- @extends('admin/layout')
- @section('content')
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="ibox ">
- <div class="ibox-title">
- <form class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-2 control-label">公司中文名:</label>
- <label class="col-sm-4 control-label" style="text-align: left">{{$site->cn_title??''}}</label>
- <label class="col-sm-2 control-label">公司英文名:</label>
- <label class="col-sm-4 control-label" style="text-align: left">{{$site->en_title??''}}</label>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">公司品牌:</label>
- <label class="col-sm-4 control-label" style="text-align: left">{{$siteEnterprise->brand??''}}</label>
- <label class="col-sm-2 control-label">公司网址:</label>
- <label class="col-sm-4 control-label" style="text-align: left">{{$site->domain??''}}</label>
- </div>
- </form>
- </div>
- <div class="ibox-content">
- @foreach($data->group as $item)
- <form class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-1 control-label">中文关键词:</label>
- <label class="col-sm-3 control-label" style="text-align: left">{{$item['cn_keyword']??''}}</label>
- <label class="col-sm-1 control-label">英文关键词:</label>
- <label class="col-sm-3 control-label" style="text-align: left">{{$item['en_keyword']??''}}</label>
- <label class="col-sm-1 control-label">锚点链接:</label>
- <label class="col-sm-3 control-label" style="text-align: left">{{$item['anchor']??''}}</label>
- </div>
- </form>
- @endforeach
- </div>
- @if(!empty($siteInfo->article_pt_remark))
- <div class="ibox-content">
- 注意事项:{{$siteInfo->article_pt_remark}}
- </div>
- @endif
- </div>
- </div>
- <div class="row">
- <div class="col-sm-6">
- <div class="ibox ">
- <div class="ibox-title">
- <h5>{{$data->title??''}}</h5>
- </div>
- <div class="ibox-content">
- <p class="m-b-lg">
- {!! $data->content??'' !!}
- </p>
- </div>
- </div>
- </div>
- <div class="col-sm-6">
- <div class="ibox ">
- <div class="ibox-title">
- <h5>{{$data->translate_title??''}}</h5>
- </div>
- <div class="ibox-content">
- <p class="m-b-lg">
- {!! $data->translate_content??'' !!}
- </p>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-12" style="text-align: center">
- @if (($data->status??null)==1)
- <button class="btn btn-info" onclick="units.wantTranslate()">我要翻译</button>
- @endif
- <button class="btn btn-primary closeLayer">关闭页面</button>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script>
- var units = {
- wantTranslate: function () {
- layer.confirm('您确定要接受该任务吗?', {icon: 3, title: '我要翻译'}, function () {
- var url = '/admin/articles/' + "{{$data->id??''}}" + '/claim';
- var ajaxConfig = {
- url: url,
- type: 'put',
- success: function (result) {
- window.location.href = '/admin/articles/' + {{$data->id??''}} + '/translate';
- }
- };
- tips.ajax(ajaxConfig);
- });
- }
- };
- </script>
- @endsection
|