Sammelbestellung von Extern
This commit is contained in:
parent
d01b4bd560
commit
582ca8299d
33 changed files with 3437 additions and 1466 deletions
File diff suppressed because it is too large
Load diff
165
resources/views/admin/sales/_detail_collection.blade.php
Normal file
165
resources/views/admin/sales/_detail_collection.blade.php
Normal file
|
|
@ -0,0 +1,165 @@
|
|||
<div class="table-responsive">
|
||||
<table class="table table-product m-0" style="">
|
||||
<tbody>
|
||||
<tr class="border-bottom">
|
||||
<th class="text-left">{{__('Produkt')}}</th>
|
||||
<th class="text-right">{{__('Points')}}</th>
|
||||
<th class="text-right">{{__('Netto-Preis')}}</th>
|
||||
<th class="text-right">{{__('Anzahl')}}</th>
|
||||
<th class="text-right">{{__('Summe Netto')}}</th>
|
||||
<th class="text-right" style="max-width: 5%">{{__('%')}}</th>
|
||||
<th class="text-right" style="max-width: 10%">{{__('MwSt')}}</th>
|
||||
</tr>
|
||||
@foreach($shopping_order->shopping_collect_order->shop_items as $key => $shop_item)
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{{$shop_item['name']}}</strong>
|
||||
<span class="text-muted">#{{ $shop_item['number'] }}</span>
|
||||
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$shop_item['points_total']}}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ formatNumber($shop_item['user_price_net']) }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$shop_item['qty']}}
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
<strong>{{ formatNumber($shop_item['user_price_total_net']) }} €</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ formatNumber($shop_item['tax_rate'], 0) }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ formatNumber($shop_item['user_tax_total']) }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Gesamte Versandkosten</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right">
|
||||
1
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ formatNumber($shopping_order->shopping_collect_order->shipping_net) }} €</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ formatNumber($shopping_order->shopping_collect_order->shipping_tax) }} €
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<tr class="border-bottom">
|
||||
<td colspan="7">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="border-bottom">
|
||||
<td colspan="1">
|
||||
Summen:
|
||||
</td>
|
||||
<td class="text-right" colspan="1">
|
||||
<strong>{{ $shopping_order->shopping_collect_order->points }} <strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ $shopping_order->shopping_collect_order->qty_total }}</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ formatNumber($shopping_order->shopping_collect_order->price_total_net) }} €</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ formatNumber($shopping_order->shopping_collect_order->tax_total) }} €</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td colspan="6">
|
||||
<strong>Gesamte netto</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ formatNumber($shopping_order->shopping_collect_order->price_total_net) }} €</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="border-bottom">
|
||||
<td colspan="5">
|
||||
zzgl. MwSt:
|
||||
</td>
|
||||
|
||||
<td class="text-right" colspan="2">
|
||||
@foreach ($shopping_order->shopping_collect_order->tax_split as $rate => $tax )
|
||||
{{ $rate }}% = {{ formatNumber($tax) }} € <br>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="border-bottom">
|
||||
<td colspan="6">
|
||||
<strong>Gesamtsumme Brutto: </strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ formatNumber($shopping_order->shopping_collect_order->price_total) }} €</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h5 class="mt-4">Sammelbestellung behinhaltet folgende Kundenbestellungen</h5>
|
||||
|
||||
<div class="card-datatable table-responsive pt-0">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{__('Nummer') }}</th>
|
||||
<th>{{__('Versand') }}</th>
|
||||
<th>{{__('First name')}}</th>
|
||||
<th>{{__('Last name')}}</th>
|
||||
<th>{{__('E-Mail')}}</th>
|
||||
<th>{{__('Datum')}}</th>
|
||||
<th>{{__('Betrag')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($shopping_order->shopping_collect_order->orders as $order)
|
||||
@php($order = $shopping_order->shopping_collect_order->initShoppingOrder($order))
|
||||
<tr>
|
||||
<td><button type="button" class="btn icon-btn btn-sm btn-secondary" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="{{ $order['order_id'] }}"
|
||||
data-action="shop-user-order-detail"
|
||||
data-back=""
|
||||
data-modal="modal-xl"
|
||||
data-init_from="admin"
|
||||
data-route="{{ route('modal_load') }}"><span class="far fa-eye"></span></button>
|
||||
</td>
|
||||
<td>{{ $order['order_id'] }}</td>
|
||||
<td>
|
||||
<span class="badge badge-pill badge-{{ $order['shopping_order']->getShippedColor() }}">{{ $order['shopping_order']->getShippedType() }}</span>
|
||||
</td>
|
||||
<td>{{ $order['shopping_order']->shopping_user->billing_firstname }}</td>
|
||||
<td>{{ $order['shopping_order']->shopping_user->billing_lastname }}</td>
|
||||
<td>{{ $order['shopping_order']->shopping_user->billing_email }}</td>
|
||||
<td>{{ $order['shopping_order']->created_at->format("d.m.Y") }}</td>
|
||||
<td>{{ $order['shopping_order']->getFormattedTotalShipping() }} €</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -1,246 +1,112 @@
|
|||
@if($homeparty_guest && $homeparty_guest->homeparty_user_order_items->count() || $homeparty_guest->is_host)
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('Bild')}}</th>
|
||||
<th>{{__('Produkt')}}</th>
|
||||
<th>{{__('Anzahl')}}</th>
|
||||
<th>{{__('Marge')}}</th>
|
||||
<th class="text-right">{{__('Points')}}</th>
|
||||
<th class="text-right">{{__('Verdienst')}}</th>
|
||||
<th class="text-right">{{__('VK-Preis')}}</th>
|
||||
<th class="text-right">{{__('EK-Preis')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($homeparty_guest->homeparty_user_order_items as $value)
|
||||
<tr>
|
||||
<td>
|
||||
@if(count($value->product->images))
|
||||
<img class="img-fluid img-extra" alt="" src="{{ route('product_image', [$value->product->images->first()->slug]) }}">
|
||||
@endif
|
||||
</td>
|
||||
<td class="min-width-80">
|
||||
<strong>{{ $value->product->name }}</strong>
|
||||
<div class="text-body">
|
||||
<div>Inhalt: {{ $value->product->contents }}</div>
|
||||
<div>Art.-Nr.: {{ $value->product->number }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{$value->qty}}
|
||||
</td>
|
||||
<td>
|
||||
{{ $value->margin }}%
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalPoints() }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalIncomePrice() }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalPrice() }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalEKPrice() }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<style>
|
||||
.table-small {
|
||||
font-size: 0.9em;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
</tbody>
|
||||
<tfoot id="insert_show_bonus_host">
|
||||
@php($user_cart = $homeparty->order['user_carts'][$homeparty_guest->id])
|
||||
@php($hp_order = $homeparty->order)
|
||||
.table-small td {
|
||||
padding: 0.225rem 1rem 0.225rem 0;
|
||||
}
|
||||
|
||||
@if(!$homeparty_guest->is_host)
|
||||
<tr class="foot-small">
|
||||
<td colspan="8" class="text-left">
|
||||
@if($homeparty_guest->getDelivery() === 'host')
|
||||
Lieferung an Gastgeber
|
||||
@endif
|
||||
@if($homeparty_guest->getDelivery() === 'direct')
|
||||
Lieferung direkt an den Gast
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@if($homeparty_guest->getDelivery() === 'direct')
|
||||
<tr>
|
||||
<td colspan="5" class="text-left">Versandkosten</td>
|
||||
<td> </td>
|
||||
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
||||
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
.btn-md-extra {
|
||||
padding: 0.3rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.5;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
<tr>
|
||||
<td colspan="4" class="border-top"><strong>Gesamt:</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['income_price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} €</strong></td>
|
||||
</tr>
|
||||
@else
|
||||
@if($hp_order['is_bonus'])
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Gutschrift Homeparty Gutschein</td>
|
||||
<td> </td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} €</td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if($hp_order['is_bonus_coupon'])
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Gutschrift Bonus</td>
|
||||
<td> </td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} €</td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if($hp_order['is_bonus'])
|
||||
<tr class="foot-small">
|
||||
<td colspan="4" class="text-left">Abzug Points durch Gutschein</td>
|
||||
<td class="text-right">- {{ $hp_order['bonus_points_diff'] }} </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Versandkosten:</td>
|
||||
<td> </td>
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-right">{{Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" class="border-top"><strong>Summen:</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['income_price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} €</strong></td>
|
||||
.md-btn-extra {
|
||||
width: calc(1.7rem + 2px) !important;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
|
||||
</tr>
|
||||
@endif
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
.form-control.input-extra {
|
||||
padding: 0.28rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
min-height: calc(1.8rem + 2px);
|
||||
height: calc(1.8rem + 2px);
|
||||
width: 44px;
|
||||
}
|
||||
|
||||
@if($homeparty_guest->is_host || $homeparty_guest->getDelivery() === 'direct')
|
||||
.input-group-min-w {
|
||||
min-width: 102px;
|
||||
}
|
||||
|
||||
<hr class="m-0">
|
||||
<div class="card-body" style="background-color: #E5E9EF">
|
||||
<h6 class="small font-weight-semibold">
|
||||
Lieferadresse
|
||||
</h6>
|
||||
@if($homeparty_guest->same_as_billing)
|
||||
<div class="row">
|
||||
@if($homeparty_guest->billing_company)
|
||||
<div class="col-md-12 mb-3">
|
||||
<div class="text-muted small">Firma</div>
|
||||
{{ $homeparty_guest->billing_company }}
|
||||
</div>
|
||||
@endif
|
||||
.img-extra {
|
||||
min-width: 55px;
|
||||
max-height: 120px;
|
||||
}
|
||||
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Anrede</div>
|
||||
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_guest->billing_salutation) }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Vorname</div>
|
||||
{{ $homeparty_guest->billing_firstname }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Nachname</div>
|
||||
{{ $homeparty_guest->billing_lastname }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Straße</div>
|
||||
{{ $homeparty_guest->billing_address }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Zusatz</div>
|
||||
{{ $homeparty_guest->billing_address_2 }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">PLZ</div>
|
||||
{{ $homeparty_guest->billing_zipcode }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Stadt</div>
|
||||
{{ $homeparty_guest->billing_city }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">E-Mail</div>
|
||||
{{ $homeparty_guest->billing_email }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Telefon</div>
|
||||
{{ $homeparty_guest->billing_phone }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Land</div>
|
||||
{{ $homeparty_guest->billing_country->getLocated() }}
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
@if($homeparty_guest->shipping_company)
|
||||
<div class="col-md-12 mb-3">
|
||||
<div class="text-muted small">Firma</div>
|
||||
{{ $homeparty_guest->shipping_company }}
|
||||
</div>
|
||||
@endif
|
||||
.table td.border-top {
|
||||
border: none;
|
||||
border-top: 1px solid #ccccdb;
|
||||
}
|
||||
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Anrede</div>
|
||||
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_guest->shipping_salutation) }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Vorname</div>
|
||||
{{ $homeparty_guest->shipping_firstname }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Nachname</div>
|
||||
{{ $homeparty_guest->shipping_lastname }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Straße</div>
|
||||
{{ $homeparty_guest->shipping_address }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Zusatz</div>
|
||||
{{ $homeparty_guest->shipping_address_2 }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">PLZ</div>
|
||||
{{ $homeparty_guest->shipping_zipcode }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Stadt</div>
|
||||
{{ $homeparty_guest->shipping_city }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">E-Mail</div>
|
||||
{{ $homeparty_guest->shipping_email }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Telefon</div>
|
||||
{{ $homeparty_guest->shipping_phone }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Land</div>
|
||||
{{ $homeparty_guest->shipping_country->getLocated() }}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
.table td {
|
||||
border: none;
|
||||
}
|
||||
|
||||
@else
|
||||
<p>Keine Bestellung</p>
|
||||
@endif
|
||||
.table th {
|
||||
border: none;
|
||||
border-bottom: 1px solid #c3c3d2;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
||||
.default-style:not([dir=rtl]) div.card-datatable table.dataTable thead th:first-child,
|
||||
.default-style:not([dir=rtl]) div.card-datatable table.dataTable tbody td:first-child,
|
||||
.default-style:not([dir=rtl]) div.card-datatable table.dataTable tfoot th:first-child {
|
||||
padding-left: 0.6rem !important;
|
||||
|
||||
}
|
||||
|
||||
.img-extra {
|
||||
min-width: 35px;
|
||||
max-height: 160px;
|
||||
}
|
||||
}
|
||||
|
||||
.table .foot-small td {
|
||||
padding: 0.225rem 0.625rem;
|
||||
}
|
||||
|
||||
.table .text-body {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.table .options a.auto-delete-product {
|
||||
font-size: 0.7em;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.table .min-width-80 {
|
||||
min-width: 160px;
|
||||
}
|
||||
</style>
|
||||
@php($homeparty = $shopping_order->homeparty)
|
||||
@if ($homeparty->homeparty_host)
|
||||
<p><strong>Bestellung Gastgeber/in {{ $homeparty->homeparty_host->billing_firstname }}
|
||||
{{ $homeparty->homeparty_host->billing_lastname }}</strong></p>
|
||||
@include('admin.sales._detail_homparty_user', [
|
||||
'homeparty' => $shopping_order->homeparty,
|
||||
'homeparty_guest' => $homeparty->homeparty_host,
|
||||
])
|
||||
@endif
|
||||
|
||||
@if ($homeparty->homeparty_guests)
|
||||
@php($g_count = 1)
|
||||
@foreach ($homeparty->homeparty_guests as $homeparty_guest)
|
||||
<hr>
|
||||
<p><strong>Bestellung {!! $g_count++ !!}. Gast {{ $homeparty_guest->billing_firstname }}
|
||||
{{ $homeparty_guest->billing_lastname }}</strong></p>
|
||||
@include('admin.sales._detail_homparty_user', [
|
||||
'homeparty' => $shopping_order->homeparty,
|
||||
'homeparty_guest' => $homeparty_guest,
|
||||
])
|
||||
@endforeach
|
||||
@endif
|
||||
<hr>
|
||||
|
||||
@include('admin.sales._detail_homparty_total', ['homeparty' => $homeparty])
|
||||
|
|
|
|||
246
resources/views/admin/sales/_detail_homparty_user.blade.php
Normal file
246
resources/views/admin/sales/_detail_homparty_user.blade.php
Normal file
|
|
@ -0,0 +1,246 @@
|
|||
@if($homeparty_guest && $homeparty_guest->homeparty_user_order_items->count() || $homeparty_guest->is_host)
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('Bild')}}</th>
|
||||
<th>{{__('Produkt')}}</th>
|
||||
<th>{{__('Anzahl')}}</th>
|
||||
<th>{{__('Marge')}}</th>
|
||||
<th class="text-right">{{__('Points')}}</th>
|
||||
<th class="text-right">{{__('Verdienst')}}</th>
|
||||
<th class="text-right">{{__('VK-Preis')}}</th>
|
||||
<th class="text-right">{{__('EK-Preis')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($homeparty_guest->homeparty_user_order_items as $value)
|
||||
<tr>
|
||||
<td>
|
||||
@if(count($value->product->images))
|
||||
<img class="img-fluid img-extra" alt="" src="{{ route('product_image', [$value->product->images->first()->slug]) }}">
|
||||
@endif
|
||||
</td>
|
||||
<td class="min-width-80">
|
||||
<strong>{{ $value->product->name }}</strong>
|
||||
<div class="text-body">
|
||||
<div>Inhalt: {{ $value->product->contents }}</div>
|
||||
<div>Art.-Nr.: {{ $value->product->number }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{$value->qty}}
|
||||
</td>
|
||||
<td>
|
||||
{{ $value->margin }}%
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalPoints() }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalIncomePrice() }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalPrice() }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalEKPrice() }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
<tfoot id="insert_show_bonus_host">
|
||||
@php($user_cart = $homeparty->order['user_carts'][$homeparty_guest->id])
|
||||
@php($hp_order = $homeparty->order)
|
||||
|
||||
@if(!$homeparty_guest->is_host)
|
||||
<tr class="foot-small">
|
||||
<td colspan="8" class="text-left">
|
||||
@if($homeparty_guest->getDelivery() === 'host')
|
||||
Lieferung an Gastgeber
|
||||
@endif
|
||||
@if($homeparty_guest->getDelivery() === 'direct')
|
||||
Lieferung direkt an den Gast
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@if($homeparty_guest->getDelivery() === 'direct')
|
||||
<tr>
|
||||
<td colspan="5" class="text-left">Versandkosten</td>
|
||||
<td> </td>
|
||||
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
||||
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="4" class="border-top"><strong>Gesamt:</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['income_price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} €</strong></td>
|
||||
</tr>
|
||||
@else
|
||||
@if($hp_order['is_bonus'])
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Gutschrift Homeparty Gutschein</td>
|
||||
<td> </td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} €</td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if($hp_order['is_bonus_coupon'])
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Gutschrift Bonus</td>
|
||||
<td> </td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} €</td>
|
||||
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if($hp_order['is_bonus'])
|
||||
<tr class="foot-small">
|
||||
<td colspan="4" class="text-left">Abzug Points durch Gutschein</td>
|
||||
<td class="text-right">- {{ $hp_order['bonus_points_diff'] }} </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Versandkosten:</td>
|
||||
<td> </td>
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-right">{{Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" class="border-top"><strong>Summen:</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['income_price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} €</strong></td>
|
||||
|
||||
</tr>
|
||||
@endif
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if($homeparty_guest->is_host || $homeparty_guest->getDelivery() === 'direct')
|
||||
|
||||
<hr class="m-0">
|
||||
<div class="card-body" style="background-color: #E5E9EF">
|
||||
<h6 class="small font-weight-semibold">
|
||||
Lieferadresse
|
||||
</h6>
|
||||
@if($homeparty_guest->same_as_billing)
|
||||
<div class="row">
|
||||
@if($homeparty_guest->billing_company)
|
||||
<div class="col-md-12 mb-3">
|
||||
<div class="text-muted small">Firma</div>
|
||||
{{ $homeparty_guest->billing_company }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Anrede</div>
|
||||
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_guest->billing_salutation) }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Vorname</div>
|
||||
{{ $homeparty_guest->billing_firstname }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Nachname</div>
|
||||
{{ $homeparty_guest->billing_lastname }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Straße</div>
|
||||
{{ $homeparty_guest->billing_address }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Zusatz</div>
|
||||
{{ $homeparty_guest->billing_address_2 }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">PLZ</div>
|
||||
{{ $homeparty_guest->billing_zipcode }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Stadt</div>
|
||||
{{ $homeparty_guest->billing_city }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">E-Mail</div>
|
||||
{{ $homeparty_guest->billing_email }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Telefon</div>
|
||||
{{ $homeparty_guest->billing_phone }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Land</div>
|
||||
{{ $homeparty_guest->billing_country->getLocated() }}
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
@if($homeparty_guest->shipping_company)
|
||||
<div class="col-md-12 mb-3">
|
||||
<div class="text-muted small">Firma</div>
|
||||
{{ $homeparty_guest->shipping_company }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Anrede</div>
|
||||
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_guest->shipping_salutation) }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Vorname</div>
|
||||
{{ $homeparty_guest->shipping_firstname }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Nachname</div>
|
||||
{{ $homeparty_guest->shipping_lastname }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Straße</div>
|
||||
{{ $homeparty_guest->shipping_address }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Zusatz</div>
|
||||
{{ $homeparty_guest->shipping_address_2 }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">PLZ</div>
|
||||
{{ $homeparty_guest->shipping_zipcode }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Stadt</div>
|
||||
{{ $homeparty_guest->shipping_city }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">E-Mail</div>
|
||||
{{ $homeparty_guest->shipping_email }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Telefon</div>
|
||||
{{ $homeparty_guest->shipping_phone }}
|
||||
</div>
|
||||
<div class="col-md-3 mb-3">
|
||||
<div class="text-muted small">Land</div>
|
||||
{{ $homeparty_guest->shipping_country->getLocated() }}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@else
|
||||
<p>Keine Bestellung</p>
|
||||
@endif
|
||||
103
resources/views/admin/sales/_detail_shopping_order.blade.php
Normal file
103
resources/views/admin/sales/_detail_shopping_order.blade.php
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
<div class="table-responsive">
|
||||
<table class="table table-product m-0" style="">
|
||||
<tbody>
|
||||
<tr class="border-bottom">
|
||||
<th>Produkt</th>
|
||||
<th class="text-right">
|
||||
@if($shopping_order->shopping_user->is_from === 'user_order')
|
||||
Netto-Preis
|
||||
@else
|
||||
Preis
|
||||
@endif
|
||||
</th>
|
||||
<th class="text-right">Anzahl</th>
|
||||
<th class="text-right">Summe</th>
|
||||
</tr>
|
||||
@foreach($shopping_order->shopping_order_items as $shopping_order_item)
|
||||
<tr class="border-bottom">
|
||||
<td class="px-3 py-2">
|
||||
<div class="media align-items-center">
|
||||
@if($shopping_order_item->product)
|
||||
@if($shopping_order_item->product->images)
|
||||
@if($image = $shopping_order_item->product->images->first())
|
||||
<img src="{{ route('product_image', [$image->slug]) }}" class="d-block ui-w-80 mr-4" alt>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<div class="media-body">
|
||||
<a href="{{route('admin_product_edit', [$shopping_order_item->product->id])}}" class="d-block">{{ $shopping_order_item->product->name }}
|
||||
<span class="text-muted">#{{ $shopping_order_item->product->number }}</span></a>
|
||||
<small>
|
||||
<span class="text-muted">Inhalt: </span> {{ $shopping_order_item->product->contents }}<br>
|
||||
<span class="text-muted">Gewicht: </span> {{ $shopping_order_item->product->weight }} g<br>
|
||||
<span class="text-muted">Points: </span> {{ $shopping_order_item->product->points }}
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
<td class="align-middle px-3 py-2 nowrap text-right" style="min-width:100px;">
|
||||
@if($shopping_order->shopping_user->is_from === 'user_order')
|
||||
{{ $shopping_order_item->getFormattedPriceNet() }} €
|
||||
@else
|
||||
{{ $shopping_order_item->getFormattedPrice() }} €
|
||||
@endif
|
||||
</td>
|
||||
<!-- Set column width -->
|
||||
<td class="align-middle px-3 py-2 text-right" style="min-width: 60px;">
|
||||
{{ $shopping_order_item->qty }}
|
||||
</td>
|
||||
<!-- Set column width -->
|
||||
<td class="font-weight-semibold align-middle px-3 py-2 text-right" style="min-width:120px;">
|
||||
@if($shopping_order->shopping_user->is_from === 'user_order')
|
||||
{{ $shopping_order_item->getFormattedTotalPriceNet() }} €
|
||||
@else
|
||||
{{ $shopping_order_item->getFormattedTotalPrice() }} €
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr class="border-bottom">
|
||||
<td colspan="3">
|
||||
{{__('email.checkout_mail_shipping')}}
|
||||
</td>
|
||||
<td style="color:#37302d; text-align: right; vertical-align: top;line-height:1.6em;">
|
||||
@if($shopping_order->tax > 0)
|
||||
{{ $shopping_order->getFormattedShipping() }} €
|
||||
@else
|
||||
{{ $shopping_order->getFormattedShippingNet() }} €
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
{{__('email.checkout_mail_subtotal_ws')}}
|
||||
</td>
|
||||
<td style="color:#37302d; text-align: right; vertical-align: top;line-height:1.6em;">
|
||||
{{ $shopping_order->getFormattedSubtotalWs() }} €
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="border-bottom">
|
||||
<td colspan="3">
|
||||
{{__('email.checkout_mail_tax')}}
|
||||
</td>
|
||||
<td style="color:#37302d; text-align: right; vertical-align: top;line-height:1.6em;">
|
||||
{{ $shopping_order->getFormattedTax() }} €
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<b>{{__('email.checkout_mail_total')}}</b>
|
||||
</td>
|
||||
<td style="color:#37302d; text-align: right; vertical-align: top;line-height:1.6em;">
|
||||
<b>{{ $shopping_order->getFormattedTotalShipping() }} €</b>
|
||||
<br>
|
||||
<span style="font-size: 0.8em">{{__('email.checkout_mail_tax_info')}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue