@extends('layouts/default') {{-- Page title --}} @section('title') @if ($assetMaintenance->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 ($assetMaintenance) {{ $assetMaintenance->name }} @endif

@if ($selectedAsset == null) {{ Form::select('asset_id', $asset_list , Input::old('asset_id', $assetMaintenance->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') !!}
{{ Form::select('supplier_id', $supplier_list , Input::old('supplier_id', $assetMaintenance->supplier_id), ['class'=>'select2', 'style'=>'min-width:350px']) }} {!! $errors->first('supplier_id', ' :message') !!}
{{ Form::select('asset_maintenance_type', $assetMaintenanceType , Input::old('asset_maintenance_type', $assetMaintenance->asset_maintenance_type), ['class'=>'select2', 'style'=>'min-width:350px']) }} {!! $errors->first('asset_maintenance_type', ' :message') !!}
{!! $errors->first('title', ' :message') !!}
{!! $errors->first('start_date', ' :message') !!}
{!! $errors->first('completion_date', ' :message') !!}
{{ \App\Models\Setting::first()->default_currency }} {!! $errors->first('cost', ' :message') !!}
{!! $errors->first('notes', ' :message') !!}
@stop