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

Common Issue - {{$equipment->name}}

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif
Common Issue - {{$equipment->name}}
{!! Form::open(['url' => '/admin/common-remedy-causes/create', 'class' => 'form-vertical','id'=>'myform','files' => true]) !!}
Common Issues Causes Remedy {!! Form::submit('Link', ['class' => 'btn green']) !!}



@foreach($commons as $common) @if($selected_common == $common->id) {{$common->code}} - {{substr($common->issue,0,30)}}
@else {{$common->code}} - {{substr($common->issue,0,30)}}
@endif @endforeach
@foreach($causes as $key => $cause) @if(!empty($selected_causes)) @if(in_array($cause->id, $selected_causes->toArray())) {{substr($cause->causes_title,0,35)}}
@else {{substr($cause->causes_title,0,35)}}
@endif @else {{substr($cause->causes_title,0,35)}}
@endif @endforeach
@foreach($remedy as $key => $rem) @if(!empty($selected_remedy)) @if(in_array($rem->id, $selected_remedy->toArray())) {{substr($rem->remedy_title,0,35)}}
@else {{substr($rem->remedy_title,0,35)}}
@endif @else {{substr($rem->remedy_title,0,35)}}
@endif @endforeach
{!! Form::close() !!}
@endsection