@extends('layouts.app') @section('content')

Preventative {{ $preventative->id }}

{!! Form::open([ 'method'=>'DELETE', 'url' => ['admin/preventative/master', $preventative->id], 'style' => 'display:inline' ]) !!} {!! Form::button(' Delete', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Port', 'onclick'=>'return confirm("Confirm delete?")' ))!!} {!! Form::close() !!}

ID{{ $preventative->id }}
Equipment{{ $preventative->equipment ? $preventative->equipment->name : 'N/A' }}
Unit{{ $preventative->equipment ? (isset($preventative->equipment->unit) ? $preventative->equipment->unit : 'N/A') : 'N/A' }}


Preventative Records
@foreach($data as $item) @endforeach
Check/Change Frequency Trigger Actions
{{ $item->check_change }} {{ $item->frequency }} {{ $item->trigger }} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/preventative', $item->id ], 'style' => 'display:inline' ]) !!} {!! Form::button(' ', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Category', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
@endsection