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
30feb5bd
Commit
30feb5bd
authored
Jun 12, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Plain Diff
h-1
parents
9f287095
1606b1ac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
11 deletions
+15
-11
CustomerController.php
app/Http/Controllers/CustomerController.php
+0
-0
OwnerController.php
app/Http/Controllers/OwnerController.php
+3
-1
bulbul-01_gdsl53-1.jpg
public/img/bulbul-01_gdsl53-1.jpg
+0
-0
UpdatePemesanan.blade.php
...ndor/adminlte/layouts/customers/UpdatePemesanan.blade.php
+5
-5
listPesanan.blade.php
...views/vendor/adminlte/layouts/owner/listPesanan.blade.php
+1
-0
updateProfil.blade.php
...iews/vendor/adminlte/layouts/owner/updateProfil.blade.php
+4
-4
mainheader.blade.php
...ews/vendor/adminlte/layouts/partials/mainheader.blade.php
+1
-1
web.php
routes/web.php
+1
-0
No files found.
app/Http/Controllers/CustomerController.php
View file @
30feb5bd
This diff is collapsed.
Click to expand it.
app/Http/Controllers/OwnerController.php
View file @
30feb5bd
...
...
@@ -89,7 +89,7 @@ class OwnerController extends Controller
public
function
updateProfil
(
Request
$request
,
$id
){
$owner
=
Owner
::
where
(
'id'
,
$id
)
->
first
();
$user
=
User
::
where
(
'name'
,
$owner
->
nama
)
->
first
();
//dd($owner->id_akun);
if
(
$request
[
'nama'
]
==
""
){
$user
->
name
=
$owner
->
nama
;
}
else
{
...
...
@@ -104,11 +104,13 @@ class OwnerController extends Controller
if
(
$request
->
file
(
'picture'
)
==
null
){
$owner
->
foto
=
$owner
->
foto
;
$user
->
foto
=
$user
->
foto
;
}
else
{
$file
=
$request
->
file
(
'picture'
);
$fileName
=
$file
->
getClientOriginalName
();
$request
->
file
(
'picture'
)
->
move
(
"img/"
,
$fileName
);
$owner
->
foto
=
$fileName
;
$user
->
foto
=
$fileName
;
}
$user
->
update
();
...
...
public/img/bulbul-01_gdsl53-1.jpg
0 → 100644
View file @
30feb5bd
97.2 KB
resources/views/vendor/adminlte/layouts/customers/UpdatePemesanan.blade.php
View file @
30feb5bd
...
...
@@ -3,17 +3,17 @@
@
section
(
'main-content'
)
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
80
px
;
margin
-
bottom
:
100
px
;
">
<div class="
container
">
<form class="
form
-
horizontal
" action="
{{
url
(
'
upload/'
.
$data
->
id
)}}
" method="
post
" enctype="
multipart
/
form
-
data
">
<form class="
form
-
horizontal
" action="
{{
url
(
'
perbaharui/'
.
$data
->
id
)}}
" method="
post
">
<input type="
hidden
" name="
_method
" value="
PUT
">
{
{csrf_field()}
}
<label>Tanggal Mulai</label>
<input type="
text
" name="
tanggal
_mulai
" value="
{{
$data
->
tanggal_mulai
}}
" id="
noTelepon
" class="
form
-
control
">
<label>
Tanggal Berakhir
</label>
<input type="
text
" name="
tanggal_berakhir
" value="
{{
$data
->
tanggal_berakhir
}}
" class="
form
-
control
" >
<input type="
text
" name="
tanggal
" value="
{{
$data
->
tanggal_mulai
}}
" id="
noTelepon
" class="
form
-
control
">
<label>
Lama Menginap
</label>
<input type="
text
" name="
lama_menginap
" value="
{{
$lama_menginap
}}
" class="
form
-
control
" >
<label>Jumlah Kamar</label>
<input type="
text
" name="
jumlah_kamar
" value="
{{
$data
->
jumlah_kamar
}}
" class="
form
-
control
">
<div class="
form
-
group
" align="
right
">
<input type="
submit
" class="
btn
btn
-
primary
" value="
s
impan
">
<input type="
submit
" class="
btn
btn
-
primary
" value="
S
impan
">
</div>
</form>
</div>
...
...
resources/views/vendor/adminlte/layouts/owner/listPesanan.blade.php
View file @
30feb5bd
...
...
@@ -58,6 +58,7 @@
<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="
Tidak
Ada
Gambar
" onclick="
document
.
getElementById
(
'modal'
)
.
style
.
display
=
'block'
"/>
</td>
...
...
resources/views/vendor/adminlte/layouts/owner/updateProfil.blade.php
View file @
30feb5bd
...
...
@@ -55,7 +55,7 @@
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
dollar
"></i>
</div>
<input type="
text
" class="
form
-
control
" value="
{{
$data
->
pekerjaan
}}
"
placeholder="
pekerjaan
" name="
"/>
<input type="
text
" class="
form
-
control
" value="
{{
$data
->
pekerjaan
}}
"
name="
pekerjaan
"/>
</div>
</div>
...
...
@@ -65,7 +65,7 @@
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
dollar
"></i>
</div>
<input type="
Number
" class="
form
-
control
" value="
{{
$data
->
no_telepon
}}
" placeholder="
noTelepon
" name=""/>
<input type="
Number
" class="
form
-
control
" value="
{{
$data
->
no_telepon
}}
" placeholder="
noTelepon
" name="
noTelepon
"/>
</div>
</div>
...
...
@@ -75,14 +75,14 @@
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
dollar
"></i>
</div>
<input type="
Number
" class="
form
-
control
" value="
{{
$data
->
no_rekening
}}
" placeholder="
noRekening
" name=""/>
<input type="
Number
" class="
form
-
control
" value="
{{
$data
->
no_rekening
}}
" placeholder="
noRekening
" name="
noRekening
"/>
</div>
</div>
<div class="
form
-
group
">
<label>Foto </label>
<div class="
input
-
group
">
<input type="
file
" value="
Browse
" name="
foto
" id="
picture
" >
<input type="
file
" value="
Browse
" name="
picture
" id="
picture
" >
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/partials/mainheader.blade.php
View file @
30feb5bd
...
...
@@ -11,7 +11,7 @@
<span
class=
"logo-lg"
style=
"font-size: 17px;"
><b>
SI
</b>
Pemesanan Homestay
</span>
</a>
@elseif(Auth::user()->role=="Owner")
<a
href=
"{{ url('/
pesanan
') }}"
class=
"logo"
>
<a
href=
"{{ url('/') }}"
class=
"logo"
>
<!-- mini logo for sidebar mini 50x50 pixels -->
<span
class=
"logo-mini"
><b>
SI
</b>
PH
</span>
<!-- logo for regular state and mobile devices -->
...
...
routes/web.php
View file @
30feb5bd
...
...
@@ -88,6 +88,7 @@ Route::post('daftar','GuestController@registerStore');
Route
::
group
([
'middleware'
=>
'customer'
],
function
()
{
Route
::
get
(
'updatepesanan/{id}'
,
'CustomerController@updatePesanan'
);
Route
::
put
(
'perbaharui/{id}'
,
'CustomerController@perbaharui'
);
Route
::
put
(
'batalkan/{id}'
,
'CustomerController@cancelPemesanan'
);
Route
::
put
(
'upload/{id}'
,
'CustomerController@upload'
);
Route
::
get
(
'customerHistory'
,
'CustomerController@history'
);
...
...
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