@extends('admin.layout.master') @section('title') Blogs List @endsection @section('content')
@forelse($blogs as $blog)
...

{{ $blog->category_data->name }}

@if($blog->status=="active") Active @else Inactive @endif
@if($blog->type=="active") {{ $blog->type }} @else {{ $blog->type }} @endif
{{ $blog->heading }}
@empty @endforelse
@endsection @section('script') @endsection