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
e7605eba
Commit
e7605eba
authored
Jun 19, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c635121d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
19 deletions
+15
-19
GuestController.php
app/Http/Controllers/GuestController.php
+11
-7
Homestay.blade.php
...es/views/vendor/adminlte/layouts/pages/Homestay.blade.php
+0
-6
detilSHomestay.blade.php
...ws/vendor/adminlte/layouts/pages/detilSHomestay.blade.php
+4
-6
No files found.
app/Http/Controllers/GuestController.php
View file @
e7605eba
...
...
@@ -344,16 +344,16 @@ class GuestController extends Controller
//dd($dataHomestay,$dataCurrent,$currentKamar);
}
else
{
return
redirect
(
''
)
->
with
(
'message'
,
'Jumlah Kamar
yang sesuai
tidak mencukupi'
);
return
redirect
(
''
)
->
with
(
'message'
,
'Jumlah Kamar tidak mencukupi'
);
}
if
(
$dataHomestay
==
null
){
dd
(
'salah'
);
return
redirect
(
''
)
->
with
(
'message'
,
'Jumlah Kamar
yang sesuai
tidak mencukupi'
);
return
redirect
(
''
)
->
with
(
'message'
,
'Jumlah Kamar tidak mencukupi'
);
}
if
(
$dataHomestay
[
0
]
==
null
){
return
redirect
(
''
)
->
with
(
'message'
,
'Jumlah Kamar
yang sesuai
tidak mencukupi'
);
return
redirect
(
''
)
->
with
(
'message'
,
'Jumlah Kamar tidak mencukupi'
);
dd
(
'salah'
);
}
...
...
@@ -418,13 +418,17 @@ class GuestController extends Controller
->
get
();
//dd($dataUser[0]);
if
(
Auth
::
attempt
([
'username'
=>
$dataUser
[
0
]
->
username
,
'password'
=>
$dataUser
[
0
]
->
password
]))
{
Auth
::
login
(
$user
);
return
redirect
(
'/'
);
}
else
{
return
redirect
(
'login'
);
}
// if (Auth::attempt(['username' => $dataUser[0]->username, 'password' => $dataUser[0]->password])) {
// return redirect('/');
// }else{
//
// }
// return redirect('login')->with('mesaage','anda sudah terdaftar silahkan login');
}
}
...
...
resources/views/vendor/adminlte/layouts/pages/Homestay.blade.php
View file @
e7605eba
...
...
@@ -56,12 +56,6 @@
<
td
>:</
td
>
<
td
>
{{
$data
->
alamat
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
No
Rekening
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
no_rekening
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
Harga
</
td
>
<
td
>:</
td
>
...
...
resources/views/vendor/adminlte/layouts/pages/detilSHomestay.blade.php
View file @
e7605eba
...
...
@@ -62,11 +62,6 @@
</
tr
>
<
tr
>
<
td
>
No
Rekening
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
no_rekening
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
Harga
</
td
>
<
td
>:</
td
>
<
td
>
Rp
150.000
/
malam
</
td
>
...
...
@@ -79,7 +74,10 @@
<
input
type
=
"hidden"
name
=
"tanggal_selesai"
value
=
"
{
{$ts}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_tamu"
value
=
"
{
{$jt}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_kamar"
value
=
"
{
{$jk}
}
"
>
<
input
type
=
"submit"
value
=
"Pesan Sekarang"
class
="
btn
-
succes
">
<
input
type
=
"submit"
value
=
"Pesan Sekarang"
class
="
btn
-
succes
" style="
background
-
color
:
#1dc8d9;
color
:
white
;
border
:
none
;
padding
:
10
px
;
">
</form>
</td>
</tr>
...
...
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