Commit 655c7710 by Juliper

no message

parents f21c6e37 b3089ba4
...@@ -365,7 +365,7 @@ class AdminController extends Controller ...@@ -365,7 +365,7 @@ class AdminController extends Controller
$data = DB::table('pemilikhomestay') $data = DB::table('pemilikhomestay')
->join('requestfasilitas','pemilikhomestay.id','=','requestfasilitas.id_pemilik_homestay') ->join('requestfasilitas','pemilikhomestay.id','=','requestfasilitas.id_pemilik_homestay')
->join('homestay','pemilikhomestay.id','=','homestay.id_pemilik') ->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) ->where('requestfasilitas.id','=',$id)
->get(); ->get();
......
...@@ -20,6 +20,7 @@ use Psy\Command\ListCommand\ConstantEnumerator; ...@@ -20,6 +20,7 @@ use Psy\Command\ListCommand\ConstantEnumerator;
use Illuminate\Notifications\Messages\NexmoMessage; use Illuminate\Notifications\Messages\NexmoMessage;
use SimpleSoftwareIO\SMS\Drivers\NexmoSMS; use SimpleSoftwareIO\SMS\Drivers\NexmoSMS;
use Nexmo\Laravel\Facade\Nexmo; use Nexmo\Laravel\Facade\Nexmo;
use PDF;
class CustomerController extends Controller class CustomerController extends Controller
...@@ -267,6 +268,34 @@ class CustomerController extends Controller ...@@ -267,6 +268,34 @@ class CustomerController extends Controller
return view('adminlte::layouts.customers.History')->with('data',$dataTrans); 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 //Mengakses Profile Pelanggan
public function profile(){ public function profile(){
$data = DB::table('pelanggan') $data = DB::table('pelanggan')
......
...@@ -120,24 +120,17 @@ class OwnerController extends Controller ...@@ -120,24 +120,17 @@ class OwnerController extends Controller
->get(); ->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 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);
return redirect('listPengajuanFasilitas');
} }
public function Check(Request $request,$id){ public function Checkout($id){
$dataPesanan = ListBook::find($id); $dataPesanan = ListBook::find($id);
$dataPesanan->status = $request['id']; $dataPesanan->status = 0;
$dataPesanan->update(); $dataPesanan->update();
......
...@@ -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');
} }
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net -- http://www.phpmyadmin.net
-- --
-- Host: 127.0.0.1 -- Host: 127.0.0.1
-- Generation Time: 14 Jun 2017 pada 12.37 -- Generation Time: 14 Jun 2017 pada 16.37
-- Versi Server: 10.1.16-MariaDB -- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9 -- PHP Version: 7.0.9
...@@ -38,9 +38,18 @@ CREATE TABLE `daftar_book` ( ...@@ -38,9 +38,18 @@ CREATE TABLE `daftar_book` (
`jumlah_tamu` int(10) DEFAULT NULL, `jumlah_tamu` int(10) DEFAULT NULL,
`total_harga` int(10) DEFAULT NULL, `total_harga` int(10) DEFAULT NULL,
`lama_menginap` int(10) DEFAULT NULL, `lama_menginap` int(10) DEFAULT NULL,
`extrabed` int(2) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1' `status` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) 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` ( ...@@ -293,9 +302,17 @@ CREATE TABLE `requestfasilitas` (
`deskripsi` varchar(255) NOT NULL, `deskripsi` varchar(255) NOT NULL,
`jumlah` int(11) NOT NULL, `jumlah` int(11) NOT NULL,
`gambar` varchar(255) DEFAULT NULL, `gambar` varchar(255) DEFAULT NULL,
`pesan` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT NULL `status` int(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) 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` ( ...@@ -314,6 +331,7 @@ CREATE TABLE `transaksi` (
`total_pembayaran` int(10) DEFAULT NULL, `total_pembayaran` int(10) DEFAULT NULL,
`jumlah_tamu` int(5) DEFAULT NULL, `jumlah_tamu` int(5) DEFAULT NULL,
`permintaan_khusus` text, `permintaan_khusus` text,
`extrabed` int(2) DEFAULT NULL,
`tanggal_konfirmasi` date DEFAULT NULL, `tanggal_konfirmasi` date DEFAULT NULL,
`status` int(1) UNSIGNED ZEROFILL DEFAULT NULL `status` int(1) UNSIGNED ZEROFILL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
...@@ -322,8 +340,9 @@ CREATE TABLE `transaksi` ( ...@@ -322,8 +340,9 @@ CREATE TABLE `transaksi` (
-- Dumping data untuk tabel `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 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
(30, 6, 9, '2017-06-16', '2017-06-19', 1, 3, NULL, 450000, 1, 'Penyediaan Kopi di waktu kedatangan kami', NULL, 0); (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` ( ...@@ -349,11 +368,11 @@ CREATE TABLE `users` (
-- --
INSERT INTO `users` (`id`, `name`, `username`, `email`, `password`, `foto`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES 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'), (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', 'hlWmlBMs0XUFfdmLT1b49CvO4JbNv6LPTNuBYyDjf62Cb801gn0GPxqSnbYP', '2017-04-29 08:07:38', '2017-06-14 00:24:08'), (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', '91pjAdMmJtvpgnOc4lyi56WLPh6n8eMq2JbmWvC5ssRtBsPAHNkeiEPK4j1N', '2017-05-09 02:41:21', '2017-06-14 00:16:53'), (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'), (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:51'), (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:21'),
(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'); (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` ...@@ -474,7 +493,7 @@ ALTER TABLE `users`
-- AUTO_INCREMENT for table `daftar_book` -- AUTO_INCREMENT for table `daftar_book`
-- --
ALTER TABLE `daftar_book` ALTER TABLE `daftar_book`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
-- --
-- AUTO_INCREMENT for table `dinaspariwisata` -- AUTO_INCREMENT for table `dinaspariwisata`
-- --
...@@ -509,7 +528,7 @@ ALTER TABLE `migrations` ...@@ -509,7 +528,7 @@ ALTER TABLE `migrations`
-- AUTO_INCREMENT for table `pelanggan` -- AUTO_INCREMENT for table `pelanggan`
-- --
ALTER 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` -- AUTO_INCREMENT for table `pemilikhomestay`
-- --
...@@ -519,22 +538,22 @@ ALTER TABLE `pemilikhomestay` ...@@ -519,22 +538,22 @@ ALTER TABLE `pemilikhomestay`
-- AUTO_INCREMENT for table `pengajuan_homestay` -- AUTO_INCREMENT for table `pengajuan_homestay`
-- --
ALTER 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` -- AUTO_INCREMENT for table `requestfasilitas`
-- --
ALTER 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` -- AUTO_INCREMENT for table `transaksi`
-- --
ALTER TABLE `transaksi` ALTER TABLE `transaksi`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
-- --
-- AUTO_INCREMENT for table `users` -- AUTO_INCREMENT for table `users`
-- --
ALTER TABLE `users` ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
-- --
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
-- --
......
...@@ -42,9 +42,11 @@ ...@@ -42,9 +42,11 @@
<td>: </td> <td>: </td>
<td>{{$data->deskripsi}}</td> <td>{{$data->deskripsi}}</td>
</tr> </tr>
<tr>
<th>Gambar</th>
<td>: </td>
</tr>
</table> </table>
<img src="img/{{$data->gambar}}" style="min-width: 400px;">
</body> </body>
</html> </html>
...@@ -49,11 +49,11 @@ ...@@ -49,11 +49,11 @@
<td>: </td> <td>: </td>
<td>Rp. {{$data->total_pembayaran}}</td> <td>Rp. {{$data->total_pembayaran}}</td>
</tr> </tr>
<!-- <tr> <tr>
<th>bukti Pembayaran</th> <th>bukti Pembayaran</th>
<td>: </td> <td>: </td>
<td><img src="/img/{{ $data->bukti_pembayaran }}"></td> <td><img src="img/{{ $data->bukti_pembayaran }}"></td>
</tr> --> </tr>
</table> </table>
</body> </body>
</html> </html>
<!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>
@extends('adminlte::layouts.pages.rincianHistory')
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<thead> <thead>
<tr> <tr>
<th> No. Rekening </th> <th> No. Rekening </th>
<th> Atas Nama </th> <th> Nama Pemilik Homestay </th>
<th> Total Pembayaran </th> <th> Total Pembayaran </th>
<th> Tanggal Mulai </th> <th> Tanggal Mulai </th>
<th> Tanggal Berakhir </th> <th> Tanggal Berakhir </th>
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<th> Status Pemesanan</th> <th> Status Pemesanan</th>
<th></th> <th></th>
<th></th> <th></th>
<th colspan="2">Rincian Pemesanan</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -30,22 +31,31 @@ ...@@ -30,22 +31,31 @@
Belum ada bukti transfer Belum ada bukti transfer
@else @else
<!-- <img alt="User Pic" src="{{ url('/img/'.$a ->bukti_pembayaran) }}" class="img-responsive" > --> <!-- <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: 100px; <a href="/img/{{ $a->bukti_pembayaran }}" alt="Bukti Pembayaran"
width: auto;"></a> data-lightbox="roadtrip"><img src="/img/{{ $a->bukti_pembayaran }}" style="max-height: 100px;
width: auto;">
</a>
@endif @endif
</td> </td>
<td> <td>
@if($a->status==0) Belum Dikonfirmasi @if($a->status==0) <span class="label label-warning"> Belum Dikonfirmasi </span>
<td> <td>
<a href="{{url('buktipembayaran/'.$a->id)}}" class="btn btn-primary">Upload Bukti</a> <a href="{{url('buktipembayaran/'.$a->id)}}" class="btn btn-primary">Upload Bukti</a>
</td> </td>
@elseif($a->status==1) @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) @elseif($a->status==2)
<td colspan="3"><h4>Ditolak</h4></td> <td colspan="3"><span class="label label-danger"> Ditolak </span> </td>
@endif @endif
</td> </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> </tr>
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
......
@extends('adminlte::layouts.master')
@section('main-content')
<div class="cuisines agileits w3layouts" style="padding-top: 50px; margin-top: 80px; margin-bottom: 100px;">
<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: 16px; margin-left: -3px; 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: 40px;border-radius: 9px;">
<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: 250px;
width: auto;">
</a>
@if($data->status==1)
@endif
</div>
</div>
</div>
<script src="{{asset('js/jquery-ui.js')}}"></script>
@endsection
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
<td>Durasi</td> <td>Durasi</td>
<td>:</td> <td>:</td>
<td>{{$request->lama_menginap}} Malam</td> <td>{{$request->lama_menginap}} Malam</td>
</tr> </tr>
<tr> <tr>
<td> Check-in</td> <td> Check-in</td>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<tr> <tr>
<th>Bukti Pembayaran</th> <th>Bukti Pembayaran</th>
<td>: </td> <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:200px;" ></a></td>
</tr> </tr>
</table> </table>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</ul> </ul>
</li> </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") @elseif(Auth::user()->role=="Owner")
<li class="treeview"><a href="#"><i class='fa fa-television'></i> <span> FASILITAS </span><span class="pull-right-container"> <li class="treeview"><a href="#"><i class='fa fa-television'></i> <span> FASILITAS </span><span class="pull-right-container">
......
...@@ -117,8 +117,8 @@ Route::group(['middleware' => 'customer'], function () { ...@@ -117,8 +117,8 @@ Route::group(['middleware' => 'customer'], function () {
Route::put('editProfileCustomer/{id}','CustomerController@updateProfile'); Route::put('editProfileCustomer/{id}','CustomerController@updateProfile');
Route::get('customerProfile','CustomerController@profile'); Route::get('customerProfile','CustomerController@profile');
Route::post('feedback/{id}','CustomerController@sendFeedback'); Route::post('feedback/{id}','CustomerController@sendFeedback');
Route::get('rincianHistory/{id}','CustomerController@rincianHistory');
Route::get('rincianHistoryPrint/{id}','CustomerController@rincianHistoryPrint');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment