@extends('layouts.admin') @section('title', trans('general.title.edit', ['type' => trans_choice('general.items', 1)])) @section('content')
{!! Form::model($item, [ 'method' => 'PATCH', 'files' => true, 'route' => ['items.update', $item->id], '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') }} {{ Form::selectGroup('tax_id', trans_choice('general.taxes', 1), 'percent', $taxes, null, []) }} {{ Form::selectGroup('category_id', trans_choice('general.categories', 1), 'folder-open-o', $categories, null, []) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }} {{ Form::radioGroup('enabled', trans('general.enabled')) }}
@permission('update-common-items') @endpermission {!! Form::close() !!}
@endsection @push('js') @endpush @push('css') @endpush @push('scripts') @endpush