20-02-2026
This commit is contained in:
parent
a8b395e20d
commit
a00c42e770
252 changed files with 28785 additions and 8907 deletions
137
resources/views/pdf/cancellation-detail-collection.blade.php
Normal file
137
resources/views/pdf/cancellation-detail-collection.blade.php
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
<div id="invoice_box">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left" style="width: 5%">
|
||||
<span class="no-line-break">{{__('tables.article_no')}}</span>
|
||||
</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">{{ __('pdf.eprice') }}*</span>
|
||||
</th>
|
||||
<th class="text-right" style="width: 5%">{{__('tables.quantity')}}</th>
|
||||
<th class="text-right" style="max-width: 15%">
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($shopping_order->shopping_collect_order->shop_items as $key => $shop_item)
|
||||
<tr class="item">
|
||||
<td class="small text-left">
|
||||
{{ $shop_item['number'] }}
|
||||
</td>
|
||||
<td class="small text-left">
|
||||
{{ maxStrLength($shop_item['name'], 30) }}
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ number_format($shop_item['points_total'], 0) }}
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ formatNumber($shop_item['user_price_net']) }} €
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ number_format($shop_item['qty'], 0) }}
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ formatNumber($shop_item['user_price_total_net']) }} €
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ formatNumber($shop_item['tax_rate'], 0) }}
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ formatNumber($shop_item['user_tax_total']) }} €
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
<tr>
|
||||
<td class="">
|
||||
</td>
|
||||
<td class="text-left" colspan="3">
|
||||
{{ __('order.total_shipping_costs') }}
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-1
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ formatNumber($shopping_order->shopping_collect_order->shipping_net) }} €
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ formatNumber($shopping_order->shopping_collect_order->shipping_tax) }} €
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left">
|
||||
<b>{{ __('order.sums') }}</b>
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
<strong>-{{ $shopping_order->shopping_collect_order->getFormattedPoints() }} <strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
<strong>-{{ cleanIntegerFromString($shopping_order->shopping_collect_order->qty_total) }}</strong>
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
<span class="no-line-break">
|
||||
<strong>-{{ formatNumber($shopping_order->shopping_collect_order->price_total_net) }} €</strong>
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
<span class="no-line-break">
|
||||
<strong>-{{ formatNumber($shopping_order->shopping_collect_order->tax_total) }} €</strong>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="5">
|
||||
{{__('email.checkout_mail_subtotal_ws')}}
|
||||
</td>
|
||||
<td class="text-right negative-amount" colspan="2">
|
||||
-{{ formatNumber($shopping_order->shopping_collect_order->price_total_net) }} €
|
||||
</td>
|
||||
</tr>
|
||||
@foreach ($shopping_order->shopping_collect_order->tax_split as $tax_rate => $tax)
|
||||
<tr class="">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="5">
|
||||
{{ __('order.excl') }} {{ $tax_rate }}% {{ __('order.VAT') }}
|
||||
@if(isset($shopping_order->shopping_collect_order->net_split[$tax_rate]))
|
||||
/ {{ __('pdf.off') }} -{{ Util::formatNumber($shopping_order->shopping_collect_order->net_split[$tax_rate]) }} € {{ __('pdf.net') }}
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-right negative-amount" colspan="2">
|
||||
-{{ formatNumber($tax) }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="5">
|
||||
<b>{{ __('pdf.total_incl_VAT') }}</b>
|
||||
</td>
|
||||
<td class="text-right negative-amount" colspan="2">
|
||||
<span class="no-line-break">
|
||||
<b>-{{ formatNumber($shopping_order->shopping_collect_order->price_total) }} €</b>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
102
resources/views/pdf/cancellation-detail-homeparty.blade.php
Normal file
102
resources/views/pdf/cancellation-detail-homeparty.blade.php
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
<div id="invoice_box">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<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%">{{__('tables.vk_price')}}*</th>
|
||||
<th class="text-right" style="width: 15%">{{ __('tables.ek_price') }}*</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if($shopping_order->homeparty->homeparty_host)
|
||||
@include('pdf.invoice-homeparty-detail', ['homeparty'=>$shopping_order->homeparty, 'homeparty_user' => $shopping_order->homeparty->homeparty_host, 'is_cancellation' => true])
|
||||
@endif
|
||||
|
||||
@if($shopping_order->homeparty->homeparty_guests)
|
||||
@foreach($shopping_order->homeparty->homeparty_guests as $homeparty_guest)
|
||||
@include('pdf.invoice-homeparty-detail', ['homeparty'=>$shopping_order->homeparty, 'homeparty_user' => $homeparty_guest, 'is_cancellation' => true])
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
@php($hp_order = $shopping_order->homeparty->order)
|
||||
@if($hp_order['is_bonus'])
|
||||
<tr class="doubleline foot-small">
|
||||
<td class=""> </td>
|
||||
<td colspan="5" class="border-top">
|
||||
{{ $hp_order['voucher_name'] }}
|
||||
</td>
|
||||
<td class="border-top text-right negative-amount">-{{ Util::formatNumber($hp_order['voucher_price'])}} €</td>
|
||||
</tr>
|
||||
<tr class="fullline">
|
||||
@else
|
||||
<tr class="doubleline">
|
||||
@endif
|
||||
<td class=""> </td>
|
||||
<td colspan="2" class="border-top">
|
||||
<b>{{ __('order.sum') }}</b>
|
||||
</td>
|
||||
<td class="border-top text-right negative-amount"><strong>-{{ $hp_order['points'] - $hp_order['bonus_points_diff'] }}</strong></td>
|
||||
<td class=""> </td>
|
||||
<td class="border-top text-right negative-amount"><strong>-{{ Util::formatNumber($hp_order['price'])}} €</strong></td>
|
||||
<td class="border-top text-right negative-amount"><strong>-{{ Util::formatNumber($hp_order['ek_price'])}} €</strong></td>
|
||||
</tr>
|
||||
<tr class="foot-small">
|
||||
<td class=""> </td>
|
||||
<td colspan="5" class="border-top">
|
||||
{{__('email.checkout_mail_shipping')}}
|
||||
</td>
|
||||
<td class="border-top text-right negative-amount">-{{ $shopping_order->getFormattedShippingNet() }} €</td>
|
||||
</tr>
|
||||
<tr class="">
|
||||
<td class=""> </td>
|
||||
<td colspan="5" class="border-top">
|
||||
{{ __('order.total_advisor_price') }}
|
||||
</td>
|
||||
<td class="border-top text-right negative-amount"><strong>-{{ Util::formatNumber($hp_order['ek_price_total'])}} €</strong></td>
|
||||
</tr>
|
||||
@if($shopping_order->tax_split)
|
||||
@foreach ($shopping_order->tax_split as $tax_rate => $tax)
|
||||
<tr class="">
|
||||
<td class=""> </td>
|
||||
<td colspan="5">
|
||||
{{ __('order.excl') }} {{ $tax_rate }}% {{ __('order.VAT') }}
|
||||
@if(isset($shopping_order->net_split[$tax_rate]))
|
||||
/ {{ __('pdf.off') }} -{{ Util::formatNumber($shopping_order->net_split[$tax_rate]) }} € {{ __('pdf.net') }}
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
-{{ formatNumber($tax) }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr class="">
|
||||
<td class=""> </td>
|
||||
<td colspan="5">
|
||||
{{__('email.checkout_mail_tax')}}
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
-{{ $shopping_order->getFormattedTax() }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr class="fullline">
|
||||
<td class=""> </td>
|
||||
<td colspan="5" class="border-top">
|
||||
<b>{{ __('pdf.total_incl_VAT') }}</b>
|
||||
</td>
|
||||
<td class="border-top text-right negative-amount">
|
||||
<span class="no-line-break">
|
||||
<b>-{{ $shopping_order->getFormattedTotalShipping() }} €</b>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
196
resources/views/pdf/cancellation-detail.blade.php
Normal file
196
resources/views/pdf/cancellation-detail.blade.php
Normal file
|
|
@ -0,0 +1,196 @@
|
|||
<div id="invoice_box">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left" style="width: 10%">
|
||||
<span class="no-line-break">{{__('tables.article_no')}}.</span>
|
||||
</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">{{ __('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">{{__('tables.vk_price')}}*</span>
|
||||
</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">{{ __('tables.ek_price') }}*</span>
|
||||
</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($shopping_order->shopping_order_items as $shopping_order_item)
|
||||
<tr class="item">
|
||||
<td class="small text-left">
|
||||
{{ $shopping_order_item->product->number }}
|
||||
</td>
|
||||
<td class="small text-left">
|
||||
{{ maxStrLength($shopping_order_item->product->getLang('name') , 35) }}
|
||||
</td>
|
||||
@if($shopping_order->payment_for === 6)
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ $shopping_order_item->getFormattedPrice() }} €
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ cleanIntegerFromString($shopping_order_item->qty) }}
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ $shopping_order_item->getFormattedTaxRate() }}%
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ $shopping_order_item->getFormattedTotalPrice() }} €
|
||||
</td>
|
||||
@else
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ $shopping_order_item->getFormattedPriceVkNet() }} €
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ cleanIntegerFromString($shopping_order_item->qty) }}
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ $shopping_order_item->getFormattedPoints() }}
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
@if($shopping_order_item->price > 0)
|
||||
{{ cleanNumberFormat($shopping_order_item->discount) }}
|
||||
@else
|
||||
0
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-right small negative-amount">
|
||||
-{{ $shopping_order_item->getFormattedTotalPriceNet() }} €
|
||||
</td>
|
||||
@endif
|
||||
|
||||
</tr>
|
||||
{{-- Bundle-Items: Enthaltene Produkte im Set/Kit auflisten --}}
|
||||
@if($shopping_order_item->product->bundleItems && $shopping_order_item->product->bundleItems->count() > 0)
|
||||
@foreach($shopping_order_item->product->bundleItems as $bundleItem)
|
||||
<tr class="item" style="background-color: #f9f9f9;">
|
||||
<td class="small text-left" style="padding-left: 5mm; color: #666;">
|
||||
{{ $bundleItem->number }}
|
||||
</td>
|
||||
<td class="small text-left" style="color: #666;">
|
||||
<span style="font-size: 0.9em;">-{{ $bundleItem->pivot->quantity }}x {{ maxStrLength($bundleItem->getLang('name'), 30) }}</span>
|
||||
</td>
|
||||
@if($shopping_order->payment_for === 6)
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
@else
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
<td class="text-right small" style="color: #999;">-</td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
@if($shopping_order->payment_for === 6)
|
||||
@php($colspan = 4)
|
||||
@else
|
||||
@php($colspan = 5)
|
||||
@endif
|
||||
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="{{ $colspan }}">
|
||||
{{__('email.checkout_mail_shipping')}}
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
@if($shopping_order->tax > 0)
|
||||
@if($shopping_order->payment_for === 6)
|
||||
-{{ $shopping_order->getFormattedShipping() }} €
|
||||
@else
|
||||
-{{ $shopping_order->getFormattedShippingNet() }} €
|
||||
@endif
|
||||
@else
|
||||
-{{ $shopping_order->getFormattedShippingNet() }} €
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="{{ $colspan }}">
|
||||
{{__('email.checkout_mail_subtotal_ws')}}
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
-{{ $shopping_order->getFormattedSubtotalWs() }} €
|
||||
</td>
|
||||
</tr>
|
||||
@if($shopping_order->tax > 0)
|
||||
@if($shopping_order->tax_split)
|
||||
@foreach ($shopping_order->tax_split as $tax_rate => $tax)
|
||||
<tr class="">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="{{ $colspan }}">
|
||||
{{ __('order.excl') }} {{ $tax_rate }}% {{ __('order.VAT') }}
|
||||
@if(isset($shopping_order->net_split[$tax_rate]))
|
||||
/ {{ __('pdf.off') }} -{{ Util::formatNumber($shopping_order->net_split[$tax_rate]) }} € {{ __('pdf.net') }}
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
-{{ formatNumber($tax) }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr class="">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="{{ $colspan }}">
|
||||
{{__('email.checkout_mail_tax')}}
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
-{{ $shopping_order->getFormattedTax() }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="{{ $colspan }}">
|
||||
<b>{{ __('pdf.total_incl_VAT') }}</b>
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
<span class="no-line-break">
|
||||
<b>-{{ $shopping_order->getFormattedTotalShipping() }} €</b>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@else
|
||||
<tr class="">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="{{ $colspan }}">
|
||||
{{__('email.checkout_mail_tax')}}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
0 €
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="{{ $colspan }}">
|
||||
<b>{{ __('order.sum') }}</b>
|
||||
</td>
|
||||
<td class="text-right negative-amount">
|
||||
<span class="no-line-break">
|
||||
<b>-{{ $shopping_order->getFormattedTotalShipping() }} €</b>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
421
resources/views/pdf/cancellation.blade.php
Normal file
421
resources/views/pdf/cancellation.blade.php
Normal file
|
|
@ -0,0 +1,421 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>mivita.care - Stornorechnung</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: 15mm;
|
||||
z-index: 2;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#title_box .title {
|
||||
font-size: 16pt;
|
||||
line-height: 12pt;
|
||||
color: #CC0000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#title_box .subtitle {
|
||||
line-height: 9pt;
|
||||
margin-top: 3mm;
|
||||
font-size: 9pt;
|
||||
}
|
||||
|
||||
#title_box .original-info {
|
||||
margin-top: 2mm;
|
||||
padding: 2mm;
|
||||
background-color: #FFF3CD;
|
||||
border-left: 3pt solid #FF9800;
|
||||
font-size: 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: #FFCCCC;
|
||||
}
|
||||
|
||||
#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: center;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
.no-line-break {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.negative-amount {
|
||||
color: #CC0000;
|
||||
}
|
||||
</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($shopping_order->shopping_user->billing_company)
|
||||
{{ $shopping_order->shopping_user->billing_company }}<br>
|
||||
@else
|
||||
@if($shopping_order->payment_for !== 6)
|
||||
{{ __('Company') }} <br>
|
||||
@endif
|
||||
@endif
|
||||
{{ \App\Services\HTMLHelper::getSalutationLang($shopping_order->shopping_user->billing_salutation) }}
|
||||
{{ $shopping_order->shopping_user->billing_firstname }} {{ $shopping_order->shopping_user->billing_lastname }}<br>
|
||||
{{ $shopping_order->shopping_user->billing_address }}<br>
|
||||
@if($shopping_order->shopping_user->billing_address_2)
|
||||
{{ $shopping_order->shopping_user->billing_address_2 }}<br>
|
||||
@endif
|
||||
{{ $shopping_order->shopping_user->billing_zipcode }} {{ $shopping_order->shopping_user->billing_city }}<br>
|
||||
@if($shopping_order->shopping_user->billing_country)
|
||||
{{ $shopping_order->shopping_user->billing_country->getLocated() }}
|
||||
@endif
|
||||
</div>
|
||||
@if($shopping_order->payment_for === 6)
|
||||
<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.invoice_copy') }}: {{ strtoupper(app()->getLocale()) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.date') }}:</td>
|
||||
<td class="text-right">{{ $invoice_date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.cancellation_nr') }}:</td>
|
||||
<td class="text-right">{{ $invoice_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.order_no') }}:</td>
|
||||
<td class="text-right xsmall">{{ $shopping_order->getLastShoppingPayment('reference') }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@else
|
||||
<div id="detail_box_right">
|
||||
<table>
|
||||
@if(isset($is_copy) && $is_copy)
|
||||
<tr>
|
||||
<td colspan="2" class="text-left" style="font-weight: bold; color: #666;">{{ __('pdf.invoice_copy') }}: {{ strtoupper(app()->getLocale()) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.adviser_id') }}:</td>
|
||||
@if($shopping_order->payment_for === 7)
|
||||
<td class="text-right">
|
||||
@if(isset($shopping_order->member->account))
|
||||
{!! str_pad($shopping_order->member->account->m_account, 5, "0", STR_PAD_LEFT) !!}
|
||||
@endif
|
||||
</td>
|
||||
@else
|
||||
<td class="text-right">
|
||||
@if(isset($shopping_order->shopping_user->auth_user->account))
|
||||
{!! str_pad($shopping_order->auth_user->account->m_account, 5, "0", STR_PAD_LEFT) !!}
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.date') }}:</td>
|
||||
<td class="text-right">{{ $invoice_date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.cancellation_nr') }}:</td>
|
||||
<td class="text-right">{{ $invoice_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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">{{ __('pdf.cancellation_invoice') }}</div>
|
||||
<div class="subtitle">
|
||||
{{ __('pdf.cancellation_for') }}: <strong>{{ $original_invoice->full_number }}</strong>
|
||||
{{ __('pdf.from') }} {{ $original_invoice->date }}
|
||||
</div>
|
||||
<div class="original-info">
|
||||
<strong>{{ __('pdf.attention') }}:</strong> {{ __('pdf.cancellation_invoice_info') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($shopping_order->homeparty)
|
||||
@include('pdf.cancellation-detail-homeparty')
|
||||
@elseif($shopping_order->shopping_collect_order)
|
||||
@include('pdf.cancellation-detail-collection')
|
||||
@else
|
||||
@include('pdf.cancellation-detail')
|
||||
@endif
|
||||
|
||||
<div id="footer_box">
|
||||
<div class="text">
|
||||
<p>{{ __('pdf.payment_type') }}: {{ $shopping_order->getLastShoppingPayment('getPaymentType') }} / {{ __('pdf.status_of_invoice') }}: {{ __('pdf.cancelled') }}<br>
|
||||
{{ __('pdf.delivery_date_is_invoice_date') }}
|
||||
@if($shopping_order->tax == 0 || $shopping_order->shopping_collect_order)
|
||||
<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))
|
||||
{{ __('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))
|
||||
{{ __('pdf.vat_id_of_the_recipient_of_the_service') }}: {{ $shopping_order->shopping_user->auth_user->account->tax_number }}<br>
|
||||
@endif
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
@if($shopping_order->member)
|
||||
<div class="dotted-line"></div>
|
||||
<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>
|
||||
@endif
|
||||
@if($shopping_order->member->shop->contact)
|
||||
{!! str_replace(array("\r\n", "\r", "\n"), " • ", $shopping_order->member->shop->contact) !!}<br>
|
||||
@endif
|
||||
<a href="{{ $shopping_order->member->shop->getSubdomain(true) }}">{{ $shopping_order->member->shop->getSubdomain(true) }}</a>
|
||||
@else
|
||||
{{ __('pdf.your_advisor') }}: {{$shopping_order->member->getFullName()}}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
116
resources/views/pdf/cancellation_delivery.blade.php
Normal file
116
resources/views/pdf/cancellation_delivery.blade.php
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>mivita.care - Storno-Lieferschein</title>
|
||||
<style>
|
||||
/* roboto fonts */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: url('fonts/roboto/roboto-v20-latin-300.ttf') format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('fonts/roboto/roboto-v20-latin-regular.ttf') format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url('fonts/roboto/roboto-v20-latin-700.ttf') format('truetype');
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 10pt;
|
||||
margin: 20mm 15mm;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #CC0000;
|
||||
font-size: 16pt;
|
||||
margin-bottom: 5mm;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: 10mm;
|
||||
}
|
||||
|
||||
.info-box {
|
||||
background-color: #FFF3CD;
|
||||
border-left: 3pt solid #FF9800;
|
||||
padding: 3mm;
|
||||
margin: 5mm 0;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 5mm 0;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: #FFCCCC;
|
||||
padding: 2mm;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 2mm;
|
||||
border-bottom: 1pt dotted #ccc;
|
||||
}
|
||||
|
||||
.negative-amount {
|
||||
color: #CC0000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<h1>{{ __('pdf.cancellation_delivery') }}</h1>
|
||||
<p>
|
||||
<strong>{{ __('pdf.cancellation_for') }}:</strong> {{ $original_invoice->full_number }}<br>
|
||||
<strong>{{ __('pdf.date') }}:</strong> {{ $invoice_date }}<br>
|
||||
<strong>{{ __('pdf.cancellation_nr') }}:</strong> {{ $invoice_number }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="info-box">
|
||||
<strong>{{ __('pdf.attention') }}:</strong> {{ __('pdf.cancellation_delivery_info') }}
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('pdf.pos') }}</th>
|
||||
<th>{{ __('pdf.article') }}</th>
|
||||
<th>{{ __('pdf.quantity') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $pos = 0; @endphp
|
||||
@foreach($shopping_order->shopping_order_items as $item)
|
||||
@php $pos++; @endphp
|
||||
<tr>
|
||||
<td>{{ $pos }}</td>
|
||||
<td>
|
||||
<strong>{{ $item->product_title }}</strong>
|
||||
@if($item->product_subtitle)
|
||||
<br><span style="font-size: 8pt;">{{ $item->product_subtitle }}</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="negative-amount">-{{ $item->quantity }} {{ $item->unit }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p style="margin-top: 10mm;">
|
||||
{{ __('pdf.cancellation_delivery_note') }}
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -293,6 +293,11 @@
|
|||
|
||||
<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">
|
||||
|
|
|
|||
|
|
@ -312,6 +312,11 @@
|
|||
@if($shopping_order->payment_for === 6)
|
||||
<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.delivery_copy') }}: {{ strtoupper(app()->getLocale()) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.date') }}:</td>
|
||||
<td class="text-right">{{ $invoice_date }}</td>
|
||||
|
|
@ -329,6 +334,11 @@
|
|||
@else
|
||||
<div id="detail_box_right" class="for_member">
|
||||
<table>
|
||||
@if(isset($is_copy) && $is_copy)
|
||||
<tr>
|
||||
<td colspan="2" class="text-left" style="font-weight: bold; color: #666;">{{ __('pdf.delivery_copy') }}: {{ strtoupper(app()->getLocale()) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.adviser_id') }}:</td>
|
||||
|
|
|
|||
|
|
@ -293,6 +293,11 @@
|
|||
@if($shopping_order->payment_for === 6)
|
||||
<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.invoice_copy') }}: {{ strtoupper(app()->getLocale()) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.date') }}:</td>
|
||||
<td class="text-right">{{ $invoice_date }}</td>
|
||||
|
|
@ -310,6 +315,11 @@
|
|||
@else
|
||||
<div id="detail_box_right">
|
||||
<table>
|
||||
@if(isset($is_copy) && $is_copy)
|
||||
<tr>
|
||||
<td colspan="2" class="text-left" style="font-weight: bold; color: #666;">{{ __('pdf.invoice_copy') }}: {{ strtoupper(app()->getLocale()) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<tr>
|
||||
<td class="text-left">{{ __('pdf.adviser_id') }}:</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue