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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
33 deletions
+53
-33
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
+32
-14
resultlistpesanan.blade.php
...vendor/adminlte/layouts/admin/resultlistpesanan.blade.php
+3
-0
Report.blade.php
...rces/views/vendor/adminlte/layouts/owner/Report.blade.php
+11
-14
No files found.
app/Http/Controllers/AdminController.php
View file @
7816281a
...
@@ -102,8 +102,10 @@ class AdminController extends Controller
...
@@ -102,8 +102,10 @@ class AdminController extends Controller
$data2
=
DB
::
table
(
'daftar_book'
)
$data2
=
DB
::
table
(
'daftar_book'
)
->
where
(
'daftar_book.homestay'
,
'='
,
$dataHomestay
[
0
]
->
id
)
->
where
(
'daftar_book.homestay'
,
'='
,
$dataHomestay
[
0
]
->
id
)
->
join
(
'homestay'
,
'daftar_book.homestay'
,
'='
,
'homestay.id'
)
->
where
(
'daftar_book.id_transaksi'
,
'='
,
null
)
->
where
(
'daftar_book.id_transaksi'
,
'='
,
null
)
->
whereMonth
(
'daftar_book.tanggal_mulai'
,
'='
,
$request
[
'bulan'
])
->
whereMonth
(
'daftar_book.tanggal_mulai'
,
'='
,
$request
[
'bulan'
])
->
select
(
'homestay.nama_homestay'
,
'homestay.owner'
,
'daftar_book.*'
)
->
get
();
->
get
();
//$i=0;
//$i=0;
...
@@ -118,9 +120,9 @@ class AdminController extends Controller
...
@@ -118,9 +120,9 @@ class AdminController extends Controller
$penghasilan
+=
$biaya
;
$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
);
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 @@
...
@@ -53,13 +53,13 @@
<tr>
<tr>
<th>
Total Pembayaran
</th>
<th>
Total Pembayaran
</th>
<td>
:
</td>
<td>
:
</td>
<td>
{{$a->total_harga}}
</td>
<td>
Rp.
{{$a->total_harga}}
</td>
</tr>
<br><br>
</tr>
<br><br>
</table>
</table>
@endforeach
@endforeach
<h3>
Total Tamu :
</h3>
{{$tamu}}
<h3>
Total Tamu :
{{$tamu}}
</h3>
<h3>
Total Penghasilan :
</h3>
{{$penghasilan}}
<h3>
Total Penghasilan :
Rp. {{$penghasilan}}
</h3>
</body>
</body>
</html>
</html>
resources/views/vendor/adminlte/layouts/admin/dataPemesanan.blade.php
View file @
7816281a
...
@@ -41,29 +41,47 @@
...
@@ -41,29 +41,47 @@
</div>
</div>
</form>
</form>
<table class="
table
table
-
striped
">
<table id="
example2
" class="
table
table
-
bordered
table
-
hover
">
<thead>
<tr>
<tr>
<th>
Nama
Homestay</th>
<th>Homestay</th>
<th>Nama Pemilik Hom
e
stay</th>
<th>Nama Pemilik Homstay</th>
<th>Nama Pemesan</th>
<th>Nama Pemesan</th>
<th>Tanggal Mulai</th>
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Tanggal Berakhir</th>
<th>Jumlah Kamar yang dipesan</th>
<th>Jumlah Kamar yang dipesan</th>
</tr>
</tr>
@foreach(
$data
as
$a
)
</thead>
<tr>
<tbody>
<td>
{
{$a->nama_homestay}
}
</td>
@foreach(
$data
as
$a
)
<td>
{
{$a->owner}
}
</td>
<tr>
<td>
{
{$a->nama_pemesan}
}
</td>
<td>
{
{$a->nama_homestay}
}
</td>
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->owner}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->nama_pemesan}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->tanggal_mulai}
}
</td>
</tr>
<td>
{
{$a->tanggal_berakhir}
}
</td>
@endforeach
<td>
{
{$a->jumlah_kamar}
}
</td>
</tr>
@endforeach
</tbody>
</table>
</table>
{!!
$data->render
() !!}
</div>
</div>
</div>
</div>
<script>
$(function () {
$("
#example1").DataTable();
$
(
'#example2'
)
.
DataTable
({
"paging"
:
true
,
"lengthChange"
:
false
,
"searching"
:
false
,
"ordering"
:
true
,
"info"
:
true
,
"autoWidth"
:
false
});
});
</
script
>
@
endsection
@
endsection
resources/views/vendor/adminlte/layouts/admin/resultlistpesanan.blade.php
View file @
7816281a
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
<th>Tanggal Mulai</th>
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Tanggal Berakhir</th>
<th>Jumlah Kamar yang dipesan</th>
<th>Jumlah Kamar yang dipesan</th>
<th>Total Harga</th>
</tr>
</tr>
@foreach(
$data
as
$a
)
@foreach(
$data
as
$a
)
<tr>
<tr>
...
@@ -43,6 +44,7 @@
...
@@ -43,6 +44,7 @@
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->total_harga}
}
</td>
</tr>
</tr>
@endforeach
@endforeach
@foreach(
$data2
as
$c
)
@foreach(
$data2
as
$c
)
...
@@ -53,6 +55,7 @@
...
@@ -53,6 +55,7 @@
<td>
{
{$c->tanggal_mulai}
}
</td>
<td>
{
{$c->tanggal_mulai}
}
</td>
<td>
{
{$c->tanggal_berakhir}
}
</td>
<td>
{
{$c->tanggal_berakhir}
}
</td>
<td>
{
{$c->jumlah_kamar}
}
</td>
<td>
{
{$c->jumlah_kamar}
}
</td>
<td>
{
{$c->total_harga}
}
</td>
</tr>
</tr>
@endforeach
@endforeach
...
...
resources/views/vendor/adminlte/layouts/owner/Report.blade.php
View file @
7816281a
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
<div class="
box
-
body
">
<div class="
box
-
body
">
<form action="
{{
url
(
'report'
)}}
">
<form action="
{{
url
(
'report'
)}}
">
<label>Bulan</label>
<label>Bulan</label>
<input type="
number
" min="
1
" max="
12
" name="
bulan
" required >
<input type="
number
" min="
1
" max="
12
" name="
bulan
" required
>
<input type="
submit
" value="
Cari
" class="
btn
-
btn
info
">
<input type="
submit
" value="
Cari
" class="
btn
-
btn
info
">
</form>
</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
">
<div class="
form
-
group
" align="
right
">
<label>Bulan</label>
<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
">
<input type="
submit
" class="
btn
btn
-
warning
" value="
Print
">
</div>
</div>
</form>
</form>
...
@@ -30,14 +30,14 @@
...
@@ -30,14 +30,14 @@
<table class="
table
">
<table class="
table
">
<tr>
<tr>
<td></td>
<td></td>
<t
d>Nama Pemesan</td
>
<t
h>Nama Pemesan</th
>
<t
d>Jumlah Kamar</td
>
<t
h>Jumlah Kamar</th
>
<t
d>Jumlah Tamu</td
>
<t
h>Jumlah Tamu</th
>
<t
d>Lama Menginap</td
>
<t
h>Lama Menginap</th
>
<t
d>Extrabed</td
>
<t
h>Extrabed</th
>
<t
d>Tanggal Mulai</td
>
<t
h>Tanggal Mulai</th
>
<t
d>Tanggal Berakhir</td
>
<t
h>Tanggal Berakhir</th
>
<t
d>Total Harga</td
>
<t
h>Total Harga</th
>
</tr>
</tr>
@foreach(
$data
as
$a
)
@foreach(
$data
as
$a
)
<tr>
<tr>
...
@@ -65,9 +65,6 @@
...
@@ -65,9 +65,6 @@
</tr>
</tr>
</table>
</table>
@endif
@endif
</div>
</div>
</div>
</div>
@endsection
@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