@php $columns = [ ['label' => 'Sl No', 'column' => 'id', 'sort' => true], ['label' => 'Image', 'column' => 'image', 'sort' => false], ['label' => 'Blog Title', 'column' => 'blog_title', 'sort' => true], ['label' => 'Blog Date', 'column' => 'blog_date', 'sort' => true], ['label' => 'Description', 'column' => 'blog_description', 'sort' => false], ['label' => 'Status', 'column' => 'status', 'sort' => false], ['label' => 'Actions', 'column' => 'actions', 'sort' => false], ]; @endphp @php $bulkOptions = [ [ 'label' => 'Delete', 'value' => '1', ], [ 'label' => 'Status', 'value' => '2', 'options' => [ [ 'label' => 'Active', 'value' => '1', ], [ 'label' => 'Inactive', 'value' => '0', ], ], ], ]; @endphp @foreach ($blogs as $key => $item) @php $actions = [ [ 'code' => 'active', 'route' => null, ], [ 'code' => 'inactive', 'route' => null, ], [ 'code' => 'delete', 'route' => route('admin.cms.blogs.destroy', $item->id), ], [ 'code' => 'edit', 'route' => route('admin.cms.blogs.edit', $item->id), ], ]; @endphp {{ $key + 1 }} {{ $item->blog_title }} {{ $item->blog_date }} {{ \Illuminate\Support\Str::words($item->blog_description, 5, '...') }} @if ($item->status) Active @else In-Active @endif @endforeach