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
7816281a
Commit
7816281a
authored
Jun 15, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abcd
parent
196e320d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
22 deletions
+42
-22
AdminController.php
app/Http/Controllers/AdminController.php
+4
-2
reportOwner.blade.php
resources/views/pdf/reportOwner.blade.php
+3
-3
dataPemesanan.blade.php
...ews/vendor/adminlte/layouts/admin/dataPemesanan.blade.php
+22
-4
resultlistpesanan.blade.php
...vendor/adminlte/layouts/admin/resultlistpesanan.blade.php
+3
-0
Report.blade.php
...rces/views/vendor/adminlte/layouts/owner/Report.blade.php
+10
-13
No files found.
app/Http/Controllers/AdminController.php
View file @
7816281a
...
...
@@ -102,8 +102,10 @@ class AdminController extends Controller
$data2
=
DB
::
table
(
'daftar_book'
)
->
where
(
'daftar_book.homestay'
,
'='
,
$dataHomestay
[
0
]
->
id
)
->
join
(
'homestay'
,
'daftar_book.homestay'
,
'='
,
'homestay.id'
)
->
where
(
'daftar_book.id_transaksi'
,
'='
,
null
)
->
whereMonth
(
'daftar_book.tanggal_mulai'
,
'='
,
$request
[
'bulan'
])
->
select
(
'homestay.nama_homestay'
,
'homestay.owner'
,
'daftar_book.*'
)
->
get
();
//$i=0;
...
...
@@ -118,9 +120,9 @@ class AdminController extends Controller
$penghasilan
+=
$biaya
;
}
dd
(
$data
,
$data2
,
$penghasilan
);
//
dd($data,$data2,$penghasilan);
//
dd('masuk',$request['bulan'],$request['nama_homestay'],$data
);
//
dd($data2
);
return
view
(
'adminlte::layouts.admin.resultlistpesanan'
)
->
with
(
'data'
,
$data
)
->
with
(
'data2'
,
$data2
);
}
...
...
resources/views/pdf/reportOwner.blade.php
View file @
7816281a
...
...
@@ -53,13 +53,13 @@
<tr>
<th>
Total Pembayaran
</th>
<td>
:
</td>
<td>
{{$a->total_harga}}
</td>
<td>
Rp.
{{$a->total_harga}}
</td>
</tr>
<br><br>
</table>
@endforeach
<h3>
Total Tamu :
</h3>
{{$tamu}}
<h3>
Total Penghasilan :
</h3>
{{$penghasilan}}
<h3>
Total Tamu :
{{$tamu}}
</h3>
<h3>
Total Penghasilan :
Rp. {{$penghasilan}}
</h3>
</body>
</html>
resources/views/vendor/adminlte/layouts/admin/dataPemesanan.blade.php
View file @
7816281a
...
...
@@ -41,15 +41,19 @@
</div>
</form>
<table class="
table
table
-
striped
">
<table id="
example2
" class="
table
table
-
bordered
table
-
hover
">
<thead>
<tr>
<th>
Nama
Homestay</th>
<th>Nama Pemilik Hom
e
stay</th>
<th>Homestay</th>
<th>Nama Pemilik Homstay</th>
<th>Nama Pemesan</th>
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Jumlah Kamar yang dipesan</th>
</tr>
</thead>
<tbody>
@foreach(
$data
as
$a
)
<tr>
<td>
{
{$a->nama_homestay}
}
</td>
...
...
@@ -60,10 +64,24 @@
<td>
{
{$a->jumlah_kamar}
}
</td>
</tr>
@endforeach
</tbody>
</table>
{!!
$data->render
() !!}
</div>
</div>
<script>
$(function () {
$("
#example1").DataTable();
$
(
'#example2'
)
.
DataTable
({
"paging"
:
true
,
"lengthChange"
:
false
,
"searching"
:
false
,
"ordering"
:
true
,
"info"
:
true
,
"autoWidth"
:
false
});
});
</
script
>
@
endsection
resources/views/vendor/adminlte/layouts/admin/resultlistpesanan.blade.php
View file @
7816281a
...
...
@@ -34,6 +34,7 @@
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Jumlah Kamar yang dipesan</th>
<th>Total Harga</th>
</tr>
@foreach(
$data
as
$a
)
<tr>
...
...
@@ -43,6 +44,7 @@
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->total_harga}
}
</td>
</tr>
@endforeach
@foreach(
$data2
as
$c
)
...
...
@@ -53,6 +55,7 @@
<td>
{
{$c->tanggal_mulai}
}
</td>
<td>
{
{$c->tanggal_berakhir}
}
</td>
<td>
{
{$c->jumlah_kamar}
}
</td>
<td>
{
{$c->total_harga}
}
</td>
</tr>
@endforeach
...
...
resources/views/vendor/adminlte/layouts/owner/Report.blade.php
View file @
7816281a
...
...
@@ -16,10 +16,10 @@
<input type="
number
" min="
1
" max="
12
" name="
bulan
" required >
<input type="
submit
" value="
Cari
" class="
btn
-
btn
info
">
</form>
<form action="
{{
url
(
'printReportOwner'
)}}
" enctype="
multipart
/
form
-
data
">
<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
" required >
<input type="
number
" min="
1
" max="
12
" name="
bulan
"
display="
none
"
required >
<input type="
submit
" class="
btn
btn
-
warning
" value="
Print
">
</div>
</form>
...
...
@@ -30,14 +30,14 @@
<table class="
table
">
<tr>
<td></td>
<t
d>Nama Pemesan</td
>
<t
d>Jumlah Kamar</td
>
<t
d>Jumlah Tamu</td
>
<t
d>Lama Menginap</td
>
<t
d>Extrabed</td
>
<t
d>Tanggal Mulai</td
>
<t
d>Tanggal Berakhir</td
>
<t
d>Total Harga</td
>
<t
h>Nama Pemesan</th
>
<t
h>Jumlah Kamar</th
>
<t
h>Jumlah Tamu</th
>
<t
h>Lama Menginap</th
>
<t
h>Extrabed</th
>
<t
h>Tanggal Mulai</th
>
<t
h>Tanggal Berakhir</th
>
<t
h>Total Harga</th
>
</tr>
@foreach(
$data
as
$a
)
<tr>
...
...
@@ -65,9 +65,6 @@
</tr>
</table>
@endif
</div>
</div>
@endsection
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