Commit 266db402 authored by 章建武's avatar 章建武

dep

parent ee7ec9fb
...@@ -3,6 +3,7 @@ namespace App\Http\Controllers\Index; ...@@ -3,6 +3,7 @@ namespace App\Http\Controllers\Index;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Moell\LayuiAdmin\Models\Pdf as PdfModel; use Moell\LayuiAdmin\Models\Pdf as PdfModel;
use Moell\LayuiAdmin\Models\GroupCulture;
/** /**
* Created by PhpStorm. * Created by PhpStorm.
* User: Administrator * User: Administrator
...@@ -13,7 +14,28 @@ class GroupCultureController extends Controller ...@@ -13,7 +14,28 @@ class GroupCultureController extends Controller
{ {
public function index() public function index()
{ {
return view('index.group_culture.index'); $url = url()->full();
$pathinfo = parse_url($url);
$path = $pathinfo['path'];
$en = substr($path,1,2);
if($en == 'en'){
$language_type = 1;
}else{
$language_type = 0;
}
$where = [
'language_type' => $language_type,
'delete_time' => 0
];
$data1 = GroupCulture::query()->where('type','=',1)->where($where)->orderBy('id','desc')->first();
$data2 = GroupCulture::query()->where('type','=',2)->where($where)->orderBy('id','desc')->first();
$data3 = GroupCulture::query()->where('type','=',3)->where($where)->orderBy('id','desc')->first();
return view('index.group_culture.index')
->with( compact('data1'))
->with( compact('data2'))
->with( compact('data3'));
} }
public function download_report_pdf() public function download_report_pdf()
...@@ -48,16 +70,61 @@ class GroupCultureController extends Controller ...@@ -48,16 +70,61 @@ class GroupCultureController extends Controller
public function fashion_city() public function fashion_city()
{ {
return view('index.group_culture.fashion_city'); $url = url()->full();
$pathinfo = parse_url($url);
$path = $pathinfo['path'];
$en = substr($path,1,2);
if($en == 'en'){
$language_type = 1;
}else{
$language_type = 0;
}
$where = [
'language_type' => $language_type,
'delete_time' => 0
];
$info = GroupCulture::query()->where('type','=',1)->where($where)->orderBy('id','desc')->first();
return view('index.group_culture.fashion_city')->with( compact('info'));
} }
public function fashion_safety() public function fashion_safety()
{ {
return view('index.group_culture.fashion_safety'); $url = url()->full();
$pathinfo = parse_url($url);
$path = $pathinfo['path'];
$en = substr($path,1,2);
if($en == 'en'){
$language_type = 1;
}else{
$language_type = 0;
}
$where = [
'language_type' => $language_type,
'delete_time' => 0
];
$info = GroupCulture::query()->where('type','=',2)->where($where)->orderBy('id','desc')->first();
return view('index.group_culture.fashion_safety')->with( compact('info'));
} }
public function public_welfare() public function public_welfare()
{ {
return view('index.group_culture.public_welfare'); $url = url()->full();
$pathinfo = parse_url($url);
$path = $pathinfo['path'];
$en = substr($path,1,2);
if($en == 'en'){
$language_type = 1;
}else{
$language_type = 0;
}
$where = [
'language_type' => $language_type,
'delete_time' => 0
];
$info = GroupCulture::query()->where('type','=',3)->where($where)->orderBy('id','desc')->first();
return view('index.group_culture.public_welfare')->with( compact('info'));
} }
} }
...@@ -13,18 +13,7 @@ ...@@ -13,18 +13,7 @@
<div class="main"> <div class="main">
<div class="container1"> <div class="container1">
<div class="news-info-b"> <div class="news-info-b">
@if($language_type == 1) {!!$info->content!!}
<p>(1) Employment creation: more than 6592 people directly and indirectly promote employment, including more than 2000 college students.</p>
<p>(2) Support for Entrepreneurship: there are more than 2000 self-employed businesses, including nearly 500 college students.</p>
<p>(3) Paying taxes according to law: the total amount of tax paid by each branch company in the whole year ranks in the forefront of the same area and industry.</p>
@else
<p>(1) 创造就业:直接与间接促进就业人数6592逾人,其中大学生就业人数2000多人。</p>
<p>(2) 支持创业:拥有自主创业商户数量2000余户,其中大学生创业人数近500人。</p>
<p>(3) 依法纳税:各分公司全年纳税总额均名列同区同行业前列。</p>
@endif
<p style="text-align: center;">
<img src="{{asset('images/1456284385776364.jpg')}}" title="1456284385776364.jpg" alt="时尚与城市.jpg"/>
</p>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -13,12 +13,8 @@ ...@@ -13,12 +13,8 @@
<div class="main"> <div class="main">
<div class="container1"> <div class="container1">
<div class="news-info-b"> <div class="news-info-b">
@if($language_type == 1) {!!$info->content!!}
<p></p><p>  <strong>System and training</strong></p><p>  1. Each company has developed a number of relevant systems and standards to timely check and eliminate fire safety hazards.</p><p>  2. Organize special training for employees and merchants, improve safety awareness and fire fighting practical skills, and put an end to crisis.</p><p>  <strong>Fire drill</strong></p><p>   All the companies of the group participated in 25 fire drills in the whole year, including Shenyang Branch, Nanjing branch and Guangzhou Branch. At the same time, all companies are equipped with various fire-fighting equipment, alarm devices and other fire-fighting facilities and equipment.</p><p>  <strong>Property inspection</strong></p><p>  The head office of the group carried out two joint inspections of property management in the whole year, and effectively improved the property level of each branch company through horizontal exchange, investigation and study among companies.</p><p> <strong> Gas management</strong></p><p>  The group's companies have realized real-time monitoring of gas management and inspection of handheld devices.</p><p>  <strong>Electrical safety</strong></p><p>  The electrical safety management of each group company has reached the national safety standard.</p><p style="text-align: center;"><img src="{{ asset('images/1456284024434091.jpg') }}" title="1456284024434091.jpg" alt="时尚与安全.jpg"/></p> </div> </div>
@else
<p></p><p>  <strong>制度与培训</strong></p><p>  1、各公司均制定了多项相关制度和标准,及时检查和排除消防安全隐患。</p><p>  2、组织员工与商户的专项培训,提高安全意识与消防实操技能,杜绝危机发生。</p><p>  <strong>消防演习</strong></p><p>  集团各公司全年消防演习共计25次,沈阳、南京、广州分公司均全员参加。同时各公司现场均配备各类灭火设备、报警装置等消防设施设备。</p><p>  <strong>物业检查</strong></p><p>  集团总部全年实行物管联合检查2次,通过各公司之间的横向交流考察学习,有效提升了各分公司的物业水平。</p><p> <strong> 煤气管理</strong></p><p>  集团各公司现场均已实现煤气管理的实时监测,手持设备巡查。</p><p>  <strong>电气安全</strong></p><p>  集团各公司现场的电气安全管理均已达到国家安全标准。</p><p style="text-align: center;"><img src="{{ asset('images/1456284024434091.jpg') }}" title="1456284024434091.jpg" alt="时尚与安全.jpg"/></p> </div>
@endif
</div> </div>
</div> </div>
......
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
<div class="culture-item1-b"> <div class="culture-item1-b">
<ul class="clearfix"> <ul class="clearfix">
@if($language_type == 1) @if($language_type == 1)
<li class="culture-item1-b1"><a href="{{route('enfashion_city')}}"><p>Fashion and city</p><img src="{{asset('images/e70eb8d9f490a60f53bb62a7bffbfbfc.png')}} "></a></li> <li class="culture-item1-b1"><a href="{{route('enfashion_city')}}"><p>Fashion and city</p><img src="{{$data1->url}}{{$data1->pic_path}} "></a></li>
<li class="culture-item1-b2"><a href="{{ route('enfashion_safety') }}"><p>Fashion and safety</p><img src="{{asset('images/bba456e0e22727f4b4b67584c7289614.png')}} "></a></li> <li class="culture-item1-b2"><a href="{{ route('enfashion_safety') }}"><p>Fashion and safety</p><img src="{{$data2->url}}{{$data2->pic_path}} "></a></li>
<li class="culture-item1-b3"><a href="{{ route('enpublic_welfare') }}"><p>Fashion and public welfare</p><img src="{{asset('images/c9440293e4fdfddf1b2d1bbfd8ec51a0.png')}} "></a></li> <li class="culture-item1-b3"><a href="{{ route('enpublic_welfare') }}"><p>Fashion and public welfare</p><img src="{{$data3->url}}{{$data3->pic_path}} "></a></li>
@else @else
<li class="culture-item1-b1"><a href="{{route('fashion_city')}}"><p>时尚与城市</p><img src="{{asset('images/e70eb8d9f490a60f53bb62a7bffbfbfc.png')}} "></a></li> <li class="culture-item1-b1"><a href="{{route('fashion_city')}}"><p>时尚与城市</p><img src="{{$data1->url}}{{$data1->pic_path}} "></a></li>
<li class="culture-item1-b2"><a href="{{ route('fashion_safety') }}"><p>时尚与安全</p><img src="{{asset('images/bba456e0e22727f4b4b67584c7289614.png')}} "></a></li> <li class="culture-item1-b2"><a href="{{ route('fashion_safety') }}"><p>时尚与安全</p><img src="{{$data2->url}}{{$data2->pic_path}}"></a></li>
<li class="culture-item1-b3"><a href="{{ route('public_welfare') }}"><p>时尚与公益</p><img src="{{asset('images/c9440293e4fdfddf1b2d1bbfd8ec51a0.png')}} "></a></li> <li class="culture-item1-b3"><a href="{{ route('public_welfare') }}"><p>时尚与公益</p><img src="{{$data3->url}}{{$data3->pic_path}} "></a></li>
@endif @endif
</ul> </ul>
......
...@@ -13,11 +13,7 @@ ...@@ -13,11 +13,7 @@
<div class="main"> <div class="main">
<div class="container1"> <div class="container1">
<div class="news-info-b"> <div class="news-info-b">
@if($language_type == 1) {!!$info->content!!}
<p>  Shenyang Branch welfare center love activities</p><p>  With full love, employees and business owners donate a lot of money and materials to children's welfare homes.</p><p>  Nanjing Branch cares for autistic children and presents lunch activities</p><p>  Nanjing branch and Nanjing mainstream media "Nanjing zero distance" have jointly planned "small kindness, big love, love lunch" to care for autistic children and present love lunch activities.</p><p>  Guangzhou Branch "fashion happiness day" project.</p><p>  Guangzhou Branch, together with Yangcheng Evening News and Guangzhou yigonglian, set the 24th of every month as "fashion happiness day". Connect the company's employees with the merchants and the employees of the shopping malls to help those in need.<img src="{{ asset('images/1456284629884271.jpg') }}" title="1456284629884271.jpg" alt="时尚与公益.jpg" style="text-align: center;"/></p> </div>
@else
<p>  沈阳分公司福利院爱心活动</p><p>  员工与业户带着满满的爱心,将大量钱物捐献给儿童福利院。</p><p>  南京分公司关爱自闭症儿童并赠送爱心午餐活动</p><p>  南京分公司与南京主流媒体《南京零距离》深度合作共同筹划了“小善大爱、爱心午餐”关爱自闭症儿童并赠送爱心午餐活动。</p><p>  广州分公司“时尚幸福日”项目。</p><p>  广州分公司携手羊城晚报社、广州义工联,将每月24号设为“时尚幸福日”。将公司员工与商户、商场从业人员连接起来,帮助需要帮助的人。<img src="{{ asset('images/1456284629884271.jpg') }}" title="1456284629884271.jpg" alt="时尚与公益.jpg" style="text-align: center;"/></p> </div>
@endif
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment