{{ Form::open(['method' => 'put', 'url' => '/admin/posts/' . $item->id, 'files' => true]) }}
{{ Form::label('lang_id', 'Хэл') }}
{{ $errors->has('lang_id') ? $errors->first('lang_id') : '' }}
{{ Form::label('title', 'Гарчиг') }}
{{ Form::text('title', $item->title, ['class' => 'form-control', 'placeholder' => 'Нэр', 'required']) }}
{{ $errors->has('title') ? $errors->first('title') : '' }}
@include('backend.contents.media.for_edit')
{{ 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)