Commit ca3fb0db by PANGERAN\pangeran

ini son, udah banyak perubahan, 1. sebagian udah kubuat pake blade 2.untuk user…

ini son, udah banyak perubahan, 1. sebagian udah kubuat pake blade 2.untuk user udah beda tampilannya, 3.susunan file sudah lebih rapi, 4. udah ada button beli untuk user, dll
parent c8d903ed
Admin
Username : panca
password : panca123
Pengunjung
Username : soni
password : soni123
\ No newline at end of file
......@@ -15,7 +15,7 @@ class AndalimanController extends Controller
public function index()
{
$andalimans = andaliman::all();
return view('MonitoringAndaliman.index', compact('andalimans'));
return view('Admin.MonitoringAndaliman.index', compact('andalimans'));
}
/**
......@@ -25,12 +25,12 @@ class AndalimanController extends Controller
*/
public function create()
{
return view('MonitoringAndaliman.create');
return view('Admin.MonitoringAndaliman.create');
}
public function siram()
{
return view('MonitoringAndaliman.siram');
return view('Admin.MonitoringAndaliman.siram');
}
/**
......@@ -100,7 +100,7 @@ class AndalimanController extends Controller
public function show($id)
{
$andalimans = andaliman::findOrFail($id);
return view('MonitoringAndaliman.lihat', compact('andalimans'));
return view('Admin.andaliman.lihat', compact('andalimans'));
}
/**
......@@ -112,7 +112,7 @@ class AndalimanController extends Controller
public function edit($id)
{
$andalimans = andaliman::findOrFail($id);
return view('MonitoringAndaliman.edit', compact('andalimans'));
return view('Admin.andaliman.edit', compact('andalimans'));
}
......
......@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\jagung;
class JagungController extends Controller
......@@ -18,7 +19,7 @@ class JagungController extends Controller
{
//show data
$jagungs = jagung::all();
return view('HalamanJagung.index',['jagungs' => $jagungs]);
return view('Admin.HalamanJagung.index',['jagungs' => $jagungs]);
}
/**
......@@ -29,7 +30,7 @@ class JagungController extends Controller
public function create()
{
//create new data
return view('HalamanJagung.create');
return view('Admin.HalamanJagung.create');
}
/**
......@@ -74,7 +75,7 @@ class JagungController extends Controller
public function show($id)
{
$jagungs = jagung::findOrFail($id);
return view('HalamanJagung.lihat', compact('jagungs'));
return view('Admin.HalamanJagung.lihat', compact('jagungs'));
}
/**
......@@ -87,7 +88,7 @@ class JagungController extends Controller
{
$jagungs = jagung::findOrFail($id);
// return to the edit views
return view('HalamanJagung.edit',compact('jagungs'));
return view('Admin.HalamanJagung.edit',compact('jagungs'));
}
/**
......
......@@ -15,7 +15,7 @@ class KacangController extends Controller
public function index()
{
$kacangs = kacang::all();
return view('MonitoringKacang.index', compact('kacangs'));
return view('Admin.MonitoringKacang.index', compact('kacangs'));
}
/**
......@@ -25,12 +25,12 @@ class KacangController extends Controller
*/
public function create()
{
return view('MonitoringKacang.create');
return view('Admin.MonitoringKacang.create');
}
public function siram()
{
return view('HalamanMonitoring.siram');
return view('Admin.HalamanMonitoring.siram');
}
/**
......@@ -100,7 +100,7 @@ class KacangController extends Controller
public function show($id)
{
$kacangs = kacang::findOrFail($id);
return view('MonitoringKacang.lihat', compact('kacangs'));
return view('Admin.HalamanMonitoring.lihat', compact('kacangs'));
}
/**
......@@ -112,7 +112,7 @@ class KacangController extends Controller
public function edit($id)
{
$kacangs = kacang::findOrFail($id);
return view('MonitoringKacang.edit', compact('kacangs'));
return view('Admin.HalamanMonitoring.edit', compact('kacangs'));
}
......@@ -140,7 +140,7 @@ class KacangController extends Controller
$request->file('images')->move("image/",$fileName);
$kacangs->images = $fileName;
$kacangs->save();
return redirect()->route('kacang.index')->with('alert-success', 'Data Berhasil Diubah.');
return redirect()->route('HalamanMonitoring.index')->with('alert-success', 'Data Berhasil Diubah.');
}
/**
......@@ -153,6 +153,6 @@ class KacangController extends Controller
{
$kacangs = kacang::findOrFail($id);
$kacangs->delete();
return redirect()->route('kacang.index')->with('alert-success', 'Data Berhasil Dihapus.');
return redirect()->route('HalamanMonitoring.index')->with('alert-success', 'Data Berhasil Dihapus.');
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Input;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\tomat;
......@@ -18,7 +19,7 @@ class TomatController extends Controller
{
//show data
$tomats = tomat::all();
return view('HalamanTomat.index',['tomats' => $tomats]);
return view('Admin.HalamanTomat.index',['tomats' => $tomats]);
}
/**
......@@ -29,7 +30,7 @@ class TomatController extends Controller
public function create()
{
//create new data
return view('HalamanTomat.create');
return view('Admin.HalamanTomat.create');
}
/**
......@@ -65,7 +66,6 @@ class TomatController extends Controller
$fileName = $file->getClientOriginalName();
$request->file('images')->move("image/",$fileName);
$tomats->images = $fileName;
// save all data
$tomats->save();
return redirect()->route('tomat.index')->with('alert-success', 'Data Berhasil Disimpan.');
......@@ -79,8 +79,7 @@ class TomatController extends Controller
*/
public function show($id)
{
$tomats = tomat::findOrFail($id);
return view('HalamanTomat.lihat', compact('tomats'));
//
}
/**
......@@ -91,9 +90,9 @@ class TomatController extends Controller
*/
public function edit($id)
{
$tomats = tomat::findOrFail($id);
$tomat = tomat::findOrFail($id);
// return to the edit views
return view('HalamanTomat.edit',compact('tomats'));
return view('Admin.HalamanTomat.edit',compact('tomat'));
}
/**
......
......@@ -14,7 +14,7 @@ class cabecontroller extends Controller
public function index()
{
$cabes = cabe::all();
return view('MonitoringCabe.monitoringcabe', compact('cabes'));
return view('Admin.MonitoringCabe.monitoringcabe', compact('cabes'));
}
/**
......@@ -24,7 +24,7 @@ class cabecontroller extends Controller
*/
public function create()
{
return view('MonitoringCabe.create');
return view('Admin.MonitoringCabe.create');
}
......@@ -51,6 +51,32 @@ class cabecontroller extends Controller
$fileName = $file->getClientOriginalName();
$request->file('foto')->move("image/",$fileName);
$cabes->foto = $fileName;
//
// $foto = Input::file('image');
// var_dump($foto);
// Input::file('image')->getClientOriginalExtension();
// $filename = date('Y-m-d-H:i:s')."-".$foto->getClientOriginalName();
// Image::make($foto->getRealPath())->resize(468, 249)->save('public/image/'. $filename);
// $cabes->foto = 'image/ '. $filename;
//
// $filename = $foto[0]->getClientOriginalName();
// print_($filename);
// if ($request->hasFile('files_field')) {
// $file= $request->Input('files_field');
//
// $destination_path='image/';
//
// $Orname = $file->getClientOriginalName();
//
// $filename= str_random(6).'_'.$Orname;
//
// $file->move($destination_path,$filename);
//
// $cabes->foto = $destination_path.$filename;
// }
$cabes->save();
return redirect()->route('cabe.index')->with('alert-success', 'Data Berhasil Disimpan.');
}
......@@ -64,7 +90,7 @@ class cabecontroller extends Controller
public function show($id)
{
$cabes = cabe::findOrFail($id);
return view('MonitoringCabe.lihat', compact('cabes'));
return view('Admin.MonitoringCabe.lihat', compact('cabes'));
}
/**
......@@ -76,7 +102,7 @@ class cabecontroller extends Controller
public function edit($id)
{
$cabes = cabe::findOrFail($id);
return view('MonitoringCabe.edit', compact('cabes'));
return view('Admin.MonitoringCabe.edit', compact('cabes'));
}
......
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
class fileuploadcontroller extends Controller
{
/**
* Create view file
*
* @return void
*/
public function imageUpload()
{
return view('UploadFile.uploadfile');
}
/**
* Manage Post Request
*
* @return void
*/
public function imageUploadPost(Request $request)
{
$this->validate($request, [
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
]);
$imageName = time().'.'.$request->image->getClientOriginalExtension();
$request->image->move(public_path('images'), $imageName);
return back()
->with('success','Image Uploaded successfully.')
->with('path',$imageName);
}
}
\ No newline at end of file
......@@ -15,6 +15,6 @@ class halamanadmincontroller extends Controller
*/
public function index()
{
return view('HalamanAdmin.index');
return view('Admin.HalamanAdmin.index');
}
}
......@@ -8,6 +8,6 @@ class halamanmonitoringcontroller extends Controller
{
public function index()
{
return view('HalamanMonitoring.index');
return view('Admin.HalamanMonitoring.index');
}
}
......@@ -27,9 +27,12 @@ class HomeController extends Controller
public function index()
{
if(Auth::user()->jabatan== 'Admin'){
return view('HalamanAdmin.index');
return view('Admin.HalamanAdmin.index');
}
else if(Auth::user()->jabatan== 'Petugas'){
return view('HalamanPetugas.HalamanAdmin.index');
}
else
return view('HalamanUser.index');
return view('Costumer.HalamanUser.index');
}
}
......@@ -15,7 +15,7 @@ class kentangcontroller extends Controller
public function index()
{
$kentangs = kentang::all();
return view('MonitoringKentang.monitoringkentang', compact('kentangs'));
return view('Admin.MonitoringKentang.monitoringkentang', compact('kentangs'));
}
/**
......@@ -25,12 +25,12 @@ class kentangcontroller extends Controller
*/
public function create()
{
return view('MonitoringKentang.create');
return view('Admin.MonitoringKentang.create');
}
public function siram()
{
return view('MonitoringKentang.siram');
return view('Admin.MonitoringKentang.siram');
}
/**
......@@ -100,7 +100,7 @@ class kentangcontroller extends Controller
public function show($id)
{
$kentangs = kentang::findOrFail($id);
return view('MonitoringKentang.lihat', compact('kentangs'));
return view('Admin.MonitoringKentang.lihat', compact('kentangs'));
}
/**
......@@ -112,7 +112,7 @@ class kentangcontroller extends Controller
public function edit($id)
{
$kentangs = kentang::findOrFail($id);
return view('MonitoringKentang.edit', compact('kentangs'));
return view('Admin.MonitoringKentang.edit', compact('kentangs'));
}
......@@ -140,7 +140,7 @@ class kentangcontroller extends Controller
$request->file('images')->move("image/",$fileName);
$kentangs->images = $fileName;
$kentangs->save();
return redirect()->route('kentang.index')->with('alert-success', 'Data Berhasil Diubah.');
return redirect()->route('HalamanMonitoring.index')->with('alert-success', 'Data Berhasil Diubah.');
}
/**
......@@ -153,6 +153,6 @@ class kentangcontroller extends Controller
{
$kentangs = kentang::findOrFail($id);
$kentangs->delete();
return redirect()->route('kentang.index')->with('alert-success', 'Data Berhasil Dihapus.');
return redirect()->route('HalamanMonitoring.index')->with('alert-success', 'Data Berhasil Dihapus.');
}
}
......@@ -15,9 +15,16 @@ class sayurcontroller extends Controller
public function index()
{
$sayurs = sayur::all();
return view('HalamanMonitoring.monitoringsayur', compact('sayurs'));
return view('Admin.HalamanMonitoring.monitoringsayur', compact('sayurs'));
}
public function costumer()
{
$sayurs = sayur::all();
return view('Costumer.HalamanMonitoring.monitoringsayur', compact('sayurs'));
}
/**
* Show the form for creating a new resource.
*
......@@ -25,12 +32,12 @@ class sayurcontroller extends Controller
*/
public function create()
{
return view('HalamanMonitoring.create');
return view('Admin.HalamanMonitoring.create');
}
public function siram()
{
return view('HalamanMonitoring.siram');
return view('Admin.HalamanMonitoring.siram');
}
/**
......@@ -51,6 +58,7 @@ class sayurcontroller extends Controller
$sayurs->hama = $request->hama;
$sayurs->syarat_tumbuh = $request->syarat_tumbuh;
$sayurs->pemeliharaan = $request->pemeliharaan;
$sayurs->Harga = $request->Harga;
$file = $request->file('foto');
$fileName = $file->getClientOriginalName();
......@@ -100,9 +108,11 @@ class sayurcontroller extends Controller
public function show($id)
{
$sayurs = sayur::findOrFail($id);
return view('HalamanMonitoring.lihat', compact('sayurs'));
return view('Admin.HalamanMonitoring.lihat', compact('sayurs'));
}
/**
* Show the form for editing the specified resource.
*
......@@ -112,14 +122,22 @@ class sayurcontroller extends Controller
public function edit($id)
{
$sayurs = sayur::findOrFail($id);
return view('HalamanMonitoring.edit', compact('sayurs'));
return view('Admin.HalamanMonitoring.edit', compact('sayurs'));
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(UpdateRequest $request, $id)
{
$sayurs = sayur::findOrFail($id);
$sayurs->foto = $request->foto;
$sayurs->nama = $request->nama;
$sayurs->family = $request->family;
$sayurs->tanggal_tanam = $request->tanggal_tanam;
......@@ -127,14 +145,10 @@ class sayurcontroller extends Controller
$sayurs->hama = $request->hama;
$sayurs->syarat_tumbuh = $request->syarat_tumbuh;
$sayurs->pemeliharaan = $request->pemeliharaan;
$sayurs->Harga = $request->Harga;
$file = $request->file('images');
$fileName = $file->getClientOriginalName();
$request->file('images')->move("image/",$fileName);
$sayurs->images = $fileName;
$sayurs->save();
return redirect()->route('HalamanMonitoring.index')->with('alert-success', 'Data Berhasil Diubah.');
}
/**
......
......@@ -7,14 +7,14 @@ use App\ubi;
use App\Http\Requests;
use App\Http\Requests\ubi\StoreRequest;
use App\Http\Requests\ubi\UpdateRequest;
use Illuminate\Support\Facades\Input;
use Image;
class ubicontroller extends Controller
{
public function index()
{
$ubis = ubi::all();
return view('MonitoringUbi.monitoringubi', compact('ubis'));
return view('Admin.MonitoringUbi.monitoringubi', compact('ubis'));
}
/**
......@@ -24,12 +24,12 @@ class ubicontroller extends Controller
*/
public function create()
{
return view('MonitoringUbi.create');
return view('Admin.MonitoringUbi.create');
}
public function siram()
{
return view('MonitoringUbi.siram');
return view('Admin.MonitoringUbi.siram');
}
/**
......@@ -67,8 +67,8 @@ class ubicontroller extends Controller
*/
public function show($id)
{
$ubis = ubi::findOrFail($id);
return view('MonitoringUbi.lihat', compact('ubis'));
$ubis = ubi::firstOrFail($id);
return view('Admin.MonitoringUbi.lihat', compact('ubis'));
}
/**
......@@ -80,7 +80,7 @@ class ubicontroller extends Controller
public function edit($id)
{
$ubis = ubi::findOrFail($id);
return view('MonitoringUbi.edit', compact('ubis'));
return view('Admin.MonitoringUbi.edit', compact('ubis'));
}
......@@ -104,7 +104,7 @@ class ubicontroller extends Controller
$ubis->syarat_tumbuh = $request->syarat_tumbuh;
$ubis->pemeliharaan = $request->pemeliharaan;
$ubis->save();
return redirect()->route('ubi.index')->with('alert-success', 'Data Berhasil Diubah.');
return redirect()->route('cabe.index')->with('alert-success', 'Data Berhasil Diubah.');
}
/**
......@@ -117,6 +117,6 @@ class ubicontroller extends Controller
{
$ubis = ubi::findOrFail($id);
$ubis->delete();
return redirect()->route('ubi.index')->with('alert-success', 'Data Berhasil Dihapus.');
return redirect()->route('cabe.index')->with('alert-success', 'Data Berhasil Dihapus.');
}
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class beli extends Model
{
//
}
......@@ -6,5 +6,5 @@ use Illuminate\Database\Eloquent\Model;
class ubi extends Model
{
//
protected $table = 'ubis';
}
......@@ -23,6 +23,7 @@ class CreateSayursTable extends Migration
$table->string('hama');
$table->string('syarat_tumbuh');
$table->string('pemeliharaan');
$table->string('Harga');
$table->timestamps();
});
}
......
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAndalimansTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('andalimans', function (Blueprint $table) {
$table->increments('id');
$table->string('images');
$table->string('nama');
$table->string('family');
$table->date('tanggal_tanam');
$table->string('usia');
$table->string('hama');
$table->string('syarat_tumbuh');
$table->string('pemeliharaan');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('andalimans');
}
}
......@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePengunjungTable extends Migration
class CreateBelisTable extends Migration
{
/**
* Run the migrations.
......@@ -13,15 +13,16 @@ class CreatePengunjungTable extends Migration
*/
public function up()
{
Schema::create('pengunjung', function (Blueprint $table) {
$table->increments('id');
$table->string('nama');
$table->string('tanggal_lahir');
$table->string('jenis_kelamin');
$table->string('alamat');
$table->string('asal_kota');
$table->timestamps();
});
Schema::create('belis', function (Blueprint $table) {
$table->increments('id');
$table->string('username');
$table->string('id_menu');
$table->string('nama_menu');
$table->date('harga');
$table->string('jumlah_pesanan');
$table->string('total_harga');
$table->timestamps();
});
}
/**
......@@ -31,6 +32,6 @@ class CreatePengunjungTable extends Migration
*/
public function down()
{
Schema::drop('pengunjung');
Schema::dropIfExists('belis');
}
}
public/image/a3.jpg

