@extends('admin.layout') @section('content') Add Blog Dashboard Blog Blog List Add blog @csrf Category * {{-- Sub --}} {{-- --}} Select Category @if(!empty($categories)) @foreach($categories as $category) {!! $category->name !!} @endforeach @endif @if ($errors->has('category')) {{ $errors->first('category') }} @endif Blog Title @if ($errors->has('blog_title')) {{ $errors->first('blog_title') }} @endif Short Description * @if ($errors->has('short_desc')) {{ $errors->first('short_desc') }} @endif Description * @if ($errors->has('description')) {{ $errors->first('description') }} @endif Author * Select Author @if(!empty($teachers)) @foreach($teachers as $teacher) {!! $teacher->username !!} @endforeach @endif @if ($errors->has('teacher_id')) {{ $errors->first('teacher_id') }} @endif Image * {{-- Choose file --}} @if ($errors->has('image')) {{ $errors->first('image') }} @endif Submit @endsection @push('footer-script') @endpush