@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

{!! $errors->first('title', '') !!}
@include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.asset'), 'fieldname' => 'asset_id', 'required' => 'true']) @include ('partials.forms.edit.supplier-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'supplier_id', 'required' => 'true']) @include ('partials.forms.edit.maintenance_type')
{!! $errors->first('start_date', '') !!}
{!! $errors->first('completion_date', '') !!}
@if (($item->asset) && ($item->asset->location) && ($item->asset->location->currency!='')) {{ $item->asset->location->currency }} @else {{ $snipeSettings->default_currency }} @endif {!! $errors->first('cost', '') !!}
{!! $errors->first('notes', '') !!}
@stop