chess/resources/views/content/others/cetak_laporan.blade.php

86 lines
5.3 KiB
PHP
Raw Normal View History

2024-08-29 03:56:32 +00:00
<!DOCTYPE html>
<html>
<head>
<title>PDF STREAM LAPORAN PROJECT</title>
{{-- sample for server root nginx --}}
{{-- <link href="<?php echo $_SERVER["DOCUMENT_ROOT"].'/assets/media/others/no_img.png'; ?>" rel="stylesheet" type="text/css" /> --}}
{{-- sample for localhost get directory --}}
{{-- <link href="<?php echo $_SERVER["DOCUMENT_ROOT"]. dirname($_SERVER["PHP_SELF"]).'/public/assets/css/app.css'; ?>" rel="stylesheet" type="text/css" /> --}}
{{-- for server --}}
<link href="<?php echo $_SERVER["DOCUMENT_ROOT"].'/assets/css/app.css'; ?>" rel="stylesheet" type="text/css" />
<style>
table th, table td {
font-size: 10px !important;
font-weight: 700 !important;
}
</style>
</head>
{{-- <body style="background-color: white; background-image: url('<?php echo $_SERVER["DOCUMENT_ROOT"]. dirname($_SERVER["PHP_SELF"]).'/public/assets/media/others/sikasep.png'; ?>'); background-position: calc(100% + 0.5rem) bottom; background-size: auto 100%;" > --}}
{{-- local --}}
{{-- <body style="background-color: white; background-image: url('<?php echo $_SERVER["DOCUMENT_ROOT"]. dirname($_SERVER["PHP_SELF"]).'/public/assets/media/others/logo-bpr.png'; ?>'); background-attachment: fixed;
background-position: bottom center;
background-repeat: no-repeat;
background-size: 10%; position: relative;"> --}}
{{-- server --}}
<body>
<div style="background: rgba(255, 255, 255, 0.6); width: 100%;">
{{-- for server root nginx /var/www/html/example.com --}}
{{-- <img src="<?php echo $_SERVER["DOCUMENT_ROOT"].'/assets/media/others/no_img.png'; ?>" alt=""> --}}
{{-- for localhost get directory --}}
{{-- <img src="<?php echo $_SERVER["DOCUMENT_ROOT"]. dirname($_SERVER["PHP_SELF"]).'/public/assets/media/others/sikasep.png'; ?>" alt=""> --}}
{{-- <div class="row"> --}}
{{-- <div class="col-6"> --}}
{{-- <img src="<?php echo $_SERVER["DOCUMENT_ROOT"]. dirname($_SERVER["PHP_SELF"]).'/public/assets/media/others/logo-bpr.png'; ?>" alt=""> --}}
{{-- <img src="<?php echo $_SERVER["DOCUMENT_ROOT"].'/assets/media/others/logo-bpr.png'; ?>" alt=""> --}}
{{-- </div> --}}
{{-- <div class="col-6"> --}}
{{-- <h5 class="font-weight-bold">BPR-LPM</h5> --}}
{{-- </div> --}}
{{-- </div> --}}
<div class="col" style="background-image: url('<?php echo $_SERVER["DOCUMENT_ROOT"].$perusahaan->logo_url; ?>'); background-position: left left; background-repeat: no-repeat; background-size: 100px 100px;">
<h1 class="text-center">LAPORAN PROGRESS PROJECT</h1>
<h4 class="text-center">PERIODE CETAK: {{ date('d F Y') }}</h4>
<h4 class="text-center">{{ ($perusahaan)?$perusahaan->company_name:'-' }}</h4>
</div>
<br>
<table class="table table-sm table-bordered">
<thead>
<tr>
<th>No</th>
<th>Project Code</th>
<th>Project Name</th>
<th>#Task</th>
<th>#Task Done</th>
<th>#Task Assign</th>
<th>#Task On Progress</th>
<th>% Progress</th>
<th>Due Date</th>
<th>Days Overdue</th>
</tr>
</thead>
<tbody>
@if (count($response) > 0)
@foreach ($response as $key => $item)
<tr>
<td align="center">{{ $key+1 }}</td>
<td>{{ $item->project_code }}</td>
<td>{{ $item->project_name }}</td>
<td align="right">{{ $item->jml_task }}</td>
<td align="right">{{ $item->jml_task_done }}</td>
<td align="right">{{ $item->jml_task_assign }}</td>
<td align="right">{{ $item->jml_task_on_progress }}</td>
<td align="right">{{ $item->progress_task }} %</td>
<td align="center">{{ date('d-m-Y', strtotime($item->due_date)) }}</td>
<td align="right">{{ $item->days_left }}</td>
</tr>
@endforeach
@else
<tr>
<td colspan="10" align="center">Data Tidak Ditemukan</td>
</tr>
@endif
</tbody>
</table>
</div>
</body>
</html>