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
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
14 deletions
+40
-14
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
+1
-1
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
$dataOw
->
no_rekening
;
//dd('aman',$
dataOw->id_akun
);
//dd('aman',$
request['username']
);
$dataUs
=
User
::
find
(
$dataOw
->
id_akun
);
if
(
$request
[
'password'
]
==
null
||
$request
[
'password'
]
==
' '
){
$dataUs
->
password
=
$dataUs
->
password
;
}
else
{
$dataUs
->
password
=
bcrypt
(
$request
[
'password'
]);
}
$dataUs
->
username
=
$request
[
'username'
];
$dataUs
->
password
=
bcrypt
(
$request
[
'password'
]);
//dd($dataUs);
...
...
app/Http/Controllers/CustomerController.php
View file @
b09e06dc
...
...
@@ -17,9 +17,6 @@ use Illuminate\Contracts\Auth\Guard;
use
DateTime
;
use
PhpParser\Node\Stmt\Const_
;
use
Psy\Command\ListCommand\ConstantEnumerator
;
use
Illuminate\Notifications\Messages\NexmoMessage
;
use
SimpleSoftwareIO\SMS\Drivers\NexmoSMS
;
use
Nexmo\Laravel\Facade\Nexmo
;
use
PDF
;
...
...
app/Http/Controllers/GuestController.php
View file @
b09e06dc
...
...
@@ -43,6 +43,13 @@ class GuestController extends Controller
->
select
(
'pelanggan.id'
,
'pelanggan.nama'
)
->
where
(
'users.id'
,
'='
,
Auth
::
user
()
->
id
)
->
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
();
...
...
@@ -96,6 +103,16 @@ class GuestController extends Controller
$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'
);
//dd($request);
...
...
resources/views/vendor/adminlte/layouts/admin/updateOwner.blade.php
View file @
b09e06dc
...
...
@@ -91,15 +91,14 @@
</div>
<!-- <div class="
form
-
group
">
<div class="
form
-
group
">
<label>Password</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<input type="
password
" name="
password
" class="
form
-
control
" placeholder="
Password
">
</div>
</div>
</div>
-->
</div>
<div class="
form
-
group
" align="
right
" style="
color
:
black
;
">
<button type="
submit
" class="
btn
btn
-
primary
">Update</button>
...
...
resources/views/vendor/adminlte/layouts/customers/rincianpemesanan.blade.php
View file @
b09e06dc
...
...
@@ -40,7 +40,7 @@
<
div
class
="
form
-
group
">
<div class="
col
-
sm
-
10
">
<label>ExtraBed</label>
<input type="
number
" min="
0
" name="
extrabed
" onchange="
updateVal
(
this
)
" class="
form
-
control
" id="
exbed
" >
<input type="
number
" min="
0
" name="
extrabed
" onchange="
updateVal
(
this
)
" class="
form
-
control
" id="
exbed
" >
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/owner/Report.blade.php
View file @
b09e06dc
...
...
@@ -13,13 +13,12 @@
<div class="
box
-
body
">
<form action="
{{
url
(
'report'
)}}
">
<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
">
</form>
<form action="
{{
url
(
'printReportOwner'
)}}
" enctype="
multipart
/
form
-
data
" style="
float
:
right
;
">
<div class="
form
-
group
" align="
right
">
<label>Bulan</label>
<input type="
number
" min="
1
" max="
12
" name="
bulan
" display="
none
" required >
<input type="
number
" hidden id="
print
" min="
1
" max="
12
" name="
bulan
" display="
none
" required >
<input type="
submit
" class="
btn
btn
-
warning
" value="
Print
">
</div>
</form>
...
...
@@ -67,4 +66,13 @@
@endif
</div>
</div>
<script>
function updateVal(object) {
var field = document.getElementById('print');
field.value = parseInt(object.value);
}
</script>
@endsection
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
b09e06dc
...
...
@@ -15,7 +15,6 @@
<li
class=
"treeview "
><a
href=
"#"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Request
</span>
</a>
<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('requestHomestay')}}"
><i
class=
'fa fa-home'
></i>
<span>
Acc Pengajuan Homestay
</span></a></li>
</ul>
</li>
<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