MIF_E31210809/resources/views/layouts/pages/pdf.blade.php

127 lines
3.4 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<title>Detail Perhitungan Eclat</title>
<style>
body {
font-family: Arial, sans-serif;
}
.table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
/* Menambahkan layout tetap untuk tabel */
}
.table,
.table th,
.table td {
border: 1px solid black;
}
.table th,
.table td {
padding: 8px;
text-align: left;
word-wrap: break-word;
/* Memungkinkan pemotongan kata jika terlalu panjang */
}
th,
td {
font-size: 10px;
/* Menyesuaikan ukuran font agar lebih kecil */
}
</style>
</head>
<body>
<h1>Detail Perhitungan Eclat</h1>
<p>Rentang tanggal: {{ \Carbon\Carbon::parse($proses->start)->format('d F Y') }} -
{{ \Carbon\Carbon::parse($proses->end)->format('d F Y') }}</p>
<p>Min. Support: {{ $proses->min_support }}</p>
<p>Min. Confidence: {{ $proses->min_confidence }}</p>
<h2>Itemset 2</h2>
<table class="table">
<thead>
<tr>
<th>No</th>
<th>Jenis Obat</th>
<th>Keterangan</th>
<th>Confidence</th>
<th>Lift Ratio</th>
<th>Korelasi</th>
</tr>
</thead>
<tbody>
@foreach ($itemset2 as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $item->items }}</td>
<td>{{ $item->keterangan }}</td>
<td>{{ $item->confidence }}</td>
<td>{{ $item->lift_ratio }}</td>
<td>{{ $item->korelasi }}</td>
</tr>
@endforeach
</tbody>
</table>
<h2>Itemset 3</h2>
<table class="table">
<thead>
<tr>
<th>No</th>
<th>Jenis Obat</th>
<th>Keterangan</th>
<th>Confidence</th>
<th>Lift Ratio</th>
<th>Korelasi</th>
</tr>
</thead>
<tbody>
@foreach ($itemset3 as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $item->items }}</td>
<td>{{ $item->keterangan }}</td>
<td>{{ $item->confidence }}</td>
<td>{{ $item->lift_ratio }}</td>
<td>{{ $item->korelasi }}</td>
</tr>
@endforeach
</tbody>
</table>
<h2>Rules</h2>
<table class="table">
<thead>
<tr>
<th>No</th>
<th>Jenis Obat</th>
<th>Keterangan</th>
<th>Confidence</th>
<th>Lift Ratio</th>
<th>Korelasi</th>
</tr>
</thead>
<tbody>
@foreach ($rules as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $item->items }}</td>
<td>{{ $item->keterangan }}</td>
<td>{{ $item->confidence }}</td>
<td>{{ $item->lift_ratio }}</td>
<td>{{ $item->korelasi }}</td>
</tr>
@endforeach
</tbody>
</table>
</body>
</html>