|
@@ -397,8 +397,17 @@
|
|
|
@foreach($ad_pic3 as $k=>$v)
|
|
|
<div class="box_item">
|
|
|
<div class="news_info">
|
|
|
- <div class="news_title"><a href="{{route('news.show',['id'=>$v->id])}}"
|
|
|
- target="_blank" rel="nofollow noopener noreferrer">{{$v->title}}</a></div>
|
|
|
+ <div class="news_title">
|
|
|
+ @if(empty($v->is_url))
|
|
|
+ <a href="{{route('news.show',['id'=>$v->id])}}" target="_blank" rel="nofollow noopener noreferrer">
|
|
|
+ {!! $v->title !!}
|
|
|
+ </a>
|
|
|
+ @else
|
|
|
+ <a href="{{$v->is_url}}" target="_blank" rel="nofollow noopener noreferrer">
|
|
|
+ {!! $v->title !!}
|
|
|
+ </a>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
<div class="news_content">
|
|
|
{{-- <p style="text-indent:2em;">{!! cut_str(strip_tags(htmlspecialchars_decode($v->content,ENT_QUOTES)),'32',0,'...') !!}</p>--}}
|
|
|
<p style="text-align:right;">{{date('Y-m-d',strtotime($v->created_at))}}</p>
|