This commit is contained in:
Kevin Adametz 2024-08-05 12:05:24 +02:00
parent 04d677d37a
commit bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions

View file

@ -271,12 +271,12 @@
}
</script>
<div id="address_box">
<div id="address_box_top">mivita e.K. Leinfeld 2 87755 Kirchhaslach</div>
<div id="address_box_top">{{ __('pdf.address_top') }} </div>
@if($user->account)
@if($user->account->company)
{{ $user->account->company }}<br>
@else
Firma <br>
{{ __('Company') }} <br>
@endif
{{ \App\Services\HTMLHelper::getSalutationLang($user->account->salutation) }}
{{ $user->account->first_name }} {{ $user->account->last_name }}<br>
@ -294,7 +294,7 @@
<div id="detail_box_right" class="for_shop">
<table>
<tr>
<td class="text-left">{{ __('Berater-ID') }}:</td>
<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) !!}
@ -302,22 +302,22 @@
</td>
</tr>
<tr>
<td class="text-left">{{ __('Datum') }}:</td>
<td class="text-left">{{ __('pdf.date') }}:</td>
<td class="text-right">{{ $credit_date }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Gutschrifts-Nr.') }}:</td>
<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">{{ __('Steuer-Nr.') }}:</td>
<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">{{ __('USt-IdNr.') }}:</td>
<td class="text-left">{{ __('pdf.vat_no') }}:</td>
<td class="text-right">{{ $user->account->tax_identification_number}}</td>
</tr>
@endif
@ -326,19 +326,15 @@
</div>
<div id="title_box">
<div class="title">GUTSCHRIFT</div>
{{-- @if($cancellation)
<div class="subtitle">{{ $invoice->invoice_name }}</div>
@endif--}}
<div class="title">{{ __('pdf.credit_note') }}</div>
</div>
<div id="invoice_box">
<table>
<thead>
<tr>
<th class="text-left" style="width: 75%">Gutschrift aus</th>
<th class="text-right" style="width: 25%">Betrag</th>
<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>
@ -346,7 +342,7 @@
@foreach($user_credit_items as $user_credit_item)
<tr class="item">
<td class="small text-left">
{!! nl2br($user_credit_item->message) !!} / {{ $user_credit_item->created_at->format('d.m.Y') }}
{!! 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) }} &euro;
@ -357,7 +353,7 @@
<tfoot>
<tr class="fullline">
<td class="text-right">
Zwischensumme
{{ __('order.subtotal') }}
</td>
<td class="text-right">
* {{\App\Services\Util::formatNumber($user_credits->net) }} &euro;
@ -367,7 +363,7 @@
@if ($user_credits->taxable)
<tr class="">
<td class="text-right">
Mehrwertsteuer: {{ $user_credits->tax_rate }} % <br>
{{ __('pdf.vat_text') }}: {{ $user_credits->tax_rate }} % <br>
</td>
<td class="text-right">
{{ \App\Services\Util::formatNumber($user_credits->tax) }} &euro;
@ -377,7 +373,7 @@
@else
<tr class="">
<td class="text-right">
Mehrwertsteuer: {{ $user_credits->tax_rate }} % <br>
{{ __('pdf.vat_text') }}: {{ $user_credits->tax_rate }} % <br>
</td>
<td class="text-right">
{{ \App\Services\Util::formatNumber($user_credits->tax) }} &euro;
@ -387,12 +383,12 @@
<tr class="fullline">
<td class="text-right">
<b>Auszahlungsbetrag (Brutto):</b>
<b>{{ __('pdf.amount_paid_out_gross') }}:</b>
</td>
<td class="text-right">
<b> {{ \App\Services\Util::formatNumber($user_credits->total) }} &euro;</b>
<br>
<span style="font-size: 0.9em"><em>* Nettobeträge</em></span>
<span style="font-size: 0.9em"><em>* {{ __('pdf.net_amount') }}</em></span>
</td>
</tr>
@ -402,18 +398,16 @@
<div id="footer_box">
<div class="text">
@if($user_credits->taxable === 2)
<p>
Als Kleinunternehmer im Sinne von § 19 Abs. 1 UStG wird keine Umsatzsteuer berechnet.
{{ __('pdf.as_a_small_entrepreneur_info') }}
</p>
@endif
@if($user_credits->taxable === 3)
<p>
Reverse-Charge-Verfahren, Umkehr der Steuerschuldnerschaft.
{{ __('pdf.reverse_charge_procedure_info') }}
</p>
@endif
</div>

View file

