165 lines
No EOL
6.9 KiB
PHP
165 lines
No EOL
6.9 KiB
PHP
<div class="table-responsive">
|
|
<table class="table table-product m-0" style="">
|
|
<tbody>
|
|
<tr class="border-bottom">
|
|
<th class="text-left">{{__('tables.product')}}</th>
|
|
<th class="text-right">{{__('tables.points')}}</th>
|
|
<th class="text-right">{{__('tables.net_price')}}</th>
|
|
<th class="text-right">{{__('tables.quantity')}}</th>
|
|
<th class="text-right">{{__('tables.net_sum')}}</th>
|
|
<th class="text-right" style="max-width: 5%">{{__('%')}}</th>
|
|
<th class="text-right" style="max-width: 10%">{{__('tables.VAT')}}</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">
|
|
{{ number_format($shop_item['points_total'], 0) }}
|
|
</td>
|
|
<td class="text-right">
|
|
{{ formatNumber($shop_item['user_price_net']) }} €
|
|
</td>
|
|
<td class="text-right">
|
|
{{ number_format($shop_item['qty'], 0) }}
|
|
</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>{{ __('order.total_shipping_costs') }}</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">
|
|
{{ __('order.sums') }}
|
|
</td>
|
|
<td class="text-right" colspan="1">
|
|
<strong>{{ number_format($shopping_order->shopping_collect_order->points, 0) }} <strong>
|
|
</td>
|
|
<td class="text-right">
|
|
</td>
|
|
<td class="text-right">
|
|
<strong>{{ number_format($shopping_order->shopping_collect_order->qty_total, 0) }}</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>{{ __('order.total_net') }}</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">
|
|
{{ __('order.plus_VAT') }}
|
|
</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>{{ __('order.total_gross') }}</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">{{ __('order.collective_invoice_contains_orders') }}</h5>
|
|
|
|
<div class="card-datatable table-responsive pt-0">
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{{__('tables.number') }}</th>
|
|
<th>{{__('tables.shipping') }}</th>
|
|
<th>{{__('tables.firstname')}}</th>
|
|
<th>{{__('tables.lastname')}}</th>
|
|
<th>{{__('tables.email')}}</th>
|
|
<th>{{__('tables.date')}}</th>
|
|
<th>{{__('tables.amount')}}</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="fa 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> |