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
db87a5d5
Commit
db87a5d5
authored
Jun 15, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ss
parent
5456ac6a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
PDFController.php
app/Http/Controllers/PDFController.php
+11
-0
rincianHostory.blade.php
resources/views/pdf/rincianHostory.blade.php
+24
-0
rincianHistory.blade.php
...endor/adminlte/layouts/customers/rincianHistory.blade.php
+1
-1
No files found.
app/Http/Controllers/PDFController.php
View file @
db87a5d5
...
@@ -36,7 +36,18 @@ class PDFController extends Controller
...
@@ -36,7 +36,18 @@ class PDFController extends Controller
$pdf
=
PDF
::
loadView
(
'pdf.adminfasilitas'
,[
'data'
=>
$dataFasilitas
[
0
]]);
$pdf
=
PDF
::
loadView
(
'pdf.adminfasilitas'
,[
'data'
=>
$dataFasilitas
[
0
]]);
return
$pdf
->
stream
(
'adminfasilitas.pdf'
);
return
$pdf
->
stream
(
'adminfasilitas.pdf'
);
}
public
function
rincianHistory
(
$id
){
$rincianHistory
=
DB
::
table
(
'transaksi'
)
->
join
(
'pelanggan'
,
'transaksi.id_pelanggan'
,
'='
,
'pelanggan.id'
)
->
join
(
'homestay'
,
'transaksi.id_homestay'
,
'='
,
'homestay.id'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'='
,
'pemilikhomestay.id'
)
->
select
(
'transaksi.status'
,
'transaksi.total_pembayaran'
,
'transaksi.bukti_pembayaran'
,
'transaksi.tanggal_mulai'
,
'transaksi.id'
,
'transaksi.tanggal_berakhir'
,
'transaksi.jumlah_kamar'
,
'transaksi.lama_menginap'
,
'pelanggan.nama'
,
'pelanggan.no_telepon'
,
'pemilikhomestay.no_rekening'
,
'homestay.nama_homestay'
)
->
where
(
'transaksi.id'
,
'='
,
$id
)
->
get
();
$pdf
=
PDF
::
loadView
(
'pdf.rincianHistory'
,[
'data'
=>
$rincianHistory
[
0
]]);
return
$pdf
->
stream
(
'rincianHistory'
);
}
}
}
}
resources/views/pdf/rincianHostory.blade.php
0 → 100644
View file @
db87a5d5
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title></title>
</head>
<body>
<p
style=
"float:right;"
><b>
Tanggal :
</b>
<?php
echo
date
(
"Y/m/d"
)
;
?>
</p>
<br><br><br>
Test
<table
class=
"table table-user-information"
>
<!-- <tr>
<th>bukti Pembayaran</th>
<td>: </td>
<td><img src="/img/{{ $data->bukti_pembayaran }}"></td>
</tr> -->
</table>
</body>
</html>
resources/views/vendor/adminlte/layouts/customers/rincianHistory.blade.php
View file @
db87a5d5
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<
td
>
{{
$data
->
total_pembayaran
}}
</
td
>
<
td
>
{{
$data
->
total_pembayaran
}}
</
td
>
</
tr
>
</
tr
>
<
tr
>
<
tr
>
<
td
>
<
a
href
=
""
class
="
btn
btn
-
primary
"><i class="
glyphicon
glyphicon
-
eye
-
open
"></i> print </a></td>
<
td
>
<
a
href
=
""
class
="
btn
btn
-
warning
"><i class="
glyphicon
glyphicon
-
print
"></i> print </a></td>
</tr>
</tr>
</table>
</table>
</div>
</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