|
|
|
@ -32,86 +32,25 @@ |
|
|
|
|
</section> |
|
|
|
|
<section class="related-article"> |
|
|
|
|
<h3>Related Articles</h3> |
|
|
|
|
<h2 class="mt-4">Coming soon......</h2> |
|
|
|
|
{{-- <div class="row g-4"> |
|
|
|
|
<!-- <h2 class="mt-4">Coming soon......</h2> --> |
|
|
|
|
|
|
|
|
|
<div class="row g-4"> |
|
|
|
|
@foreach(App\Models\NewsAndUpdate::where('id','!=',$news->first()->id)->where('status','1')->get() as $related) |
|
|
|
|
<div class="col-md-4"> |
|
|
|
|
<div class="news-page-card"> |
|
|
|
|
<a href="/news_detail"> |
|
|
|
|
<a href="{{url('news/'.$related->slug)}}"> |
|
|
|
|
<div class="news-card-img"> |
|
|
|
|
<img src="{{url('frontend/images/test-img.png')}}" class="img-fluid" alt=""> |
|
|
|
|
<img src="{{url($related->image)}}" class="img-fluid" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="news-card-desc"> |
|
|
|
|
<h4>Lorem Ipsum is simply dummy text of the printing</h4> |
|
|
|
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...</p> |
|
|
|
|
<h4>{{$related->title}}</h4> |
|
|
|
|
<p>{!!(\Illuminate\Support\Str::limit(strip_tags($related->description), 150, $end='...'))!!}</p> |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-md-4"> |
|
|
|
|
<div class="news-page-card"> |
|
|
|
|
<a href="/news_detail"> |
|
|
|
|
<div class="news-card-img"> |
|
|
|
|
<img src="{{url('frontend/images/test-img.png')}}" class="img-fluid" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="news-card-desc"> |
|
|
|
|
<h4>Lorem Ipsum is simply dummy text of the printing</h4> |
|
|
|
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...</p> |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-md-4"> |
|
|
|
|
<div class="news-page-card"> |
|
|
|
|
<a href="/news_detail"> |
|
|
|
|
<div class="news-card-img"> |
|
|
|
|
<img src="{{url('frontend/images/test-img.png')}}" class="img-fluid" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="news-card-desc"> |
|
|
|
|
<h4>Lorem Ipsum is simply dummy text of the printing</h4> |
|
|
|
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...</p> |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-md-4"> |
|
|
|
|
<div class="news-page-card"> |
|
|
|
|
<a href="/news_detail"> |
|
|
|
|
<div class="news-card-img"> |
|
|
|
|
<img src="{{url('frontend/images/test-img.png')}}" class="img-fluid" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="news-card-desc"> |
|
|
|
|
<h4>Lorem Ipsum is simply dummy text of the printing</h4> |
|
|
|
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...</p> |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-md-4"> |
|
|
|
|
<div class="news-page-card"> |
|
|
|
|
<a href="/news_detail"> |
|
|
|
|
<div class="news-card-img"> |
|
|
|
|
<img src="{{url('frontend/images/test-img.png')}}" class="img-fluid" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="news-card-desc"> |
|
|
|
|
<h4>Lorem Ipsum is simply dummy text of the printing</h4> |
|
|
|
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...</p> |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-md-4"> |
|
|
|
|
<div class="news-page-card"> |
|
|
|
|
<a href="/news_detail"> |
|
|
|
|
<div class="news-card-img"> |
|
|
|
|
<img src="{{url('frontend/images/test-img.png')}}" class="img-fluid" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="news-card-desc"> |
|
|
|
|
<h4>Lorem Ipsum is simply dummy text of the printing</h4> |
|
|
|
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...</p> |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> --}} |
|
|
|
|
@endforeach |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</section> |
|
|
|
|
@endsection |