@extends('admin.layouts.main') @section('title') @if($edit) Edit News @else Add News @endif @endsection @section('content')
@include("admin.common.sidebar")
@csrf @if($edit)

{{ @trans('news.edit_news') }}

@else

{{ @trans('news.add_news') }}

@endif
@if($errors->has('title')) {{$errors->first('title')}} @endif
@if(isset($news->image))
@else @endif
@if($errors->has('news_category_id')) {{$errors->first('news_category_id')}} @endif
@if($errors->has('posted_on')) {{$errors->first('posted_on')}} @endif
@if($errors->has('author_name')) {{$errors->first('author_name')}} @endif
@if($errors->has('author_position')) {{$errors->first('author_position')}} @endif
@if($errors->has('short_description')) {{$errors->first('short_description')}} @endif
@if($errors->has('long_description')) {{$errors->first('long_description')}} @endif
@endsection @push('pageJs') {!! JsValidator::formRequest('App\Http\Requests\News\storeNews', '#formNews') !!} @endpush