@extends('backend.layouts.layout-2') @if($edit) @section('page-title', trans('app.edit_news')) @section('page-heading', trans('app.edit_news')) @else @section('page-title', trans('app.add_news')) @section('page-heading', trans('app.add_news')) @endif @section('styles') @parent @endsection @section('scripts') @parent @endsection @section('content') @if($edit) {!! Form::open(['route' => ['news.update',$news->id], 'method' => 'PUT','files' => true, 'id' => 'page-form']) !!} @else {!! Form::open(['route' => 'news.store', 'files' => true, 'id' => 'page-form']) !!} @endif
@lang('app.news_details')
{!! Form::text('title',$edit ? $news->title : old('title'),['class' => 'form-control','placeholder' => trans('app.title')]) !!}
{!! $edit ? $news->content : old('content') !!}
@if($edit)
@endif
{!! Form::close() !!} @stop