related-news

aplus#37
Mahesh Sharma 2 years ago
parent afe69b3ece
commit c24c537779
  1. 4
      app/Http/Controllers/HomeController.php
  2. 2
      app/Http/Controllers/RecruitmentController.php
  3. 2
      resources/views/news.blade.php
  4. 83
      resources/views/news_detail.blade.php

@ -84,10 +84,10 @@ class HomeController extends Controller
]); ]);
$contact = new Contact(); $contact = new Contact();
$subject = 'Quick Enquiry'; $subject = htmlentities('Quick Enquiry');
$check = ''; $check = '';
if(isset($request['check'])){ if(isset($request['check'])){
$subject = 'Contact Enquiry'; $subject = htmlentities('Contact Enquiry');
$check = '1'; $check = '1';
} }
$name = ($request['firstname'] != null) ? ($request['firstname'].' '.$request['lastname']) : $request['fullname'] ; $name = ($request['firstname'] != null) ? ($request['firstname'].' '.$request['lastname']) : $request['fullname'] ;

@ -14,7 +14,7 @@ class RecruitmentController extends Controller
public function save_vacancy(VacancyRequest $request){ public function save_vacancy(VacancyRequest $request){
$recruitment = new Recruitment(); $recruitment = new Recruitment();
$subject = 'Recruitment Enquiry'; $subject = htmlentities('Recruitment Enquiry');
$recruitment->full_name = $request['full_name']; $recruitment->full_name = $request['full_name'];
$recruitment->company = $request['company']; $recruitment->company = $request['company'];

@ -50,7 +50,7 @@
</div> </div>
<div class="news-card-desc"> <div class="news-card-desc">
<h4>{{$news->title}}</h4> <h4>{{$news->title}}</h4>
<p>{!!(\Illuminate\Support\Str::limit(strip_tags($news->description), 150, $end='...'))!!}</p> <p>e</p>
</div> </div>
</a> </a>
</div> </div>

@ -32,86 +32,25 @@
</section> </section>
<section class="related-article"> <section class="related-article">
<h3>Related Articles</h3> <h3>Related Articles</h3>
<h2 class="mt-4">Coming soon......</h2> <!-- <h2 class="mt-4">Coming soon......</h2> -->
{{-- <div class="row g-4">
<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="col-md-4">
<div class="news-page-card"> <div class="news-page-card">
<a href="/news_detail"> <a href="{{url('news/'.$related->slug)}}">
<div class="news-card-img"> <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>
<div class="news-card-desc"> <div class="news-card-desc">
<h4>Lorem Ipsum is simply dummy text of the printing</h4> <h4>{{$related->title}}</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...</p> <p>{!!(\Illuminate\Support\Str::limit(strip_tags($related->description), 150, $end='...'))!!}</p>
</div> </div>
</a> </a>
</div> </div>
</div> </div>
<div class="col-md-4"> @endforeach
<div class="news-page-card">
<a href="/news_detail"> </div>
<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> --}}
</section> </section>
@endsection @endsection
Loading…
Cancel
Save