@extends('layouts.master') @section('title') {{isset($blog) ? 'Edit blog': 'Add blog'}} @endsection @section('css') @endsection @section('page-header') @endsection @section('content')
@csrf
@if ($errors->has('category_id'))

{{$errors->first('category_id')}}

@endif
@if ($errors->has('title'))

{{$errors->first('title')}}

@endif
@if ($errors->has('overview'))

{{$errors->first('overview')}}

@endif
@if ($errors->has('description'))

{{$errors->first('description')}}

@endif
image Upload
@if (isset($blog))
{{$blog->title}}
@endif
@if ($errors->has('main_image'))

{{$errors->first('main_image')}}

@endif
@isset($blog)
@csrf
Video Upload
@if (isset($blog->player_embed_url))
@endif
@if ($errors->has('video'))

{{$errors->first('video')}}

@endif
@endisset @endsection @section('js') @endsection