@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

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