- 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