@extends('layouts/default') {{-- Page title --}} @section('title') @if ($license->id) {{ trans('admin/licenses/form.update') }} @else {{ trans('admin/licenses/form.create') }} @endif @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
@if ($license->id)

{{ $license->name }}

@endif
@if (\App\Models\Company::isCurrentUserAuthorized())
{{ Form::label('company_id', trans('general.company')) }}
{{ Form::select('company_id', $company_list , Input::old('company_id', $license->company_id), array('class'=>'select2', 'style'=>'min-width:350px')) }} {!! $errors->first('company_id', ' :message') !!}
@endif
{!! $errors->first('name', ' :message') !!}
{!! $errors->first('serial', ' :message') !!}
{!! $errors->first('seats', ' :message') !!}
{!! $errors->first('license_name', ' :message') !!}
{!! $errors->first('license_email', ' :message') !!}
{{ Form::Checkbox('reassignable', '1', Input::old('reassignable', $license->id ? $license->reassignable : '1'),array('class' => 'minimal')) }} {{ trans('general.yes') }}
{{ Form::select('supplier_id', $supplier_list , Input::old('supplier_id', $license->supplier_id), array('class'=>'select2', 'style'=>'min-width:350px')) }} {!! $errors->first('supplier_id', ' :message') !!}
{!! $errors->first('order_number', ' :message') !!}
{{ \App\Models\Setting::first()->default_currency }} {!! $errors->first('purchase_cost', ' :message') !!}
{!! $errors->first('purchase_date', ' :message') !!}
{!! $errors->first('expiration_date', ' :message') !!}
{!! $errors->first('termination_date', ' :message') !!}
{!! $errors->first('purchase_order', ' :message') !!}
{{ Form::select('depreciation_id', $depreciation_list , Input::old('depreciation_id', $license->depreciation_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('depreciation_id', ' :message') !!}
{{ Form::Checkbox('maintained', '1', Input::old('maintained', $license->maintained),array('class' => 'minimal')) }} {{ trans('general.yes') }}
{!! $errors->first('notes', ' :message') !!}
@stop