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

{!! trans('admin/product.detail.title',['title'=>$product->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/product.form.status")) }} {{html()->select()->options( $form['statuses'])->required(true)->name("status")->value($product->status)->id("form-status")->class("form-control")}}
{{html()->label()->for("lang")->html(trans("admin/product.form.lang")) }} : {{html()->span()->id("lang")->style(['font-size'=>'0.8rem'])->text($product->language!==null ? $product->language->title:$product->lang_code)}}
{{html()->label()->for("brand")->html(trans("admin/product.form.brand")) }} {{html()->select()->name("brand")->id("form-brand")->class("form-control")->style(['width'=>'100%'])}}
{{html()->label()->for("formTitle")->html(trans("admin/product.form.title")) }} {{html()->input()->name("title")->id("formTitle")->required(true)->value($product->title)->class("form-control")}}
{{html()->label()->for("form-short_description")->html(trans("admin/product.form.short_description")) }} {{html()->textarea()->name("short_description")->id("form-short_description")->value($product->short_description)->class("form-control")->style(['min-height'=>'150px','max-height'=>'150px'])}}
{{html()->label()->for("form-description")->html(trans("admin/product.form.description")) }} {{html()->textarea()->name("description")->id("form-description")->value($product->description)->class("form-control editor")->style(['min-height'=>'150px','max-height'=>'150px'])}}
{{html()->label()->for("formSlug")->html(trans("admin/product.form.slug")) }} {{html()->input()->name("slug")->id("formSlug")->disabled(true)->value($product->slug)->class("form-control")}} {{html()->checkbox()->name("slug_status")->id("formSlugStatusInfo")}} {{html()->label()->for("formSlugStatusInfo")->html(trans("admin/product.form.slug_status"))->style(['font-size'=>'12px'])}}
{{html()->label()->for("formCategory")->html(trans("admin/product.form.category")) }} {{html()->select()->name("category[]")->id("formCategory")->class("form-control")->style(['width'=>'100%'])}}
{{html()->label()->for("formFileCenter")->html(trans("admin/product.form.file_center")) }} {{html()->select()->name("file_center_id")->id("formFileCenter")->class("form-control")->style(['width'=>'100%'])}}
{{html()->label()->for("seo_title")->html(trans("admin/product.form.seo_title")) }} {{html()->input()->name("seo_title")->id("form-seo_title")->value($product->seo_title)->class("form-control")}}
{{html()->label()->for("seo_keywords")->html(trans("admin/product.form.seo_keywords")) }} {{html()->input()->name("seo_keywords")->value($product->seo_keywords)->id("form-seo_keywords")->class("form-control")}}
{{html()->label()->for("seo_description")->html(trans("admin/product.form.seo_description")) }} {{html()->textarea()->name("seo_description")->value($product->seo_description)->id("form-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/product.detail.form.action")) }}
{{ html()->form()->close() }}
@endsection @section('admin.javascript')