@extends('core::layouts.master') @section('breadcrumb') Quản lý thuộc tính sản phẩm @endsection @section('head-action') {{ Form::bsNavButton('Lưu thứ tự','#',['class'=>'btn btn-info save-attribute']) }} @endsection @section('head') {{-- {{ Html::style(config('app.assets_url').'/components/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css') }} --}} {{-- {{ Html::style(config('app.assets_url').'/components/nestable2/dist/jquery.nestable.min.css') }} --}} @endsection @section('content')
{{ Form::bsBoxOpen('Thêm thuộc tính') }} {!! Form::open([ 'method' => 'POST', 'route' => 'admin.product.attribute.store', 'files' => true, 'id' => 'attribute-form' ]) !!} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{ Form::bsText('Tên thuộc tính','name',null, ['required'=>true]) }} {{ Form::bsSelect('Thuộc tính cha','parent_id', [0=>'Không có'] + $attribute_root ,null) }}
{{ Form::bsSelect('Loại giá trị','type', ['text'=>'Chữ','color'=>'Màu sắc'] ,null) }}
{{--
{{ Form::bsLfFile('Chọn hình','img', null , ['width'=>150,'height'=>120]) }}
--}} {!! Form::close() !!} {{ Form::bsBoxClose() }}
{{ Form::bsBoxOpen(' Danh sách thuộc tính') }} {{-- --}} {{ Form::bsBoxClose() }}
@endsection @include('product::attribute.scripts')