Commit 5ae9f5d2 by jhon

Link Customer, Admin, Kasir dan Inventori

parent dfd901d0
<?php
namespace App\Http\Controllers;
class AdminController extends Controller
{
public function laporanTransaksi()
{
return view('adminlte::admin.laporanTransaksi.index');
}
public function listPetugas()
{
return view('adminlte::admin.listPetugas.index');
}
}
\ No newline at end of file
<?php
namespace App\Http\Controllers;
class CustomerController extends Controller
{
public function BeliBarang()
{
return view('adminlte::customer.BeliBarang.index');
}
public function RequestBarang()
{
return view('adminlte::customer.RequestBarang.index');
}
}
\ No newline at end of file
<?php
namespace App\Http\Controllers;
class InventoriController extends Controller
{
public function ListBarang()
{
return view('adminlte::inventori.ListBarang.index');
}
public function ListRequest()
{
return view('adminlte::inventori.ListRequest.index');
}
}
\ No newline at end of file
<?php
namespace App\Http\Controllers;
class KasirController extends Controller
{
public function ListCustomer()
{
return view('adminlte::kasir.ListCustomer.index');
}
}
\ No newline at end of file
......@@ -14,8 +14,14 @@
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Home</div>
<div class="panel-body">
<label style="font-weight:bolder;color:black;font-size: 17px">List Pegawai</label><br>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
<br><br>
<label style="font-weight:bolder;color:black;font-size: 17px">Laporan Transaksi</label><br>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
</li>
{{ trans('adminlte_lang::message.logged') }}
</div>
</div>
......
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>Laporan Transaksi</center>
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
</div>
</div>
</div>
</div>
@endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>List Petugas</center>
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<!-- <div class="panel-heading">Home</div>
<div class="panel-body">
<label style="font-weight:bolder;color:black;font-size: 17px">List Pegawai</label><br>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
<br><br>
<label style="font-weight:bolder;color:black;font-size: 17px">Laporan Transaksi</label><br>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
</li>
{{ trans('adminlte_lang::message.logged') }}
</div> -->
</div>
</div>
</div>
</div>
@endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>Beli Barang</center>
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<!-- <div class="panel-heading">Home</div>
<div class="panel-body">
<label style="font-weight:bolder;color:black;font-size: 17px">List Pegawai</label><br>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
<br><br>
<label style="font-weight:bolder;color:black;font-size: 17px">Laporan Transaksi</label><br>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
</li>
{{ trans('adminlte_lang::message.logged') }}
</div> -->
</div>
</div>
</div>
</div>
@endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>Request Barang</center>
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<!-- <div class="panel-heading">Home</div>
<div class="panel-body">
<label style="font-weight:bolder;color:black;font-size: 17px">List Pegawai</label><br>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
<br><br>
<label style="font-weight:bolder;color:black;font-size: 17px">Laporan Transaksi</label><br>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
</li>
{{ trans('adminlte_lang::message.logged') }}
</div> -->
</div>
</div>
</div>
</div>
@endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>List Barang</center>
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
</div>
</div>
</div>
</div>
@endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>List Request</center>
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<!-- <div class="panel-heading">Home</div>
<div class="panel-body">
<label style="font-weight:bolder;color:black;font-size: 17px">List Pegawai</label><br>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
<br><br>
<label style="font-weight:bolder;color:black;font-size: 17px">Laporan Transaksi</label><br>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
</li>
{{ trans('adminlte_lang::message.logged') }}
</div> -->
</div>
</div>
</div>
</div>
@endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>List Customer</center>
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<!-- <div class="panel-heading">Home</div>
<div class="panel-body">
<label style="font-weight:bolder;color:black;font-size: 17px">List Pegawai</label><br>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
<br><br>
<label style="font-weight:bolder;color:black;font-size: 17px">Laporan Transaksi</label><br>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
</li>
{{ trans('adminlte_lang::message.logged') }}
</div> -->
</div>
</div>
</div>
</div>
@endsection
......@@ -43,26 +43,21 @@
</ul>
</li> -->
@if(Auth::user()->status=="admin")
<li><a href="{{ url('/daftarPegawai') }}"><i class='fa fa-link'></i> <span>Daftar Pegawai</span></a></li>
<li><a href="{{ url('/laporanTransaksi') }}"><i class='fa fa-link'></i> <span>Laporan Transaksi</span></a></li>
<li><a href="{{ url('listPetugas') }}"><i class='fa fa-link'></i> <span>Daftar Pegawai</span></a></li>
<li><a href="{{ url('laporanTransaksi') }}"><i class='fa fa-link'></i> <span>Laporan Transaksi</span></a></li>
@elseif(Auth::user()->status=="customer")
<li><a href="{{ url('/BeliBarang') }}"><i class='fa fa-link'></i> <span>Beli Barang</span></a></li>
<li><a href="{{ url('/RequestBarang') }}"><i class='fa fa-link'></i> <span>Request Barang</span></a></li>
@elseif(Auth::user()->status=="user")
<li><a href="{{ url('/dataOrder') }}"><i class='fa fa-link'></i> <span>Beli Barang</span></a></li>
<li class="treeview">
<a href="#"><i class='fa fa-link'></i> <span>Status Request</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li><a href="{{ url('/pending') }}">Request</a></li>
<li><a href="{{ url('/sukses') }}">Accept</a></li>
</ul>
</li>
@elseif(Auth::user()->status=="inventori")
<li><a href="{{ url('/dataOrder') }}"><i class='fa fa-link'></i> <span>List Barang</span></a></li>
<li><a href="{{ url('/dataOrder') }}"><i class='fa fa-link'></i> <span>List Request</span></a></li>
<li><a href="{{ url('/ListBarang') }}"><i class='fa fa-link'></i> <span>List Barang</span></a></li>
<li><a href="{{ url('/ListRequest') }}"><i class='fa fa-link'></i> <span>List Request</span></a></li>
@elseif(Auth::user()->status=="kasir")
<li><a href="{{ url('/dataOrder') }}"><i class='fa fa-link'></i> <span>List Customer</span></a></li>
<li><a href="{{ url('/ListCustomer') }}"><i class='fa fa-link'></i> <span>List Customer</span></a></li>
@endif
......
......@@ -30,8 +30,38 @@
<!-- /.search form -->
<!-- Sidebar Menu -->
{{ Menu::sidebar() }}
<!-- /.sidebar-menu -->
<ul class="sidebar-menu">
<li class="header">{{ trans('adminlte_lang::message.header') }}</li>
<!-- Optionally, you can add icons to the links -->
<!-- <li class="active"><a href="{{ url('home') }}"><i class='fa fa-link'></i> <span>{{ trans('adminlte_lang::message.home') }}</span></a></li>
<li><a href="#"><i class='fa fa-link'></i> <span>List Barang</span></a></li>
<li class="treeview">
<a href="#"><i class='fa fa-link'></i> <span>{{ trans('adminlte_lang::message.multilevel') }}</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li><a href="#">{{ trans('adminlte_lang::message.linklevel2') }}</a></li>
<li><a href="#">{{ trans('adminlte_lang::message.linklevel2') }}</a></li>
</ul>
</li> -->
@if(Auth::user()->status=="admin")
<li><a href="{{ url('listPetugas') }}"><i class='fa fa-link'></i> <span>Daftar Pegawai</span></a></li>
<li><a href="{{ url('laporanTransaksi') }}"><i class='fa fa-link'></i> <span>Laporan Transaksi</span></a></li>
@elseif(Auth::user()->status=="customer")
<li><a href="{{ url('/BeliBarang') }}"><i class='fa fa-link'></i> <span>Beli Barang</span></a></li>
<li><a href="{{ url('/RequestBarang') }}"><i class='fa fa-link'></i> <span>Request Barang</span></a></li>
@elseif(Auth::user()->status=="inventori")
<li><a href="{{ url('/ListBarang') }}"><i class='fa fa-link'></i> <span>List Barang</span></a></li>
<li><a href="{{ url('/ListRequest') }}"><i class='fa fa-link'></i> <span>List Request</span></a></li>
@elseif(Auth::user()->status=="kasir")
<li><a href="{{ url('/ListCustomer') }}"><i class='fa fa-link'></i> <span>List Customer</span></a></li>
@endif
</ul><!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside>
......@@ -15,41 +15,13 @@ Route::get('/', function () {
return view('welcome');
});
Route::group(['middleware' => 'auth'], function () {
// Route::get('/link1', function () {
// // Uses Auth Middleware
// });
//Please do not remove this if you want adminlte:route and adminlte:link commands to works correctly.
#adminlte_routes
});
Route::group(['middleware' => ['web','auth']], function(){
Route::get('/home', 'HomeController@index');
Route::get('/', function () {
// if(Auth::user()->role == 'admin'){
// return view('adminlte::home');
// } elseif(Auth::user()->role == 'customer'){
// return redirect()->intended('user_home');
// } elseif(Auth::user()->role == 'kasir'){
// return redirect()->intended('kasir');
// } elseif(Auth::user()->role == 'inventori'){
// return redirect()->intended('inventori');
// }
// else {
// return redirect()->intended('pelayan');
// }
// if (Auth::user()->role=='admin'){
// return view('adminlte::admin');
// }else if(Auth::user()->role=='user'){
// return view('adminlte::user_home');
// }else if(Auth::user()->role=='kasir'){
// return view('adminlte::kasir');
// }
if (Auth::user()->status=='admin'){
return view('adminlte::admin.index');
}else if(Auth::user()->status=='user'){
}else if(Auth::user()->status=='customer'){
return view('adminlte::customer.index');
}else if(Auth::user()->status=='kasir'){
return view('adminlte::kasir.index');
......@@ -59,6 +31,51 @@ Route::group(['middleware' => ['web','auth']], function(){
});
});
// Route::group(['middleware' => ['web','auth','admin']], function () {
// Route::get('/daftarPegawai', 'OrderController@index');
// });
\ No newline at end of file
Route::group(['middleware' => ['web','auth','admin']], function () {
Route::get('/laporanTransaksi', 'AdminController@laporanTransaksi');
Route::get('/listPetugas', 'AdminController@listPetugas');
// Route::get('/pegawai', 'OrderController@index');
// Route::get('/create', 'OrderController@create');
// Route::post('/store', 'OrderController@store');
// Route::get('/edit/{id}', 'OrderController@edit');
// Route::post('/update/{id}', 'OrderController@update');
// Route::get('/delete/{id}', 'OrderController@destroy');
// Route::get('/allTransaksi', 'TransaksiController@allTransaksi');
});
Route::group(['middleware' => ['web','auth','customer']], function () {
Route::get('/BeliBarang', 'CustomerController@BeliBarang');
Route::get('/RequestBarang', 'CustomerController@RequestBarang');
// Route::get('/pegawai', 'OrderController@index');
// Route::get('/create', 'OrderController@create');
// Route::post('/store', 'OrderController@store');
// Route::get('/edit/{id}', 'OrderController@edit');
// Route::post('/update/{id}', 'OrderController@update');
// Route::get('/delete/{id}', 'OrderController@destroy');
// Route::get('/allTransaksi', 'TransaksiController@allTransaksi');
});
Route::group(['middleware' => ['web','auth','inventori']], function () {
Route::get('/ListBarang', 'InventoriController@ListBarang');
Route::get('/ListRequest', 'InventoriController@ListRequest');
// Route::get('/pegawai', 'OrderController@index');
// Route::get('/create', 'OrderController@create');
// Route::post('/store', 'OrderController@store');
// Route::get('/edit/{id}', 'OrderController@edit');
// Route::post('/update/{id}', 'OrderController@update');
// Route::get('/delete/{id}', 'OrderController@destroy');
// Route::get('/allTransaksi', 'TransaksiController@allTransaksi');
});
Route::group(['middleware' => ['web','auth','kasir']], function () {
Route::get('/ListCustomer', 'KasirController@ListCustomer');
// Route::get('/pegawai', 'OrderController@index');
// Route::get('/create', 'OrderController@create');
// Route::post('/store', 'OrderController@store');
// Route::get('/edit/{id}', 'OrderController@edit');
// Route::post('/update/{id}', 'OrderController@update');
// Route::get('/delete/{id}', 'OrderController@destroy');
// Route::get('/allTransaksi', 'TransaksiController@allTransaksi');
});
\ No newline at end of file
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