Commit da6f7fb4 by PANGERAN\pangeran

udah banyak perubahan di costumer

parent c78d335a
......@@ -8,7 +8,7 @@ class halamanusercontroller extends Controller
{
public function index()
{
return view('HalamanUser.index');
return view('Costumer.HalamanUser.daftartanaman');
}
}
......@@ -30,7 +30,10 @@ class HomeController extends Controller
return view('Admin.HalamanAdmin.index');
}
else if(Auth::user()->jabatan== 'Petugas'){
return view('HalamanPetugas.HalamanAdmin.index');
return view('PetugasKebun.HalamanUser.index');
}
else if(Auth::user()->jabatan== 'Customer'){
return view('Costumer.HalamanUser.index');
}
else
return view('Costumer.HalamanUser.index');
......
......@@ -4,6 +4,10 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\sayur;
use App\cabe;
use App\ubi;
use App\tomat;
use App\andaliman;
use Illuminate\Support\Facades\Input;
use App\Http\Requests;
use App\Http\Requests\sayur\StoreRequest;
......@@ -18,11 +22,31 @@ class sayurcontroller extends Controller
return view('Admin.HalamanMonitoring.monitoringsayur', compact('sayurs'));
}
public function costumer()
public function costsayur()
{
$sayurs = sayur::all();
return view('Costumer.HalamanMonitoring.monitoringsayur', compact('sayurs'));
}
public function costcabe()
{
$cabes = cabe::all();
return view('Costumer.MonitoringCabe.monitoringcabe', compact('cabes'));
}
public function costubi()
{
$ubis = ubi::all();
return view('Costumer.MonitoringUbi.monitoringubi', compact('ubis'));
}
public function costtomat()
{
$tomats = tomat::all();
return view('Costumer.HalamanTomat.index', compact('tomats'));
}
public function costandaliman()
{
$andalimans = andaliman::all();
return view('Costumer.MonitoringAndaliman.index', compact('andalimans'));
}
/**
......
......@@ -325,20 +325,20 @@
<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-dashboard"></i> <span>Menu</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 class="active"><a href="index.html"><i class="fa fa-circle-o"></i>Daftar Tananam</a></li>
<li><a href="index2.html"><i class="fa fa-circle-o"></i> Pemesanan</a></li>
<li><a href="index2.html"><i class="fa fa-circle-o"></i> History</a></li>
<li><a href="index2.html"><i class="fa fa-circle-o"></i> Request</a></li>
<li><a href="index2.html"><i class="fa fa-circle-o"></i> FeedBack</a></li>
<li><a href="index2.html"><i class="fa fa-circle-o"></i> Profil</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="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>
</ul>
</section>
......@@ -390,7 +390,7 @@
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{URL::to('/cabe')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="{{URL::to('/costcabe')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
......@@ -405,7 +405,7 @@
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{URL::to('/ubi ')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="{{URL::to('/costubi ')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
......@@ -420,7 +420,7 @@
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{URL::to('/tomat')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="{{URL::to('/costtomat')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
......@@ -437,7 +437,7 @@
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="{{URL::to('/andaliman')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="{{URL::to('/costandaliman')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!--kolom -->
......@@ -453,7 +453,7 @@
<div class="icon">
<i class="ion ion-stats-bars"></i>
</div>
<a href="{{URL::to('/jagung')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="{{URL::to('/costjagung')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
......@@ -468,7 +468,7 @@
<div class="icon">
<i class="ion ion-person-add"></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('/costkentang')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
......@@ -483,7 +483,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('/costkacang')}}" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<!-- ./col -->
......
......@@ -389,7 +389,7 @@
<div class="card">
<div class="content table-responsive table-full-width">
<ul>
Selamat Datang di Aplikasi SWISS,Terimakasih telah berkunjung
Selamat Datang di Aplikasi SWISS Petugas,Terimakasih telah berkunjung
</ul>
</div>
</div>
......
......@@ -22,13 +22,21 @@ Route::get('/user','halamanusercontroller@index');
Route::get('/monitoring','halamanmonitoringcontroller@index');
Route::get('/monitor','monitoringcontroller@index');
Route::get('/siram','siramcontroller@index');
Route::get('/daftanaman','halamanusercontroller@index');
Route::group(['middleware' => ['web']], function () {
Route::resource('HalamanMonitoring', 'sayurcontroller');
});
Route::group(['middleware' => ['web']], function () {
Route::resource('costsayur', 'sayurcontroller@costumer');
Route::resource('costsayur', 'sayurcontroller@costsayur');
Route::resource('costcabe', 'sayurcontroller@costcabe');
Route::resource('costubi', 'sayurcontroller@costubi');
Route::resource('costtomat', 'sayurcontroller@costtomat');
Route::resource('costandaliman', 'sayurcontroller@costandaliman');
Route::resource('costjagung', 'sayurcontroller@costjagung');
Route::resource('costkentang', 'sayurcontroller@costkentang');
Route::resource('costkacang', 'sayurcontroller@costkacang');
});
Route::group(['middleware' => ['web']], function () {
......
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