@ -0,0 +1,809 @@
<!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: transparent;
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: 30mm 0 15mm 0;
}
main {
width: 100%;
height: 100%;
}
#pdf-page {
background-color: transparent;
position: relative;
}
h3 {
line-height: 1.2em;
}
.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;
}
.card {
position: relative;
padding-top: 0mm;
margin-left: 15mm;
width: 180mm;
line-height: 10pt;
background: transparent;
background-color: transparent;
}
.card table {
width: 100%;
border-collapse: collapse;
}
.card table tfoot tr {
page-break-after: avoid;
}
.card table tr th {
font-size: 9pt;
}
.card table tr td {
font-size: 9pt;
vertical-align: top;
padding-top: 2mm;
padding-bottom: 2mm;
padding-left: 1.5mm;
padding-right: 1.5mm;
border-top: 0.5pt dotted #1a1a18;
}
.card table tfoot tr td {
border-top: none;
}
.card table tfoot tr.fullline td {
border-top: 0.3pt solid #575755;
}
.card table tfoot tr.doubleline td {
border-top: 2pt double #575755;
}
.card table tfoot tr.fullline td.no-border {
border-top: none;
}
.card table tfoot tr td {
padding-top: 1.2mm;
padding-bottom: 1.2mm;
}
.card table td.small {
width: 1%;
white-space: nowrap;
}
.card table tr.foot-small td {
font-size: 0.9em;
padding-top: 1.2mm;
padding-bottom: 1.2mm;
}
.card table tr td .small, .card table tr td.small {
font-size: 0.9em;
}
.card table tfoot tr.foot-small td {
font-size: 0.9em;
padding-top: 0.9mm;
padding-bottom: 0.9mm;
}
.card table tr th {
line-height: 1.2em;
padding-bottom: 1mm;
padding-left: 1mm;
padding-right: 1mm;
background-color: rgb(227, 227, 227);
text-align: left;
}
.card table td .title {
}
.card table td .description {
padding-top: 1mm;
}
.card table td .price_net {
padding-top: 1mm;
font-size: 10pt;
padding-bottom: 1mm;
}
.card 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;
}
.td-entry-table-margin {
padding-bottom: 6px;
border-bottom: 1px solid rgb(221, 221, 221);
margin-bottom: 6px;
}
div.card-header {
border-bottom: none;
}
.user-view-table tr:first-child td {
border-top: none;
}
.user-view-table tr:first-child td {
border-top: none;
}
.table th, .table td {
border-top: none;
}
.table tbody th, .table tbody td {
border-bottom: 1px solid #d6d6de;
}
.card hr {
border-color: #d7d700;
margin: 6mm 0;
}
.user-view-table tr td:first-child {
width: 40mm;
}
.badge {
display: inline-block;
padding: 0.1em 0.5em;
font-size: 0.85em;
font-weight: 500;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.125rem;
}
.badge-primary {
background-color: #b5c49b;
color: #484e3e;
}
.badge-secondary {
background-color: #d7d700;
color: #565600;
}
.badge-outline-success {
background-color: #fff;
border-color: #64bc40;
color: #64bc40;
border-radius: 0.125rem;
border: 1px solid #64bc40;
}
.badge-outline-info {
background-color: #fff;
border-color: #28c3d7;
color: #28c3d7;
border-radius: 0.125rem;
border: 1px solid #28c3d7;
}
.badge-outline-warning-dark {
background-color: #fff;
border-color: #FFD950;
color: #FFD950;
border-radius: 0.125rem;
border: 1px solid #FFD950;
}
.badge-outline-dark {
background-color: #fff;
border-color: #292b2d;
color: #292b2d;
border-radius: 0.125rem;
border: 1px solid #292b2d;
}
.font-weight-bolder {
font-weight: 700;
}
.text-dark {
color: #1a1a18;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(24, 28, 33, 0.025);
}
.page-break {
page-break-inside: avoid;
}
.page-break-always {
page-break-before: always;
}
</style>
</head>
<body>
<main>
<div id="pdf-page">
<div class="card" style="background-color: transparent;">
<h3 class="card-header" style="background-color: transparent;">
{{ __('team.payout_details') }}
<br>
{{ __('pdf.credit_note') }} | {{ $user_credit->date }} | {{ $user_credit->full_number }} |
{{ $user_credit->user->account->first_name }} {{ $user_credit->user->account->last_name }}
({{ $user_credit->user->email }})
</h3>
@foreach ($dates as $date => $dateObj)
@if (isset($collection->calc_bot[$date]))
@php($cbot = $collection->calc_bot[$date])
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>{{ __('team.date') }}:</td>
<td>
<strong> {{ HTMLHelper::getMonth($cbot->date->month) }}
{{ $cbot->date->year }}</strong> | {{ __('team.completed') }}
@if ($cbot->business_user->isSave())
<span class="badge badge-outline-success"><i class="fa fa-check-circle"></i></span>
@else
<span class="badge badge-outline-warning-dark"><i class="fa fa-times"></i></span>
@endif
</td>
</tr>
<tr>
<td>{{ __('team.career_level') }}:</td>
<td>
{{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->user_level_name) }}
&nbsp;
<span class="badge badge-outline-success"> {{ __('team.KU') }}
{{ $cbot->business_user->qual_kp }} / {{ __('team.PP') }}
{{ formatNumber($cbot->business_user->qual_pp, 0) }}</span>
</td>
</tr>
<tr>
<td>{{ __('team.shop_commission') }}:</td>
<td>
{{ $cbot->business_user->margin_shop }} %
</td>
</tr>
<tr>
<td>{{ __('team.consultant_margin') }}:</td>
<td>
{{ $cbot->business_user->margin }} %
</td>
</tr>
<tr>
<td><strong>{{ __('team.commission_total') }}:</strong></td>
<td>
<span class="badge badge-secondary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->getCommissionTotal()) }} &euro;</strong></span>
</td>
</tr>
</tbody>
</table>
</div>
<hr>
@endif
@if (isset($collection->commission_shop[$date]))
@php($cs = $collection->commission_shop[$date])
@if (isset($cbot))
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>
<strong>{{ __('team.commission_shop') }}</strong>
</td>
<td>
<span class="badge badge-primary"
style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_shop_sales) }}
&euro;</strong></span>
&nbsp;
({{ __('team.sales_store_net') }}:
{{ formatNumber($cbot->business_user->sales_volume_total_shop) }} &euro; /
{{ $cbot->business_user->margin_shop }} %)
</td>
</tr>
</tbody>
</table>
</div>
@endif
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>{{ __('tables.date') }}</th>
<th>{{ __('tables.net_sales') }}</th>
<th>{{__('tables.commission')}} %</th>
<th>{{__('tables.commission')}} &euro;</th>
<th>{{ __('tables.order') }}</th>
</tr>
</thead>
<tbody>
@foreach ($cs->user_sales_volumes as $user_sales_volume)
<tr>
<td>{{ $user_sales_volume->date }}</td>
<td>{{ formatNumber($user_sales_volume->total_net) }} &euro;</td>
<td>{{ $cbot->business_user->margin_shop }} %</td>
<td>{{ formatNumber($user_sales_volume->caluCommissonTotalNet($cbot->business_user->margin_shop)) }} &euro;</td>
<td>
{{ $user_sales_volume->shopping_order_id }}
@if ($user_sales_volume->shopping_order)
<br><span class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
@endif
</td>
</tr>
@endforeach
@if (isset($collection->commission_credit[$date]))
@php($ccredits = $collection->commission_credit[$date])
@foreach ($ccredits as $credit)
<tr>
<td>{{ $credit->date }}</td>
<td>{{ formatNumber($credit->total_net) }} &euro;</td>
<td>{{ $cbot->business_user->margin_shop }} %</td>
<td>{{ formatNumber($credit->caluCommissonTotalNet($cbot->business_user->margin_shop)) }} &euro;</td>
<td>{{ __('pdf.credit_note') }}<br><span class="small">{{ $credit->info }}</span></td>
</tr>
@endforeach
@endif
</tbody>
<tfoot>
<tr>
<td class="text-right"> {{ __('tables.total') }} </td>
<td>{{ formatNumber($cs->user_sales_volumes_total->month_shop_total_net) }} &euro;</td>
<td>&nbsp;</td>
<td><strong>{{ formatNumber($cbot->business_user->commission_shop_sales) }} &euro;</strong></td>
<td>&nbsp;</td>
</tr>
</tfoot>
</table>
</div>
<hr>
@endif
@if (isset($collection->own_order[$date]))
@php($order = $collection->own_order[$date])
@if (isset($cbot))
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>
<strong>{{ __('team.own') }} {{ __('tables.margin') }} </strong>
</td>
<td>
<span class="badge badge-primary"
style="font-size: 1em;"><strong>
{{ formatNumber($cbot->business_user->getSalesVolumeTotalMargin()) }}
&euro;</strong></span>
&nbsp;
({{ __('team.net_turnover') }}:
{{ formatNumber($cbot->business_user->sales_volume_total) }} &euro; /
{{ $cbot->business_user->margin }} %)
<br>
<em>{{ __('team.consultant_margin_info') }}</em>
</td>
</tr>
</tbody>
</table>
</div>
@endif
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>{{ __('tables.date') }}</th>
<th>{{ __('tables.net_sales') }}</th>
<th>{{ __('tables.margin') }} %</th>
<th>{{ __('tables.margin') }} &euro;</th>
<th>{{ __('tables.order') }}</th>
</tr>
</thead>
<tbody>
@foreach ($order->user_sales_volumes as $user_sales_volume)
<tr>
<td>{{ $user_sales_volume->date }}</td>
<td>{{ formatNumber($user_sales_volume->total_net) }} &euro;</td>
<td>{{ $cbot->business_user->margin }} %</td>
<td>{{ formatNumber($user_sales_volume->caluCommissonTotalNet($cbot->business_user->margin)) }} &euro;</td>
<td>
{{ $user_sales_volume->shopping_order_id }}
@if ($user_sales_volume->shopping_order)
<br><span
class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
@endif
</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td class="text-right"> {{ __('tables.total') }} </td>
<td>{{ formatNumber($order->credit_total_net) }} &euro;</td>
<td>&nbsp;</td>
<td><strong>{{ formatNumber($cbot->business_user->getSalesVolumeTotalMargin()) }} &euro;</strong></td>
<td>&nbsp;</td>
</tr>
</tfoot>
</table>
</div>
<hr>
@endif
@if (isset($collection->commission_registration[$date]))
@php($cr = $collection->commission_registration[$date])
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td colspan="2">
<strong>{{ __('tables.points') }} {{ __('payment.registration') }}</strong>
</td>
</tr>
</tbody>
</table>
</div>
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>{{ __('tables.date') }}</th>
<th>{{ __('tables.points') }}</th>
<th>{{ __('tables.info') }}</th>
</tr>
</thead>
<tbody>
@foreach ($cr->user_sales_volumes as $user_sales_volume)
<tr>
<td>{{ $user_sales_volume->date }}</td>
<td>{{ $user_sales_volume->points }}</td>
<td>{{ $user_sales_volume->info }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td class="text-right"> {{ __('tables.total') }} </td>
<td><strong>{{ $cr->credit_total_points }}</strong></td>
<td>&nbsp;</td>
</tr>
</tfoot>
</table>
</div>
<hr>
@endif
@if (isset($cbot))
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td colspan="2">
<strong>{{ __('tables.total') }} </strong>
</td>
</tr>
<tr>
<td>{{ __('team.net_turnover') }}:</td>
<td>
<strong>{{ formatNumber($cbot->business_user->sales_volume_total_sum) }} &euro;</strong>
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_total) }} &euro; | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_total_shop) }} &euro;)
</td>
</tr>
<tr>
<td>{{ __('team.customer_points') }}:</td>
<td>
<strong>{{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} {{ __('team.KU') }}</strong>
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_KP_points, 0) }} | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_points_shop, 0) }})
&nbsp; <span class="badge {{ $cbot->business_user->isQualKP() ? 'badge-outline-success' : 'badge-outline-warning-dark' }}"> {{ __('team.KU') }} {{ $cbot->business_user->qual_kp }}</span>
</td>
</tr>
</tbody>
</table>
</div>
<hr>
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
@if($cbot->business_user->version == 2)
<tr>
<td>{{ __('team.payline_points') }}:</td>
<td>
<strong>{{ formatNumber($cbot->business_user->payline_points, 0) }} {{ __('team.PP') }}</strong>
</td>
</tr>
<tr>
<td>{{ __('team.qualification_points') }} :</td>
<td>
<strong>{{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} {{ __('team.PP') }}</strong> (+ {{ __('team.volume_KU') }})
</td>
</tr>
<tr>
<td>{{ __('team.current_commission_level') }}:</td>
<td>
@if($cbot->business_user->isQualLevel())
<span class="badge {{ $cbot->business_user->isQualEqualLevel() ? 'badge-outline-success' : 'badge-outline-info' }}">
{{ __('team.KU') }} {{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} /
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_kp'], 0) }}</strong> |
{{ __('team.PP') }} {{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} /
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_pp'], 0) }}</strong>
| {{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->qual_user_level['name']) }}</span>
@endif
</td>
</tr>
<tr>
<td><strong>{{ __('team.commission_payline') }}:</strong></td>
<td>
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_pp_total) }} &euro;</strong></span>
</td>
</tr>
<tr>
<td><strong>{{ __('team.commission_WB') }}:</strong></td>
<td>
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_growth_total) }} &euro;</strong></span>
</td>
</tr>
@endif
</tbody>
</table>
</div>
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>{{__('tables.line')}}</th>
<th>{{__('tables.points')}}</th>
<th>{{__('tables.commission')}} %</th>
<th>{{__('tables.commission')}} &euro;</th>
</tr>
</thead>
<tbody>
@foreach ($cbot->business_user->business_lines as $line => $object)
<tr>
<td>
@if($line <= $cbot->business_user->getQualLevelPaylines())
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-success">{{ $line }}. {{ __('team.PP') }}</div>
@elseif($line <= $cbot->business_user->isQualLevelGrowth($line))
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-warning-dark">{{ $line }}. {{ __('team.WB') }}</div>
@else
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-dark">{{ $line }}.</div>
@endif
</td>
<td>{{ formatNumber($cbot->getKeybyLine($line, 'points'), 0) }}</td>
<td>{{ formatNumber($cbot->getKeybyLine($line, 'margin'), 1) }} %</td>
<td>{{ formatNumber($cbot->getKeybyLine($line, 'commission'), 2) }} &euro;</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td>{{__('tables.total')}}</td>
<td>{{ formatNumber($cbot->business_user->total_pp, 0) }}</td>
<td>&nbsp;</td>
<td><strong>{{ formatNumber($cbot->business_user->commission_pp_total, 2) }} &euro;</strong></td>
</tr>
</tfoot>
</table>
</div>
<hr>
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>{{__('tables.line')}}</th>
<th>{{ __('shop.name') }}</th>
<th>{{__('tables.points')}}</th>
<th>{{__('tables.commission')}} %</th>
<th>{{__('tables.commission')}} &euro;</th>
<th>{{ __('tables.level') }}</th>
</tr>
</thead>
<tbody>
{!! \App\Services\BusinessPlan\SalesPointsVolumeHelper::getBusinessUsersTable($cbot, 'line') !!}
</tbody>
</table>
</div>
@endif
@endforeach
</div>
</div>
</main>
<script type="text/php">
if (isset($pdf)) {
$font = null;
$size = 8;
$color = array(0,0,0);
$word_space = 0.0; // default
$char_space = 0.0; // default
$angle = 0.0; // default
$text = "{PAGE_NUM} / {PAGE_COUNT}";
$y = $pdf->get_height() - 40;
$x = $pdf->get_width() - 45;
$pdf->page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle);
}
</script>
</body>
</html>

