230 lines
7.3 KiB
PHP
230 lines
7.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Data Perusahaan - {{ $company->name }}</title>
|
|
<style>
|
|
/* body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
font-size: 14px;
|
|
color: #333;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-image: url('assets/defaults/simedkom-logo-circle.png');
|
|
background-size: contain;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
} */
|
|
|
|
body{
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url('assets/defaults/simedkom-logo-circle.png');
|
|
background-size: 300px auto;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
opacity: 0.05;
|
|
z-index: -1;
|
|
}
|
|
|
|
header .icon{
|
|
text-align: center;
|
|
}
|
|
|
|
header .icon img {
|
|
width: 20% !important;
|
|
max-width: 200px;
|
|
height: auto;
|
|
}
|
|
|
|
.container {
|
|
width: 80%;
|
|
margin: 20px auto;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
}
|
|
.header h2 {
|
|
font-size: 24px;
|
|
color: #3A59D1;
|
|
}
|
|
.header h3 {
|
|
font-size: 20px;
|
|
color: #555;
|
|
}
|
|
.row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 15px;
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid #f1f1f1;
|
|
}
|
|
.row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.label {
|
|
font-weight: bold;
|
|
width: 35%;
|
|
color: #444;
|
|
}
|
|
.value {
|
|
width: 60%;
|
|
color: #555;
|
|
}
|
|
.value span {
|
|
color: #007bff;
|
|
}
|
|
.section {
|
|
margin-bottom: 25px;
|
|
}
|
|
.document {
|
|
margin-top: 10px;
|
|
padding: 5px 0;
|
|
}
|
|
.document img {
|
|
max-width: 300px;
|
|
margin-bottom: 10px;
|
|
display: block;
|
|
}
|
|
.document a {
|
|
color: #007bff;
|
|
text-decoration: underline;
|
|
}
|
|
.footer {
|
|
text-align: right;
|
|
font-size: 12px;
|
|
color: #aaa;
|
|
margin-top: 30px;
|
|
}
|
|
.footer a {
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div class="icon">
|
|
<img src="{{public_path('assets/defaults/simedkom-logo-full.png')}}" alt="">
|
|
</div>
|
|
</header>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h2>Data Perusahaan</h2>
|
|
<h3>{{ $company->name }}</h3>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="row">
|
|
<div class="label">Media</div>
|
|
<div class="value">{{ $company->media->name }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">Direktur</div>
|
|
<div class="value">{{ $company->director_name }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">NIK Direktur</div>
|
|
<div class="value">{{ $company->director_nik }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">Alamat</div>
|
|
<div class="value">{{ $company->address }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">Email</div>
|
|
<div class="value">{{ $company->email }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">Nomor Telepom</div>
|
|
<div class="value">{{ $company->phone_number }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">NPWP</div>
|
|
<div class="value">{{ $company->tax_id_number }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">SIUP</div>
|
|
<div class="value">{{ $company->trade_license }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">PKP</div>
|
|
<div class="value">{{ $company->taxable_enterprise ?? 'Tidak Ada' }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">SPT Tahunan</div>
|
|
<div class="value">{{ $company->annual_tax_return ?? 'Tidak Ada' }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">Suket Domisili</div>
|
|
<div class="value">{{ $company->domicile_certificate ?? 'Tidak Ada' }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">Profile</div>
|
|
<div class="value">{{ $company->profile ?? 'Tidak Ada' }}</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">Status</div>
|
|
<div class="value">{{ get_user_status($company->user->status) }}</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{-- Dokumen --}}
|
|
<div class="section">
|
|
<h4>Dokumen</h4>
|
|
|
|
@php
|
|
$documents = [
|
|
'NIK Direktur' => $company->director_nik_doc,
|
|
'Akta Pendirian' => $company->deed_incorporation_doc,
|
|
'SIUP' => $company->trade_license_doc,
|
|
'NPWP' => $company->tax_id_number_doc,
|
|
'PKP' => $company->taxable_enterprise_doc,
|
|
'SPT Tahunan' => $company->annual_tax_return_doc,
|
|
'Suket Domisili' => $company->domicile_certificate_doc,
|
|
'Profile' => $company->profile_doc,
|
|
];
|
|
@endphp
|
|
|
|
@foreach($documents as $label => $doc)
|
|
<div class="document">
|
|
<strong>{{ $label }}</strong><br>
|
|
@if($doc)
|
|
@php
|
|
$ext = pathinfo($doc, PATHINFO_EXTENSION);
|
|
@endphp
|
|
@if(in_array(strtolower($ext), ['jpg', 'jpeg', 'png', 'gif', 'webp']))
|
|
<img src="{{ public_path('storage/uploads/companies/' . $doc) }}" alt="{{ "Tidak ada " .$label }}">
|
|
@elseif(strtolower($ext) === 'pdf')
|
|
<a href="{{ asset('storage/uploads/companies/' . $doc) }}" target="_blank">Lihat Dokumen PDF</a>
|
|
@else
|
|
File tidak dikenali.
|
|
@endif
|
|
@else
|
|
Tidak Ada Dokumen
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="footer">
|
|
Dicetak pada {{ now()->format('d-m-Y H:i') .' - '. $app->app_title}}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|