lihat.blade.php 4.17 KB
@extends('layouts.layout')
@section('content')
    <!--data kacang -->

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

                        <form action="{{route('kacang.show', $kacangs->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/$kacangs->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 $kacangs->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 $kacangs->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 $kacangs->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 $kacangs->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 $kacangs->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 $kacangs->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 $kacangs->pemeliharaan;?></label>
                                {!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
                            </div>

                            <div class="form-group">



                            </div>

                        </form>

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


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