@php $i=0; foreach($data['blog_category'] as $cat){ @endphp

{{$cat->name}}

    @php $blogCat = DB::table('tbl_blog')->where('parent', $cat->id)->WHERE('staus', 'Active')->WHERE('is_deleted', 0)->orderBy('id', 'DESC')->get(); foreach($blogCat as $rowB){ @endphp
  • {{$rowB->name}}
  • @php } @endphp
@php ++$i; } @endphp

{{$blog->name}}

Last updated on Jul 15,2024 6.9K Views

Tanishqa Chaudhary
An intellectual brain with a strong urge to explore different upcoming technologies,... An intellectual brain with a strong urge to explore different upcoming technologies, learn about them, and share knowledge.
@php $cleanContent = $blog->content; // Remove inline style attributes $cleanContent = preg_replace('/\s*style=("|\')(.*?)("|\')/i', '', $cleanContent); // Remove span and font tags but preserve their content $cleanContent = preg_replace('/<\/?(span|font)[^>]*>/i', '', $cleanContent); // Remove empty

tags that contain only spaces,  , or nothing $cleanContent = preg_replace('/

(\s| | | )*<\/p>/i', '', $cleanContent); // Optionally trim the result $cleanContent = trim($cleanContent); // Output echo $cleanContent; @endphp

Upcoming Batches For Artificial Intelligence Certification Course
Course Name Date
Artificial Intelligence Certification Course

Class Starts on 25th November,2023

25th November

SAT&SUN (Weekend Batch)
View Details

Recently Added Articles

Browse Categories

@php foreach($data['blog_category'] as $row){ @endphp {{$row->name}} @php } @endphp