@extends('admin.layout.master') @section('admin')
{{ Breadcrumbs::render('admin.contents.detail',$content) }}

{!! trans('admin/contents.detail.title',['title'=>$content->title]) !!}

{{ html()->form()->method('POST')->class("form modulForm")->id("modulForm")->autocomplete("off")->attribute('enctype','multipart/form-data')->open() }}
@if($errors->any())
@foreach ($errors->all() as $error) {!! $error !!}
@endforeach
@endif
{{html()->label()->for("status")->html(trans("admin/contents.form.status")) }} {{html()->select()->options( $form['statuses'])->required(true)->name("status")->value($content->status)->id("form-status")->class("form-control")}}
{{html()->label()->for("formLang")->html(trans("admin/contents.form.lang")) }} {{html()->span()->text($content->language!==null ? $content->language->title : $content->lang_code)->id("formLang")->class("form-control")}}
{{html()->label()->for("formTitle")->html(trans("admin/contents.form.title")) }} {{html()->input()->name("title")->required(true)->value($content->title)->id("formTitle")->class("form-control")}}
{{html()->label()->for("short_description")->html(trans("admin/contents.form.short_description")) }} {{html()->textarea()->name("short_description")->value($content->short_description)->id("form-short_description")->class("form-control")->style(['min-height'=>'150px','max-height'=>'150px'])}}
{{html()->label()->for("description")->html(trans("admin/contents.form.description")) }} {{html()->textarea()->name("description")->value($content->description)->id("form-description")->class("form-control editor")->style(['min-height'=>'150px','max-height'=>'150px'])}}
{{html()->label()->for("formSlug")->html(trans("admin/contents.form.slug")) }} {{html()->input()->name("slug")->required(true)->value($content->slug)->disabled(true)->id("formSlug")->class("form-control")}} {{html()->checkbox()->name("slug_status")->id("formSlugStatusInfo")}} {{html()->label()->for("formSlugStatusInfo")->html(trans("admin/contents.form.slug_status"))->style(['font-size'=>'12px'])}}
{{html()->label()->for("formCategory")->html(trans("admin/contents.form.category")) }} {{html()->select()->name("category_id")->id("formCategory")->class("form-control")->style(['width'=>'100%'])}}
{{html()->label()->for("formFileCenter")->html(trans("admin/contents.form.file_center")) }} {{html()->select()->name("file_center_id")->id("formFileCenter")->class("form-control")->style(['width'=>'100%'])}}
{{html()->checkbox()->name("detail_image_status")->checked($content->detail_image_status===1)->value(1)->id("formDetailImageStatus")}} {{html()->label()->for("formDetailImageStatus")->html(trans("admin/contents.form.detail_image_status")) }}
{{html()->label()->for("seo_title")->html(trans("admin/contents.form.seo_title")) }} {{html()->input()->name("seo_title")->id("form-seo_title")->value($content->seo_title)->class("form-control")}}
{{html()->label()->for("seo_keywords")->html(trans("admin/contents.form.seo_keywords")) }} {{html()->input()->name("seo_keywords")->id("form-seo_keywords")->value($content->seo_keywords)->class("form-control")}}
{{html()->label()->for("seo_description")->html(trans("admin/contents.form.seo_description")) }} {{html()->textarea()->name("seo_description")->id("form-seo_description")->value($content->seo_description)->class("form-control")->style(['min-height'=>'100px','max-height'=>'100px'])}}
{{ html()->button()->type("submit")->class("btn btn-info btn-sm")->id("btnAction")->html(trans("admin/contents.detail.form.action")) }}
{{ html()->form()->close() }}
@endsection @section('admin.javascript')