View file

@ -0,0 +1,836 @@
<!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: transparent;
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: 30mm 0 15mm 0;
}
main {
width: 100%;
height: 100%;
}
#pdf-page {
background-color: transparent;
position: relative;
}
h3 {
line-height: 1.2em;
}
.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;
}
.card {
position: relative;
padding-top: 0mm;
margin-left: 15mm;
width: 180mm;
line-height: 10pt;
background: transparent;
background-color: transparent;
}
.card table {
width: 100%;
border-collapse: collapse;
}
.card table tfoot tr {
page-break-after: avoid;
}
.card table tr th {
font-size: 9pt;
}
.card table tr td {
font-size: 9pt;
vertical-align: top;
padding-top: 2mm;
padding-bottom: 2mm;
padding-left: 1.5mm;
padding-right: 1.5mm;
border-top: 0.5pt dotted #1a1a18;
}
.card table tfoot tr td {
border-top: none;
}
.card table tfoot tr.fullline td {
border-top: 0.3pt solid #575755;
}
.card table tfoot tr.doubleline td {
border-top: 2pt double #575755;
}
.card table tfoot tr.fullline td.no-border {
border-top: none;
}
.card table tfoot tr td {
padding-top: 1.2mm;
padding-bottom: 1.2mm;
}
.card table td.small {
width: 1%;
white-space: nowrap;
}
.card table tr.foot-small td {
font-size: 0.9em;
padding-top: 1.2mm;
padding-bottom: 1.2mm;
}
.card table tr td .small {
font-size: 0.9em;
}
.card table tfoot tr.foot-small td {
font-size: 0.9em;
padding-top: 0.9mm;
padding-bottom: 0.9mm;
}
.card table tr th {
line-height: 1.2em;
padding-bottom: 1mm;
padding-left: 1mm;
padding-right: 1mm;
background-color: rgb(227, 227, 227);
text-align: left;
}
.card table td .title {
}
.card table td .description {
padding-top: 1mm;
}
.card table td .price_net {
padding-top: 1mm;
font-size: 10pt;
padding-bottom: 1mm;
}
.card 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;
}
.td-entry-table-margin {
padding-bottom: 6px;
border-bottom: 1px solid rgb(221, 221, 221);
margin-bottom: 6px;
}
div.card-header {
border-bottom: none;
}
.user-view-table tr:first-child td {
border-top: none;
}
.user-view-table tr:first-child td {
border-top: none;
}
.table th, .table td {
border-top: none;
}
.table tbody th, .table tbody td {
border-bottom: 1px solid #d6d6de;
}
.card hr {
border-color: #d7d700;
margin: 6mm 0;
}
.user-view-table tr td:first-child {
width: 40mm;
}
.badge {
display: inline-block;
padding: 0.1em 0.5em;
font-size: 0.85em;
font-weight: 500;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.125rem;
}
.badge-primary {
background-color: #b5c49b;
color: #484e3e;
}
.badge-secondary {
background-color: #d7d700;
color: #565600;
}
.badge-outline-success {
background-color: #fff;
border-color: #64bc40;
color: #64bc40;
border-radius: 0.125rem;
border: 1px solid #64bc40;
}
.badge-outline-info {
background-color: #fff;
border-color: #28c3d7;
color: #28c3d7;
border-radius: 0.125rem;
border: 1px solid #28c3d7;
}
.badge-outline-warning-dark {
background-color: #fff;
border-color: #FFD950;
color: #FFD950;
border-radius: 0.125rem;
border: 1px solid #FFD950;
}
.badge-outline-dark {
background-color: #fff;
border-color: #292b2d;
color: #292b2d;
border-radius: 0.125rem;
border: 1px solid #292b2d;
}
.font-weight-bolder {
font-weight: 700;
}
.text-dark {
color: #1a1a18;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(24, 28, 33, 0.025);
}
.page-break {
page-break-inside: avoid;
}
.page-break-always {
page-break-before: always;
}
</style>
</head>
<body>
<main>
<div id="pdf-page">
<div class="card" style="background-color: transparent;">
<h3 class="card-header" style="background-color: transparent;">
Auszahlungen Details
<br>
{{ __('pdf.credit_note') }} | {{ $user_credit->date }} | {{ $user_credit->full_number }} |
{{ $user_credit->user->account->first_name }} {{ $user_credit->user->account->last_name }}
({{ $user_credit->user->email }})
</h3>
@foreach ($dates as $date => $dateObj)
@if (isset($collection->calc_bot[$date]))
@php($cbot = $collection->calc_bot[$date])
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>{{ __('team.date') }}:</td>
<td>
<strong> {{ HTMLHelper::getMonth($cbot->date->month) }}
{{ $cbot->date->year }}</strong> | {{ __('team.completed') }}
@if ($cbot->business_user->isSave())
<span class="badge badge-outline-success"><i class="fa fa-check-circle"></i></span>
@else
<span class="badge badge-outline-warning-dark"><i class="fa fa-times"></i></span>
@endif
</td>
</tr>
<tr>
<td>{{ __('team.career_level') }}:</td>
<td>
{{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->user_level_name) }}
&nbsp;
<span class="badge badge-outline-success"> {{ __('team.KU') }}
{{ $cbot->business_user->qual_kp }} / {{ __('team.PP') }}
{{ formatNumber($cbot->business_user->qual_pp, 0) }}</span>
</td>
</tr>
<tr>
<td>{{ __('team.shop_commission') }}:</td>
<td>
{{ $cbot->business_user->margin_shop }} %
</td>
</tr>
<tr>
<td>{{ __('team.consultant_margin') }}:</td>
<td>
{{ $cbot->business_user->margin }} %
</td>
</tr>
<tr>
<td><strong>{{ __('team.commission_total') }}:</strong></td>
<td>
<span class="badge badge-secondary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->getCommissionTotal()) }} &euro;</strong></span>
</td>
</tr>
</tbody>
</table>
</div>
<hr>
@endif
@if (isset($collection->commission_shop[$date]))
<div class="page-break">
@php($cs = $collection->commission_shop[$date])
@if (isset($cbot))
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>
<strong>{{ __('team.commission_shop') }}</strong>
</td>
<td>
<span class="badge badge-primary"
style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_shop_sales) }}
&euro;</strong></span>
&nbsp;
({{ __('team.sales_store_net') }}:
{{ formatNumber($cbot->business_user->sales_volume_total_shop) }} &euro; /
{{ $cbot->business_user->margin_shop }} %)
</td>
</tr>
</tbody>
</table>
</div>
@endif
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>#</th>
<th>{{ __('Datum') }}</th>
<th>{{ __('Typ') }}</th>
<th>{{ __('Umsatz netto') }}</th>
<th>{{ __('tables.points') }}</th>
<th>{{ __('für') }}</th>
<th>{{ __('VE') }}</th>
<th>{{ __('Bestellung') }}</th>
</tr>
</thead>
<tbody>
@foreach ($cs->user_sales_volumes as $user_sales_volume)
<tr>
<td>{{ $user_sales_volume->id }}</td>
<td>{{ $user_sales_volume->date }}</td>
<td>{{ $user_sales_volume->getStatusType() }}</td>
<td>{{ formatNumber($user_sales_volume->total_net) }} &euro;</td>
<td>{{ $user_sales_volume->points }}</td>
<td>{{ $user_sales_volume->getStatusPointsType() }}</td>
<td>{{ $user_sales_volume->getStatusTurnoverType() }}</td>
<td>
{{ $user_sales_volume->shopping_order_id }}
@if ($user_sales_volume->shopping_order)
<br><span
class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
@endif
</td>
</tr>
@endforeach
@if (isset($collection->commission_credit[$date]))
@php($ccredits = $collection->commission_credit[$date])
@foreach ($ccredits as $credit)
<tr>
<td>{{ $credit->id }}</td>
<td>{{ $credit->date }}</td>
<td>{{ $credit->getStatusType() }}</td>
<td>{{ formatNumber($credit->total_net) }} &euro;</td>
<td>({{ $credit->points }}) -</td>
<td>{{ $credit->getStatusPointsType() }}</td>
<td>{{ $credit->getStatusTurnoverType() }}</td>
<td>{{ $credit->info }}</td>
</tr>
@endforeach
@endif
</tbody>
<tfoot>
<tr>
<td colspan="3" class="text-right"> {{ __('tables.total') }} </td>
<td><strong>{{ formatNumber($cs->user_sales_volumes_total->month_shop_total_net) }}
&euro;</strong></td>
<td><strong>{{ $cs->user_sales_volumes_total->month_shop_points }}</strong></td>
<td colspan="3"></td>
</tr>
</tfoot>
</table>
</div>
<hr>
</div>
@endif
@if (isset($collection->own_order[$date]))
<div class="page-break">
@php($order = $collection->own_order[$date])
@if (isset($cbot))
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>
<strong>{{ __('team.own') }} {{ __('tables.margin') }} </strong>
</td>
<td>
<span class="badge badge-primary"
style="font-size: 1em;"><strong>
{{ formatNumber($cbot->business_user->getSalesVolumeTotalMargin()) }}
&euro;</strong></span>
&nbsp;
({{ __('team.net_turnover') }}:
{{ formatNumber($cbot->business_user->sales_volume_total) }} &euro; /
{{ $cbot->business_user->margin }} %)
<br>
<em>{{ __('team.consultant_margin_info') }}</em>
</td>
</tr>
</tbody>
</table>
</div>
@endif
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>#</th>
<th>{{ __('Datum') }}</th>
<th>{{ __('Typ') }}</th>
<th>{{ __('Umsatz netto') }}</th>
<th>{{ __('tables.points') }}</th>
<th>{{ __('für') }}</th>
<th>{{ __('VE') }}</th>
<th>{{ __('Bestellung') }}</th>
</tr>
</thead>
<tbody>
@foreach ($order->user_sales_volumes as $user_sales_volume)
<tr>
<td>{{ $user_sales_volume->id }}</td>
<td>{{ $user_sales_volume->date }}</td>
<td>{{ $user_sales_volume->getStatusType() }}</td>
<td>{{ formatNumber($user_sales_volume->total_net) }} &euro;</td>
<td>{{ $user_sales_volume->points }}</td>
<td>{{ $user_sales_volume->getStatusPointsType() }}</td>
<td>{{ $user_sales_volume->getStatusTurnoverType() }}</td>
<td>
{{ $user_sales_volume->shopping_order_id }}
@if ($user_sales_volume->shopping_order)
<br><span
class="small">{{ $user_sales_volume->shopping_order->getShoppingUserFullName() }}</span>
@endif
</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="3" class="text-right"> {{ __('tables.total') }} </td>
<td><strong>{{ formatNumber($order->credit_total_net) }} &euro;</strong></td>
<td><strong>{{ $order->credit_total_points }}</strong></td>
<td colspan="3"></td>
</tr>
</tfoot>
</table>
</div>
<hr>
</div>
@endif
@if (isset($collection->commission_registration[$date]))
<div class="page-break">
@php($cr = $collection->commission_registration[$date])
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td colspan="2">
<strong>{{ __('tables.points') }} {{ __('payment.registration') }}</strong>
</td>
</tr>
</tbody>
</table>
</div>
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>#</th>
<th>{{ __('Datum') }}</th>
<th>{{ __('Typ') }}</th>
<th>{{ __('tables.points') }}</th>
<th>{{ __('für') }}</th>
<th>{{ __('VE') }}</th>
<th>{{ __('Info') }}</th>
</tr>
</thead>
<tbody>
@foreach ($cr->user_sales_volumes as $user_sales_volume)
<tr>
<td>{{ $user_sales_volume->id }}</td>
<td>{{ $user_sales_volume->date }}</td>
<td>{{ $user_sales_volume->getStatusType() }}</td>
<td>{{ $user_sales_volume->points }}</td>
<td>{{ $user_sales_volume->getStatusPointsType() }}</td>
<td>{{ $user_sales_volume->getStatusTurnoverType() }}</td>
<td>{{ $user_sales_volume->info }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="3" class="text-right"> {{ __('tables.total') }} </td>
<td><strong>{{ $cr->credit_total_points }}</strong></td>
<td colspan="4"></td>
</tr>
</tfoot>
</table>
</div>
<hr>
</div>
@endif
@if (isset($cbot))
<div class="page-break">
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td colspan="2">
<strong>{{ __('tables.total') }} </strong>
</td>
</tr>
<tr>
<td>{{ __('team.net_turnover') }}:</td>
<td>
<strong>{{ formatNumber($cbot->business_user->sales_volume_total_sum) }} &euro;</strong>
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_total) }} &euro; | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_total_shop) }} &euro;)
</td>
</tr>
<tr>
<td>{{ __('team.customer_points') }}:</td>
<td>
<strong>{{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} {{ __('team.KU') }}</strong>
({{ __('team.own') }}: {{ formatNumber($cbot->business_user->sales_volume_KP_points, 0) }} | {{ __('team.shop') }}: {{ formatNumber($cbot->business_user->sales_volume_points_shop, 0) }})
&nbsp; <span class="badge {{ $cbot->business_user->isQualKP() ? 'badge-outline-success' : 'badge-outline-warning-dark' }}"> {{ __('team.KU') }} {{ $cbot->business_user->qual_kp }}</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="page-break">
<div class="card-header">
<table class="table user-view-table m-0">
<tbody>
@if($cbot->business_user->version == 2)
<tr>
<td>{{ __('team.payline_points') }}:</td>
<td>
<strong>{{ formatNumber($cbot->business_user->payline_points, 0) }} {{ __('team.PP') }}</strong>
</td>
</tr>
<tr>
<td>{{ __('team.qualification_points') }} :</td>
<td>
<strong>{{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} {{ __('team.PP') }}</strong> (+ {{ __('team.volume_KU') }})
</td>
</tr>
<tr>
<td>{{ __('team.current_commission_level') }}:</td>
<td>
@if($cbot->business_user->isQualLevel())
<span class="badge {{ $cbot->business_user->isQualEqualLevel() ? 'badge-outline-success' : 'badge-outline-info' }}">
{{ __('team.KU') }} {{ formatNumber($cbot->business_user->sales_volume_points_KP_sum, 0) }} /
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_kp'], 0) }}</strong> |
{{ __('team.PP') }} {{ formatNumber($cbot->business_user->payline_points_qual_kp, 0) }} /
<strong>{{ formatNumber($cbot->business_user->qual_user_level['qual_pp'], 0) }}</strong>
| {{ \App\Services\TranslationHelper::transUserLevelName($cbot->business_user->qual_user_level['name']) }}</span>
@endif
</td>
</tr>
<tr>
<td><strong>{{ __('team.commission_payline') }}:</strong></td>
<td>
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_pp_total) }} &euro;</strong></span>
</td>
</tr>
<tr>
<td><strong>{{ __('team.commission_WB') }}:</strong></td>
<td>
<span class="badge badge-primary" style="font-size: 1em;"><strong>{{ formatNumber($cbot->business_user->commission_growth_total) }} &euro;</strong></span>
</td>
</tr>
@endif
</tbody>
</table>
</div>
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>{{__('tables.line')}}</th>
<th>{{__('tables.points')}}</th>
<th>{{__('tables.commission')}} %</th>
<th>{{__('tables.commission')}} &euro;</th>
</tr>
</thead>
<tbody>
@foreach ($cbot->business_user->business_lines as $line => $object)
<tr>
<td>
@if($line <= $cbot->business_user->getQualLevelPaylines())
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-success">{{ $line }}. {{ __('team.PP') }}</div>
@elseif($line <= $cbot->business_user->isQualLevelGrowth($line))
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-warning-dark">{{ $line }}. {{ __('team.WB') }}</div>
@else
<div class="font-weight-bolder line-height-1 my-2 text-dark badge badge-outline-dark">{{ $line }}.</div>
@endif
</td>
<td>{{ formatNumber($cbot->getKeybyLine($line, 'points'), 0) }}</td>
<td>{{ formatNumber($cbot->getKeybyLine($line, 'margin'), 1) }} %</td>
<td>{{ formatNumber($cbot->getKeybyLine($line, 'commission'), 2) }} &euro;</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td>{{__('tables.total')}}</td>
<td>{{ formatNumber($cbot->business_user->total_pp, 0) }}</td>
<td></td>
<td><strong>{{ formatNumber($cbot->business_user->commission_pp_total, 2) }} &euro;</strong></td>
</tr>
</tfoot>
</table>
</div>
<hr>
<div class="card-body table-responsive pt-0 pb-0">
<table class="datatables-style table table-striped ">
<thead>
<tr>
<th>{{__('tables.line')}}</th>
<th>{{ __('shop.name') }}</th>
<th>{{ __('tables.email') }}</th>
<th>{{ __('tables.level') }}</th>
<th>{{__('tables.points')}}</th>
<th>{{__('tables.net_sales')}}</th>
</tr>
</thead>
<tbody>
{!! \App\Services\BusinessPlan\SalesPointsVolumeHelper::getBusinessUsersTable($cbot->business_users, 'line') !!}
</tbody>
</table>
</div>
</div>
@endif
@endforeach
</div>
</div>
</main>
<script type="text/php">
if (isset($pdf)) {
$font = null;
$size = 8;
$color = array(0,0,0);
$word_space = 0.0; // default
$char_space = 0.0; // default
$angle = 0.0; // default
$text = "{PAGE_NUM} / {PAGE_COUNT}";
$y = $pdf->get_height() - 40;
$x = $pdf->get_width() - 45;
$pdf->page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle);
}
</script>
</body>
</html>

