Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
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
Juliper
pa2d4ti06
Commits
9f287095
Commit
9f287095
authored
Jun 12, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H-1
parent
931f9df9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
85 additions
and
33 deletions
+85
-33
AdminController.php
app/Http/Controllers/AdminController.php
+7
-3
LoginController.php
app/Http/Controllers/Auth/LoginController.php
+1
-1
GuestController.php
app/Http/Controllers/GuestController.php
+18
-0
OwnerController.php
app/Http/Controllers/OwnerController.php
+5
-4
p2d4ti06_test.sql
p2d4ti06_test.sql
+0
-0
login.blade.php
resources/views/vendor/adminlte/auth/login.blade.php
+15
-11
register.blade.php
resources/views/vendor/adminlte/auth/register.blade.php
+11
-3
addOwner.blade.php
...es/views/vendor/adminlte/layouts/admin/addOwner.blade.php
+2
-2
dataPemesanan.blade.php
...ews/vendor/adminlte/layouts/admin/dataPemesanan.blade.php
+1
-0
listRequestFasilitas.blade.php
...dor/adminlte/layouts/admin/listRequestFasilitas.blade.php
+2
-1
AddBookManual.blade.php
...ews/vendor/adminlte/layouts/owner/AddBookManual.blade.php
+1
-1
ListBooking.blade.php
...views/vendor/adminlte/layouts/owner/ListBooking.blade.php
+1
-1
ListPengajuanFasilitas.blade.php
...r/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
+2
-2
listPesanan.blade.php
...views/vendor/adminlte/layouts/owner/listPesanan.blade.php
+10
-2
listfeedback.blade.php
...iews/vendor/adminlte/layouts/owner/listfeedback.blade.php
+8
-1
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+1
-1
No files found.
app/Http/Controllers/AdminController.php
View file @
9f287095
...
...
@@ -26,7 +26,11 @@ class AdminController extends Controller
public
function
index
()
{
return
view
(
'adminlte::home'
);
$count
=
User
::
all
()
->
where
(
'role'
,
"Owner"
)
->
count
();
$data
=
User
::
all
()
->
where
(
'role'
,
"Owner"
);
//dd($data);
return
view
(
'adminlte::layouts.admin.listOwner'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$count
);
}
//Mengakses Daftar Pemesanan
...
...
@@ -35,7 +39,7 @@ class AdminController extends Controller
$data
=
DB
::
table
(
'homestay'
)
->
join
(
'daftar_book'
,
'homestay.id'
,
'='
,
'daftar_book.homestay'
)
->
select
(
'daftar_book.*'
,
'homestay.nama_homestay'
,
'homestay.owner'
)
->
get
(
);
->
paginate
(
10
);
return
view
(
'adminlte::layouts.admin.dataPemesanan'
)
->
with
(
'data'
,
$data
);
}
...
...
@@ -157,7 +161,7 @@ class AdminController extends Controller
->
join
(
'requestfasilitas'
,
'pemilikhomestay.id'
,
'='
,
'requestfasilitas.id_pemilik_homestay'
)
->
select
(
'pemilikhomestay.nama'
,
'requestfasilitas.*'
)
->
orderBy
(
'requestfasilitas.id'
,
'desc'
)
->
get
(
);
->
paginate
(
4
);
$count
=
$data
->
count
();
...
...
app/Http/Controllers/Auth/LoginController.php
View file @
9f287095
...
...
@@ -50,7 +50,7 @@ class LoginController extends Controller
]);
if
(
$validator
->
fails
())
{
return
redirect
(
'/login'
);
return
redirect
(
'/login'
)
->
withErrors
(
$validator
->
errors
())
;
}
else
{
if
(
Auth
::
attempt
([
'username'
=>
$request
->
username
,
'password'
=>
$request
->
password
]))
{
//dd(Auth::user()->role);
...
...
app/Http/Controllers/GuestController.php
View file @
9f287095
...
...
@@ -19,6 +19,7 @@ use Illuminate\Contracts\Auth\Guard;
use
DateTime
;
use
PhpParser\Node\Stmt\Const_
;
use
Psy\Command\ListCommand\ConstantEnumerator
;
use
Validator
;
class
GuestController
extends
Controller
...
...
@@ -36,6 +37,22 @@ class GuestController extends Controller
//Menyimpan data Pelanggan disaat melakukan Pendaftaran
public
function
registerStore
(
Request
$data
){
$validator
=
Validator
::
make
(
$data
->
all
(),
[
'name'
=>
'required'
,
'username'
=>
'required'
,
'email'
=>
'required|email'
,
'password'
=>
'required'
,
],
[
'name.required'
=>
'Silahkan Masukkan Nama Lengkap!'
,
'username.required'
=>
'Silahkan Masukkan Username!'
,
'email.required'
=>
'Silahkan Masukkan Email!'
,
'password.required'
=>
'Silahkan Masukkan Password!'
]);
if
(
$validator
->
fails
())
{
return
redirect
(
'/daftar'
)
->
withErrors
(
$validator
->
errors
());
}
else
{
$user
=
new
User
();
$user
->
name
=
$data
[
'name'
];
$user
->
username
=
$data
[
'username'
];
...
...
@@ -60,6 +77,7 @@ class GuestController extends Controller
$cus
->
save
();
return
redirect
(
'login'
);
}
}
public
function
register
(){
...
...
app/Http/Controllers/OwnerController.php
View file @
9f287095
...
...
@@ -147,7 +147,7 @@ class OwnerController extends Controller
->
join
(
'pelanggan'
,
'feedback.id_pelanggan'
,
'pelanggan.id'
)
->
select
(
'feedback.*'
,
'pelanggan.nama'
)
->
where
(
'feedback.id_pemilik_homestay'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
(
);
->
paginate
(
5
);
return
view
(
'adminlte::layouts.owner.listfeedback'
)
->
with
(
'data'
,
$dataFeedback
);
}
...
...
@@ -366,7 +366,7 @@ class OwnerController extends Controller
->
select
(
'transaksi.*'
,
'pelanggan.nama'
,
'pelanggan.alamat'
,
'pelanggan.no_telepon'
)
->
where
(
'homestay.id_pemilik'
,
'='
,
$dataPel
[
0
]
->
id
)
->
orderBy
(
'transaksi.id'
,
'desc'
)
->
get
(
);
->
paginate
(
5
);
return
view
(
'adminlte::layouts.owner.listPesanan'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$data
->
count
());
}
...
...
@@ -418,7 +418,7 @@ class OwnerController extends Controller
$data
->
save
();
return
redirect
(
'listPengajuanFasilitas'
);
return
redirect
(
'listPengajuanFasilitas'
)
->
with
(
'message'
,
'Permintaan Fasilitas Telah Dikirim'
)
;
}
...
...
@@ -495,10 +495,11 @@ class OwnerController extends Controller
->
select
(
'pemilikhomestay.nama'
,
'requestfasilitas.*'
)
->
where
(
'requestfasilitas.id_pemilik_homestay'
,
'='
,
$idPemilik
[
0
]
->
id
)
->
orderBy
(
'requestfasilitas.id'
,
'desc'
)
->
get
(
);
->
paginate
(
4
);
$count
=
$data
->
count
();
return
view
(
'adminlte::layouts.owner.ListPengajuanFasilitas'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$count
);
}
...
...
p2d4ti06_test.sql
0 → 100644
View file @
9f287095
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/auth/login.blade.php
View file @
9f287095
...
...
@@ -5,24 +5,28 @@
@
endsection
@
section
(
'content'
)
<
body
class
="
hold
-
transition
login
-
page
" style="
background
-
image
:
url
(
img
/
Danau2
.
jpg
);
background
-
size
:
100
%
130
%
;
background
-
repeat
:
repeat
;
">
<div id="
app
">
<div class="
login
-
box
" style="
box
-
shadow
:
rgba
(
0
,
0
,
0
,
0.2
)
0
px
0
px
20
px
0
px
,
rgba
(
0
,
0
,
0
,
0.239216
)
0
px
5
px
5
px
0
px
;
background
-
color
:
rgba
(
255
,
255
,
255
,
0
);
">
<div class="
login
-
box
" style="
box
-
shadow
:
rgba
(
0
,
0
,
0
,
0.2
)
0
px
0
px
20
px
0
px
,
rgba
(
0
,
0
,
0
,
0.239216
)
0
px
5
px
5
px
0
px
;
">
<!-- <div class="
login
-
logo
">
<a href="
{{
url
(
'/home'
)
}}
"><b>SIBH</b></a>
</div><!-- /.login-logo -->
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<strong>Whoops!</strong>Ada beberapa masalah<br><br>
<ul>
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
}}</li>
@endforeach
</ul>
</div>
@endif
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
<ul>
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
}}</li>
@endforeach
</ul>
</div>
@endif
<div class="
login
-
box
-
body
" >
<!-- <p class="
login
-
box
-
msg
"> {{ trans('adminlte_lang::message.siginsession') }} </p> -->
...
...
resources/views/vendor/adminlte/auth/register.blade.php
View file @
9f287095
...
...
@@ -14,7 +14,7 @@
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<strong>Whoops!</strong>
{{ trans('adminlte_lang::message.someproblems') }}
<br><br>
<strong>Whoops!</strong>
Ada beberapa masalah
<br><br>
<ul>
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
}}</li>
...
...
@@ -23,6 +23,14 @@
</div>
@endif
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
<div class="
register
-
box
-
body
">
<div class="
login
-
logo
">
<a href="
{{
url
(
'/home'
)
}}
"><img src="
img
/
bulbulhomestay
.
jpg
" alt=""></a>
...
...
@@ -30,11 +38,11 @@
<form action="
{{
url
(
'/daftar'
)
}}
" method="
post
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<div class="
form
-
group
has
-
feedback
">
<input type="
text
" class="
form
-
control
" placeholder="
{{
trans
(
'adminlte_lang::message.fullname'
)
}}
" name="
name
" value="
{{
old
(
'name'
)
}}
"/>
<input type="
text
" class="
form
-
control
" placeholder="
Nama
Lengkap
" name="
name
" value="
{{
old
(
'name'
)
}}
"/>
<span class="
glyphicon
glyphicon
-
user
form
-
control
-
feedback
"></span>
</div>
<div class="
form
-
group
has
-
feedback
">
<input type="
text
" class="
form
-
control
" placeholder="
u
sername
" name="
username
" value="
{{
old
(
'username'
)
}}
"/>
<input type="
text
" class="
form
-
control
" placeholder="
U
sername
" name="
username
" value="
{{
old
(
'username'
)
}}
"/>
<span class="
glyphicon
glyphicon
-
user
form
-
control
-
feedback
"></span>
</div>
<div class="
form
-
group
has
-
feedback
">
...
...
resources/views/vendor/adminlte/layouts/admin/addOwner.blade.php
View file @
9f287095
...
...
@@ -3,7 +3,7 @@
{{
trans
(
'adminlte_lang::message.home'
)
}}
@
endsection
@
section
(
'main-content'
)
<
div
class
="
col
-
md
-
8
">
<
div
class
="
box
box
-
primary
">
<div class="
box
-
header
with
-
border
">
<h3 class="
box
-
title
"> Tambah Pemilik Homestay </h3>
...
...
@@ -66,6 +66,6 @@
</div>
</div>
</div>
</div>
@endsection
resources/views/vendor/adminlte/layouts/admin/dataPemesanan.blade.php
View file @
9f287095
...
...
@@ -40,6 +40,7 @@
</tr>
@endforeach
</table>
{!!
$data->render
() !!}
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/admin/listRequestFasilitas.blade.php
View file @
9f287095
...
...
@@ -28,7 +28,7 @@
<th>Deskripsi</th>
<th>Jumlah</th>
<th>Gambar</th>
<th colspan="
2
">Ac
c
tion</th>
<th colspan="
2
">Action</th>
</tr>
@foreach(
$data
as
$a
)
<tr>
...
...
@@ -64,6 +64,7 @@
</tr>
@endforeach
</table>
{!!
$data->render
() !!}
</div>
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/owner/AddBookManual.blade.php
View file @
9f287095
...
...
@@ -42,7 +42,7 @@
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
bed
"></i>
</div>
<input type="
text
" name="
jumlah_kamar
" value="" id="
kamar
" class="
form
-
control
">
<input type="
Number
" name="
jumlah_kamar
" value="" id="
kamar
" class="
form
-
control
">
</div>
</div>
<div class="
form
-
group
">
...
...
resources/views/vendor/adminlte/layouts/owner/ListBooking.blade.php
View file @
9f287095
...
...
@@ -47,7 +47,7 @@
<form action="
{{
url
(
'checkout/'
.
$a
->
id
)}}
" method="
post
">
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<button type="
submit
" class="
btn
btn
-
info
"><i class="
glyphicon
glyphicon
-
apple
"> Checkout</i></button>
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Checkout</i></button>
</form>
@endif
</td>
...
...
resources/views/vendor/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
View file @
9f287095
...
...
@@ -36,7 +36,7 @@
<td>
{
{$a->deskripsi}
}
</td>
<td>
@if(
$a->gambar
==null)
<img alt="
Gambar
Tidak
Ada
" class="
img
-
circle
img
-
responsive
">
Tidak ada gambar
@else
<img alt="
User
Pic
" src="
img
/
{{
$a
->
gambar
}}
" style="
width
:
250
px
;
height
:
120
px
" >
@endif
...
...
@@ -49,7 +49,7 @@
</tr>
@endforeach
</table>
{!!
$data->render
() !!}
</div>
</div>
@endsection
resources/views/vendor/adminlte/layouts/owner/listPesanan.blade.php
View file @
9f287095
...
...
@@ -52,9 +52,15 @@
<td>
{
{$a->lama_menginap}
}
Hari</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
@if(
$a->bukti_pembayaran
==null)
Bukti pembayaran tidak ada
@else
<img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
width
:
100
px
" alt="
User
Image
" onclick="
document
.
getElementById
(
'modal'
)
.
style
.
display
=
'block'
"/>
@endif
<img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
width
:
100
px
" alt="
User
Image
" onclick="
document
.
getElementById
(
'modal'
)
.
style
.
display
=
'block'
"/>
</td>
<td>
@if(
$a->status
==0)
<td>
...
...
@@ -62,7 +68,7 @@
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<input type="
hidden
" name="
konfirmasi
" value="
1
">
<button type="
submit
" class="
btn
btn
-
info
"><i class="
glyphicon
glyphicon
-
apple
"> Terima</i></button>
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Terima</i></button>
</form>
<td>
<form action="
{{
url
(
'konfirmasiPemesanan/'
.
$a
->
id
)}}
" method="
post
">
...
...
@@ -76,9 +82,11 @@
@elseif(
$a->status
==2) Ditolak
@endif
</td>
</td>
</tr>
@endforeach
</table>
{!!
$data->render
() !!}
</div>
</div>
@endsection
resources/views/vendor/adminlte/layouts/owner/listfeedback.blade.php
View file @
9f287095
...
...
@@ -24,13 +24,19 @@
</ul>
</div>
@endif
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
</div>
<div class="
box
-
body
">
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
">
<!-- /.info-box -->
</div>
<br>
<table class="
table
table
-
striped
">
<tr>
<th>Nama Pelanggan</th>
...
...
@@ -45,6 +51,7 @@
</tr>
@endforeach
</table>
{!!
$data->render
() !!}
</div>
</div>
@endsection
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
9f287095
...
...
@@ -32,7 +32,7 @@
<i
class=
"fa fa-angle-left pull-right"
></i>
</span></a>
<ul
class=
"treeview-menu"
style=
"display : none;"
>
<li><a
href=
"{{url('reqFasilitas')}}"
><i
class=
'fa fa-external-link-square'
></i>
<span>
Daftar
Permintaan Fasilitas
</span></a></li>
<li><a
href=
"{{url('reqFasilitas')}}"
><i
class=
'fa fa-external-link-square'
></i>
<span>
Tambah
Permintaan Fasilitas
</span></a></li>
<li><a
href=
"{{url('listPengajuanFasilitas')}}"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Pengajuan Fasilitas
</span></a></li>
</ul>
</li>
...
...
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