422 lines
No EOL
12 KiB
PHP
422 lines
No EOL
12 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<title>mivita.care</title>
|
|
<style>
|
|
|
|
/* roboto-300 - latin */
|
|
@font-face {
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 300;
|
|
src: url('fonts/roboto/roboto-v20-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
}
|
|
/* roboto-regular - latin */
|
|
@font-face {
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('fonts/roboto/roboto-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
}
|
|
/* roboto-500 - latin */
|
|
@font-face {
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
src: url('fonts/roboto/roboto-v20-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
}
|
|
/* roboto-700 - latin */
|
|
@font-face {
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url('fonts/roboto/roboto-v20-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
}
|
|
html {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
color: #000;
|
|
background: #fff;
|
|
font-family: 'Roboto', sans-serif;
|
|
font-size: 9.5pt;
|
|
font-weight: 400 ;
|
|
}
|
|
table {
|
|
border: none;
|
|
}
|
|
|
|
strong {
|
|
font-weight: bold !important;
|
|
}
|
|
|
|
@page {
|
|
margin: 0px;
|
|
}
|
|
@page {
|
|
margin-top: 0px;
|
|
}
|
|
|
|
|
|
@page {
|
|
margin: 50mm 0 45mm 0;
|
|
}
|
|
|
|
.font-weight-bold {
|
|
font-weight: bold !important;
|
|
}
|
|
|
|
#address_box {
|
|
position: relative;
|
|
padding-left: 15mm;
|
|
width: 90mm;
|
|
height: 40mm;
|
|
z-index: 1;
|
|
line-height: 10pt;
|
|
letter-spacing: 0em;
|
|
}
|
|
|
|
#address_box_top {
|
|
font-size: 8.5pt;
|
|
color:#858585;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
#title_box {
|
|
position: relative;
|
|
padding-left: 15mm;
|
|
width: 180mm;
|
|
height: 8mm;
|
|
z-index: 2;
|
|
text-align: left;
|
|
}
|
|
|
|
#title_box .title {
|
|
font-size: 16pt;
|
|
line-height: 12pt;
|
|
}
|
|
|
|
#title_box .subtitle {
|
|
line-height: 9pt;
|
|
}
|
|
|
|
#detail_box_right {
|
|
position: absolute;
|
|
top:-4mm;
|
|
right: 15mm;
|
|
width: 60mm;
|
|
height: 30mm;
|
|
z-index: 4;
|
|
}
|
|
#detail_box_right.for_shop {
|
|
top:10mm;
|
|
}
|
|
|
|
#detail_box_right table {
|
|
width: 100%;
|
|
line-height: 9pt;
|
|
}
|
|
|
|
.xsmall {
|
|
font-size: 0.9em;
|
|
}
|
|
#invoice_box {
|
|
position: relative;
|
|
padding-top: 0mm;
|
|
margin-left: 15mm;
|
|
width: 180mm;
|
|
line-height: 10pt;
|
|
}
|
|
|
|
#invoice_box table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
#invoice_box table tfoot tr {
|
|
page-break-after: avoid;
|
|
}
|
|
#invoice_box table tr th {
|
|
font-size: 9pt;
|
|
}
|
|
|
|
#invoice_box table tr td {
|
|
vertical-align: top;
|
|
padding-top: 2mm;
|
|
padding-bottom: 2mm;
|
|
padding-left: 1.5mm;
|
|
padding-right: 1.5mm;
|
|
border-top: 0.5pt dotted #1a1a18;
|
|
}
|
|
|
|
#invoice_box table tfoot tr td {
|
|
border-top: none;
|
|
}
|
|
|
|
#invoice_box table tfoot tr.fullline td {
|
|
border-top: 0.3pt solid #575755;
|
|
}
|
|
|
|
#invoice_box table tfoot tr.doubleline td {
|
|
border-top: 2pt double #575755;
|
|
}
|
|
|
|
#invoice_box table tfoot tr.fullline td.no-border {
|
|
border-top: none;
|
|
}
|
|
|
|
#invoice_box table tfoot tr td {
|
|
padding-top: 1.2mm;
|
|
padding-bottom: 1.2mm;
|
|
|
|
}
|
|
|
|
#invoice_box table td.small {
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
}
|
|
#invoice_box table tr.foot-small td {
|
|
font-size: 0.9em;
|
|
padding-top: 1.2mm;
|
|
padding-bottom: 1.2mm;
|
|
}
|
|
|
|
#invoice_box table tfoot tr.foot-small td {
|
|
font-size: 0.9em;
|
|
padding-top: 0.9mm;
|
|
padding-bottom: 0.9mm;
|
|
}
|
|
|
|
#invoice_box table tr th {
|
|
line-height: 12pt;
|
|
padding-bottom: 1mm;
|
|
padding-left: 1mm;
|
|
padding-right: 1mm;
|
|
background-color: rgb(212, 212, 212);
|
|
}
|
|
|
|
|
|
|
|
#invoice_box table td .title {
|
|
}
|
|
#invoice_box table td .description {
|
|
padding-top: 1mm;
|
|
}
|
|
|
|
#invoice_box table td .price_net {
|
|
padding-top: 1mm;
|
|
font-size: 10pt;
|
|
padding-bottom: 1mm;
|
|
}
|
|
|
|
#invoice_box table td .price_tax {
|
|
padding-top: 0.7mm;
|
|
padding-bottom: 0.7mm;
|
|
}
|
|
|
|
.singel-line-top {
|
|
border-top: 1pt solid #1a1a18;
|
|
}
|
|
.double-line {
|
|
border-bottom: 2.5pt double #1a1a18;
|
|
}
|
|
.dotted-line {
|
|
border-bottom: 0.8pt dotted #1a1a18;
|
|
}
|
|
|
|
#footer_box {
|
|
position: relative;
|
|
top:5mm;
|
|
left: 15mm;
|
|
width: 180mm;
|
|
height: 20mm;
|
|
z-index: 6;
|
|
text-align: left;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
.text-left {
|
|
text-align: left;
|
|
}
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
.no-line-break {
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<script type="text/php">
|
|
if ( isset($pdf) ) {
|
|
$pdf->page_script('
|
|
if ($PAGE_COUNT > 1) {
|
|
$pageText = "Seite: ".$PAGE_NUM . "/" . $PAGE_COUNT;
|
|
$y = 40 * 3;
|
|
$x = 170 * 3;
|
|
$pdf->text($x, $y, $pageText, null, 9);
|
|
}
|
|
');
|
|
}
|
|
</script>
|
|
<div id="address_box">
|
|
<div id="address_box_top">{{ __('pdf.address_top') }} </div>
|
|
@if($user->account)
|
|
@if($user->account->company)
|
|
{{ $user->account->company }}<br>
|
|
@else
|
|
{{ __('Company') }} <br>
|
|
@endif
|
|
{{ \App\Services\HTMLHelper::getSalutationLang($user->account->salutation) }}
|
|
{{ $user->account->first_name }} {{ $user->account->last_name }}<br>
|
|
{{ $user->account->address }}<br>
|
|
@if($user->account->address_2)
|
|
{{ $user->account->address_2 }}<br>
|
|
@endif
|
|
{{ $user->account->zipcode}} {{ $user->account->city }}<br>
|
|
@if($user->account->country)
|
|
{{ $user->account->country->getLocated() }}
|
|
@endif
|
|
@endif
|
|
</div>
|
|
|
|
<div id="detail_box_right" class="for_shop">
|
|
<table>
|
|
@if(isset($is_copy) && $is_copy)
|
|
<tr>
|
|
<td colspan="2" class="text-left" style="font-weight: bold; color: #666;">{{ __('pdf.credit_copy') }}: {{ strtoupper(app()->getLocale()) }}</td>
|
|
</tr>
|
|
@endif
|
|
<tr>
|
|
<td class="text-left">{{ __('pdf.adviser_id') }}:</td>
|
|
<td class="text-right">
|
|
@if(isset($user->account))
|
|
{!! str_pad($user->account->m_account, 5, "0", STR_PAD_LEFT) !!}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="text-left">{{ __('pdf.date') }}:</td>
|
|
<td class="text-right">{{ $credit_date }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="text-left">{{ __('pdf.credit_no') }}:</td>
|
|
<td class="text-right">{{ $credit_number }}</td>
|
|
</tr>
|
|
@if($user->account->tax_number)
|
|
<tr>
|
|
<td class="text-left">{{ __('pdf.tax_no') }}:</td>
|
|
<td class="text-right">{{ $user->account->tax_number}}</td>
|
|
</tr>
|
|
@else
|
|
@if($user->account->tax_identification_number)
|
|
<tr>
|
|
<td class="text-left">{{ __('pdf.vat_no') }}:</td>
|
|
<td class="text-right">{{ $user->account->tax_identification_number}}</td>
|
|
</tr>
|
|
@endif
|
|
@endif
|
|
</table>
|
|
</div>
|
|
|
|
<div id="title_box">
|
|
<div class="title">{{ __('pdf.credit_note') }}</div>
|
|
</div>
|
|
|
|
<div id="invoice_box">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left" style="width: 75%">{{ __('pdf.credit_note_from') }}</th>
|
|
<th class="text-right" style="width: 25%">{{ __('pdf.amount') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
@foreach($user_credit_items as $user_credit_item)
|
|
<tr class="item">
|
|
<td class="small text-left">
|
|
{!! nl2br($user_credit_item->getTransMessage()) !!} / {{ $user_credit_item->created_at->format('d.m.Y') }}
|
|
</td>
|
|
<td class="text-right small">
|
|
* {{ \App\Services\Util::formatNumber($user_credit_item->credit) }} €
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr class="fullline">
|
|
<td class="text-right">
|
|
{{ __('order.subtotal') }}
|
|
</td>
|
|
<td class="text-right">
|
|
* {{\App\Services\Util::formatNumber($user_credits->net) }} €
|
|
</td>
|
|
</tr>
|
|
|
|
@if ($user_credits->taxable)
|
|
<tr class="">
|
|
<td class="text-right">
|
|
{{ __('pdf.vat_text') }}: {{ $user_credits->tax_rate }} % <br>
|
|
</td>
|
|
<td class="text-right">
|
|
{{ \App\Services\Util::formatNumber($user_credits->tax) }} €
|
|
</td>
|
|
</tr>
|
|
|
|
@else
|
|
<tr class="">
|
|
<td class="text-right">
|
|
{{ __('pdf.vat_text') }}: {{ $user_credits->tax_rate }} % <br>
|
|
</td>
|
|
<td class="text-right">
|
|
{{ \App\Services\Util::formatNumber($user_credits->tax) }} €
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
|
|
<tr class="fullline">
|
|
<td class="text-right">
|
|
<b>{{ __('pdf.amount_paid_out_gross') }}:</b>
|
|
</td>
|
|
<td class="text-right">
|
|
<b> {{ \App\Services\Util::formatNumber($user_credits->total) }} €</b>
|
|
<br>
|
|
<span style="font-size: 0.9em"><em>* {{ __('pdf.net_amount') }}</em></span>
|
|
</td>
|
|
</tr>
|
|
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="footer_box">
|
|
<div class="text">
|
|
@if($user_credits->taxable === 2)
|
|
<p>
|
|
{{ __('pdf.as_a_small_entrepreneur_info') }}
|
|
</p>
|
|
@endif
|
|
|
|
|
|
@if($user_credits->taxable === 3)
|
|
<p>
|
|
{{ __('pdf.reverse_charge_procedure_info') }}
|
|
</p>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |