@extends('admin::index') @section('content')

{{ $header or trans('admin.title') }} {{ $description or trans('admin.description') }}

@include('partials.breadcrumb')
@include('partials.error') @include('admin::partials.exception') @include('admin::partials.toastr') {{-- MAIN CONTENT --}} {{ Form::open(array('route' => 'products.store', 'method' => 'POST', 'class'=>'', 'enctype'=>'multipart/form-data' )) }}
{{ __("Nếu để trống Mã sẽ đươc sinh tự động.") }}
{{ __("Nếu để trống Giá nhập xem như Giá bán") }}
{{ \Form::select('unit', $units, old('unit'), ['class'=>'form-control']) }}

{{ __("Giá bán theo đơn vị quy đổi") }}

{{ __("Đơn vị") }} {{ __("Số lượng quy đổi") }} {{ __("Giá tính (tự động)") }} {{ __("Mặc định") }}

{{ __("Giá sỉ") }}

@foreach($customerTypes as $key => $type)
@endforeach
{{ \Form::select('category_id', $categories, old('category_id'), ['class'=>'form-control']) }}
{{ \Form::select('brand_id', $brands, old('brand_id'), ['class'=>'form-control']) }}
@foreach($productAttrs as $name => $val)
{{ \Form::select('attr_' . $name, array_combine($val,$val), old('attr_' . $name), ['class'=>'form-control']) }}
@endforeach
{{ __('Huỷ bỏ') }}
{{ Form::close() }}
@endsection @php @endphp