View file

@ -3,10 +3,10 @@
<thead>
<tr>
<th class="text-left" style="width: 10%">
<span class="no-line-break">Artikel-Nr.</span>
<span class="no-line-break">{{__('tables.article_no')}}</span>
</th>
<th class="text-left" style="width: 40%">Bezeichnung</th>
<th class="text-right" style="width: 10%">Menge</th>
<th class="text-left" style="width: 40%">{{__('tables.label')}}</th>
<th class="text-right" style="width: 10%">{{__('tables.quantity')}}</th>
</tr>
</thead>
<tbody>
@ -16,7 +16,7 @@
{{ $shopping_order_item->product->number }}
</td>
<td class="small text-left">
{{ maxStrLength($shopping_order_item->product->name, 35) }}
{{ maxStrLength($shopping_order_item->product->getLang('name'), 35) }}
</td>
<td class="text-right small">
{{ $shopping_order_item->qty }}

View file

@ -6,13 +6,14 @@
{{ $value->product->number }}
</td>
<td class="small text-left">
{{ maxStrLength($value->product->name, 35) }}
{{ maxStrLength($value->product->getLang('name'), 35) }}
</td>
<td class="text-right small">
{{ $value->qty }}
</td>
</tr>
@endforeach
@if(isset($homeparty->order) && isset($homeparty->order['user_carts'][$homeparty_user->id]))
@php($user_cart = $homeparty->order['user_carts'][$homeparty_user->id])
@php($hp_order = $homeparty->order)
@if(!$homeparty_user->is_host)
@ -20,12 +21,13 @@
<td>&nbsp;</td>
<td colspan="6" class="text-left">
@if($homeparty_guest->getDelivery() === 'host')
Lieferung an Gastgeber
{{ __('homeparty.delivery_to_host') }}
@endif
@if($homeparty_guest->getDelivery() === 'direct')
Lieferung direkt an den Gast
{{ __('homeparty.delivery_directly_to_the_guest') }}
@endif
</td>
</tr>
@endif
@endif
@endif

