Commit db87a5d5 by Palti Sinaga

ss

parent 5456ac6a
......@@ -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');
}
}
<!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>
......@@ -37,7 +37,7 @@
<td>{{$data->total_pembayaran}}</td>
</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>
</table>
</div>
......
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