@extends('front.frontLayout') @section('title','Blogs') @section('pagelevelcss') @stop @section('content')

Welcome to Our Blog Posts & News

@if(count($blogs) > 0) @foreach($blogs as $value)
{{ $value->name }}
  • By {{ $value->created_by }}
  • @if(isset($value->blog_category))
  • {{ $value->blog_category->name }}
  • @endif

{{ $value->name }}

@php $description = strip_tags($value->description); if (strlen($description) > 500) { // truncate string $descriptionCut = substr($description, 0, 500); $endPoint = strrpos($descriptionCut, ' '); //if the string doesn't contain any space then it will cut without word basis. $description = $endPoint? substr($descriptionCut, 0, $endPoint) : substr($descriptionCut, 0); $description .= '...'; } @endphp

{!! $description !!}

Read More
@endforeach @else

No data available.

@endif
@endsection @section('pageleveljs') @stop