@extends('layouts.layout')
@section('content')
<!--data cabe -->

<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-body">

                    <form action="{{route('cabe.show', $cabes->id)}}" method="post">
                        <input name="_method" type="hidden" value="PATCH">
                        {{csrf_field()}}
                        <div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Foto</label>
                            <label class="control-label"> : <td><img src="<?php echo asset("image/$cabes->foto")?>" style="max-height:40px; max-width: 40px; margin-top:10px;" /> </img> </td></label>
                            {!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
                        </div>
                        <div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Nama</label>
                            <label class="control-label"> : <?php echo $cabes->nama;?></label>
                            {!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
                        </div>
                        <div class="form-group{{ $errors->has('family') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Family</label>
                            <label class="control-label"> : <?php echo $cabes->family;?></label>
                            {!! $errors->first('family', '<p class="help-block">:message</p>') !!}
                        </div>
                        <div class="form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Tanggal Tanam</label>
                            <label class="control-label"> : <?php echo $cabes->tanggal_tanam;?></label>
                            {!! $errors->first('tanggal_tanam', '<p class="help-block">:message</p>') !!}
                        </div>
                        <div class="form-group{{ $errors->has('usia') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Usia Tanaman</label>
                            <label class="control-label"> : <?php echo $cabes->usia;?></label>
                            {!! $errors->first('usia', '<p class="help-block">:message</p>') !!}
                        </div>
                        <div class="form-group{{ $errors->has('hama') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Hama</label>
                            <label class="control-label"> : <?php echo $cabes->hama;?></label>
                            {!! $errors->first('hama', '<p class="help-block">:message</p>') !!}
                        </div>
                        <div class="form-group{{ $errors->has('syarat_tumbuh') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Syarat Tumbuh</label>
                            <label class="control-label"> : <?php echo $cabes->syarat_tumbuh;?></label>
                            {!! $errors->first('syarat_tumbuh', '<p class="help-block">:message</p>') !!}
                        </div>
                        <div class="form-group{{ $errors->has('pemeliharaan') ? ' has-error' : '' }}">
                            <label class="col-sm-2 control-label">Pemeliharaan</label>
                            <label class="control-label"> : <?php echo $cabes->pemeliharaan;?></label>
                            {!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
                        </div>

                        <div class="form-group">



                        </div>

                    </form>

                </div>
            </div>
        </div>
    </div>
</div>

<!--end data cabe -->
@endsection