MIF_E31212289/resources/views/manajemenbibitayammasuk/cetak.blade.php

135 lines
4.6 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Laporan Peternakan Ayam</title>
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
@media print {
.no-print {
display: none;
}
}
</style>
</head>
<body>
<div class="container mt-5">
<div class="row">
<div class="col">
<center><img alt="image" width="100%"
src="{{ asset('img/header.png') }}"></center><br><br>
<h1 class="text-center mb-4">Laporan Peternakan Ayam</h1>
<table class="table table-bordered">
<tbody>
<tr>
<th>Nama Peternakan</th>
<td id="namaPeternakan">{{$data->kandang->peternakan->nama_peternakan}}</td>
</tr>
<tr>
<th>Alamat</th>
<td id="alamat">{{$data->kandang->peternakan->alamat}} - {{$data->kandang->peternakan->no_telp}}</td>
</tr>
<tr>
<th>Nama Kandang</th>
<td id="namaKandang">{{$data->kandang->nama_kandang}}</td>
</tr>
<tr>
<th>Kapasitas Kandang</th>
<td id="kapasitasKandang">{{number_format($data->kandang->kapasitas)}} ekor</td>
</tr>
<tr>
<th>Jumlah Bibit</th>
<td id="jumlahBibit">{{number_format($data->jumlah_bibit)}} ekor</td>
</tr>
<tr>
<th>Tanggal Bibit Masuk</th>
<td id="tanggalBibitMasuk">{{date("d-m-Y",strtotime($data->tanggal))}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row mt-5">
<div class="col">
<h3 class="mb-3">Perkembangan Ayam</h3>
<table class="table table-bordered">
<thead>
<tr>
<th>Tanggal</th>
<th>Minggu Ke</th>
<th>Hari Ke</th>
<th>Pakan Pakai (sak)</th>
<th>Bobot (kg)</th>
<th>Afkir</th>
<th>Kematian</th>
</tr>
</thead>
<tbody>
@forelse ($data->perkembangan as $item)
<tr>
<td>{{date("d-m-Y",strtotime($item->tanggal))}}</td>
<td>{{$item->minggu_ke}}</td>
<td>{{$item->hari}}</td>
<td>{{$item->pakan_pakai}}</td>
<td>{{$item->bobot}}</td>
<td>{{$item->afkir}}</td>
<td>{{$item->kematian}}</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
<div class="row mt-5">
<div class="col">
<h3 class="mb-3">Jadwal Panen</h3>
<table class="table table-bordered">
<thead>
<tr>
<th>Tanggal</th>
<th>Jumlah Ayam</th>
<th>Tonase (kg)</th>
<th>Supir</th>
<th>Nopol Supir</th>
</tr>
</thead>
<tbody >
@forelse ($data->panen as $item)
<tr>
<td>{{date("d-m-Y",strtotime($item->tanggal))}}</td>
<td>{{$item->jumlah_ayam}}</td>
<td>{{$item->bobot_ayam}}</td>
<td>{{$item->sopir->nama_sopir}}</td>
<td>{{$item->sopir->nopol}}</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
<!-- jQuery and Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
<script>
$(document).ready(function() {
window.print()
});
</script>
</body>
</html>