@extends('layouts/edit-form', [ 'createText' => trans('admin/licenses/form.create'), 'updateText' => trans('admin/licenses/form.update'), 'topSubmit' => true, 'formAction' => ($item->id) ? route('licenses.update', ['license' => $item->id]) : route('licenses.store'), ]) {{-- Page content --}} @section('inputFields') @include ('partials.forms.edit.name', ['translated_name' => trans('admin/licenses/form.name')]) @include ('partials.forms.edit.category-select', ['translated_name' => trans('admin/categories/general.category_name'), 'fieldname' => 'category_id', 'required' => 'true', 'category_type' => 'license']) @can('viewKeys', $item)
{!! $errors->first('serial', '') !!}
@endcan
{!! $errors->first('seats', '
') !!}
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.company'), 'fieldname' => 'company_id']) @include ('partials.forms.edit.manufacturer-select', ['translated_name' => trans('general.manufacturer'), 'fieldname' => 'manufacturer_id', 'required' => 'true'])
{!! $errors->first('license_name', '') !!}
{!! $errors->first('license_email', '') !!}
{{ Form::Checkbox('reassignable', '1', old('reassignable', $item->id ? $item->reassignable : '1'),array('class' => 'minimal', 'aria-label'=>'reassignable')) }} {{ trans('general.yes') }}
@include ('partials.forms.edit.supplier-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'supplier_id']) @include ('partials.forms.edit.order_number') @include ('partials.forms.edit.purchase_cost') @include ('partials.forms.edit.purchase_date')
{!! $errors->first('expiration_date', '') !!}
{!! $errors->first('termination_date', '') !!}
{{-- @TODO How does this differ from Order #? --}}
{!! $errors->first('purchase_order', '') !!}
@include ('partials.forms.edit.depreciation')
{{ Form::Checkbox('maintained', '1', old('maintained', $item->maintained),array('class' => 'minimal', 'aria-label'=>'maintained')) }} {{ trans('general.yes') }}
@include ('partials.forms.edit.notes') @stop