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
655c7710
Commit
655c7710
authored
Jun 15, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Plain Diff
no message
parents
f21c6e37
b3089ba4
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
223 additions
and
42 deletions
+223
-42
AdminController.php
app/Http/Controllers/AdminController.php
+1
-1
CustomerController.php
app/Http/Controllers/CustomerController.php
+29
-0
OwnerController.php
app/Http/Controllers/OwnerController.php
+4
-11
PDFController.php
app/Http/Controllers/PDFController.php
+11
-0
p2d4ti06_test.sql
p2d4ti06_test.sql
+32
-13
adminfasilitas.blade.php
resources/views/pdf/adminfasilitas.blade.php
+5
-3
detailpesanan.blade.php
resources/views/pdf/detailpesanan.blade.php
+3
-3
rincianHistory.blade.php
resources/views/pdf/rincianHistory.blade.php
+55
-0
rincianHistory.blade.php
resources/views/rincianHistory.blade.php
+1
-0
History.blade.php
...views/vendor/adminlte/layouts/customers/History.blade.php
+16
-6
rincianHistory.blade.php
...endor/adminlte/layouts/customers/rincianHistory.blade.php
+62
-0
rincianpemesanan.blade.php
...dor/adminlte/layouts/customers/rincianpemesanan.blade.php
+0
-1
detailpesanan.blade.php
...ews/vendor/adminlte/layouts/owner/detailpesanan.blade.php
+1
-1
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+1
-1
web.php
routes/web.php
+2
-2
No files found.
app/Http/Controllers/AdminController.php
View file @
655c7710
...
...
@@ -365,7 +365,7 @@ class AdminController extends Controller
$data
=
DB
::
table
(
'pemilikhomestay'
)
->
join
(
'requestfasilitas'
,
'pemilikhomestay.id'
,
'='
,
'requestfasilitas.id_pemilik_homestay'
)
->
join
(
'homestay'
,
'pemilikhomestay.id'
,
'='
,
'homestay.id_pemilik'
)
->
select
(
'pemilikhomestay.nama'
,
'pemilikhomestay.no_telepon'
,
'requestfasilitas.*'
,
'homestay.
*
'
)
->
select
(
'pemilikhomestay.nama'
,
'pemilikhomestay.no_telepon'
,
'requestfasilitas.*'
,
'homestay.
nama_homestay'
,
'homestay.alamat
'
)
->
where
(
'requestfasilitas.id'
,
'='
,
$id
)
->
get
();
...
...
app/Http/Controllers/CustomerController.php
View file @
655c7710
...
...
@@ -20,6 +20,7 @@ use Psy\Command\ListCommand\ConstantEnumerator;
use
Illuminate\Notifications\Messages\NexmoMessage
;
use
SimpleSoftwareIO\SMS\Drivers\NexmoSMS
;
use
Nexmo\Laravel\Facade\Nexmo
;
use
PDF
;
class
CustomerController
extends
Controller
...
...
@@ -267,6 +268,34 @@ class CustomerController extends Controller
return
view
(
'adminlte::layouts.customers.History'
)
->
with
(
'data'
,
$dataTrans
);
}
//Mengkases Halaman Rincian History Pelanggan
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
();
//dd($rincianHistory);
return
view
(
'adminlte::layouts.customers.rincianHistory'
)
->
with
(
'data'
,
$rincianHistory
[
0
]);
}
public
function
rincianHistoryPrint
(
$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.pdf'
);
}
//Mengakses Profile Pelanggan
public
function
profile
(){
$data
=
DB
::
table
(
'pelanggan'
)
...
...
app/Http/Controllers/OwnerController.php
View file @
655c7710
...
...
@@ -120,24 +120,17 @@ class OwnerController extends Controller
->
get
();
return
view
(
'adminlte::layouts.owner.home'
)
->
with
(
'dataF'
,
$dataFeedback
)
->
with
(
'countF'
,
$dataFeedback
->
count
())
->
with
(
'dataB'
,
$dataListOfBook
)
->
with
(
'countB'
,
$dataListOfBook
->
count
())
->
with
(
'dataK'
,
$datakamar
)
->
with
(
'countK'
,
$datakamar
->
count
())
->
with
(
'countHas'
,
$HasdataRequest
->
count
());
// return view('adminlte::layouts.owner.listPesanan')->with('count',$data->count())->with('count1',$dataListOfBook->count())->with('count2',$dataFeedback->count())->with('dataF',$dataFeedback);
}
public
function
Asread
(
$id
){
$RF
=
RequestFasilitas
::
find
(
$id
);
$RF
->
notif
=
0
;
$RF
->
update
();
return
redirect
(
'listPengajuanFasilitas'
);
return
view
(
'adminlte::layouts.owner.home'
)
->
with
(
'dataF'
,
$dataFeedback
)
->
with
(
'countF'
,
$dataFeedback
->
count
())
->
with
(
'dataB'
,
$dataListOfBook
)
->
with
(
'countB'
,
$dataListOfBook
->
count
())
->
with
(
'dataK'
,
$datakamar
)
->
with
(
'countK'
,
$datakamar
->
count
());
// return view('adminlte::layouts.owner.listPesanan')->with('count',$data->count())->with('count1',$dataListOfBook->count())->with('count2',$dataFeedback->count())->with('dataF',$dataFeedback);
}
public
function
Check
(
Request
$request
,
$id
){
public
function
Check
out
(
$id
){
$dataPesanan
=
ListBook
::
find
(
$id
);
$dataPesanan
->
status
=
$request
[
'id'
]
;
$dataPesanan
->
status
=
0
;
$dataPesanan
->
update
();
...
...
app/Http/Controllers/PDFController.php
View file @
655c7710
...
...
@@ -36,7 +36,18 @@ class PDFController extends Controller
$pdf
=
PDF
::
loadView
(
'pdf.adminfasilitas'
,[
'data'
=>
$dataFasilitas
[
0
]]);
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'
);
}
}
p2d4ti06_test.sql
View file @
655c7710
...
...
@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 14 Jun 2017 pada 1
2
.37
-- Generation Time: 14 Jun 2017 pada 1
6
.37
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
...
...
@@ -38,9 +38,18 @@ CREATE TABLE `daftar_book` (
`jumlah_tamu`
int
(
10
)
DEFAULT
NULL
,
`total_harga`
int
(
10
)
DEFAULT
NULL
,
`lama_menginap`
int
(
10
)
DEFAULT
NULL
,
`extrabed`
int
(
2
)
DEFAULT
NULL
,
`status`
tinyint
(
1
)
DEFAULT
'1'
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `daftar_book`
--
INSERT
INTO
`daftar_book`
(
`id`
,
`homestay`
,
`id_transaksi`
,
`nama_pemesan`
,
`jumlah_kamar`
,
`tanggal_mulai`
,
`tanggal_berakhir`
,
`permintaan_khusus`
,
`jumlah_tamu`
,
`total_harga`
,
`lama_menginap`
,
`extrabed`
,
`status`
)
VALUES
(
27
,
9
,
31
,
'Sudarsono Sianipar'
,
1
,
'2017-06-16'
,
'2017-06-17'
,
'Penydiaan Kopi di malam Hari'
,
1
,
450000
,
NULL
,
NULL
,
0
),
(
28
,
13
,
38
,
'Lesa Lesuu '
,
2
,
'2017-06-16'
,
'2017-06-19'
,
'Kopi di pagi hari'
,
4
,
930000
,
NULL
,
1
,
0
);
-- --------------------------------------------------------
--
...
...
@@ -293,9 +302,17 @@ CREATE TABLE `requestfasilitas` (
`deskripsi`
varchar
(
255
)
NOT
NULL
,
`jumlah`
int
(
11
)
NOT
NULL
,
`gambar`
varchar
(
255
)
DEFAULT
NULL
,
`pesan`
varchar
(
255
)
DEFAULT
NULL
,
`status`
int
(
1
)
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `requestfasilitas`
--
INSERT
INTO
`requestfasilitas`
(
`id`
,
`id_pemilik_homestay`
,
`id_kategori_fasiltas`
,
`nama_request_fasilitas`
,
`deskripsi`
,
`jumlah`
,
`gambar`
,
`pesan`
,
`status`
)
VALUES
(
1
,
6
,
1
,
'Keramik Pecah'
,
' Terjadi Gempa dan mengakibatkan keramik kamar homestay retak yang menyebabkan ketidak nyaman pelanggan'
,
100
,
'images2.jpg'
,
NULL
,
0
);
-- --------------------------------------------------------
--
...
...
@@ -314,6 +331,7 @@ CREATE TABLE `transaksi` (
`total_pembayaran`
int
(
10
)
DEFAULT
NULL
,
`jumlah_tamu`
int
(
5
)
DEFAULT
NULL
,
`permintaan_khusus`
text
,
`extrabed`
int
(
2
)
DEFAULT
NULL
,
`tanggal_konfirmasi`
date
DEFAULT
NULL
,
`status`
int
(
1
)
UNSIGNED
ZEROFILL
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
...
...
@@ -322,8 +340,9 @@ CREATE TABLE `transaksi` (
-- Dumping data untuk tabel `transaksi`
--
INSERT
INTO
`transaksi`
(
`id`
,
`id_pelanggan`
,
`id_homestay`
,
`tanggal_mulai`
,
`tanggal_berakhir`
,
`jumlah_kamar`
,
`lama_menginap`
,
`bukti_pembayaran`
,
`total_pembayaran`
,
`jumlah_tamu`
,
`permintaan_khusus`
,
`tanggal_konfirmasi`
,
`status`
)
VALUES
(
30
,
6
,
9
,
'2017-06-16'
,
'2017-06-19'
,
1
,
3
,
NULL
,
450000
,
1
,
'Penyediaan Kopi di waktu kedatangan kami'
,
NULL
,
0
);
INSERT
INTO
`transaksi`
(
`id`
,
`id_pelanggan`
,
`id_homestay`
,
`tanggal_mulai`
,
`tanggal_berakhir`
,
`jumlah_kamar`
,
`lama_menginap`
,
`bukti_pembayaran`
,
`total_pembayaran`
,
`jumlah_tamu`
,
`permintaan_khusus`
,
`extrabed`
,
`tanggal_konfirmasi`
,
`status`
)
VALUES
(
31
,
6
,
9
,
'2017-06-16'
,
'2017-06-17'
,
1
,
3
,
NULL
,
450000
,
1
,
'Penydiaan Kopi di malam Hari'
,
NULL
,
NULL
,
0
),
(
38
,
2
,
13
,
'2017-06-16'
,
'2017-06-19'
,
2
,
3
,
NULL
,
930000
,
4
,
'Kopi di pagi hari'
,
1
,
NULL
,
0
);
-- --------------------------------------------------------
...
...
@@ -349,11 +368,11 @@ CREATE TABLE `users` (
--
INSERT
INTO
`users`
(
`id`
,
`name`
,
`username`
,
`email`
,
`password`
,
`foto`
,
`role`
,
`remember_token`
,
`created_at`
,
`updated_at`
)
VALUES
(
2
,
'Juliper'
,
'admin'
,
'admin@del.ac.id'
,
'$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe'
,
'gravatar.png'
,
'DinasPariwisata'
,
'
ww1bVGIoCXSJFWYSdeVVF5wLxvbJxCF9p6qWRzhMfHpHBfBg24j0entbsRdj'
,
'2017-04-22 02:30:14'
,
'2017-06-14 00:26:38
'
),
(
5
,
'Palti Sinaga'
,
'palti'
,
'palti1@gmail.com'
,
'$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..'
,
'bulbul-01_gdsl53-1.jpg'
,
'Owner'
,
'
hlWmlBMs0XUFfdmLT1b49CvO4JbNv6LPTNuBYyDjf62Cb801gn0GPxqSnbYP'
,
'2017-04-29 08:07:38'
,
'2017-06-14 00:24:08
'
),
(
14
,
'Lesa Lesuu '
,
'lesa'
,
'lesa@gmail.com'
,
'$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW'
,
'anonymous1.jpg'
,
'Customer'
,
'
91pjAdMmJtvpgnOc4lyi56WLPh6n8eMq2JbmWvC5ssRtBsPAHNkeiEPK4j1N'
,
'2017-05-09 02:41:21'
,
'2017-06-14 00:16:53
'
),
(
2
,
'Juliper'
,
'admin'
,
'admin@del.ac.id'
,
'$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe'
,
'gravatar.png'
,
'DinasPariwisata'
,
'
BfmiEoGfbZvYpleBG21C01jBs7nQCOhVec3arre0lY20dCrCo744IcviA8Lh'
,
'2017-04-22 02:30:14'
,
'2017-06-14 07:14:47
'
),
(
5
,
'Palti Sinaga'
,
'palti'
,
'palti1@gmail.com'
,
'$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..'
,
'bulbul-01_gdsl53-1.jpg'
,
'Owner'
,
'
MLVXiYgrv1tVMTPu4seCPlSsNV2uVkfWTnUkEuXJZzeiAUNAvP6hIn0obUXK'
,
'2017-04-29 08:07:38'
,
'2017-06-14 06:18:01
'
),
(
14
,
'Lesa Lesuu '
,
'lesa'
,
'lesa@gmail.com'
,
'$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW'
,
'anonymous1.jpg'
,
'Customer'
,
'
XUwSDlqllhbMgMIIYODbZTIFYCk4vNaOwxSRF4c9mA5P85h6lUowDenuWBwl'
,
'2017-05-09 02:41:21'
,
'2017-06-14 06:59:18
'
),
(
22
,
'Op.Balata'
,
'opbalata'
,
'balata@gmail.com'
,
'$2y$10$HuXdLU2i0RdiweXKE07seugcrYbDrAWiZx3o3ExrR1pYKjFuEthvi'
,
'gravatar.png'
,
'Owner'
,
'ChwqElcpjW1D2bNnx4CmCareT3ICTWO9H7wudCT451qm0z1OMo5T4kHSCB8E'
,
'2017-05-25 21:10:39'
,
'2017-06-12 10:57:38'
),
(
28
,
'Sudarsono Sianipar'
,
'sudaraja'
,
'sudar@gmail.com'
,
'$2y$10$pT.It3G0VrMqlYG5X4C6o.U/34qBTo8KTV3WwMB/IRxlByxGwwR7i'
,
'anonymous1.jpg'
,
'Customer'
,
'
Nzzce9MfsIJWwY99MVKHFHs6gRxxK2MEKSKJKgIgsS9cZq24iIELm1x2c1z6'
,
'2017-06-10 00:04:53'
,
'2017-06-14 00:04:5
1'
),
(
28
,
'Sudarsono Sianipar'
,
'sudaraja'
,
'sudar@gmail.com'
,
'$2y$10$pT.It3G0VrMqlYG5X4C6o.U/34qBTo8KTV3WwMB/IRxlByxGwwR7i'
,
'anonymous1.jpg'
,
'Customer'
,
'
jxdJpM9QLJXIFPX102qxhcv1UM4TpaAce9CKdToNcyy9fmA1QZNKxbJ7DtBu'
,
'2017-06-10 00:04:53'
,
'2017-06-14 03:49:2
1'
),
(
30
,
'Dion Marpaung'
,
'dionmarpa'
,
'dion@gmail.com'
,
'$2y$10$sZxys5lQucdsSd3ahMbi7esS8qDhBdt3AF4.QRnWXm0Ho.qrtCRr.'
,
'gravatar.png'
,
'Owner'
,
'cg5ojdq1PzeKCockL5mj0IOCv8jkRx9DMUGUHz8bilhPNCAhSEg4egDrPAJe'
,
'2017-06-12 06:34:07'
,
'2017-06-12 10:52:15'
);
--
...
...
@@ -474,7 +493,7 @@ ALTER TABLE `users`
-- AUTO_INCREMENT for table `daftar_book`
--
ALTER
TABLE
`daftar_book`
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
2
7
;
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
2
9
;
--
-- AUTO_INCREMENT for table `dinaspariwisata`
--
...
...
@@ -509,7 +528,7 @@ ALTER TABLE `migrations`
-- AUTO_INCREMENT for table `pelanggan`
--
ALTER
TABLE
`pelanggan`
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
8
;
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
7
;
--
-- AUTO_INCREMENT for table `pemilikhomestay`
--
...
...
@@ -519,22 +538,22 @@ ALTER TABLE `pemilikhomestay`
-- AUTO_INCREMENT for table `pengajuan_homestay`
--
ALTER
TABLE
`pengajuan_homestay`
MODIFY
`id`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
10
;
MODIFY
`id`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
;
--
-- AUTO_INCREMENT for table `requestfasilitas`
--
ALTER
TABLE
`requestfasilitas`
MODIFY
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
17
;
MODIFY
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
2
;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER
TABLE
`transaksi`
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
3
1
;
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
3
9
;
--
-- AUTO_INCREMENT for table `users`
--
ALTER
TABLE
`users`
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
3
2
;
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
3
1
;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
...
...
resources/views/pdf/adminfasilitas.blade.php
View file @
655c7710
...
...
@@ -42,9 +42,11 @@
<td>
:
</td>
<td>
{{$data->deskripsi}}
</td>
</tr>
<tr>
<th>
Gambar
</th>
<td>
:
</td>
</tr>
</table>
<img
src=
"img/{{$data->gambar}}"
style=
"min-width: 400px;"
>
</body>
</html>
resources/views/pdf/detailpesanan.blade.php
View file @
655c7710
...
...
@@ -49,11 +49,11 @@
<td>
:
</td>
<td>
Rp. {{$data->total_pembayaran}}
</td>
</tr>
<
!-- <
tr>
<tr>
<th>
bukti Pembayaran
</th>
<td>
:
</td>
<td><img src="
/
img/{{ $data->bukti_pembayaran }}"></td>
</tr>
-->
<td><img
src=
"img/{{ $data->bukti_pembayaran }}"
></td>
</tr>
</table>
</body>
</html>
resources/views/pdf/rincianHistory.blade.php
0 → 100644
View file @
655c7710
<!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>
<center>
<h1>
Rincian Pemesanan
</h1></center>
<table
class=
"table table-user-information"
>
<tr>
<th>
Nama pemilikhomestay
</th>
<td>
:
</td>
<td>
{{$data->nama}}
</td>
</tr>
<tr>
<th>
Nama Homestay
</th>
<td>
:
</td>
<td>
{{$data->nama_homestay}}
</td>
</tr>
<tr>
<th>
Tanggal Check-in
</th>
<td>
:
</td>
<td>
{{$data->tanggal_mulai}}
</td>
</tr>
<tr>
<th>
Lama Menginap
</th>
<td>
:
</td>
<td>
{{$data->lama_menginap}} Malam
</td>
</tr>
<tr>
<th>
Tanggal Check-out
</th>
<td>
:
</td>
<td>
{{$data->tanggal_berakhir}}
</td>
</tr>
<tr>
<th>
Total Pembayaran
</th>
<td>
:
</td>
<td>
{{$data->total_pembayaran}}
</td>
</tr>
<tr>
<th>
Bukti pembayaran
</th>
<td>
:
</td>
</tr>
</table>
<img
src=
"img/{{ $data->bukti_pembayaran }}"
style=
"max-height: 250px;
width: auto;"
>
</body>
</html>
resources/views/rincianHistory.blade.php
0 → 100644
View file @
655c7710
@
extends
(
'adminlte::layouts.pages.rincianHistory'
)
resources/views/vendor/adminlte/layouts/customers/History.blade.php
View file @
655c7710
...
...
@@ -7,7 +7,7 @@
<thead>
<tr>
<th> No. Rekening </th>
<th>
Atas Nama
</th>
<th>
Nama Pemilik Homestay
</th>
<th> Total Pembayaran </th>
<th> Tanggal Mulai </th>
<th> Tanggal Berakhir </th>
...
...
@@ -15,6 +15,7 @@
<th> Status Pemesanan</th>
<th></th>
<th></th>
<th colspan="
2
">Rincian Pemesanan</th>
</tr>
</thead>
<tbody>
...
...
@@ -30,22 +31,31 @@
Belum ada bukti transfer
@else
<!-- <img alt="
User
Pic
" src="
{{
url
(
'/img/'
.
$a
->
bukti_pembayaran
)
}}
" class="
img
-
responsive
" > -->
<a href="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
max
-
height
:
100
px
;
width
:
auto
;
"></a>
<a href="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" alt="
Bukti
Pembayaran
"
data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
max
-
height
:
100
px
;
width
:
auto
;
">
</a>
@endif
</td>
<td>
@if(
$a->status
==0)
Belum Dikonfirmasi
@if(
$a->status
==0)
<span class="
label
label
-
warning
"> Belum Dikonfirmasi </span>
<td>
<a href="
{{
url
(
'buktipembayaran/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
">Upload Bukti</a>
</td>
@elseif(
$a->status
==1)
<td colspan="
3
"><h4>Diterima</h4></td>
<td colspan="
3
"><span class="
label
label
-
success
"> Diterima </span></td>
@elseif(
$a->status
==2)
<td colspan="
3
"><
h4>Ditolak</h4>
</td>
<td colspan="
3
"><
span class="
label
label
-
danger
"> Ditolak </span>
</td>
@endif
</td>
<td>
@if(
$a->status
==1)
<a href="
{{
url
(
'rincianHistory/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
"><i class="
glyphicon
glyphicon
-
eye
-
open
"></i> </a>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
...
...
resources/views/vendor/adminlte/layouts/customers/rincianHistory.blade.php
0 → 100644
View file @
655c7710
@
extends
(
'adminlte::layouts.master'
)
@
section
(
'main-content'
)
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
80
px
;
margin
-
bottom
:
100
px
;
">
<div class="
container
">
<div class="
col
-
md
-
5
col
-
sm
-
5
cuisines
-
grids
agileits
w3layouts
" style="
background
-
color
:
#f9f9f9;padding: 40px;border-radius: 9px;">
<
h3
>
Rincian
Pemesanan
Homestay
</
h3
>
<
table
class
="
table
-
condensed
" style="
font
-
size
:
16
px
;
margin
-
left
:
-
3
px
;
color
:
#777; margin-top:5px;">
<
tr
>
<
td
>
Nama
Pemilik
Homestay
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
nama
}}
Malam
</
td
>
</
tr
>
<
tr
>
<
td
>
Nama
Homestay
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
nama_homestay
}}
Malam
</
td
>
</
tr
>
<
tr
>
<
td
>
Tanggal
Check
-
in
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
tanggal_mulai
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
Durasi
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
lama_menginap
}}
Malam
</
td
>
</
tr
>
<
tr
>
<
td
>
Tanggal
Check
-
out
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
tanggal_berakhir
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
Total
Pembayaran
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
total_pembayaran
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
<
a
href
=
"
{
{url('rincianHistoryPrint/'.$data->id)}
}
"
class
="
btn
btn
-
warning
"><i class="
glyphicon
glyphicon
-
print
"></i> print </a></td>
</tr>
</table>
</div>
<div class="
col
-
md
-
5
col
-
sm
-
5
cuisines
-
grids
agileits
w3layouts
" style="
padding
:
40
px
;
border
-
radius
:
9
px
;
">
<h3>Bukti Pembayaran</h3><br>
<a href="
/
img
/
{{
$data
->
bukti_pembayaran
}}
" alt="
Bukti
Pembayaran
"
data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$data
->
bukti_pembayaran
}}
" style="
max
-
height
:
250
px
;
width
:
auto
;
">
</a>
@if(
$data->status
==1)
@endif
</div>
</div>
</div>
<script src="
{{
asset
(
'js/jquery-ui.js'
)}}
"></script>
@endsection
resources/views/vendor/adminlte/layouts/customers/rincianpemesanan.blade.php
View file @
655c7710
...
...
@@ -76,7 +76,6 @@
<
td
>
Durasi
</
td
>
<
td
>:</
td
>
<
td
>
{{
$request
->
lama_menginap
}}
Malam
</
td
>
</
tr
>
<
tr
>
<
td
>
Check
-
in
</
td
>
...
...
resources/views/vendor/adminlte/layouts/owner/detailpesanan.blade.php
View file @
655c7710
...
...
@@ -59,7 +59,7 @@
<tr>
<th>Bukti Pembayaran</th>
<td>: </td>
<td><a href="
/
img
/
{{
$data
->
bukti_pembayaran
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$data
->
bukti_pembayaran
}}
" ></a></td>
<td><a href="
/
img
/
{{
$data
->
bukti_pembayaran
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$data
->
bukti_pembayaran
}}
"
style="
max
-
width
:
200
px
;
"
></a></td>
</tr>
</table>
...
...
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
655c7710
...
...
@@ -25,7 +25,7 @@
</ul>
</li>
<li><a
href=
"{{url('listPemesanan')}}"
><i
class=
'fa fa-
list
'
></i>
<span>
Data Pemesanan
</span></a></li>
<li><a
href=
"{{url('listPemesanan')}}"
><i
class=
'fa fa-
check-square
'
></i>
<span>
Data Pemesanan
</span></a></li>
@elseif(Auth::user()->role=="Owner")
<li
class=
"treeview"
><a
href=
"#"
><i
class=
'fa fa-television'
></i>
<span>
FASILITAS
</span><span
class=
"pull-right-container"
>
...
...
routes/web.php
View file @
655c7710
...
...
@@ -117,8 +117,8 @@ Route::group(['middleware' => 'customer'], function () {
Route
::
put
(
'editProfileCustomer/{id}'
,
'CustomerController@updateProfile'
);
Route
::
get
(
'customerProfile'
,
'CustomerController@profile'
);
Route
::
post
(
'feedback/{id}'
,
'CustomerController@sendFeedback'
);
Route
::
get
(
'rincianHistory/{id}'
,
'CustomerController@rincianHistory'
);
Route
::
get
(
'rincianHistoryPrint/{id}'
,
'CustomerController@rincianHistoryPrint'
);
});
...
...
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