- Öffentliches Widerrufsformular /widerruf mit Bestell-Lookup (throttled) - Bestätigungsmail an Kunde + Weiterleitung an bestellungen@ (config app.withdrawal_mail) - Admin-Übersicht/-Detail unter /admin/withdrawals inkl. Sidenav-Eintrag - Widerruf-Button in Portal-Bestellansicht und Footer-Links - Model OrderWithdrawal + Migration + Factory + Tests Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
57 lines
2.2 KiB
PHP
57 lines
2.2 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<h4 class="font-weight-bold py-2 mb-2">
|
|
{{ __('navigation.withdrawals') }}
|
|
</h4>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card mb-4">
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-withdrawals table table-striped table-bordered" id="datatables-withdrawals">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>{{ __('withdrawal.success_received_at') }}</th>
|
|
<th>{{ __('withdrawal.order_number') }}</th>
|
|
<th>Kunde</th>
|
|
<th>{{ __('withdrawal.choose_scope_hl') }}</th>
|
|
<th>Status</th>
|
|
<th>#</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('#datatables-withdrawals').DataTable({
|
|
"processing": true,
|
|
"serverSide": true,
|
|
ajax: {
|
|
url: '{!! route('admin_withdrawals_datatable') !!}',
|
|
data: function (d) {}
|
|
},
|
|
"order": [[0, "desc"]],
|
|
"columns": [
|
|
{data: 'id', name: 'id'},
|
|
{data: 'declared_at', name: 'declared_at'},
|
|
{data: 'order_reference', name: 'order_reference'},
|
|
{data: 'customer', name: 'customer'},
|
|
{data: 'type', name: 'type', searchable: false, orderable: false},
|
|
{data: 'status', name: 'status'},
|
|
{data: 'action', name: 'action', searchable: false, orderable: false},
|
|
],
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 100,
|
|
"language": {
|
|
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|