1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@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