<h3>{{ inject('setting')->langs('web', 'product-center') }}</h3> // 系统语言包
<p>{{ inject('block...
<h3>{{ inject('setting')->langs('web', 'product-center') }}</h3> // 系统语言包
<p>{{ inject('block')->block('bt11', 'title') }}</p> //说明页
<p>{!! inject('block')->block('about', 'content') !!}</p> //说明页编译后内容
<img src="{{ themePath('images/image_1665369563_HOME_04.jpg') }}" /> //单图
<p>{{ inject('block')->block('video')->imgs[0] }}</p> // 说明页图片
<p>{{ inject('block')->block('video', 'extend') }}</p> // 说明页摘要
// 广告图
<ul class="our-home-list">
@foreach (inject('ad')->ad(2) as $key => $value)
<li>
<a href="{{ $value['url'] }}" title="{{ $value['title'] }}" class="img">
<div class="com-img"><img src="{{ webp($value['img']) }}"></div>
<h4>{{ $value['title'] }}</h4>
</a>
</li>
@endforeach
</ul>
// 案例推荐
@foreach (inject('list')->lists('case', 0, 12, 0, 'recom') as $value)
<div class="swiper-slide">
<div class="item">
<img src="{{ $value->present()->image('500*268') }}" alt="{{ $value->description->title or '' }}">
</div>
</div>
@endforeach
<!--{* banner *}-->
<div class="xy_banner">
<div class="slick-banner" id="pc-banner">
@foreach (inject('ad')->ad(1) as $key => $value)
<div class="slick-con"><a href="{{ $value['url'] }}" target="_blank"><img src="{{ webp($value['img']) }}" alt="{{ $value['title'] }}"></a></div>
@endforeach
</div>
</div>
<!-- 搜索框 -->
<form method="method" name="formsearch" id="formsearch2" action="{{ url('search') }}" >
<input type='text' name='wd' id="keyword" placeholder="" />
<input type="submit" id="s_btn" value="" />
</form>
<!-- 单个广告图调取 -->
<div class="bg-fixed" style='background: url("{{ inject('ad')->single(3, 0, 'img') }}") no-repeat top fixed;'>
<div class="container">
<div class="content">
<div class="title">{!! inject('ad')->single(3, 0, 'title') !!}</div>
<div class="summary">{!! inject('ad')->single(3, 0, 'summary') !!}</div>
<a href="{{ url('product') }}" class="more text-uppercase text-center">{{ inject('setting')->langs('system', 'liaojie') }}</a>
</div>
</div>
</div>
<!-- 分类及子级 -->
<div class="index-product-cate row">
@foreach (inject('category')->cate()->take(3)->all() as $key => $value)
<div class="col-sm-4">
<div class="first" style="background: url('{{ $value->present()->image('400*400') }}') right 0 no-repeat;">
<h3><a class="text-uppercase" href="{{ $value->present()->url }}">{{ $value->cname }}</a></h3>
<div class="bg{{ $key }} mt-15 common-bg"></div>
@if(!$value->children->isEmpty())
<div class="content">
<ul class="two pt-10">
@foreach ($value->children->take(4)->all() as $val)
<li><a class="text-uppercase" href="{{ $val->present()->url }}">{{ $val->cname }}</a></li>
@endforeach
</ul>
<a class="more text-center mt-10" href="{{ $value->present()->url }}">VIEW ALL</a>
</div>
@endif
</div>
</div>
@endforeach
</div>
<!-- 新闻及语言包调取 -->
<div class="index-news">
<div class="container">
<h3 class="title text-center">{{ inject('setting')->langs('web', 'lastesr_news') }}</h3>
<ul class="index-news-list row">
@foreach (inject('list')->lists('news', 0, 3, 0, 'recom') as $value)
<li class="col-sm-4">
<a href="{{ $value->present()->url('news') }}" class="img">
<img src="{{ $value->present()->image('380*248') }}" alt="{{ $value->description->title or '' }}">
</a>
<h3>
<a href="{{ $value->present()->url('news') }}">{{ str_limit($value->description->title ?? '', $limit = 60, $end = '...') }}</a>
</h3>
<div class="text">{{ str_limit($value->description->summary ?? '', $limit = 100, $end = '...') }}</div>
<div class="time">{{ $value->created_at }}</div>
</li>
@endforeach
</ul>
</div>
</div>
<!-- 底部导航 -->
<div class="x-layout-menu hidden-xs">
<dl>
<dt>{{ inject('setting')->langs('web', 'brand') }}</dt>
@foreach (inject('category')->cate('product') as $value)
<dd><a href="{{ $value->present()->url('product') }}">{{ $value->cname }}</a></dd>
@endforeach
</dl>
<dl>
<dt>{{ inject('list')->page(8)[0]->cates->description->cname }}</dt>
@foreach (inject('list')->page(1) as $value)
<dd><a href="{{ $value->linkurl ?: url($value->present()->url('page')) }}">{{ $value->description->title or '' }}</a></dd>
@endforeach
</dl>
<dl>
<dt>{{ inject('setting')->langs('web', 'contact_us') }}</dt>
<dd class="fcc">{!! inject('block')->block('contact', 'content') !!}</dd>
</dl>
</div>
<!-- 导航 -->
<ul class="x-menu">
@foreach (inject('nav')->nav() as $key => $value)
<li class="{{$key}}">
<a href="{{ $value->linkurl }}">{{ $value->description->cname or $value->cname }}@if(!$value->children->isEmpty())<span class="creat"></span> @endif</a>
@if(!$value->children->isEmpty())
<ul class="x-sub-menu">
@foreach ($value->children as $val)
<li><a href="{{ $val->linkurl }}">{{ $val->description->cname or $val->cname}}</a></li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>