@extends('admin.layout') @section('content') Edit Blog Dashboard Blog Blog List Edit blog @csrf Category * Select Category @if(!empty($categories)) @foreach($categories as $category) cat_id == $category->id)?"selected":""}}>{!! $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 * {{$blog->short_desc}} @if ($errors->has('short_desc')) {{ $errors->first('short_desc') }} @endif Description * {{$blog->description}} @if ($errors->has('description')) {{ $errors->first('description') }} @endif Author * Select Author @if(!empty($teachers)) @foreach($teachers as $teacher) author == $teacher->username)?"selected":""}}>{!! $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 image)}}" style="width:50px;height:50px;"> Sort Order @if ($errors->has('sort_order')) {{ $errors->first('sort_order') }} @endif Submit @endsection @push('footer-script') @endpush