{{ Form::open(['method' => 'post', 'url' => '/admin/posts', 'files' => true]) }}
{{ Form::close() }}
{{ Form::label('lang_id', 'Хэл') }}
{{ $errors->has('lang_id') ? $errors->first('lang_id') : '' }}
{{ Form::label('title', 'Гарчиг') }}
{{ Form::text('title', Input::get('title'), ['class' => 'form-control', 'placeholder' => 'Нэр', 'required']) }}
{{ $errors->has('title') ? $errors->first('title') : '' }}
@include('backend.contents.media.for_create')
{{ Form::label('short_content', 'Товч мэдээлэл') }}
{{ $errors->has('short_content') ? $errors->first('short_content') : '' }}
{{ Form::label('content', 'Дэлгэрэнгүй мэдээлэл') }}
{{ $errors->has('content') ? $errors->first('content') : '' }}
{{ Form::label('custom_date', 'Нийтэлсэн огноо') }}
{{ $errors->has('custom_date') ? $errors->first('custom_date') : '' }}
{{ Form::label('category', 'Ангилал') }}
-
@foreach ($category as $value)
- {{----}} {{ $value->title }} @endforeach
{{ Form::label('link', 'Холбоос') }}
{{ Form::text('link', Input::get('link'), ['class' => 'form-control', 'placeholder' => 'Холбоос']) }}
{{ $errors->has('link') ? $errors->first('link') : '' }}
{{ Form::label('is_active', 'Идэвхтэй') }}
{{ Form::submit('Хадгалах', ['class' => 'btn btn-primary']) }}