mivita/resources/views/admin/sales/_detail_collection.blade.php
2022-07-21 10:37:34 +02:00

165 lines
No EOL
6.6 KiB
PHP

<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']) }} &euro;
</td>
<td class="text-right">
{{$shop_item['qty']}}
</td>
<td class="text-right">
<strong>{{ formatNumber($shop_item['user_price_total_net']) }} &euro;</strong>
</td>
<td class="text-right">
{{ formatNumber($shop_item['tax_rate'], 0) }}
</td>
<td class="text-right">
{{ formatNumber($shop_item['user_tax_total']) }} &euro;
</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) }} &euro;</strong>
</td>
<td class="text-right">
</td>
<td class="text-right">
{{ formatNumber($shopping_order->shopping_collect_order->shipping_tax) }} &euro;
</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) }} &euro;</strong>
</td>
<td class="text-right">
</td>
<td class="text-right">
<strong>{{ formatNumber($shopping_order->shopping_collect_order->tax_total) }} &euro;</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) }} &euro;</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) }} &euro; <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) }} &euro;</strong>
</td>
</tr>
</tr>
</tfoot>
</table>
</div>
<h5 class="mt-4">Sammelrechnung 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() }} &euro;</td>
</tr>
@endforeach
</tbody>
</table>
</div>