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

@if ($item) {{ $item->name }} @endif

@if ($selectedAsset == null) {{ Form::select('asset_id', $asset_list , Input::old('asset_id', $item->asset_id), ['class'=>'select2', 'style'=>'min-width:350px']) }} @else {{ Form::select('asset_id', $asset_list , Input::old('asset_id', $selectedAsset), ['class'=>'select2', 'style'=>'min-width:350px', 'enabled' => 'false']) }} @endif {!! $errors->first('asset_id', ' :message') !!}
@include ('partials.forms.edit.supplier') @include ('partials.forms.edit.maintenance_type')
{!! $errors->first('title', ' :message') !!}
{!! $errors->first('start_date', ' :message') !!}
{!! $errors->first('completion_date', ' :message') !!}
{{ $snipeSettings->default_currency }} {!! $errors->first('cost', ' :message') !!}
{!! $errors->first('notes', ' :message') !!}
@stop