82 lines
2.6 KiB
PHP
82 lines
2.6 KiB
PHP
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<style>
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
width: 100%;
|
|
border: 1px solid #000;
|
|
font-size: 11px;
|
|
}
|
|
th, td {
|
|
text-align: center;
|
|
padding: 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
@page {
|
|
margin: 0;
|
|
}
|
|
tr:nth-child(even){background-color: #f2f2f2}
|
|
</style>
|
|
</head>
|
|
<body onload="window.print()">
|
|
<h2 align="center" style="margin-top: 40px; margin-bottom: 10px">Laporan Bimbingan & Konseling</h2>
|
|
<p align="center" style="margin-bottom: 5px">Periode : {{ $periode }}</p>
|
|
<p align="center" style="margin-bottom: 40px">Dicetak oleh : {{ Auth::user()->name }}</p>
|
|
<table border="1">
|
|
<tr>
|
|
<th>TGL</th>
|
|
<th>NO. TICKET</th>
|
|
<th>NAMA</th>
|
|
<th>SUBJEK</th>
|
|
<th>TINGKAT MASALAH</th>
|
|
<th>TIPE</th>
|
|
<th>STATUS</th>
|
|
</tr>
|
|
|
|
@if($report->count() == 0)
|
|
<tr>
|
|
<td colspan="7">Tidak ditemukan data pada periode {{ $periode }}</td>
|
|
</tr>
|
|
@else
|
|
|
|
@foreach($report as $detail)
|
|
@if($detail->is_priority == 1)
|
|
@php $priority = 'Normal' @endphp
|
|
@elseif($detail->is_priority == 2)
|
|
@php $priority = 'Sedang' @endphp
|
|
@else
|
|
@php $priority = 'Parah' @endphp
|
|
@endif
|
|
@if($detail->is_status == 1)
|
|
@php $status = 'Menunggu Respon' @endphp
|
|
@elseif($detail->is_status == 2)
|
|
@php $status = 'Konselor telah membalas' @endphp
|
|
@elseif($detail->is_status == 3)
|
|
@php $status = "Siswa telah membalas" @endphp
|
|
@else
|
|
@php $status = 'Kasus ditutup' @endphp
|
|
@endif
|
|
|
|
@if($detail->type == 1)
|
|
@php $type = 'Aplikasi' @endphp
|
|
@else
|
|
@php $type = 'Face to Face' @endphp
|
|
@endif
|
|
<tr>
|
|
<td>{{ $detail->created_at }}</td>
|
|
<td>#{{ strtoupper(explode('-', $detail->id)[0]) }}</td>
|
|
<td>{{ \App\Models\User::where('id', $detail->user_id)->first()->name }}</td>
|
|
<td>{{ $detail->subject }}</td>
|
|
<td>{{ $priority }}</td>
|
|
<td>{{ $type }}</td>
|
|
<td>{{ $status }}</td>
|
|
</tr>
|
|
@endforeach
|
|
@endempty
|
|
</table>
|
|
</body>
|
|
</html>
|