View file

@ -2,9 +2,9 @@
<table>
<thead>
<tr>
<th class="text-left" style="width: 15%">Artikel-Nr.</th>
<th class="text-left" style="width: 70%">Bezeichnung</th>
<th class="text-right" style="width: 15%">Menge</th>
<th class="text-left" style="width: 15%">{{__('tables.article_no')}}</th>
<th class="text-left" style="width: 70%">{{__('tables.label')}}</th>
<th class="text-right" style="width: 15%">{{__('tables.quantity')}}</th>
</tr>
</thead>
<tbody>

View file

@ -275,7 +275,7 @@
}
</script>
<div id="address_box">
<div id="address_box_top">mivita e.K. Leinfeld 2 87755 Kirchhaslach</div>
<div id="address_box_top">{{ __('pdf.address_top') }}</div>
@if($shopping_order->shopping_user->same_as_billing)
@if($shopping_order->shopping_user->billing_company)
{{ $shopping_order->shopping_user->billing_company }}<br>
@ -310,15 +310,15 @@
<div id="detail_box_right" class="for_shop">
<table>
<tr>
<td class="text-left">{{ __('Datum') }}:</td>
<td class="text-left">{{ __('pdf.date') }}:</td>
<td class="text-right">{{ $invoice_date }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Lieferschein-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.delivery_note_no.') }}:</td>
<td class="text-right">{{ $invoice_number }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Bestell-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.order_no') }}:</td>
<td class="text-right xsmall">{{ $shopping_order->getLastShoppingPayment('reference') }}</td>
</tr>
</table>
@ -328,7 +328,7 @@
<table>
<tr>
<tr>
<td class="text-left">{{ __('Berater-ID') }}:</td>
<td class="text-left">{{ __('pdf.adviser_id') }}:</td>
@if($shopping_order->payment_for === 7) //extern
<td class="text-right">
@if(isset($shopping_order->member->account))
@ -345,22 +345,22 @@
</tr>
</tr>
<tr>
<td class="text-left">{{ __('Datum') }}:</td>
<td class="text-left">{{ __('pdf.date') }}:</td>
<td class="text-right">{{ $invoice_date }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Lieferschein-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.delivery_note_no.') }}:</td>
<td class="text-right">{{ $invoice_number }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Bestell-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.order_no') }}:</td>
<td class="text-right xsmall">{{ $shopping_order->getLastShoppingPayment('reference') }}</td>
</tr>
</table>
</div>
@endif
<div id="title_box">
<div class="title">LIEFERSCHEIN</div>
<div class="title">{{ __('pdf.delivery_note') }}</div>
{{-- @if($cancellation)
<div class="subtitle">{{ $invoice->invoice_name }}</div>
@endif--}}
@ -376,7 +376,7 @@
<div class="text">
@if($shopping_order->member)
<div class="dotted-line"></div>
<p>Bei Fragen sind wir jederzeit für Dich da.<br>
<p>{{ __('pdf.we_are_always_there_for_questions') }}<br>
@if($shopping_order->member->shop && $shopping_order->member->isActiveShop())
@if($shopping_order->member->shop->title)
<b>{{ $shopping_order->member->shop->title }}</b><br>
@ -386,14 +386,14 @@
@endif
<a href="{{ $shopping_order->member->shop->getSubdomain(true) }}">{{ $shopping_order->member->shop->getSubdomain(true) }}</a>
@else
Dein Berater: {{$shopping_order->member->getFullName()}}
{{ __('pdf.your_advisor') }}: {{$shopping_order->member->getFullName()}}
@endif
</p>
@endif
@if($shopping_order->payment_for === 4)
<div class="dotted-line"></div>
<p>Bei Fragen sind wir jederzeit für Dich da.<br>
<p>{{ __('pdf.we_are_always_there_for_questions') }}<br>
@if($shopping_order->auth_user->shop && $shopping_order->auth_user->isActiveShop())
@if($shopping_order->auth_user->shop->title)
<b>{{ $shopping_order->auth_user->shop->title }}</b><br>
@ -403,7 +403,7 @@
@endif
<a href="{{ $shopping_order->auth_user->shop->getSubdomain(true) }}">{{ $shopping_order->auth_user->shop->getSubdomain(true) }}</a>
@else
Dein Berater: {{$shopping_order->auth_user->getFullName()}}
{{ __('pdf.your_advisor') }}: {{$shopping_order->auth_user->getFullName()}}
@endif
</p>
@endif

View file

@ -3,16 +3,16 @@
<thead>
<tr>
<th class="text-left" style="width: 5%">
<span class="no-line-break">Artikel-Nr.</span>
<span class="no-line-break">{{__('tables.article_no')}}</span>
</th>
<th class="text-left" style="width: 10%">Bezeichnung</th>
<th class="text-right" style="width: 10%">Points</th>
<th class="text-left" style="width: 10%">{{__('tables.label')}}</th>
<th class="text-right" style="width: 10%">{{__('tables.points')}}</th>
<th class="text-right" style="width: 15%">
<span class="no-line-break">E-Preis*</span>
<span class="no-line-break">{{ __('pdf.eprice') }}*</span>
</th>
<th class="text-right" style="width: 5%">Menge</th>
<th class="text-right" style="width: 5%">{{__('tables.quantity')}}</th>
<th class="text-right" style="max-width: 15%">
<span class="no-line-break">Summe*</span>
<span class="no-line-break">{{__('tables.sum')}}*</span>
</th>
<th class="text-right" style="max-width: 5%">{{__('%')}}</th>
<th class="text-right" style="max-width: 10%">{{__('MwSt')}}</th>
@ -52,7 +52,7 @@
<td class="">
</td>
<td class="text-left" colspan="3">
Gesamte Versandkosten
{{ __('order.total_shipping_costs') }}
</td>
<td class="text-right small">
1
@ -72,7 +72,7 @@
<tr class="fullline">
<td class="text-right">&nbsp;</td>
<td class="text-left">
<b>Summen</b>
<b>{{ __('order.sums') }}</b>
</td>
<td class="text-right">
<strong>{{ $shopping_order->shopping_collect_order->points }} <strong>
@ -109,9 +109,9 @@
<tr class="">
<td class="text-right">&nbsp;</td>
<td class="text-left" colspan="5">
zzgl. {{ $tax_rate }}% MwSt
{{ __('order.excl') }} {{ $tax_rate }}% {{ __('order.VAT') }}
@if(isset($shopping_order->shopping_collect_order->net_split[$tax_rate]))
/ aus {{ Util::formatNumber($shopping_order->shopping_collect_order->net_split[$tax_rate]) }} &euro; netto
/ {{ __('pdf.off') }} {{ Util::formatNumber($shopping_order->shopping_collect_order->net_split[$tax_rate]) }} &euro; {{ __('pdf.net') }}
@endif
</td>
<td class="text-right" colspan="2">
@ -124,7 +124,7 @@
<tr class="fullline">
<td class="text-right">&nbsp;</td>
<td class="text-left" colspan="5">
<b>Summe inkl. der gesetzlichen MwSt.</b>
<b>{{ __('pdf.total_incl_VAT') }}</b>
</td>
<td class="text-right" colspan="2">
<span class="no-line-break">

View file

@ -3,24 +3,24 @@
<thead>
<tr>
<th class="text-left" style="width: 10%">
<span class="no-line-break">Artikel-Nr.</span>
<span class="no-line-break">{{__('tables.article_no')}}.</span>
</th>
<th class="text-left" style="width: 40%">Bezeichnung</th>
<th class="text-left" style="width: 40%">{{__('tables.label')}}</th>
@if($shopping_order->payment_for === 6)
<th class="text-right" style="width: 15%">
<span class="no-line-break">E-Preis</span> @if($shopping_order->tax == 0)*@endif</th>
<th class="text-right" style="width: 10%">Menge</th>
<th class="text-right" style="width: 10%">MwSt.</th>
<th class="text-right" style="width: 15%">Summe @if($shopping_order->tax == 0)*@endif</th>
<span class="no-line-break">{{ __('pdf.eprice') }}</span> @if($shopping_order->tax == 0)*@endif</th>
<th class="text-right" style="width: 10%">{{__('tables.quantity')}}</th>
<th class="text-right" style="width: 10%">{{__('tables.VAT')}}</th>
<th class="text-right" style="width: 15%">{{__('tables.sum')}} @if($shopping_order->tax == 0)*@endif</th>
@else
<th class="text-right" style="width: 15%">
<span class="no-line-break">VK-Preis*</span>
<span class="no-line-break">{{__('tables.vk_price')}}*</span>
</th>
<th class="text-right" style="width: 10%">Menge</th>
<th class="text-right" style="width: 10%">Points</th>
<th class="text-right" style="width: 10%">{{__('tables.quantity')}}</th>
<th class="text-right" style="width: 10%">{{__('tables.points')}}</th>
<th class="text-right" style="width: 10%">%</th>
<th class="text-right" style="width: 15%">
<span class="no-line-break">EK-Preis*</span>
<span class="no-line-break">{{ __('tables.ek_price') }}*</span>
</th>
@endif
</tr>
@ -32,7 +32,7 @@
{{ $shopping_order_item->product->number }}
</td>
<td class="small text-left">
{{ maxStrLength($shopping_order_item->product->name , 35) }}
{{ maxStrLength($shopping_order_item->product->getLang('name') , 35) }}
</td>
@if($shopping_order->payment_for === 6)
<td class="text-right small">
@ -111,9 +111,9 @@
<tr class="">
<td class="text-right">&nbsp;</td>
<td class="text-left" colspan="{{ $colspan }}">
zzgl. {{ $tax_rate }}% MwSt
{{ __('order.excl') }} {{ $tax_rate }}% {{ __('order.VAT') }}
@if(isset($shopping_order->net_split[$tax_rate]))
/ aus {{ Util::formatNumber($shopping_order->net_split[$tax_rate]) }} &euro; netto
/ {{ __('pdf.off') }} {{ Util::formatNumber($shopping_order->net_split[$tax_rate]) }} &euro; {{ __('pdf.net') }}
@endif
</td>
<td class="text-right">
@ -136,7 +136,7 @@
<tr class="fullline">
<td class="text-right">&nbsp;</td>
<td class="text-left" colspan="{{ $colspan }}">
<b>Summe inkl. der gesetzlichen MwSt.</b>
<b>{{ __('pdf.total_incl_VAT') }}</b>
</td>
<td class="text-right">
<span class="no-line-break">
@ -157,7 +157,7 @@
<tr class="fullline">
<td class="text-right">&nbsp;</td>
<td class="text-left" colspan="{{ $colspan }}">
<b>Summe</b>
<b>{{ __('order.sum') }}</b>
</td>
<td class="text-right">
<span class="no-line-break">

View file

@ -1,30 +1,32 @@
@if($homeparty_user && isset($homeparty_user->homeparty_user_order_items))
@foreach($homeparty_user->homeparty_user_order_items as $value)
<tr class="item">
<td class="small text-left">
{{ $value->product->number }}
</td>
<td class="small text-left">
{{ maxStrLength($value->product->name , 35) }}
</td>
<td class="text-right small">
{{ $value->qty }}
</td>
<td class="text-right small">
{{ $value->getFormattedTotalPoints() }}
</td>
<td class="text-right small">
{{ $value->margin }}
</td>
<td class="text-right small">
{{ $value->getFormattedTotalPrice() }} &euro;
</td>
<td class="text-right small">
{{ $value->getFormattedTotalEKPrice() }} &euro;
</td>
</tr>
<tr class="item">
<td class="small text-left">
{{ $value->product->number }}
</td>
<td class="small text-left">
{{ maxStrLength($value->product->getLang('name') , 35) }}
</td>
<td class="text-right small">
{{ $value->qty }}
</td>
<td class="text-right small">
{{ $value->getFormattedTotalPoints() }}
</td>
<td class="text-right small">
{{ $value->margin }}
</td>
<td class="text-right small">
{{ $value->getFormattedTotalPrice() }} &euro;
</td>
<td class="text-right small">
{{ $value->getFormattedTotalEKPrice() }} &euro;
</td>
</tr>
@endforeach
@if(isset($homeparty->order) && isset($homeparty->order['user_carts'][$homeparty_user->id]))
@php($user_cart = $homeparty->order['user_carts'][$homeparty_user->id])
@php($hp_order = $homeparty->order)
@if(!$homeparty_user->is_host)
@ -32,17 +34,17 @@
<td>&nbsp;</td>
<td colspan="6" class="text-left">
@if($homeparty_guest->getDelivery() === 'host')
Lieferung an Gastgeber
{{ __('homeparty.delivery_to_host') }}
@endif
@if($homeparty_guest->getDelivery() === 'direct')
Lieferung direkt an den Gast
{{ __('homeparty.delivery_directly_to_the_guest') }}
@endif
</td>
</tr>
@if($homeparty_guest->getDelivery() === 'direct')
<tr class="foot-small">
<td>&nbsp;</td>
<td colspan="4" class="text-left">Versandkosten</td>
<td colspan="4" class="text-left">{{ __('order.shipping_costs') }}</td>
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} &euro;</td>
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} &euro;</td>
</tr>
@ -50,33 +52,33 @@
<tr class="foot-small">
<td>&nbsp;</td>
<td colspan="2" class="border-top"><strong>Zwischensumme:</strong></td>
<td colspan="2" class="border-top"><strong>{{ __('order.subtotal') }}:</strong></td>
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
<td>&nbsp;</td>
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} &euro;</strong></td>
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} &euro;</strong></td>
</tr>
@else
@if($hp_order['is_bonus'])
@if(isset($hp_order['is_bonus']))
<tr class="foot-small">
<td>&nbsp;</td>
<td colspan="4" class="text-left">Gutschrift Homeparty Gutschein</td>
<td colspan="4" class="text-left">{{ __('homeparty.credit_homeparty_voucher') }}</td>
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} &euro;</td>
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} &euro;</td>
</tr>
@endif
@if($hp_order['is_bonus_coupon'])
@if(isset($hp_order['is_bonus_coupon']))
<tr class="foot-small">
<td>&nbsp;</td>
<td colspan="4" class="text-left">Gutschrift Bonus</td>
<td colspan="4" class="text-left">{{ __('homeparty.credit_bonus') }}</td>
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} &euro;</td>
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} &euro;</td>
</tr>
@endif
@if($hp_order['is_bonus'])
@if(isset($hp_order['is_bonus']))
<tr class="foot-small">
<td>&nbsp;</td>
<td colspan="2" class="text-left">Abzug Points durch Gutschein</td>
<td colspan="2" class="text-left">{{ __('homeparty.deduct_points_by_voucher') }}</td>
<td class="text-right">- {{ $hp_order['bonus_points_diff'] }} </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
@ -85,18 +87,18 @@
@endif
<tr class="foot-small">
<td>&nbsp;</td>
<td colspan="4" class="text-left">Versandkosten:</td>
<td colspan="4" class="text-left">{{ __('order.shipping_costs') }}:</td>
<td class="text-right">&nbsp;</td>
<td class="text-right">{{Util::formatNumber($user_cart['shipping_price'])}} &euro;</td>
</tr>
<tr class="foot-small">
<td>&nbsp;</td>
<td colspan="2" class="border-top"><strong>Zwischensumme:</strong></td>
<td colspan="2" class="border-top"><strong>{{ __('order.subtotal') }}:</strong></td>
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
<td>&nbsp;</td>
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} &euro;</strong></td>
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} &euro;</strong></td>
</tr>
@endif
@endif
@endif

