104 lines
2.7 KiB
PHP
104 lines
2.7 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Laporan Penjualan Toko Annisa Fashion</title>
|
|
<style type="text/css">
|
|
body {
|
|
-webkit-print-color-adjust: exact;
|
|
padding: 50px;
|
|
}
|
|
|
|
#table {
|
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
width: 100%;
|
|
}
|
|
|
|
#table td,
|
|
#table th {
|
|
padding: 8px;
|
|
padding-top: 10px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
#table tr {
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
#table tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#table th {
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
text-align: left;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.biru {
|
|
background-color: #06bbcc;
|
|
color: white;
|
|
}
|
|
|
|
@page {
|
|
size: auto;
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<center>
|
|
<h2>Toko Annisa Fashion</h2>
|
|
<h4>
|
|
Jalan Bangko-Kerinci, Sungai Jering Kec.Pangkalan Jambu Kab.Merangin
|
|
<br>
|
|
<br>
|
|
{{ $tanggalAwal }} - {{ $tanggalAkhir }}
|
|
</h4>
|
|
</center>
|
|
<br>
|
|
<table class="table" id="table">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">No</th>
|
|
<th class="text-center">No. Nota</th>
|
|
<th class="text-center">Tanggal</th>
|
|
<th width="30%" class="text-center">Nama Barang</th>
|
|
<th class="text-center">Harga</th>
|
|
<th class="text-center">Jumlah</th>
|
|
<th class="text-center">Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($sales as $index => $sale)
|
|
<tr>
|
|
<td>{{ $index + 1 }}</td>
|
|
<td>{{ $sale->notajual }}</td>
|
|
<td>{{ date('d-m-Y', strtotime($sale->tanggalpenjualan)) }}</td>
|
|
<td>{{ $sale->namabarang }}</td>
|
|
<td>{{ rupiah($sale->harga) }}</td>
|
|
<td class="text-center">{{ $sale->jumlah }}</td>
|
|
<td>{{ rupiah($sale->total) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6" class="text-right biru"><em>Total Pemasukan :</em></td>
|
|
<td class="biru">{{ rupiah($totalPemasukan) }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
<script>
|
|
window.print();
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|