Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa21617d4ti08
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jhon
pa21617d4ti08
Commits
226a4f92
Commit
226a4f92
authored
May 16, 2017
by
PratiwiOkuli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perbaikan pada Admin, perbaikan pada Admin data request
parent
e37389a9
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
491 additions
and
101 deletions
+491
-101
CustomerController.php
app/Http/Controllers/CustomerController.php
+19
-15
InventoriController.php
app/Http/Controllers/InventoriController.php
+78
-2
KasirController.php
app/Http/Controllers/KasirController.php
+34
-1
RequestBarang.php
app/RequestBarang.php
+1
-1
User.php
app/User.php
+1
-1
create.blade.php
.../views/vendor/adminlte/admin/listPetugas/create.blade.php
+1
-1
register.blade.php
resources/views/vendor/adminlte/auth/register.blade.php
+1
-4
index.blade.php
...vendor/adminlte/customer/HistoryTransaksi/index.blade.php
+27
-9
createRequest.blade.php
...r/adminlte/customer/RequestBarang/createRequest.blade.php
+2
-1
index.blade.php
resources/views/vendor/adminlte/customer/index.blade.php
+0
-2
createDataRequest.blade.php
...dminlte/inventori/DataRequest/createDataRequest.blade.php
+72
-0
editDataRequest.blade.php
.../adminlte/inventori/DataRequest/editDataRequest.blade.php
+73
-0
index.blade.php
...ews/vendor/adminlte/inventori/DataRequest/index.blade.php
+37
-0
index.blade.php
...ews/vendor/adminlte/inventori/ListRequest/index.blade.php
+32
-21
addSaldo.blade.php
...ews/vendor/adminlte/kasir/ListCustomer/addSaldo.blade.php
+65
-0
index.blade.php
.../views/vendor/adminlte/kasir/ListCustomer/index.blade.php
+23
-19
index.blade.php
...views/vendor/adminlte/kasir/ListTransaksi/index.blade.php
+20
-18
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+1
-1
web.php
routes/web.php
+4
-5
No files found.
app/Http/Controllers/CustomerController.php
View file @
226a4f92
...
@@ -3,15 +3,14 @@
...
@@ -3,15 +3,14 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
App\User
;
use
App\User
;
use
App\Barang
;
use
App\Barang
;
use
App\RequestBarang
;
use
App\RequestBarang
;
use
App\DataRequest
;
use
App\DataRequest
;
use
App\Http\Requests
;
use
App\Http\Requests
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Auth
;
class
CustomerController
extends
Controller
class
CustomerController
extends
Controller
{
{
...
@@ -76,17 +75,20 @@ class CustomerController extends Controller
...
@@ -76,17 +75,20 @@ class CustomerController extends Controller
public
function
saveRequest
(
Request
$request
)
public
function
saveRequest
(
Request
$request
)
{
{
$input
=
$request
->
all
();
$request_barangs
=
new
RequestBarang
();
RequestBarang
::
create
(
$input
);
$request_barangs
->
user_id
=
$request
->
user_id
;
// $this->data['request_barang']=DB::table('request_barangs')->where('status','==',1)->get();
$request_barangs
->
username
=
$request
->
username
;
// $transaksi = new Transaksi();
$request_barangs
->
nama_barang
=
$request
->
nama_barang
;
// $transaksi->tempat = $request->tempat;
$request_barangs
->
kategori
=
$request
->
kategori
;
// $transaksi->kerusakan = $request->kerusakan;
$request_barangs
->
harga
=
$request
->
harga
;
// $transaksi->petugas = $request->petugas;
$request_barangs
->
jumlah
=
$request
->
jumlah
;
// $transaksi->schedule = $request->schedule;
$harga
=
$request
->
harga
;
// $transaksi->user_id = $request->user_id;
$jumlah
=
$request
->
jumlah
;
// $transaksi->save();
$total_harga
=
$harga
*
$jumlah
;
// return redirect('dataOrder',$this->data);
$request_barangs
->
total_harga
=
$total_harga
;
$request_barangs
->
status_request
=
$request
->
status_request
;
$request_barangs
->
status_pengantaran
=
$request
->
status_pengantaran
;
$request_barangs
->
save
();
return
redirect
(
'RequestBarang'
);
return
redirect
(
'RequestBarang'
);
}
}
...
@@ -105,6 +107,7 @@ class CustomerController extends Controller
...
@@ -105,6 +107,7 @@ class CustomerController extends Controller
//----------------------------Histori Transaksi----------------------//
//----------------------------Histori Transaksi----------------------//
public
function
HistoryTransaksi
()
public
function
HistoryTransaksi
()
{
{
return
view
(
'adminlte::customer.HistoryTransaksi.index'
);
$request_barangs
=
RequestBarang
::
all
();
return
view
(
'adminlte::customer.HistoryTransaksi.index'
)
->
with
(
'request_barangs'
,
$request_barangs
);
}
}
}
}
\ No newline at end of file
app/Http/Controllers/InventoriController.php
View file @
226a4f92
...
@@ -7,6 +7,9 @@ use Illuminate\Http\Request;
...
@@ -7,6 +7,9 @@ use Illuminate\Http\Request;
use
App\Http\Requests
;
use
App\Http\Requests
;
use
App\Barang
;
use
App\Barang
;
use
App\RequestBarang
;
use
App\DataRequest
;
class
InventoriController
extends
Controller
class
InventoriController
extends
Controller
{
{
...
@@ -78,10 +81,82 @@ class InventoriController extends Controller
...
@@ -78,10 +81,82 @@ class InventoriController extends Controller
return
redirect
(
'ListBarang'
);
return
redirect
(
'ListBarang'
);
}
}
public
function
ListRequest
()
{
$request_barangs
=
RequestBarang
::
all
();
return
view
(
'adminlte::inventori.ListRequest.index'
,
compact
(
'request_barangs'
));
}
public
function
editRequest
(
$id
)
{
$request_barangs
=
RequestBarang
::
where
(
'id'
,
$id
)
->
first
();
return
view
(
'adminlte::inventori.ListRequest.edit'
)
->
with
(
'request_barangs'
,
$request_barangs
);
}
//----------------------------Data Request----------------------//
public
function
DataRequest
()
{
$data_requests
=
DataRequest
::
all
();
return
view
(
'adminlte::inventori.DataRequest.index'
,
compact
(
'data_requests'
));
}
public
function
createDataRequest
()
{
return
view
(
'adminlte::inventori.DataRequest.createDataRequest'
);
}
public
function
storeDataRequest
(
Request
$request
)
{
$this
->
validate
(
$request
,
[
'nama_barang'
=>
'required'
,
'kategori'
=>
'required'
,
'harga'
=>
'required'
,
]);
$data_requests
=
new
DataRequest
();
$data_requests
->
nama_barang
=
$request
[
'nama_barang'
];
$data_requests
->
kategori
=
$request
[
'kategori'
];
$data_requests
->
harga
=
$request
[
'harga'
];
$data_requests
->
save
();
return
redirect
(
'DataRequest'
);
}
public
function
editDataRequest
(
$id
)
{
$data_requests
=
DataRequest
::
where
(
'id'
,
$id
)
->
first
();
return
view
(
'adminlte::inventori.DataRequest.editDataRequest'
)
->
with
(
'data_requests'
,
$data_requests
);
}
public
function
updateDataRequest
(
Request
$request
,
$id
)
{
$this
->
validate
(
$request
,
[
'nama_barang'
=>
'required'
,
'kategori'
=>
'required'
,
'harga'
=>
'required'
,
]);
$data_requests
=
DataRequest
::
findOrFail
(
$id
);
$data_requests
->
nama_barang
=
$request
->
nama_barang
;
$data_requests
->
kategori
=
$request
->
kategori
;
$data_requests
->
harga
=
$request
->
harga
;
$data_requests
->
save
();
return
redirect
(
'DataRequest'
);
}
public
function
ListRequest
(
)
public
function
destroyDataRequest
(
$id
)
{
{
return
view
(
'adminlte::inventori.ListRequest.index'
);
$data_requests
=
DataRequest
::
find
(
$id
);
$data_requests
->
delete
();
return
redirect
(
'DataRequest'
);
}
}
}
}
\ No newline at end of file
app/Http/Controllers/KasirController.php
View file @
226a4f92
<?php
<?php
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
App\Http\Requests
;
use
App\User
;
use
App\Transaksi
;
class
KasirController
extends
Controller
class
KasirController
extends
Controller
{
{
public
function
ListCustomer
()
public
function
ListCustomer
()
{
{
return
view
(
'adminlte::kasir.ListCustomer.index'
);
$users
=
User
::
where
(
'status'
,
'like'
,
'customer'
)
->
get
();
return
view
(
'adminlte::kasir.ListCustomer.index'
,
compact
(
'users'
));
}
public
function
ListTransaksi
()
{
$transaksis
=
Transaksi
::
all
();
return
view
(
'adminlte::kasir.ListTransaksi.index'
,
compact
(
'transaksis'
));
}
public
function
addSaldo
(
$id
)
{
$users
=
User
::
where
(
'id'
,
$id
)
->
first
();
return
view
(
'adminlte::kasir.ListCustomer.addSaldo'
)
->
with
(
'users'
,
$users
);
}
}
public
function
saldo
(
Request
$request
,
$id
){
$data
=
User
::
find
(
$id
);
$data
->
saldo
=
$data
->
saldo
+
$request
[
'saldo'
];
$data
->
update
();
return
redirect
(
'ListCustomer'
);
}
public
function
KonfirmasiBarang
(
$id
){
DB
::
table
(
'request_barangs'
)
->
where
(
'id'
,
$id
)
->
update
([
'status_request'
=>
1
]);
return
redirect
()
->
back
();
}
}
}
\ No newline at end of file
app/RequestBarang.php
View file @
226a4f92
...
@@ -8,7 +8,7 @@ class RequestBarang extends Model
...
@@ -8,7 +8,7 @@ class RequestBarang extends Model
{
{
protected
$table
=
'request_barangs'
;
protected
$table
=
'request_barangs'
;
protected
$fillable
=
[
protected
$fillable
=
[
'username'
,
'nama_barang'
,
'kategori'
,
'jumlah'
,
'harga'
,
'total_harga'
,
'status_request'
,
'status_pengantaran'
,
'username'
,
'nama_barang'
,
'kategori'
,
'jumlah'
,
'harga'
,
'total_harga'
,
'
user_id'
,
'
status_request'
,
'status_pengantaran'
,
];
];
public
function
user
(){
public
function
user
(){
...
...
app/User.php
View file @
226a4f92
...
@@ -15,7 +15,7 @@ class User extends Authenticatable
...
@@ -15,7 +15,7 @@ class User extends Authenticatable
* @var array
* @var array
*/
*/
protected
$fillable
=
[
protected
$fillable
=
[
'name'
,
'email'
,
'username'
,
'status'
,
'password'
,
'saldo'
,
'name'
,
'email'
,
'username'
,
'status'
,
'password'
,
'saldo'
];
];
/**
/**
...
...
resources/views/vendor/adminlte/admin/listPetugas/create.blade.php
View file @
226a4f92
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
</div>
</div>
<div class="
form
-
group
has
-
feedback
">
<div class="
form
-
group
has
-
feedback
">
<input type="
int
" class="
form
-
control
" placeholder="
0
" name="
saldo
" readonly/>
<input type="
hidden
" class="
form
-
control
" placeholder="
0
" name="
saldo
" readonly/>
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
</div>
</div>
<div class="
form
-
group
has
-
feedback
">
<div class="
form
-
group
has
-
feedback
">
...
...
resources/views/vendor/adminlte/auth/register.blade.php
View file @
226a4f92
...
@@ -49,15 +49,12 @@
...
@@ -49,15 +49,12 @@
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
</div>
</div>
<div class="
form
-
group
has
-
feedback
">
<div class="
form
-
group
has
-
feedback
">
<input type="
int
" class="
form
-
control
" placeholder="
0
" ame="
saldo
"readonly/>
<input type="
hidden
" class="
form
-
control
" placeholder="
0
" ame="
saldo
"readonly/>
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
</div>
</div>
<div class="
form
-
group
has
-
feedback
">
<div class="
form
-
group
has
-
feedback
">
<select name="
status
" class="
form
-
control
">
<select name="
status
" class="
form
-
control
">
<option value="
user
">User</option>
<option value="
user
">User</option>
<option value="
admin
">Admin</option>
<option value="
kasir
">Kasir</option>
<option value="
inventori
">Inventori</option>
</select>
</select>
</div>
</div>
<div class="
row
">
<div class="
row
">
...
...
resources/views/vendor/adminlte/customer/HistoryTransaksi/index.blade.php
View file @
226a4f92
...
@@ -9,14 +9,32 @@
...
@@ -9,14 +9,32 @@
@
endsection
@
endsection
@
section
(
'main-content'
)
@
section
(
'main-content'
)
<
div
class
="
container
-
fluid
spark
-
screen
">
<
table
class
="
table
table
-
striped
">
<div class="
row
">
<thead>
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<tr>
<div class="
panel
panel
-
default
">
<th>Username</th>
<th>Nama Barang</th>
</div>
<th>Kategori</th>
</div>
<th>Harga</th>
</div>
<th>Jumlah</th>
</div>
<th>Total Harga</th>
<th>Status Request</th>
</tr>
</thead>
<tbody>
@foreach(
$request_barangs
as
$requestBarang
)
<tr>
<td>
{
{$requestBarang->username}
}
</td>
<td>
{
{$requestBarang->nama_barang}
}
</td>
<td>
{
{$requestBarang->kategori}
}
</td>
<td>
{
{$requestBarang->harga}
}
</td>
<td>
{
{$requestBarang->jumlah}
}
</td>
<td>
{
{$requestBarang->total_harga}
}
</td>
<td>
{
{$requestBarang->status_request}
}
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection
@endsection
resources/views/vendor/adminlte/customer/RequestBarang/createRequest.blade.php
View file @
226a4f92
...
@@ -23,8 +23,9 @@
...
@@ -23,8 +23,9 @@
</div>
</div>
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
col
-
md
-
4
control
-
label
">Username</label>
<div class="
col
-
lg
-
8
">
<div class="
col
-
lg
-
8
">
<input name="
user
_id
" class="
form
-
control
" type="
hidden
" value="
{{
$user
->
username
}}
" readonly>
<input name="
user
name
" class="
form
-
control
" type="
text
" value="
{{
$user
->
username
}}
" readonly>
</div>
</div>
</div>
</div>
...
...
resources/views/vendor/adminlte/customer/index.blade.php
View file @
226a4f92
...
@@ -8,8 +8,6 @@
...
@@ -8,8 +8,6 @@
Dashboard
User
SI
UD
-
Anthoni
Dashboard
User
SI
UD
-
Anthoni
@
endsection
@
endsection
@
section
(
'main-content'
)
@
section
(
'main-content'
)
<
div
class
="
container
-
fluid
spark
-
screen
">
<
div
class
="
container
-
fluid
spark
-
screen
">
<div class="
row
">
<div class="
row
">
...
...
resources/views/vendor/adminlte/inventori/DataRequest/createDataRequest.blade.php
0 → 100644
View file @
226a4f92
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
Create
@
endsection
@
section
(
'contentheader_title'
)
Page
Create
List
Barang
@
endsection
@
section
(
'main-content'
)
<
div
class
="
container
">
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
-
body
">
<form class="
form
-
horizontal
" action="
{{
url
(
'storeDataRequest'
)
}}
" method="
POST
">
{!! csrf_field() !!}
<div class="
form
-
group
{{
$errors
->
has
(
'nama_barang'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Nama Barang</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
nama_barang
" value="
{{
old
(
'nama_barang'
)
}}
" >
@if (
$errors->has
('nama_barang'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('nama_barang') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'kategori'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Kategori</label>
<div class="
col
-
md
-
6
">
<select name="
kategori
" class="
form
-
control
">
<option value="
makanan
">Makanan</option>
<option value="
minuman
">Minuman</option>
<option value="
alat
tulis
">Alat Tulis</option>
<option value="
alat
mandi
">Alat Mandi</option>
</select>
@if (
$errors->has
('kategori'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('kategori') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'harga'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Harga</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
harga
" value="
{{
old
(
'harga'
)
}}
" >
@if (
$errors->has
('harga'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('harga') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
">
<div class="
col
-
md
-
6
col
-
md
-
offset
-
4
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<button type="
submit
" class="
btn
btn
-
primary
">
Tambah
</button>
</div>
</div>
</form>
</div>
</div>
</div>
@endsection
\ No newline at end of file
resources/views/vendor/adminlte/inventori/DataRequest/editDataRequest.blade.php
0 → 100644
View file @
226a4f92
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
Edit
@
endsection
@
section
(
'contentheader_title'
)
Page
Edit
Request
@
endsection
@
section
(
'main-content'
)
<
div
class
="
container
">
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
-
body
">
<form class="
form
-
horizontal
" action="
{{
url
(
'updateDataRequest'
,
$data_requests
->
id
)
}}
" method="
POST
">
{!! csrf_field() !!}
<div class="
form
-
group
{{
$errors
->
has
(
'nama_barang'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Nama Barang</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
nama_barang
" value="
{{
$data_requests
->
nama_barang
}}
" >
@if (
$errors->has
('nama_barang'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('nama_barang') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'kategori'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
" value="
{{
$data_requests
->
kategori
}}
">Kategori</label>
<div class="
col
-
md
-
6
">
<select name="
kategori
" class="
form
-
control
">
<option value="
makanan
">Makanan</option>
<option value="
minuman
">Minuman</option>
<option value="
alat
tulis
">Alat Tulis</option>
<option value="
alat
mandi
">Alat Mandi</option>
</select>
@if (
$errors->has
('kategori'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('kategori') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'harga'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">harga</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
harga
" value="
{{
$data_requests
->
harga
}}
" >
@if (
$errors->has
('harga'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('harga') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
">
<div class="
col
-
md
-
6
col
-
md
-
offset
-
4
">
<button type="
submit
" class="
btn
btn
-
primary
">
Simpan
</button>
</div>
</div>
</form>
</div>
</div>
</div>
@endsection
\ No newline at end of file
resources/views/vendor/adminlte/inventori/DataRequest/index.blade.php
0 → 100644
View file @
226a4f92
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
{{
trans
(
'adminlte_lang::message.home'
)
}}
@
endsection
@
section
(
'contentheader_title'
)
<
center
>
Data
Request
</
center
>
@
endsection
@
section
(
'main-content'
)
<
table
class
="
table
table
-
striped
">
<thead>
<tr>
<th>Nama Barang</th>
<th>Kategori</th>
<th>Harga</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach(
$data_requests
as
$dataRequest
)
<tr>
<td>
{
{$dataRequest->nama_barang}
}
</td>
<td>
{
{$dataRequest->kategori}
}
</td>
<td>
{
{$dataRequest->harga}
}
</td>
<td>
<a href="
{{
url
(
'/editDataRequest'
,
$dataRequest
->
id
)
}}
" type="
submit
" button type="
button
" class="
btn
btn
-
warning
">Edit</a>
<a href="
{{
url
(
'/deleteDataRequest'
,
$dataRequest
->
id
)
}}
" class="
btn
btn
-
warning
">Delete</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<a href="
{{
url
(
'/createDataRequest'
)
}}
" button type="
button
" class="
btn
btn
-
info
">Create</a></button>
@endsection
resources/views/vendor/adminlte/inventori/ListRequest/index.blade.php
View file @
226a4f92
...
@@ -5,28 +5,39 @@
...
@@ -5,28 +5,39 @@
@
endsection
@
endsection
@
section
(
'contentheader_title'
)
@
section
(
'contentheader_title'
)
<
center
>
List
Request
</
center
>
<
center
>
Request
Barang
</
center
>
@
endsection
@
endsection
@
section
(
'main-content'
)
@
section
(
'main-content'
)
<
div
class
="
container
-
fluid
spark
-
screen
">
<
table
class
="
table
table
-
striped
">
<div class="
row
">
<thead>
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<tr>
<div class="
panel
panel
-
default
">
<th>Username</th>
<!-- <div class="
panel
-
heading
">Home</div>
<th>Nama Barang</th>
<div class="
panel
-
body
">
<th>Kategori</th>
<label style="
font
-
weight
:
bolder
;
color
:
black
;
font
-
size
:
17
px
">List Pegawai</label><br>
<th>Harga</th>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
<th>Jumlah</th>
<br><br>
<th>Total Harga</th>
<th>Status Request</th>
<label style="
font
-
weight
:
bolder
;
color
:
black
;
font
-
size
:
17
px
">Laporan Transaksi</label><br>
<th>Action</th>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
</tr>
</li>
</thead>
{{ trans('adminlte_lang::message.logged') }}
</div> -->
<tbody>
</div>
@foreach(
$request_barangs
as
$requestBarang
)
</div>
<tr>
</div>
<td>
{
{$requestBarang->username}
}
</td>
</div>
<td>
{
{$requestBarang->nama_barang}
}
</td>
<td>
{
{$requestBarang->kategori}
}
</td>
<td>
{
{$requestBarang->harga}
}
</td>
<td>
{
{$requestBarang->jumlah}
}
</td>
<td>
{
{$requestBarang->total_harga}
}
</td>
<td>
{
{$requestBarang->status_request}
}
</td>
<td>
<a href="
{{
url
(
'/KonfirmasiBarang'
,
$requestBarang
->
id
)
}}
" type="
submit
" button type="
button
" class="
btn
btn
-
warning
">Konfirmasi</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection
@endsection
resources/views/vendor/adminlte/kasir/ListCustomer/addSaldo.blade.php
0 → 100644
View file @
226a4f92
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
{{
trans
(
'adminlte_lang::message.home'
)
}}
@
endsection
@
section
(
'contentheader_title'
)
<
center
>
Add
Saldo
</
center
>
@
endsection
@
section
(
'main-content'
)
<
div
class
="
container
">
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
-
body
">
<form class="
form
-
horizontal
" action="
{{
url
(
'/saldo'
,
$users
->
id
)
}}
" method="
POST
">
<input type="
hidden
" name="
_method
" value="
put
">
{!! csrf_field() !!}
<div class="
form
-
group
{{
$errors
->
has
(
'name'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Name</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
name
" value="
{{
$users
->
name
}}
" readonly>
@if (
$errors->has
('name'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('name') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'saldo'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Saldo</label>
<div class="
col
-
md
-
6
">
<input type="
number
" class="
form
-
control
" name="
saldo
" value="
{{
$users
->
saldo
}}
" readonly>
@if (
$errors->has
('saldo'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('saldo') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Add Saldo</label>
<div class="
col
-
md
-
6
">
<input type="
number
" class="
form
-
control
" name="
saldo
" min="
50000
" class="
form
-
control
" required >
</div>
</div>
<div class="
form
-
group
">
<div class="
col
-
md
-
6
col
-
md
-
offset
-
4
">
<button type="
submit
" class="
btn
btn
-
primary
">
Simpan
</button>
</div>
</div>
</form>
</div>
</div>
</div>
@endsection
resources/views/vendor/adminlte/kasir/ListCustomer/index.blade.php
View file @
226a4f92
...
@@ -9,24 +9,28 @@
...
@@ -9,24 +9,28 @@
@
endsection
@
endsection
@
section
(
'main-content'
)
@
section
(
'main-content'
)
<
div
class
="
container
-
fluid
spark
-
screen
">
<
table
class
="
table
table
-
striped
">
<div class="
row
">
<thead>
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<tr>
<div class="
panel
panel
-
default
">
<th>Nama</th>
<!-- <div class="
panel
-
heading
">Home</div>
<th>Email</th>
<div class="
panel
-
body
">
<th>username</th>
<label style="
font
-
weight
:
bolder
;
color
:
black
;
font
-
size
:
17
px
">List Pegawai</label><br>
<th>Saldo</th>
Merupakan halaman list pegawai UD Antoni. Admin dapat melihat daftar pegawai dan melakukan penghapusan dan penambahan pegawai baru.
</tr>
<br><br>
</thead>
<label style="
font
-
weight
:
bolder
;
color
:
black
;
font
-
size
:
17
px
">Laporan Transaksi</label><br>
<tbody>
Merupakan halaman list transaksi dari layanan admin. User dapat melihat daftar member cafe dan melakukan penghapusan terhadap member.
@foreach(
$users
as
$user
)
</li>
<tr>
{{ trans('adminlte_lang::message.logged') }}
<td>
{
{$user->name}
}
</td>
</div> -->
<td>
{
{$user->email}
}
</td>
</div>
<td>
{
{$user->username}
}
</td>
</div>
<td>
{
{$user->saldo}
}
</td>
</div>
<td>
</div>
<a href="
{{
url
(
'/addSaldo'
,
$user
->
id
)
}}
" type="
submit
" button type="
button
" class="
btn
btn
-
warning
">Add Saldo</a>
</tr>
@endforeach
</tbody>
</table>
@endsection
@endsection
resources/views/vendor/adminlte/
admin/laporan
Transaksi/index.blade.php
→
resources/views/vendor/adminlte/
kasir/List
Transaksi/index.blade.php
View file @
226a4f92
...
@@ -5,35 +5,37 @@
...
@@ -5,35 +5,37 @@
@
endsection
@
endsection
@
section
(
'contentheader_title'
)
@
section
(
'contentheader_title'
)
<
center
>
L
aporan
Transaksi
</
center
>
<
center
>
L
ist
Customer
</
center
>
@
endsection
@
endsection
@
section
(
'main-content'
)
@
section
(
'main-content'
)
<
table
class
="
table
table
-
striped
">
<
table
class
="
table
table
-
striped
">
<thead>
<thead>
<tr>
<tr>
<th>Username/th>
<th>Username
<
/th>
<th>Nama Barang</th>
<th>Nama Barang</th>
<th>Kategori</th>
<th>Kategori</th>
<th>Jumlah</th>
<th>Jumlah</th>
<th>Total Harga</th>
<th>Total Harga</th>
<th>Status Pengantaran</th>
<!-- <th>Status Pengantaran</th> -->
<th>Action</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
@foreach(
$transaksis
as
$transaksi
)
@foreach(
$transaksis
as
$transaksi
)
<tr>
<tr>
<td>
{
{$transaksi->username}
}
</td>
<td>
{
{$transaksi->username}
}
</td>
<td>
{
{$transaksi->nama_barang}
}
</td>
<td>
{
{$transaksi->nama_barang}
}
</td>
<td>
{
{$transaksi->kategori}
}
</td>
<td>
{
{$transaksi->kategori}
}
</td>
<td>
{
{$transaksi->jumlah}
}
</td>
<td>
{
{$transaksi->jumlah}
}
</td>
<td>
{
{$transaksi->total_harga}
}
</td>
<td>
{
{$transaksi->total_harga}
}
</td>
<td>
<!-- <td>
{
{$transaksi->status_pengantaran}
}
</td> -->
<a href="
{{
url
(
'/konfirmasi'
,
$transaksi
->
id
)
}}
" type="
submit
" button type="
button
" class="
btn
btn
-
warning
">Konfirmasi</a>
<td>
</tr>
<a href="
{{
url
(
'/konfirmasiAntar'
,
$transaksi
->
id
)
}}
" type="
submit
" button type="
button
" class="
btn
btn
-
warning
">Konfirmasi</a>
@endforeach
<td>
</tr>
@endforeach
</tbody>
</tbody>
</table>
</table>
@endsection
@endsection
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
226a4f92
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
@if(Auth::user()->status=="admin")
@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('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
>
<
!-- <li><a href="{{ url('laporanTransaksi') }}"><i class='fa fa-link'></i> <span>Laporan Transaksi</span></a></li> --
>
@elseif(Auth::user()->status=="customer")
@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('/BeliBarang') }}"
><i
class=
'fa fa-link'
></i>
<span>
Beli Barang
</span></a></li>
...
...
routes/web.php
View file @
226a4f92
...
@@ -58,8 +58,6 @@ Route::group(['middleware' => ['web','auth','customer']], function () {
...
@@ -58,8 +58,6 @@ Route::group(['middleware' => ['web','auth','customer']], function () {
Route
::
get
(
'/createRequest/{id}'
,
'CustomerController@createRequest'
);
Route
::
get
(
'/createRequest/{id}'
,
'CustomerController@createRequest'
);
Route
::
post
(
'/storeRequest'
,
'CustomerController@storeRequest'
);
Route
::
post
(
'/storeRequest'
,
'CustomerController@storeRequest'
);
Route
::
post
(
'/saveRequest'
,
'CustomerController@saveRequest'
);
Route
::
post
(
'/saveRequest'
,
'CustomerController@saveRequest'
);
Route
::
get
(
'/HistoryTransaksi'
,
'CustomerController@HistoryTransaksi'
);
Route
::
get
(
'/HistoryTransaksi'
,
'CustomerController@HistoryTransaksi'
);
});
});
...
@@ -95,5 +93,7 @@ Route::group(['middleware' => ['web','auth','inventori']], function () {
...
@@ -95,5 +93,7 @@ Route::group(['middleware' => ['web','auth','inventori']], function () {
Route
::
group
([
'middleware'
=>
[
'web'
,
'auth'
,
'kasir'
]],
function
()
{
Route
::
group
([
'middleware'
=>
[
'web'
,
'auth'
,
'kasir'
]],
function
()
{
Route
::
get
(
'/ListCustomer'
,
'KasirController@ListCustomer'
);
Route
::
get
(
'/ListCustomer'
,
'KasirController@ListCustomer'
);
Route
::
get
(
'/ListTransaksi'
,
'KasirController@ListTransaksi'
);
});
Route
::
get
(
'/addSaldo/{id}'
,
'KasirController@addSaldo'
);
\ No newline at end of file
Route
::
put
(
'/saldo/{id}'
,
'KasirController@saldo'
);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment