Berater Bestellungen
This commit is contained in:
parent
a5db985ae8
commit
bde1095014
26 changed files with 1524 additions and 577 deletions
|
|
@ -3,8 +3,8 @@
|
|||
@section('content')
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('navigation.my_orders') }} / {{ __('navigation.do_order') }}
|
||||
<a href="{{ route('user_order_my_delivery', [$for, $delivery_id]) }}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
<style>
|
||||
.btn-md-extra {
|
||||
padding: 0.3rem 0.6rem;
|
||||
|
|
@ -31,12 +31,11 @@
|
|||
min-width:55px;
|
||||
max-height: 160px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="datatables-order-list table table-striped table-bordered" id="datatables-order-list">
|
||||
<table class="datatables-order-list table table-striped table-bordered" id="datatables-order-list" data-url="{{route('user_order_my_perform_request')}}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('Bild')}}</th>
|
||||
|
|
@ -45,6 +44,8 @@
|
|||
<th>{{__('Produkt')}}</th>
|
||||
<th>{{__('Artikelnummer')}}</th>
|
||||
<th>{{__('Netto-Preis')}}</th>
|
||||
<th>{{__('Brutto-Preis')}}</th>
|
||||
<th>{{__('VK-Brutto-Preis')}}</th>
|
||||
<th>{{__('Points')}}</th>
|
||||
<th><span class="no-line-break">{{__('Inhalt (ml)')}}</span></th>
|
||||
<th><span class="no-line-break">{{__('Gewicht (g)')}}</span></th>
|
||||
|
|
@ -55,33 +56,48 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
{!! Form::open(['url' => route('wizard_store_payment', [20]), 'class' => 'form-horizontal']) !!}
|
||||
|
||||
{!! Form::open(['url' => route('user_order_my_payment', [$for, $delivery_id]), 'class' => 'form-horizontal']) !!}
|
||||
<input type="hidden" name="shipping_is_for" value="{{$for}}">
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
|
||||
@if($for === 'ot')
|
||||
<h4>Lieferadresse (Kunde)</h4>
|
||||
<h4>Lieferadresse des Kunden</h4>
|
||||
@include('user.order.shipping_ot')
|
||||
@endif
|
||||
|
||||
@if($for === 'me')
|
||||
<h4>Lieferadresse (meine)</h4>
|
||||
<h4>Meine Lieferadresse</h4>
|
||||
@include('user.order.shipping_me')
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
@include('user.order.list_form')
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
@if($for === 'me')
|
||||
@include('user.order.comp_product')
|
||||
@endif
|
||||
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h4>Warenkorb</h4>
|
||||
<div id="holder_html_view_card">
|
||||
@include('user.order.yard_view_form')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<a href="{{ route('user_order_my_delivery', [$for, $delivery_id]) }}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
var iqShoppingCart = IqShoppingCart.init();
|
||||
|
||||
var oTable = $('#datatables-order-list').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
|
|
@ -99,7 +115,9 @@
|
|||
{ data: 'quantity', name: 'quantity', searchable: false, orderable: false},
|
||||
{ data: 'name', name: 'name' },
|
||||
{ data: 'number', name: 'number' },
|
||||
{ data: 'price', name: 'price', searchable: false },
|
||||
{ data: 'price_net', name: 'price_net', searchable: false },
|
||||
{ data: 'price_gross', name: 'price_gross', searchable: false },
|
||||
{ data: 'price_vk_gross', name: 'price_vk_gross', searchable: false },
|
||||
{ data: 'points', name: 'points', searchable: false },
|
||||
{ data: 'contents_total', name: 'contents_total', searchable: false },
|
||||
{ data: 'weight', name: 'weight', searchable: false },
|
||||
|
|
@ -109,23 +127,26 @@
|
|||
"iDisplayLength": 50,
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
},
|
||||
drawCallback: function (settings) {
|
||||
iqShoppingCart.reInit();
|
||||
}
|
||||
});
|
||||
/* $('#filter_member_id').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
$('#filter_customer_member').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
*/
|
||||
|
||||
iqShoppingCart.setDatabase(oTable);
|
||||
|
||||
/* $('#filter_member_id').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
$('#filter_customer_member').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
*/
|
||||
|
||||
$('body').tooltip({
|
||||
selector: '.product-tooltip'
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue