@extends('front.frontLayout') @section('title','Blog Search Result') @section('pagelevelcss') @stop @section('content')
@foreach($blog_detail 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) > 300) { // truncate string $descriptionCut = substr($description, 0, 300); $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
@endsection @section('pageleveljs') @stop