Blogs

@can('User create') Add Blogs @endcan Back
@can('User access') @foreach($posts as $index => $post) @endforeach @endcan
ID Photo Title of blog Description Is active Action
{{ $post->id }} @if(!empty($post->image)) blog image @else No Photo @endif {{ strlen(strip_tags($post->title)) > 20 ? substr(strip_tags($post->title), 0, 20) . '...' : strip_tags($post->title) }} {{ strlen(strip_tags($post->description)) > 40 ? substr(strip_tags($post->description), 0, 40) . '...' : strip_tags($post->description) }} @can('User edit') @endcan @can('User delete')
@csrf @method('delete')
@endcan