143 KB

public/image/ecg fig5.jpg

32.5 KB

public/image/wifimodule.PNG

154 KB

......@@ -44,7 +44,7 @@
<header class="main-header">
<!-- Logo -->
<a href="{{URL::to('/home')}}" class="logo">
<a href="index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>A</b>LT</span>
<!-- logo for regular state and mobile devices -->
......@@ -338,24 +338,17 @@
<li class="header">MAIN NAVIGATION</li>
<li class="active treeview">
<a href="#">
<i class="fa fa-dashboard"></i> <span>Tanaman</span>
<i class="fa fa-dashboard"></i> <span>User</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li><a href="{{URL::to('/cabe')}}"><i class="fa fa-circle-o"></i>Sayur</a></li>
<li><a href="{{URL::to('/cabe')}}"><i class="fa fa-circle-o"></i>Cabai</a></li>
<li><a href="{{URL::to('/ubi')}}"><i class="fa fa-circle-o"></i>Ubi</a></li>
<li><a href="{{URL::to('/tomat')}}"><i class="fa fa-circle-o"></i>Tomat</a></li>
<li><a href="{{URL::to('/andaliman')}}"><i class="fa fa-circle-o"></i>Andaliman</a></li>
<li><a href="{{URL::to('/jagung')}}"><i class="fa fa-circle-o"></i>Jagung</a></li>
<li><a href="{{URL::to('/kentang')}}"><i class="fa fa-circle-o"></i>Kentang</a></li>
<li><a href="{{URL::to('/kacang')}}"><i class="fa fa-circle-o"></i>Kacang</a></li>
<li class="active"><a href="index.html"><i class="fa fa-circle-o"></i>Soni Silalahi</a></li>
<li><a href="index2.html"><i class="fa fa-circle-o"></i> Pancajuntak Siman</a></li>
</ul>
</li>
<li><a href="{{URL::to('/pengunjung')}}"><i class="fa fa-user-circle"></i> <span>Pengunjung</span></a></li>
<li><a href="documentation/index.html"><i class="fa fa-user-circle"></i> <span>Tanaman</span></a></li>
<li><a href="documentation/index.html"><i class="fa fa-eye"></i> <span>Monitoring Kebun</span></a></li>
......@@ -503,7 +496,7 @@
<!-- /.box -->
<!-- quick email widget -->
</section>
</section>
<!-- /.Left col -->
<!-- right col (We are only adding the ID to make the widgets sortable)-->
<section class="col-lg-5 connectedSortable">
......
@extends('master')
@section('content')
<div class="row">
<div class="col-md-12">
<h1>Edit Data</h1>
</div>
</div>
<div class="row">
<form class="" action="{{route('jagung.update',$jagungs->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<div class="row">
<div class="col-md-12">
<input type="file" id="inputimages" name="images">
</div>
</div>
<div class="form-group{{ ($errors->has('nama')) ? $errors->first('nama') : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->nama}}">
{!! $errors->first('nama','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('family')) ? $errors->first('family') : '' }}">
<input type="text" name="family" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->family}}">
{!! $errors->first('family','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('tanggal_tanam')) ? $errors->first('tanggal_tanam') : '' }}">
<input type="date" name="tanggal_tanam" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('usia')) ? $errors->first('usia') : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->usia}}">
{!! $errors->first('usia','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('hama')) ? $errors->first('hama') : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->hama}}">
{!! $errors->first('hama','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('syarat_tumbuh')) ? $errors->first('syarat_tumbuh') : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('pemeliharaan')) ? $errors->first('pemeliharaan') : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->pemeliharaan}}">
{!! $errors->first('pemeliharaan','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="save">
</div>
</form>
</div>
@stop
\ No newline at end of file
......@@ -438,7 +438,7 @@
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<label class="col-sm-2 control-label">Foto</label>
<label class="control-label"> <img src="<?php echo asset("image/$jagungs->images") ?>" style="max-height:40px; max-width:40px; margin-top:10px; "> </img> </label>
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
{!! $errors->first('family', '<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>
......
......@@ -502,16 +502,16 @@
<input type="range" min="20" max="170" onmouseup="servo1(this.value)" />
<script>
$.ajaxSetup({timeout:1000});
function servo1(angle)
{
TextVar = form.inputbox.value;
ArduinoVar = "http://" + TextVar + ":80";
$.get( ArduinoVar, { "sr1": angle }) ;
{Connection: close};
}
</script>
<script>
$.ajaxSetup({timeout:1000});
function servo1(angle)
{
TextVar = form.inputbox.value;
ArduinoVar = "http://" + TextVar + ":80";
$.get( ArduinoVar, { "sr1": angle }) ;
{Connection: close};
}
</script>
</div>
<!-- /.box-body -->
<div class="box-footer">
......
......@@ -44,11 +44,11 @@
<header class="main-header">
<!-- Logo -->
<a href="{{URL::to('/home')}}" class="logo">
<a href="index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>A</b>LT</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SWISS</b></span></a>
<span class="logo-lg"><b>MONITORING</b></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
......@@ -325,23 +325,17 @@
<li class="header">MAIN NAVIGATION</li>
<li class="active treeview">
<a href="#">
<i class="fa fa-dashboard"></i> <span>Tanaman</span>
<i class="fa fa-dashboard"></i> <span>User</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li><a href="{{URL::to('/HalamanMonitoring')}}"><i class="fa fa-circle-o"></i>Sayur</a></li>
<li><a href="{{URL::to('/cabe')}}"><i class="fa fa-circle-o"></i>Cabai</a></li>
<li><a href="{{URL::to('/ubi')}}"><i class="fa fa-circle-o"></i>Ubi</a></li>
<li><a href="{{URL::to('/tomat')}}"><i class="fa fa-circle-o"></i>Tomat</a></li>
<li><a href="{{URL::to('/andaliman')}}"><i class="fa fa-circle-o"></i>Andaliman</a></li>
<li><a href="{{URL::to('/jagung')}}"><i class="fa fa-circle-o"></i>Jagung</a></li>
<li><a href="{{URL::to('/kentang')}}"><i class="fa fa-circle-o"></i>Kentang</a></li>
<li><a href="{{URL::to('/kacang')}}"><i class="fa fa-circle-o"></i>Kacang</a></li>
<li class="active"><a href="index.html"><i class="fa fa-circle-o"></i>Soni Silalahi</a></li>
<li><a href="index2.html"><i class="fa fa-circle-o"></i> Panca Simanjuntak</a></li>
</ul>
</li>
<li><a href="{{URL::to("/pengunjung")}}"><i class="fa fa-user-circle"></i> <span>Pengunjung</span></a></li>
<li><a href="documentation/index.html"><i class="fa fa-user-circle"></i> <span>Tanaman</span></a></li>
<li><a href="documentation/index.html"><i class="fa fa-eye"></i> <span>Monitoring Kebun</span></a></li>
<li><a href="documentation/index.html"><i class="fa fa-hourglass-end"></i> <span>Penyiraman</span></a></li>
......@@ -489,7 +483,7 @@
<div class="icon">
<i class="ion ion-pie-graph"></i>
</div>
<a href="{{URL::to('/kacang')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="{{URL::to('/kentang')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
......
@extends('layouts.layout')
@section('content')
<!--data sayur -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
</div>
@endif
<a href="{{route('HalamanMonitoring.create')}}" class="btn btn-info pull-right">Tambah Data</a><br><br>
<table class="table table-striped">
<tr>
<th>No</th>
<th>Foto</th>
<th>Nama</th>
<th>Family</th>
<th>Tanggal Tanam</th>
<th>Usia Tanaman</th>
<th>Hama</th>
<th>Action</th>
</tr>
<?php $no=1; ?>
@foreach($sayurs as $sayur)
<tr>
<td>{{$no++}}</td>
<td><img src="<?php echo asset("image/$sayur->foto")?>" style="max-height:40px; max-width: 40px; margin-top:10px;" /> </img> </td>
<td>{{$sayur->nama}}</td>
<td>{{$sayur->family}}</td>
<td>{{$sayur->tanggal_tanam}}</td>
<td>{{$sayur->usia}}</td>
<td>{{$sayur->hama}}</td>
<td>
<form method="POST" action="{{ route('HalamanMonitoring.destroy', $sayur->id) }}" accept-charset="UTF-8">
<input name="_method" type="hidden" value="DELETE">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<a href="{{route('HalamanMonitoring.edit', $sayur->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('HalamanMonitoring.show', $sayur->id)}}" class="btn btn-warning">Lihat</a>
<input type="submit" class="btn btn-danger" onclick="return confirm('Anda yakin akan menghapus data ?');" value="Delete">
</form>
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
@extends('master')
@section('content')
<div class="row">
<div class="col-md-12">
<h1>Edit Data</h1>
</div>
</div>
<div class="row">
<form class="" action="{{route('tomat.update',$tomat->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<input type="file" name="images" class="form-control" placeholder="Upload Foto" value="{{$tomats->images}}">
{!! $errors->first('images', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$tomats->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('family') ? ' has-error' : '' }}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$tomats->family}}">
{!! $errors->first('family', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$tomats->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('usia') ? ' has-error' : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$tomats->usia}}">
{!! $errors->first('usia', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('hama') ? ' has-error' : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$tomats->hama}}">
{!! $errors->first('hama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('syarat_tumbuh') ? ' has-error' : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$tomats->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pemeliharaan') ? ' has-error' : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$tomats->pemeliharaan}}">
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="save">
</div>
</form>
</div>
@stop
\ No newline at end of file
......@@ -460,7 +460,6 @@
<input type="hidden" name="_method" value="delete">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<a href="{{route('tomat.edit',$tomat->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('tomat.show', $tomat->id)}}" class="btn btn-warning">Lihat</a>
<input type="submit" class="btn btn-danger" onclick="return confirm('Are you sure to delete this data');" name="name" value="delete">
</form>
</td>
......
......@@ -438,8 +438,7 @@
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<input type="file" id="inputimages" name="foto">
<input type="text" name="foto" class="form-control" placeholder="Upload Foto" value="{{$cabes->foto}}">
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
......
@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
\ No newline at end of file
@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">
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
</div>
@endif
<a href="{{route('cabe.create')}}" class="btn btn-info pull-right">Tambah Data</a><br><br>
<table class="table table-striped">
<tr>
<th>No</th>
<th>Foto</th>
<th>Nama</th>
<th>Family</th>
<th>Tanggal Tanam</th>
<th>Usia Tanaman</th>
<th>Hama</th>
<th>Action</th>
</tr>
<?php $no=1; ?>
@foreach($cabes as $cabe)
<tr>
<td>{{$no++}}</td>
<td><img src="<?php echo asset("image/$cabe->foto")?>" style="max-height:40px; max-width: 40px; margin-top:10px;" /> </img> </td>
<td>{{$cabe->nama}}</td>
<td>{{$cabe->family}}</td>
<td>{{$cabe->tanggal_tanam}}</td>
<td>{{$cabe->usia}}</td>
<td>{{$cabe->hama}}</td>
<td>
<form method="POST" action="{{ route('cabe.destroy', $cabe->id) }}" accept-charset="UTF-8">
<input name="_method" type="hidden" value="DELETE">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<a href="{{route('cabe.edit', $cabe->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('cabe.show', $cabe->id)}}" class="btn btn-warning">Lihat</a>
<input type="submit" class="btn btn-danger" onclick="return confirm('Anda yakin akan menghapus data ?');" value="Delete">
</form>
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
</div>
</div>
<!--end data cabe -->
@endsection
\ No newline at end of file
......@@ -459,11 +459,11 @@
<td>{{$kacang->hama}}</td>
<td>
<form method="POST" action="{{ route('kacang.destroy', $kacang->id) }}" accept-charset="UTF-8">
<form method="POST" action="{{ route('HalamanMonitoring.destroy', $kacang->id) }}" accept-charset="UTF-8">
<input name="_method" type="hidden" value="DELETE">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<a href="{{route('kacang.edit', $kacang->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('kacang.show', $kacang->id)}}" class="btn btn-warning">Lihat</a>
<a href="{{route('HalamanMonitoring.edit', $kacang->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('HalamanMonitoring.show', $kacang->id)}}" class="btn btn-warning">Lihat</a>
<input type="submit" class="btn btn-danger" onclick="return confirm('Anda yakin akan menghapus data ?');" value="Delete">
</form>
</td>
......
......@@ -438,8 +438,7 @@
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<input type="file" id="inputimages" name="foto">
<input type="text" name="foto" class="form-control" placeholder="Upload Foto" value="{{$ubis->foto}}">
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
......
......@@ -399,7 +399,7 @@
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Layout</a></li>
<li class="active">Ubi</li>
<li class="active">ubi mayur</li>
</ol>
</section>
......@@ -437,7 +437,7 @@
{{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/$ubis->foto")?>" style="max-height:40px; max-width: 40px; margin-top:10px;" /> </img> </td></label>
<label class="control-label"> : <?php echo $ubis->foto;?></label>
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
......
......@@ -459,11 +459,11 @@
<td>{{$kentang->hama}}</td>
<td>
<form method="POST" action="{{ route('kentang.destroy', $kentang->id) }}" accept-charset="UTF-8">
<form method="POST" action="{{ route('HalamanMonitoring.destroy', $kentang->id) }}" accept-charset="UTF-8">
<input name="_method" type="hidden" value="DELETE">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<a href="{{route('kentang.edit', $kentang->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('kentang.show', $kentang->id)}}" class="btn btn-warning">Lihat</a>
<a href="{{route('HalamanMonitoring.edit', $kentang->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('HalamanMonitoring.show', $kentang->id)}}" class="btn btn-warning">Lihat</a>
<input type="submit" class="btn btn-danger" onclick="return confirm('Anda yakin akan menghapus data ?');" value="Delete">
</form>
</td>
......
......@@ -427,47 +427,46 @@
</div>
<div class="box-body">
<!--data tomat -->
<!--data ubi -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<form action="{{route('tomat.update', $tomats->id)}}" method="post">
<form action="{{route('ubi.update', $ubis->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<input type="file" id="inputimages" name="foto">
<input type="text" name="foto" class="form-control" placeholder="Upload Foto" value="{{$ubis->foto}}">
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$tomats->nama}}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$ubis->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('family') ? ' has-error' : '' }}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$tomats->family}}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$ubis->family}}">
{!! $errors->first('family', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$tomats->tanggal_tanam}}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$ubis->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('usia') ? ' has-error' : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$tomats->usia}}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$ubis->usia}}">
{!! $errors->first('usia', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('hama') ? ' has-error' : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$tomats->hama}}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$ubis->hama}}">
{!! $errors->first('hama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('syarat_tumbuh') ? ' has-error' : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$tomats->syarat_tumbuh}}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$ubis->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pemeliharaan') ? ' has-error' : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$tomats->pemeliharaan}}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$ubis->pemeliharaan}}">
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
......@@ -481,7 +480,7 @@
</div>
</div>
</div>
<!--end data tomat -->
<!--end data ubi -->
</div>
<!-- /.box-body -->
<div class="box-footer">
......
......@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SWISS | andaliman mayur</title>
<title>SWISS | ubi mayur</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.6 -->
......@@ -34,7 +34,7 @@
<!-- Logo -->
<a href="../../index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>andaliman</b></span>
<span class="logo-mini"><b>ubi</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SWISS</b></span>
</a>
......@@ -394,12 +394,12 @@
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
andaliman Mayur
ubi Mayur
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Layout</a></li>
<li class="active">andaliman mayur</li>
<li class="active">ubi mayur</li>
</ol>
</section>
......@@ -424,7 +424,7 @@
</div>
<div class="box-body">
<!--data andaliman -->
<!--data ubi -->
<div class="container">
<div class="row">
......@@ -432,47 +432,47 @@
<div class="panel panel-default">
<div class="panel-body">
<form action="{{route('andaliman.show', $andalimans->id)}}" method="post">
<form action="{{route('ubi.show', $ubis->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/$andalimans->foto")?>" style="max-height:40px; max-width: 40px; margin-top:10px;" /> </img> </td></label>
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
<label class="control-label"> <img src="<?php echo asset("image/$ubis->foto") ?>" style="max-height:40px; max-width:40px; margin-top:10px; "> </img> </label>
{!! $errors->first('family', '<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 $andalimans->nama;?></label>
<label class="control-label"> : <?php echo $ubis->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 $andalimans->family;?></label>
<label class="control-label"> : <?php echo $ubis->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 $andalimans->tanggal_tanam;?></label>
<label class="control-label"> : <?php echo $ubis->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 $andalimans->usia;?></label>
<label class="control-label"> : <?php echo $ubis->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 $andalimans->hama;?></label>
<label class="control-label"> : <?php echo $ubis->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 $andalimans->syarat_tumbuh;?></label>
<label class="control-label"> : <?php echo $ubis->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 $andalimans->pemeliharaan;?></label>
<label class="control-label"> : <?php echo $ubis->pemeliharaan;?></label>
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
......@@ -490,7 +490,7 @@
</div>
</div>
<!--end data andaliman -->
<!--end data ubi -->
<div style="margin: 0; width:500px; height:80px;">
<FORM NAME="form" ACTION="" METHOD="GET">
......@@ -498,7 +498,7 @@
<INPUT TYPE="text" NAME="inputbox" VALUE="192.168.43.75">
</FORM>
</div>
<h3> Scroll untuk menyiram andaliman</h3>
<h3> Scroll untuk menyiram ubi</h3>
<input type="range" min="20" max="170" onmouseup="servo1(this.value)" />
......
......@@ -459,11 +459,11 @@
<td>{{$ubi->hama}}</td>
<td>
<form method="POST" action="{{ route('ubi.destroy', $ubi->id) }}" accept-charset="UTF-8">
<form method="POST" action="{{ route('HalamanMonitoring.destroy', $ubi->id) }}" accept-charset="UTF-8">
<input name="_method" type="hidden" value="DELETE">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<a href="{{route('ubi.edit', $ubi->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('ubi.show', $ubi->id)}}" class="btn btn-warning">Lihat</a>
<a href="{{route('HalamanMonitoring.edit', $ubi->id)}}" class="btn btn-primary">Edit</a>
<a href="{{route('HalamanMonitoring.show', $ubi->id)}}" class="btn btn-warning">Lihat</a>
<input type="submit" class="btn btn-danger" onclick="return confirm('Anda yakin akan menghapus data ?');" value="Delete">
</form>
</td>
......
@extends('master')
@section('content')
<div class="row">
<div class="col-md-12">
<h1>Edit Data</h1>
</div>
</div>
<div class="row">
<form class="" action="{{route('jagung.update',$jagungs->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<div class="row">
<div class="col-md-12">
<input type="file" id="inputimages" name="images">
</div>
</div>
<div class="form-group{{ ($errors->has('nama')) ? $errors->first('nama') : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->nama}}">
{!! $errors->first('nama','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('family')) ? $errors->first('family') : '' }}">
<input type="text" name="family" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->family}}">
{!! $errors->first('family','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('tanggal_tanam')) ? $errors->first('tanggal_tanam') : '' }}">
<input type="date" name="tanggal_tanam" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('usia')) ? $errors->first('usia') : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->usia}}">
{!! $errors->first('usia','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('hama')) ? $errors->first('hama') : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->hama}}">
{!! $errors->first('hama','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('syarat_tumbuh')) ? $errors->first('syarat_tumbuh') : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ ($errors->has('pemeliharaan')) ? $errors->first('pemeliharaan') : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Enter Title Here" value="{{$jagungs->pemeliharaan}}">
{!! $errors->first('pemeliharaan','<p class="help-block">:message</p>') !!}
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="save">
</div>
</form>
</div>
@stop
\ No newline at end of file
<!DOCTYPE html>
<html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SWISS | kacang mayur</title>
<title>SWISS | sayur mayur</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.6 -->
......@@ -34,7 +34,7 @@
<!-- Logo -->
<a href="../../index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>kacang</b></span>
<span class="logo-mini"><b>Sayur</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SWISS</b></span>
</a>
......@@ -394,12 +394,12 @@
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
kacang Mayur
Sayur Mayur
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Layout</a></li>
<li class="active">kacang mayur</li>
<li class="active">sayur mayur</li>
</ol>
</section>
......@@ -424,7 +424,7 @@
</div>
<div class="box-body">
<!--data kacang -->
<!--data sayur -->
<div class="container">
<div class="row">
......@@ -432,47 +432,47 @@
<div class="panel panel-default">
<div class="panel-body">
<form action="{{route('kacang.show', $kacangs->id)}}" method="post">
<form action="{{route('HalamanMonitoring.show', $sayurs->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>') !!}
<label class="control-label"> <img src="<?php echo asset("image/$sayurs->foto") ?>" style="max-height:40px; max-width:40px; margin-top:10px; "> </img> </label>
{!! $errors->first('family', '<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>
<label class="control-label"> : <?php echo $sayurs->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>
<label class="control-label"> : <?php echo $sayurs->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>
<label class="control-label"> : <?php echo $sayurs->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>
<label class="control-label"> : <?php echo $sayurs->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>
<label class="control-label"> : <?php echo $sayurs->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>
<label class="control-label"> : <?php echo $sayurs->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>
<label class="control-label"> : <?php echo $sayurs->pemeliharaan;?></label>
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
......@@ -490,7 +490,7 @@
</div>
</div>
<!--end data kacang -->
<!--end data sayur -->
<div style="margin: 0; width:500px; height:80px;">
<FORM NAME="form" ACTION="" METHOD="GET">
......@@ -498,7 +498,7 @@
<INPUT TYPE="text" NAME="inputbox" VALUE="192.168.43.75">
</FORM>
</div>
<h3> Scroll untuk menyiram kacang</h3>
<h3> Scroll untuk menyiram sayur</h3>
<input type="range" min="20" max="170" onmouseup="servo1(this.value)" />
......@@ -508,7 +508,7 @@
{
TextVar = form.inputbox.value;
ArduinoVar = "http://" + TextVar + ":80";
$.get( ArduinoVar, { "sr1": angle }) ;
$.get( ArduinoVar, { "sr1": angle }) ;
{Connection: close};
}
</script>
......
......@@ -437,13 +437,10 @@
<form action="{{route('HalamanMonitoring.update', $sayurs->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<input type="file" id="inputimages" name="foto">
<input type="text" name="foto" class="form-control" placeholder="Upload Foto" value="{{$sayurs->foto}}">
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$sayurs->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
......
@extends('master')
@section('content')
<div class="row">
<div class="col-md-12">
<h1>Edit Data</h1>
</div>
</div>
<div class="row">
<form class="" action="{{route('tomat.update',$tomat->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<input type="file" name="images" class="form-control" placeholder="Upload Foto" value="{{$tomats->images}}">
{!! $errors->first('images', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$tomats->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('family') ? ' has-error' : '' }}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$tomats->family}}">
{!! $errors->first('family', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$tomats->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('usia') ? ' has-error' : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$tomats->usia}}">
{!! $errors->first('usia', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('hama') ? ' has-error' : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$tomats->hama}}">
{!! $errors->first('hama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('syarat_tumbuh') ? ' has-error' : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$tomats->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pemeliharaan') ? ' has-error' : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$tomats->pemeliharaan}}">
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="save">
</div>
</form>
</div>
@stop
\ No newline at end of file
......@@ -427,47 +427,46 @@
</div>
<div class="box-body">
<!--data andaliman -->
<!--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('andaliman.update', $andalimans->id)}}" method="post">
<form action="{{route('cabe.update', $cabes->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<input type="file" id="inputimages" name="foto">
<input type="text" name="foto" class="form-control" placeholder="Upload Foto" value="{{$cabes->foto}}">
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$andalimans->nama}}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$cabes->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('family') ? ' has-error' : '' }}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$andalimans->family}}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$cabes->family}}">
{!! $errors->first('family', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$andalimans->tanggal_tanam}}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$cabes->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('usia') ? ' has-error' : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$andalimans->usia}}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$cabes->usia}}">
{!! $errors->first('usia', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('hama') ? ' has-error' : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$andalimans->hama}}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$cabes->hama}}">
{!! $errors->first('hama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('syarat_tumbuh') ? ' has-error' : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$andalimans->syarat_tumbuh}}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$cabes->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pemeliharaan') ? ' has-error' : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$andalimans->pemeliharaan}}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$cabes->pemeliharaan}}">
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
......@@ -481,7 +480,7 @@
</div>
</div>
</div>
<!--end data andaliman -->
<!--end data cabe -->
</div>
<!-- /.box-body -->
<div class="box-footer">
......
......@@ -427,47 +427,46 @@
</div>
<div class="box-body">
<!--data kacang -->
<!--data ubi -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<form action="{{route('kacang.update', $kacangs->id)}}" method="post">
<form action="{{route('ubi.update', $ubis->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<input type="file" id="inputimages" name="foto">
<input type="text" name="foto" class="form-control" placeholder="Upload Foto" value="{{$ubis->foto}}">
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$kacangs->nama}}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$ubis->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('family') ? ' has-error' : '' }}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$kacangs->family}}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$ubis->family}}">
{!! $errors->first('family', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$kacangs->tanggal_tanam}}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$ubis->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('usia') ? ' has-error' : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$kacangs->usia}}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$ubis->usia}}">
{!! $errors->first('usia', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('hama') ? ' has-error' : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$kacangs->hama}}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$ubis->hama}}">
{!! $errors->first('hama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('syarat_tumbuh') ? ' has-error' : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$kacangs->syarat_tumbuh}}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$ubis->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pemeliharaan') ? ' has-error' : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$kacangs->pemeliharaan}}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$ubis->pemeliharaan}}">
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
......@@ -481,7 +480,7 @@
</div>
</div>
</div>
<!--end data kacang -->
<!--end data ubi -->
</div>
<!-- /.box-body -->
<div class="box-footer">
......
......@@ -427,47 +427,46 @@
</div>
<div class="box-body">
<!--data jagung -->
<!--data ubi -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<form action="{{route('jagung.update', $jagungs->id)}}" method="post">
<form action="{{route('ubi.update', $ubis->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<img src="http://placehold.it/100x100" id="showimages" style="max-width:200px;max-height:200px;float:left;"/>
<input type="file" id="inputimages" name="foto">
<input type="text" name="foto" class="form-control" placeholder="Upload Foto" value="{{$ubis->foto}}">
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$jagungs->nama}}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$ubis->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('family') ? ' has-error' : '' }}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$jagungs->family}}">
<input type="text" name="family" class="form-control" placeholder="Family" value="{{$ubis->family}}">
{!! $errors->first('family', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$jagungs->tanggal_tanam}}">
<input type="text" name="tanggal_tanam" class="form-control" placeholder="Tanggal Tanam" value="{{$ubis->tanggal_tanam}}">
{!! $errors->first('tanggal_tanam', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('usia') ? ' has-error' : '' }}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$jagungs->usia}}">
<input type="text" name="usia" class="form-control" placeholder="Usia" value="{{$ubis->usia}}">
{!! $errors->first('usia', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('hama') ? ' has-error' : '' }}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$jagungs->hama}}">
<input type="text" name="hama" class="form-control" placeholder="Hama" value="{{$ubis->hama}}">
{!! $errors->first('hama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('syarat_tumbuh') ? ' has-error' : '' }}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$jagungs->syarat_tumbuh}}">
<input type="text" name="syarat_tumbuh" class="form-control" placeholder="Syarat Tumbuh" value="{{$ubis->syarat_tumbuh}}">
{!! $errors->first('syarat_tumbuh', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pemeliharaan') ? ' has-error' : '' }}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$jagungs->pemeliharaan}}">
<input type="text" name="pemeliharaan" class="form-control" placeholder="Pemeliharaan" value="{{$ubis->pemeliharaan}}">
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
......@@ -481,7 +480,7 @@
</div>
</div>
</div>
<!--end data jagung -->
<!--end data ubi -->
</div>
<!-- /.box-body -->
<div class="box-footer">
......
......@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SWISS | kentang mayur</title>
<title>SWISS | ubi mayur</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.6 -->
......@@ -34,7 +34,7 @@
<!-- Logo -->
<a href="../../index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>kentang</b></span>
<span class="logo-mini"><b>ubi</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SWISS</b></span>
</a>
......@@ -394,12 +394,12 @@
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
kentang Mayur
ubi Mayur
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Layout</a></li>
<li class="active">kentang mayur</li>
<li class="active">ubi mayur</li>
</ol>
</section>
......@@ -424,7 +424,7 @@
</div>
<div class="box-body">
<!--data kentang -->
<!--data ubi -->
<div class="container">
<div class="row">
......@@ -432,47 +432,47 @@
<div class="panel panel-default">
<div class="panel-body">
<form action="{{route('kentang.show', $kentangs->id)}}" method="post">
<form action="{{route('ubi.show', $ubis->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/$kentangs->foto")?>" style="max-height:40px; max-width: 40px; margin-top:10px;" /> </img> </td></label>
{!! $errors->first('foto', '<p class="help-block">:message</p>') !!}
<label class="control-label"> <img src="<?php echo asset("image/$ubis->foto") ?>" style="max-height:40px; max-width:40px; margin-top:10px; "> </img> </label>
{!! $errors->first('family', '<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 $kentangs->nama;?></label>
<label class="control-label"> : <?php echo $ubis->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 $kentangs->family;?></label>
<label class="control-label"> : <?php echo $ubis->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 $kentangs->tanggal_tanam;?></label>
<label class="control-label"> : <?php echo $ubis->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 $kentangs->usia;?></label>
<label class="control-label"> : <?php echo $ubis->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 $kentangs->hama;?></label>
<label class="control-label"> : <?php echo $ubis->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 $kentangs->syarat_tumbuh;?></label>
<label class="control-label"> : <?php echo $ubis->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 $kentangs->pemeliharaan;?></label>
<label class="control-label"> : <?php echo $ubis->pemeliharaan;?></label>
{!! $errors->first('pemeliharaan', '<p class="help-block">:message</p>') !!}
</div>
......@@ -490,7 +490,7 @@
</div>
</div>
<!--end data kentang -->
<!--end data ubi -->
<div style="margin: 0; width:500px; height:80px;">
<FORM NAME="form" ACTION="" METHOD="GET">
......@@ -498,7 +498,7 @@
<INPUT TYPE="text" NAME="inputbox" VALUE="192.168.43.75">
</FORM>
</div>
<h3> Scroll untuk menyiram kentang</h3>
<h3> Scroll untuk menyiram ubi</h3>
<input type="range" min="20" max="170" onmouseup="servo1(this.value)" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment