Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/frontend/news-single.blade.php
@extends('layouts.frontend')
    @section('content') 
    
  <div id="wrapper-content" class="wrapper-content pb-0 pt-0">
    <div class="inner-page-banner heading-title-behind text-center">
      <div class="heading heading-style-title-behind mb-0">
        <div class="heading-title-wrapper">
          <span>Latest News</span>
          <h1 class="text-white heading-title h2 font-weight-semibold">Latest News</h1>
          <ul class="po-bread breadcrumb justify-content-center fadeInUp animated" data-animate="fadeInUp">
          <li class="breadcrumb-item"><a href="{{ url('/') }}">Home</a></li>
            <li class="breadcrumb-item">News</li>
          </ul>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="pb-10 pt-10 page-container row">
        <div class="page-content col-lg-8 mb-8 mb-lg-0">
          <div class="row post-style-3">
            
            

                @if( !empty($news) )  
                    <div class="col-12 mb-6">
                      <div class="card border-0"> <a href="#" class="hover-scale"> <img src="{{ asset('storage/app/public/latest-news/'.$news->image) }}" alt="product 1" class="card-img-top-latest-new image"> </a>
                        <div class="card-body px-0"  style="text-align:justify; text-justify: inter-word;">
                          <div class="mb-2">

                            @if( !empty( $newsCategory[$news->category_id] ) )
                              <a href="#" class="link-hover-dark-primary">{{ $newsCategory[$news->category_id] }}</a>
                            @endif
                            

                          </div>
                          <h5 class="card-title lh-13 letter-spacing-25"> <a href="#" class="link-hover-dark-primary text-capitalize"> {{$news->title}}</a> </h5>
                          
                          <p class="mb-7 lh-19 font-size-md">{!! $news->description !!}</p>

                          <ul class="list-inline">
                            <li class="list-inline-item mr-0"> <span class="text-gray">{{  date("d M, Y", strtotime($news->created_at)) }} by</span> </li>
                            <li class="list-inline-item"> <a href="#" class="link-hover-dark-primary">Admin</a> </li>
                          </ul>
                        </div>
                      </div>
                    </div>
                  
                  @endif
  
          </div>
          
          <!-- <ul class="pagination pagination-style-01 mt-5">
            <li class="page-item"><a href="#" class="page-link current">1</a></li>
            <li class="page-item"><a href="#" class="page-link">2</a></li>
            <li class="page-item"><a href="#" class="page-link">3</a></li>
            <li class="page-item"><a href="#" class="page-link">4</a></li>
            <li class="page-item"><a href="#" class="page-link"><i class="fal fa-chevron-right"></i></a> </li>
          </ul> -->
        </div>
        
		    @include('layouts.news-common-right-side')
		
      </div>
    </div>
  </div>

  <!-- wrapper-content -->
  

    @endsection