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
930c3f41
Commit
930c3f41
authored
May 15, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pembayaran has
parent
3043f861
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
8 deletions
+22
-8
CustomerController.php
app/Http/Controllers/CustomerController.php
+19
-5
bukulapak.PNG
public/img/bukulapak.PNG
+0
-0
History.blade.php
...views/vendor/adminlte/layouts/customers/History.blade.php
+1
-1
Upload.blade.php
.../views/vendor/adminlte/layouts/customers/Upload.blade.php
+2
-2
No files found.
app/Http/Controllers/CustomerController.php
View file @
930c3f41
...
...
@@ -19,14 +19,28 @@ use Psy\Command\ListCommand\ConstantEnumerator;
class
CustomerController
extends
Controller
{
public
function
upload
(
Request
$request
,
$id
){
public
function
upload
(
Request
$request
,
$id
)
{
//dd("masuk agan");
$data
=
Transaksi
::
find
(
$id
);
return
redirect
()
->
action
(
'CustomerController@detailhomestay'
,
[
'id'
=>
$request
[
'id'
]]
);
if
(
$request
->
file
(
'bukti_pembayaran'
)
==
null
){
$data
->
foto
=
$data
->
foto
;
}
else
{
$file
=
$request
->
file
(
'bukti_pembayaran'
);
$fileName
=
$file
->
getClientOriginalName
();
$request
->
file
(
'bukti_pembayaran'
)
->
move
(
"img/"
,
$fileName
);
$data
->
bukti_pembayaran
=
$fileName
;
}
//$cus->update();
$data
->
update
();
return
redirect
(
'customerHistory'
);
}
public
function
bukti
(
$id
){
$data
=
Transaksi
::
find
(
$id
);
...
...
@@ -50,7 +64,7 @@ class CustomerController extends Controller
//dd("masuk agan",Auth::user()->id,$data[0]->id,
$dataTrans);
// dd(
$dataTrans);
return
view
(
'adminlte::layouts.customers.History'
)
->
with
(
'data'
,
$dataTrans
);
}
...
...
public/img/bukulapak.PNG
0 → 100644
View file @
930c3f41
20.6 KB
resources/views/vendor/adminlte/layouts/customers/History.blade.php
View file @
930c3f41
...
...
@@ -23,7 +23,7 @@
@if(
$a->bukti_pembayaran
==null)
<img alt="
Buku
Transfer
Tidak
Ada
" class="
img
-
circle
img
-
responsive
">
@else
<img alt="
User
Pic
" src="
img
/
{{
$data
->
gambar
}}
" class="
img
-
circle
img
-
responsive
"
>
<img alt="
User
Pic
" src="
{{
url
(
'/img/'
.
$a
->
bukti_pembayaran
)
}}
" class="
img
-
responsive
"
>
@endif
</td>
<td>
...
...
resources/views/vendor/adminlte/layouts/customers/Upload.blade.php
View file @
930c3f41
...
...
@@ -3,7 +3,7 @@
@
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
(
'
'
)}}
" method="
post
" enctype="
multipart
/
form
-
data
">
<form class="
form
-
horizontal
" action="
{{
url
(
'
upload/'
.
$data
->
id
)}}
" method="
post
" enctype="
multipart
/
form
-
data
">
<input type="
hidden
" name="
_method
" value="
PUT
">
{
{csrf_field()}
}
<label>Tanggal Mulai</label>
...
...
@@ -13,7 +13,7 @@
<label>Jumlah Kamar</label>
<input type="
text
" name="
jumlah_kamar
" value="
{{
$data
->
jumlah_kamar
}}
" class="
form
-
control
">
<label>Bukti Pembayaran</label>
<input type="
file
" name="
picture
" id="
picture
" class="
form
-
control
">
<br>
<input type="
file
" name="
bukti_pembayaran
" id="
foto
" class="
form
-
corol
">nt
<br>
<div class="
form
-
group
" align="
right
">
<input type="
submit
" class="
btn
btn
-
primary
" value="
simpan
">
</div>
...
...
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