@extends('layouts.app') @section('content')
Create Category
{{ csrf_field() }}
You don't have to fill the slug.

Created Categories

@if($categories->count() > 0) @foreach($categories as $category) @endforeach
Name Description Action [D] Action [E] All
{{ $category->name }} {{ str_limit($category->description, 25) }} @if($category->name != 'Uncategorized' or $category->name != 'uncategorized') @endif {{ $category->posts()->count() }}
@else

There is no Category.

If you want to create a new post, you must first create a Category.

@endif
@endsection