@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.update',$item->id], 'method' => 'PUT', 'class'=>'', 'enctype'=>'multipart/form-data' )) }}
{{ __("Nếu để trống Giá nhập xem như Giá bán") }}
{{ \Form::select('unit', $units, $item->unit, ['class'=>'form-control']) }}
{{ \Form::select('category_id', $categories, $item->category_id, ['class'=>'form-control']) }}
{{ \Form::select('brand_id', $brands, $item->brand_id, ['class'=>'form-control']) }}
@foreach($productAttrs as $name => $val)
{{ \Form::select('attr_' . $name, array_combine($val,$val), $item['attr_' . $name], ['class'=>'form-control']) }}
@endforeach
{{ __('Huỷ bỏ') }}
{{ Form::close() }}
@endsection @php @endphp