@extends('layouts.admin') @section('title', 'Blog List') @section('page-header')

Blog List

@endsection @section('content')

All Blog List

@if ($blogs->isNotEmpty()) @foreach ($blogs as $blog) @endforeach @endif
SL Title Categories Tags Status Action
{{ $loop->iteration }} {{ $blog->title }} @foreach ($blog->categories as $category) {{ $category->category->name }} @endforeach @forelse ($blog->tags as $tag) {{ $tag->name }} @empty N/A @endforelse @if ($blog->status == 0) Unpublish @elseif($blog->status == 1) Draft @else Publish @endif
{{-- delete form --}}
@csrf @method('DELETE')
@endsection @push('css') @endpush @push('js') @endpush