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
b09e06dc
Commit
b09e06dc
authored
Jun 16, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6a3b18ae
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
13 deletions
+39
-13
AdminController.php
app/Http/Controllers/AdminController.php
+9
-3
CustomerController.php
app/Http/Controllers/CustomerController.php
+0
-3
GuestController.php
app/Http/Controllers/GuestController.php
+17
-0
updateOwner.blade.php
...views/vendor/adminlte/layouts/admin/updateOwner.blade.php
+2
-3
rincianpemesanan.blade.php
...dor/adminlte/layouts/customers/rincianpemesanan.blade.php
+0
-0
Report.blade.php
...rces/views/vendor/adminlte/layouts/owner/Report.blade.php
+11
-3
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+0
-1
No files found.
app/Http/Controllers/AdminController.php
View file @
b09e06dc
...
@@ -215,13 +215,19 @@ class AdminController extends Controller
...
@@ -215,13 +215,19 @@ class AdminController extends Controller
$dataOw
->
no_rekening
;
$dataOw
->
no_rekening
;
//dd('aman',$
dataOw->id_akun
);
//dd('aman',$
request['username']
);
$dataUs
=
User
::
find
(
$dataOw
->
id_akun
);
$dataUs
=
User
::
find
(
$dataOw
->
id_akun
);
if
(
$request
[
'password'
]
==
null
||
$request
[
'password'
]
==
' '
){
$dataUs
->
username
=
$request
[
'username'
];
$dataUs
->
password
=
$dataUs
->
password
;
}
else
{
$dataUs
->
password
=
bcrypt
(
$request
[
'password'
]);
$dataUs
->
password
=
bcrypt
(
$request
[
'password'
]);
}
//dd($dataUs);
//dd($dataUs);
...
...
app/Http/Controllers/CustomerController.php
View file @
b09e06dc
...
@@ -17,9 +17,6 @@ use Illuminate\Contracts\Auth\Guard;
...
@@ -17,9 +17,6 @@ use Illuminate\Contracts\Auth\Guard;
use
DateTime
;
use
DateTime
;
use
PhpParser\Node\Stmt\Const_
;
use
PhpParser\Node\Stmt\Const_
;
use
Psy\Command\ListCommand\ConstantEnumerator
;
use
Psy\Command\ListCommand\ConstantEnumerator
;
use
Illuminate\Notifications\Messages\NexmoMessage
;
use
SimpleSoftwareIO\SMS\Drivers\NexmoSMS
;
use
Nexmo\Laravel\Facade\Nexmo
;
use
PDF
;
use
PDF
;
...
...
app/Http/Controllers/GuestController.php
View file @
b09e06dc
...
@@ -44,6 +44,13 @@ class GuestController extends Controller
...
@@ -44,6 +44,13 @@ class GuestController extends Controller
->
where
(
'users.id'
,
'='
,
Auth
::
user
()
->
id
)
->
where
(
'users.id'
,
'='
,
Auth
::
user
()
->
id
)
->
get
();
->
get
();
$dataPemilik
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'='
,
'pemilikhomestay.id'
)
->
where
(
'homestay.id'
,
'='
,
$request
[
'id_homestay'
])
->
get
();
//dd($dataPemilik[0]);
$trans
=
new
Transaksi
();
$trans
=
new
Transaksi
();
$trans
->
id_pelanggan
=
$dataPelanggan
[
0
]
->
id
;
$trans
->
id_pelanggan
=
$dataPelanggan
[
0
]
->
id
;
...
@@ -96,6 +103,16 @@ class GuestController extends Controller
...
@@ -96,6 +103,16 @@ class GuestController extends Controller
$lb
->
save
();
$lb
->
save
();
$text
=
"Ada Pesanan Kamar dari Sdr/i : "
;
$pesan
=
$text
.
' '
.
$dataPelanggan
[
0
]
->
nama
;
$newPesan
=
$pesan
.
' '
.
"Silahkan Cek Sistem Informasi"
;
Nexmo
::
message
()
->
send
([
'to'
=>
$dataPemilik
[
0
]
->
no_telepon
,
'from'
=>
'ASDASD'
,
'text'
=>
$newPesan
]);
return
redirect
(
'customerHistory'
);
return
redirect
(
'customerHistory'
);
//dd($request);
//dd($request);
...
...
resources/views/vendor/adminlte/layouts/admin/updateOwner.blade.php
View file @
b09e06dc
...
@@ -91,15 +91,14 @@
...
@@ -91,15 +91,14 @@
</div>
</div>
<div class="
form
-
group
">
<!-- <div class="
form
-
group
">
<label>Password</label>
<label>Password</label>
<div class="
input
-
group
">
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<div class="
input
-
group
-
addon
">
<input type="
password
" name="
password
" class="
form
-
control
" placeholder="
Password
">
<input type="
password
" name="
password
" class="
form
-
control
" placeholder="
Password
">
</div>
</div>
</div>
</div>
</div>
-->
</div>
<div class="
form
-
group
" align="
right
" style="
color
:
black
;
">
<div class="
form
-
group
" align="
right
" style="
color
:
black
;
">
<button type="
submit
" class="
btn
btn
-
primary
">Update</button>
<button type="
submit
" class="
btn
btn
-
primary
">Update</button>
...
...
resources/views/vendor/adminlte/layouts/customers/rincianpemesanan.blade.php
View file @
b09e06dc
resources/views/vendor/adminlte/layouts/owner/Report.blade.php
View file @
b09e06dc
...
@@ -13,13 +13,12 @@
...
@@ -13,13 +13,12 @@
<div class="
box
-
body
">
<div class="
box
-
body
">
<form action="
{{
url
(
'report'
)}}
">
<form action="
{{
url
(
'report'
)}}
">
<label>Bulan</label>
<label>Bulan</label>
<input type="
number
" min="
1
" max="
12
" name="
bulan
" required >
<input type="
number
" min="
1
"
onchange="
updateVal
(
this
)
"
max="
12
" name="
bulan
" required >
<input type="
submit
" value="
Cari
" class="
btn
-
btn
info
">
<input type="
submit
" value="
Cari
" class="
btn
-
btn
info
">
</form>
</form>
<form action="
{{
url
(
'printReportOwner'
)}}
" enctype="
multipart
/
form
-
data
" style="
float
:
right
;
">
<form action="
{{
url
(
'printReportOwner'
)}}
" enctype="
multipart
/
form
-
data
" style="
float
:
right
;
">
<div class="
form
-
group
" align="
right
">
<div class="
form
-
group
" align="
right
">
<label>Bulan</label>
<input type="
number
" hidden id="
print
" min="
1
" max="
12
" name="
bulan
" display="
none
" required >
<input type="
number
" min="
1
" max="
12
" name="
bulan
" display="
none
" required >
<input type="
submit
" class="
btn
btn
-
warning
" value="
Print
">
<input type="
submit
" class="
btn
btn
-
warning
" value="
Print
">
</div>
</div>
</form>
</form>
...
@@ -67,4 +66,13 @@
...
@@ -67,4 +66,13 @@
@endif
@endif
</div>
</div>
</div>
</div>
<script>
function updateVal(object) {
var field = document.getElementById('print');
field.value = parseInt(object.value);
}
</script>
@endsection
@endsection
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
b09e06dc
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
<li
class=
"treeview "
><a
href=
"#"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Request
</span>
</a>
<li
class=
"treeview "
><a
href=
"#"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Request
</span>
</a>
<ul
class=
"treeview-menu"
style=
"display: none;"
>
<ul
class=
"treeview-menu"
style=
"display: none;"
>
<li><a
href=
"{{url('requestFasilitas')}}"
><i
class=
'fa fa-television'
></i>
<span>
Acc Request Fasilitas
</span></a></li>
<li><a
href=
"{{url('requestFasilitas')}}"
><i
class=
'fa fa-television'
></i>
<span>
Acc Request Fasilitas
</span></a></li>
<li><a
href=
"{{url('requestHomestay')}}"
><i
class=
'fa fa-home'
></i>
<span>
Acc Pengajuan Homestay
</span></a></li>
</ul>
</ul>
</li>
</li>
<li
class=
"treeview"
><a
href=
"#"
><i
class=
'fa fa-users'
></i>
<span>
Pemilik Homestay
</span></a>
<li
class=
"treeview"
><a
href=
"#"
><i
class=
'fa fa-users'
></i>
<span>
Pemilik Homestay
</span></a>
...
...
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