View file

@ -2,13 +2,13 @@
<table>
<thead>
<tr>
<th class="text-left" style="width: 10%">Artikel-Nr.</th>
<th class="text-left" style="width: 40%">Bezeichnung</th>
<th class="text-right" style="width: 10%">Menge</th>
<th class="text-right" style="width: 10%">Points</th>
<th class="text-left" style="width: 10%">{{__('tables.article_no')}}</th>
<th class="text-left" style="width: 40%">{{__('tables.label')}}</th>
<th class="text-right" style="width: 10%">{{__('tables.quantity')}}</th>
<th class="text-right" style="width: 10%">{{__('tables.points')}}</th>
<th class="text-right" style="width: 10%">%</th>
<th class="text-right" style="width: 15%">VK-Preis*</th>
<th class="text-right" style="width: 15%">EK-Preis*</th>
<th class="text-right" style="width: 15%">{{__('tables.vk_price')}}*</th>
<th class="text-right" style="width: 15%">{{ __('tables.ek_price') }}*</th>
</tr>
</thead>
<tbody>
@ -39,7 +39,7 @@
@endif
<td class="">&nbsp;</td>
<td colspan="2" class="border-top">
<strong>Summe:</strong>
<b>{{ __('order.sum') }}</b>
</td>
<td class="border-top text-right"><strong>{{ $hp_order['points'] - $hp_order['bonus_points_diff'] }}</strong></td>
<td class="">&nbsp;</td>
@ -49,7 +49,7 @@
<tr class="foot-small">
<td class="">&nbsp;</td>
<td colspan="4" class="text-muted">
Summe ohne MwSt:
{{ __('order.total_without_VAT') }}:
</td>
<td class="text-muted text-right">{{ Util::formatNumber($hp_order['price_net'])}} &euro;</td>
<td class="text-muted text-right">{{ Util::formatNumber($hp_order['ek_price_net'])}} &euro;</td>
@ -60,9 +60,9 @@
<tr class="foot-small">
<td class="">&nbsp;</td>
<td class="text-left" colspan="4">
zzgl. {{ $tax_rate }}% MwSt
@if(isset($shopping_order->net_split[$tax_rate]))
/ aus {{ Util::formatNumber($shopping_order->net_split[$tax_rate]['ek_net']) }} &euro; EK netto
{{ __('order.excl') }} {{ $tax_rate }}% {{ __('order.VAT') }}
@if(isset($shopping_order->net_split[$tax_rate]))
/ {{ __('pdf.off') }} {{ Util::formatNumber($shopping_order->net_split[$tax_rate]['ek_net']) }} &euro; {{ __('pdf.ek') }} {{ __('pdf.net') }}
@endif
</td>
<td class="text-muted text-right">
@ -81,7 +81,7 @@
<tr class="foot-small">
<td class="">&nbsp;</td>
<td colspan="4" class="text-muted">
Enthaltene MwSt:
{{ __('order.included_VAT') }}:
</td>
<td class="text-muted text-right">
<span class="no-line-break">

