@extends('layouts.admin') @section('title', trans('general.title.new', ['type' => trans_choice('general.items', 1)])) @section('content')
{!! Form::open(['route' => 'items.store', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }} {{ Form::textGroup('sku', trans('items.sku'), 'key') }} {{ Form::textareaGroup('description', trans('general.description')) }} {{ Form::textGroup('sale_price', trans('items.sales_price'), 'money') }} {{ Form::textGroup('purchase_price', trans('items.purchase_price'), 'money') }} {{ Form::textGroup('quantity', trans_choice('items.quantities', 1), 'cubes', ['required' => 'required'], '1') }} {{ Form::selectGroup('tax_id', trans_choice('general.taxes', 1), 'percent', $taxes, setting('general.default_tax'), []) }} @stack('category_id_input_start')
{!! Form::label('category_id', trans_choice('general.categories', 1), ['class' => 'control-label']) !!}
{!! Form::select('category_id', $categories, null, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.categories', 1)])])) !!}
{!! $errors->first('category_id', '

:message

') !!}
@stack('category_id_input_end') {{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }} {{ Form::radioGroup('enabled', trans('general.enabled')) }}
{!! Form::close() !!}
@endsection @push('js') @endpush @push('css') @endpush @push('scripts') @endpush