136 lines
4.0 KiB
PHP
136 lines
4.0 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
|
|
|
<title>MIF Project</title>
|
|
<meta content="" name="description">
|
|
<meta content="" name="keywords">
|
|
|
|
<script>
|
|
window.onload = function() {
|
|
window.print();
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
body {
|
|
font-family: Calibri, sans-serif;
|
|
}
|
|
.container {
|
|
margin: 20px;
|
|
}
|
|
.user-info, .project-info {
|
|
margin-bottom: 20px;
|
|
}
|
|
.user-info img {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
}
|
|
.info-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.info-table th, .info-table td {
|
|
padding: 8px;
|
|
text-align: left;
|
|
}
|
|
.info-table th {
|
|
background-color: #f2f2f2;
|
|
}
|
|
.project-info {
|
|
page-break-before: always;
|
|
}
|
|
.project-info img {
|
|
max-width: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<!-- User Info -->
|
|
<div class="user-info">
|
|
<img class="user-avatar" src="{{ auth()->user()->profile_picture ? asset('storage/' . auth()->user()->profile_picture) : asset('assets/img/user.png') }}" alt="User Avatar" width="150" height="150">
|
|
<table class="info-table">
|
|
<tr>
|
|
<th>Nama</th>
|
|
<td>{{ auth()->user()->name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>NIM</th>
|
|
<td>{{ auth()->user()->nim }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Jurusan</th>
|
|
<td>Teknologi Informasi</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Prodi</th>
|
|
<td>Manajemen Informatika</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Angkatan</th>
|
|
<td>{{ auth()->user()->angkatan }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Email</th>
|
|
<td>{{ auth()->user()->email }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>No. Telp</th>
|
|
<td>{{ auth()->user()->phone_number }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Github</th>
|
|
<td><a href="{{ auth()->user()->akun_github }}">{{ auth()->user()->akun_github }}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<th>LinkedIn</th>
|
|
<td><a href="{{ auth()->user()->akun_linkedin }}">{{ auth()->user()->akun_linkedin }}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Alamat</th>
|
|
<td>{{ auth()->user()->alamat }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Project Info -->
|
|
<div class="project-info">
|
|
<h2>Projek yang telah dikerjakan</h2>
|
|
@foreach($projects as $project)
|
|
<table class="info-table">
|
|
<tr>
|
|
<th>Nama Aplikasi</th>
|
|
<td>{{ $project->nama_aplikasi }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Semester</th>
|
|
<td>{{ $project->semester }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Github</th>
|
|
<td><a href="{{ $project->link_github }}">{{ $project->link_github }}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Narasi</th>
|
|
<td>{{ $project->narasi }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Poster</th>
|
|
<td>
|
|
<img src="{{ asset('storage/' . $project->gambar_1) }}" alt="Project Image">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div style="page-break-after: always;"></div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|