View file

@ -82,15 +82,15 @@
</tr>
<tr class="bg-grey">
<td colspan="4">
Lieferadresse: {{ $order['shipping_address'] }}
{{__('Delivery address')}}: {{ $order['shipping_address'] }}
</td>
</tr>
<tr class="">
<th class="text-left">Produkt</th>
<th class="text-right">VK-Preis brutto</th>
<th class="text-right">Anzahl</th>
<th class="text-right">Summe</th>
<th class="text-left">{{ __('tables.product') }}</th>
<th class="text-right">{{ __('tables.gross') }}</th>
<th class="text-right">{{ __('tables.quantity') }}</th>
<th class="text-right">{{ __('tables.sum') }}</th>
</tr>
</thead>
@ -99,7 +99,7 @@
@foreach($order['shopping_order']->shopping_order_items as $shopping_order_item)
<tr class="">
<td class="text-left">
<strong>{{ maxStrLength($shopping_order_item->product->name, 35) }}</strong>
<strong>{{ maxStrLength($shopping_order_item->product->getLang('name'), 35) }}</strong>
<span class="text-muted">#{{ $shopping_order_item->product->number }}</span>
</td>
<td class="text-right">

View file

@ -271,12 +271,12 @@
}
</script>
<div id="address_box">
<div id="address_box_top">mivita e.K. Leinfeld 2 87755 Kirchhaslach</div>
<div id="address_box_top">{{ __('pdf.address_top') }} </div>
@if($shopping_order->shopping_user->billing_company)
{{ $shopping_order->shopping_user->billing_company }}<br>
@else
@if($shopping_order->payment_for !== 6)
Firma <br>
{{ __('Company') }} <br>
@endif
@endif
{{ \App\Services\HTMLHelper::getSalutationLang($shopping_order->shopping_user->billing_salutation) }}
@ -294,15 +294,15 @@
<div id="detail_box_right" class="for_shop">
<table>
<tr>
<td class="text-left">{{ __('Datum') }}:</td>
<td class="text-left">{{ __('pdf.date') }}:</td>
<td class="text-right">{{ $invoice_date }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Rechnungs-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.invoice_nr') }}:</td>
<td class="text-right">{{ $invoice_number }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Bestell-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.order_no') }}:</td>
<td class="text-right xsmall">{{ $shopping_order->getLastShoppingPayment('reference') }}</td>
</tr>
</table>
@ -312,7 +312,7 @@
<table>
<tr>
<tr>
<td class="text-left">{{ __('Berater-ID') }}:</td>
<td class="text-left">{{ __('pdf.adviser_id') }}:</td>
@if($shopping_order->payment_for === 7) //extern
<td class="text-right">
@if(isset($shopping_order->member->account))
@ -329,37 +329,37 @@
</tr>
</tr>
<tr>
<td class="text-left">{{ __('Datum') }}:</td>
<td class="text-left">{{ __('pdf.date') }}:</td>
<td class="text-right">{{ $invoice_date }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Rechnungs-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.invoice_nr') }}:</td>
<td class="text-right">{{ $invoice_number }}</td>
</tr>
@if(isset($user_sales_volume))
<tr>
<td class="text-left">{{ __('Points Bestellung') }}:</td>
<td class="text-left">{{ __('pdf.points_order') }}:</td>
<td class="text-right">{{ $user_sales_volume->points }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Points') }} {{ $user_sales_volume->getFormatedMonthYear() }}:</td>
<td class="text-left">{{ __('pdf.points') }} {{ $user_sales_volume->getFormatedMonthYear() }}:</td>
<td class="text-right">{{ $user_sales_volume->month_points }}</td>
</tr>
<tr>
<td class="text-left">{{ __('Points Shop') }} {{ $user_sales_volume->getFormatedMonthYear() }}:</td>
<td class="text-left">{{ __('pdf.points_shop') }} {{ $user_sales_volume->getFormatedMonthYear() }}:</td>
<td class="text-right">{{ $user_sales_volume->month_shop_points }}</td>
</tr>
@endif
<tr>
<td class="text-left">{{ __('Bestell-Nr.') }}:</td>
<td class="text-left">{{ __('pdf.order_no') }}:</td>
<td class="text-right xsmall">{{ $shopping_order->getLastShoppingPayment('reference') }}</td>
</tr>
</table>
</div>
@endif
<div id="title_box">
<div class="title">RECHNUNG</div>
<div class="title">{{ __('pdf.invoice') }}</div>
{{-- @if($cancellation)
<div class="subtitle">{{ $invoice->invoice_name }}</div>
@endif--}}
@ -374,33 +374,33 @@
<div id="footer_box">
<div class="text">
<p>Zahlungsart: {{ $shopping_order->getLastShoppingPayment('getPaymentType') }} / Status der Rechnung: {{ App\Services\Payment::getFormattedTxaction($shopping_order->txaction) }}<br>
Lieferdatum entspricht dem Rechnungsdatum.
<p>{{ __('pdf.payment_type') }}: {{ $shopping_order->getLastShoppingPayment('getPaymentType') }} / {{ __('pdf.status_of_invoice') }}: {{ App\Services\Payment::getFormattedTxaction($shopping_order->txaction) }}<br>
{{ __('pdf.delivery_date_is_invoice_date') }}
@if($shopping_order->tax == 0 || $shopping_order->shopping_collect_order)
<br><span class="xsmall">* Preise netto</span>
<br><span class="xsmall">* {{ __('pdf.prices_net') }}</span>
@endif
</p>
@if($shopping_order->payment_for !== 6 && isset($shopping_order->shopping_user->auth_user))
<p>
@if(isset($shopping_order->shopping_user->auth_user->account->tax_identification_number))
USt-ID des Leistungsempfängers: {{ $shopping_order->shopping_user->auth_user->account->tax_identification_number }}<br>
{{ __('pdf.vat_id_of_the_recipient_of_the_service') }}: {{ $shopping_order->shopping_user->auth_user->account->tax_identification_number }}<br>
@else
@if(isset($shopping_order->shopping_user->auth_user->account->tax_number))
USt-Nr. des Leistungsempfängers: {{ $shopping_order->shopping_user->auth_user->account->tax_number }}<br>
{{ __('pdf.vat_id_of_the_recipient_of_the_service') }}: {{ $shopping_order->shopping_user->auth_user->account->tax_number }}<br>
@endif
@endif
@if(isset($user_reverse_charge) && $user_reverse_charge)
<span class="xsmall">Die Rechnung erfolgt ohne Umsatzsteuer, da vorliegend der Wechsel der Steuerschuldnerschaft (Reverse-Charge-Verfahren) greift.<br>
Die Umsatzsteuer ist vom Leistungsempfänger anzumelden und abzuführen.</span>
<span class="xsmall">{{ __('pdf.invoice_does_not_include_vat') }}<br>
{{ __('pdf.vat_is_declared_and_paid_by_recipient') }}</span>
@endif
@if(isset($user_tax_free) && $user_tax_free)
<br><span class="xsmall">Steuerfreie Ausfuhrlieferung</span>
<br><span class="xsmall">{{ __('pdf.tax_free_export_delivery') }}</span>
@endif
</p>
@endif
@if($shopping_order->member)
<div class="dotted-line"></div>
<p>Bei Fragen sind wir jederzeit für Dich da.<br>
<p>{{ __('pdf.we_are_always_there_for_questions') }}<br>
@if($shopping_order->member->shop && $shopping_order->member->isActiveShop())
@if($shopping_order->member->shop->title)
<b>{{ $shopping_order->member->shop->title }}</b><br>
@ -410,7 +410,7 @@
@endif
<a href="{{ $shopping_order->member->shop->getSubdomain(true) }}">{{ $shopping_order->member->shop->getSubdomain(true) }}</a>
@else
Dein Berater: {{$shopping_order->member->getFullName()}}
{{ __('pdf.your_advisor') }}: {{$shopping_order->member->getFullName()}}
@endif
</p>
@endif