Commit 8704fcfb by PANGERAN\pangeran

ini

parents da6f7fb4 56702dcc
......@@ -100,7 +100,7 @@ class AndalimanController extends Controller
public function show($id)
{
$andalimans = andaliman::findOrFail($id);
return view('Admin.andaliman.lihat', compact('andalimans'));
return view('Admin.MonitoringAndaliman.lihat', compact('andalimans'));
}
/**
......@@ -112,7 +112,7 @@ class AndalimanController extends Controller
public function edit($id)
{
$andalimans = andaliman::findOrFail($id);
return view('Admin.andaliman.edit', compact('andalimans'));
return view('Admin.MonitoringAndaliman.edit', compact('andalimans'));
}
......
......@@ -100,7 +100,7 @@ class KacangController extends Controller
public function show($id)
{
$kacangs = kacang::findOrFail($id);
return view('Admin.HalamanMonitoring.lihat', compact('kacangs'));
return view('Admin.MonitoringKacang.lihat', compact('kacangs'));
}
/**
......@@ -112,7 +112,7 @@ class KacangController extends Controller
public function edit($id)
{
$kacangs = kacang::findOrFail($id);
return view('Admin.HalamanMonitoring.edit', compact('kacangs'));
return view('Admin.MonitoringKacang.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('HalamanMonitoring.index')->with('alert-success', 'Data Berhasil Diubah.');
return redirect()->route('kacang.index')->with('alert-success', 'Data Berhasil Diubah.');
}
/**
......@@ -153,6 +153,6 @@ class KacangController extends Controller
{
$kacangs = kacang::findOrFail($id);
$kacangs->delete();
return redirect()->route('HalamanMonitoring.index')->with('alert-success', 'Data Berhasil Dihapus.');
return redirect()->route('kacang.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 Illuminate\Http\Request;
use App\tomat;
use App\Http\Requests;
use App\Http\Requests\tomat\StoreRequest;
use App\Http\Requests\tomat\UpdateRequest;
use Illuminate\Support\Facades\Input;
use Image;
class TomatController extends Controller
{
/**
* Display a listing of the resource.
*
* @return IlluminateHttpResponse
*/
public function index()
{
//show data
......@@ -79,7 +76,8 @@ class TomatController extends Controller
*/
public function show($id)
{
//
$tomats = tomat::findOrFail($id);
return view('Admin.HalamanTomat.lihat', compact('tomats'));
}
/**
......@@ -90,9 +88,9 @@ class TomatController extends Controller
*/
public function edit($id)
{
$tomat = tomat::findOrFail($id);
$tomats = tomat::findOrFail($id);
// return to the edit views
return view('Admin.HalamanTomat.edit',compact('tomat'));
return view('Admin.HalamanTomat.edit', compact('tomats'));
}
/**
......
......@@ -8,6 +8,6 @@ class jadwalcontroller extends Controller
{
public function index()
{
return view('HalamanJadwal.jadwal');
return view('Admin.HalamanJadwal.jadwal');
}
}
......@@ -47,7 +47,7 @@ class sayurcontroller extends Controller
$andalimans = andaliman::all();
return view('Costumer.MonitoringAndaliman.index', compact('andalimans'));
}
/**
* Show the form for creating a new resource.
......
......@@ -67,7 +67,7 @@ class ubicontroller extends Controller
*/
public function show($id)
{
$ubis = ubi::firstOrFail($id);
$ubis = ubi::findOrFail($id);
return view('Admin.MonitoringUbi.lihat', compact('ubis'));
}
......@@ -117,6 +117,6 @@ class ubicontroller extends Controller
{
$ubis = ubi::findOrFail($id);
$ubis->delete();
return redirect()->route('cabe.index')->with('alert-success', 'Data Berhasil Dihapus.');
return redirect()->route('ubi.index')->with('alert-success', 'Data Berhasil Dihapus.');
}
}
......@@ -44,11 +44,11 @@
<header class="main-header">
<!-- Logo -->
<a href="index2.html" class="logo">
<a href="{{URL::to('/home')}}" 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>MONITORING</b></span>
<span class="logo-lg"><b>SWISS</b></span></a>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
......@@ -325,21 +325,26 @@
<li class="header">MAIN NAVIGATION</li>
<li class="active treeview">
<a href="#">
<i class="fa fa-dashboard"></i> <span>User</span>
<i class="fa fa-th"></i> <span>Tanaman</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<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>
<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>
</ul>
</li>
<li><a href="documentation/index.html"><i class="fa fa-user-circle"></i> <span>Tanaman</span></a></li>
<li><a href="{{URL::to('/pengunjung')}}"><i class="fa fa-book"></i></i> <span>Pengunjung</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>
<li><a href="{{URL::to('/jadwal')}}"><i class="fa fa-calendar"></i></i> <span>Jadwal Perawatan</span></a></li>
<li><a href="{{URL::to ('/pemesanan')}}"><i class="fa fa-envelope"></i></i> <span>Pemesanan</span></a></li>
</ul>
</section>
<!-- /.sidebar -->
......@@ -350,12 +355,12 @@
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Tanaman</small>
Tanaman
<small>Dashboard</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">Dashboard</li>
<li><a href="{{URL('/home')}}"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active"><a href="{{URL::to('/monitoring')}}">Tanaman</a></li>
</ol>
</section>
......@@ -483,7 +488,7 @@
<div class="icon">
<i class="ion ion-pie-graph"></i>
</div>
<a href="{{URL::to('/kentang')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="{{URL::to('/kacang')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
......@@ -491,60 +496,60 @@
<!-- /.row -->
<!-- Main row -->
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 2.3.8
</div>
<strong>Copyright &copy; 2014-2016 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
reserved.
</footer>
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<!-- ./wrapper -->
<!-- jQuery 2.2.3 -->
<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="plugins/morris/morris.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/knob/jquery.knob.js"></script>
<!-- daterangepicker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="plugins/datepicker/bootstrap-datepicker.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 2.3.8
</div>
<strong>Copyright &copy; 2014-2016 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
reserved.
</footer>
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<!-- ./wrapper -->
<!-- jQuery 2.2.3 -->
<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="plugins/morris/morris.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/knob/jquery.knob.js"></script>
<!-- daterangepicker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="plugins/datepicker/bootstrap-datepicker.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
</body>
</html>
@extends('layouts.layout')
@section('content')
<!--data kacang -->
<div class="container">
<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>
</div>
<!--end data kacang -->
@endsection
\ No newline at end of file
......@@ -53,6 +53,7 @@
<!-- Main content -->
<<<<<<< HEAD
<div class="panel-body">
<div class="col-md-12">
<div class="card">
......@@ -60,6 +61,25 @@
<ul>
Selamat Datang di Aplikasi SWISS Customer,Terimakasih telah berkunjung
</ul>
=======
<!-- Main content -->
<section class="content">
<!-- Small boxes (Stat box) -->
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading"><h4 style="text-align:center;font-weight: bolder" class="title"></h4>
<p class="category"></p></div>
<div class="panel-body">
<div class="col-md-12">
<div class="card">
<div class="content table-responsive table-full-width">
<ul>
Selamat Datang di Aplikasi SWISS,Terimakasih telah berkunjung
</ul>
</div>
>>>>>>> 56702dcccb73dae365cfa2fb88ff9446c5df33fd
</div>
</div>
</div>
......
......@@ -195,6 +195,62 @@
<!-- =============================================== -->
<!-- Left side column. contains the sidebar -->
<<<<<<< HEAD
=======
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
<p> {{auth::user()->username}}</p>
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- search form -->
<form action="#" method="get" class="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search...">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">MAIN NAVIGATION</li>
<li class="active treeview">
<a href="#">
<i class="fa fa-th"></i> <span>Tanaman</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>
</ul>
</li>
<li><a href="{{URL::to('/pengunjung')}}"><i class="fa fa-book"></i></i> <span>Pengunjung</span></a></li>
<li><a href="documentation/index.html"><i class="fa fa-eye"></i> <span>Monitoring Kebun</span></a></li>
<li><a href="{{URL::to('/jadwal')}}"><i class="fa fa-calendar"></i></i> <span>Jadwal Perawatan</span></a></li>
<li><a href="{{URL::to ('/pemesanan')}}"><i class="fa fa-envelope"></i></i> <span>Pemesanan</span></a></li>
</ul>
</section>
<!-- /.sidebar -->
</aside>
>>>>>>> 56702dcccb73dae365cfa2fb88ff9446c5df33fd
<!-- =============================================== -->
......
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