@extends('layouts.blog') @section('title') {{ "Technoblog | " . $category->name }} @endsection @section('blog_content')
TechnoBlog / {{ $category->name }}
@for ($i = 0; $i < count($posts); $i++) @if (count($posts) > 2) @if ($i < 2) @php $strLimit = 200; $class = "col-md-6"; @endphp @else @php $strLimit = 90; $class = "col-md-4"; @endphp @endif @else @php $strLimit = 90; $class = "col-md-4"; @endphp @endif
Card image cap
{{ $posts[$i]->title }}

{!! str_limit($posts[$i]->content, $strLimit) !!}

@endfor
{{ $posts->links() }}
@endsection