20-02-2026
This commit is contained in:
parent
a8b395e20d
commit
a00c42e770
252 changed files with 28785 additions and 8907 deletions
|
|
@ -3,33 +3,49 @@
|
|||
<div class="row">
|
||||
<div class="col-md-3 mb-1">
|
||||
<strong class="mr-2">{{ __('Status') }}:</strong>
|
||||
<div class="d-flex flex-wrap align-items-center mt-1" style="gap: 6px;">
|
||||
<span class="text-big">
|
||||
{!! \App\Services\Payment::getShoppingOrderBadge($shopping_order) !!}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 mb-1">
|
||||
<strong class="mr-2">{{ __('order.shipping') }}:</strong>
|
||||
<div class="d-flex flex-wrap align-items-center mt-1" style="gap: 6px;">
|
||||
@if($shopping_order->payment_for !== 8)
|
||||
<span class="text-big">
|
||||
<span
|
||||
class="badge badge-pill badge-{{ $shopping_order->getShippedColor() }}">{{ $shopping_order->getShippedType() }}</span>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 mb-1">
|
||||
<div class="col-md-6 mb-2">
|
||||
<strong class="mr-2">{{ __('order.invoice') }}:</strong>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center mt-1" style="gap: 6px;">
|
||||
@if ($shopping_order->isInvoice())
|
||||
<a href="{{ route('storage_file', [$shopping_order->id, 'invoice', 'download']) }}"
|
||||
class="btn btn-primary btn-sm"><i class="fa fa-download"></i></a>
|
||||
class="btn btn-primary btn-sm" title="Download DE"><i class="fa fa-download"></i></a>
|
||||
<a href="{{ route('storage_file', [$shopping_order->id, 'invoice', 'stream']) }}"
|
||||
target="_blank" class="btn btn-warning btn-sm"><i class="fa fa-eye"></i></a>
|
||||
target="_blank" class="btn btn-warning btn-sm" title="Ansicht DE"><i class="fa fa-eye"></i></a>
|
||||
{{-- Lokalisierte Versionen --}}
|
||||
@foreach($shopping_order->user_invoice->getAvailableLocales() as $locale)
|
||||
<a href="{{ route('storage_file', [$shopping_order->id, 'invoice', 'download', $locale]) }}"
|
||||
class="btn btn-outline-primary btn-sm" title="Download {{ strtoupper($locale) }}">
|
||||
<i class="fa fa-download"></i> {{ strtoupper($locale) }}
|
||||
</a>
|
||||
<a href="{{ route('storage_file', [$shopping_order->id, 'invoice', 'stream', $locale]) }}"
|
||||
class="btn btn-outline-warning btn-sm" title="Ansicht {{ strtoupper($locale) }}">
|
||||
<i class="fa fa-eye"></i> {{ strtoupper($locale) }}
|
||||
</a>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if (($shopping_order->txaction === 'extern' || $shopping_order->txaction === 'extern_paid') && $shopping_order->wp_invoice_path)
|
||||
<a href="{{ $shopping_order->wp_invoice_path }}" class="btn btn-secondary btn-sm"><i
|
||||
<a href="{{ $shopping_order->wp_invoice_path }}" class="btn btn-secondary btn-xs"><i
|
||||
class="fa fa-external-link-alt"></i> <i class="fa fa-download"></i></a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -279,7 +295,7 @@
|
|||
</h6>
|
||||
@if ($shopping_order->txaction !== 'extern')
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="table table-bordered table-striped">
|
||||
<table class="table table-bordered table-striped" id="datatable-order-payments">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="min-width: 60px">#</th>
|
||||
|
|
@ -291,24 +307,36 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php($count = 0)
|
||||
@if(isset($shopping_order->shopping_payments) && $shopping_order->shopping_payments)
|
||||
@foreach ($shopping_order->shopping_payments as $shopping_payment)
|
||||
@if(isset($shopping_payment) && $shopping_payment)
|
||||
<tr>
|
||||
<th scope="row">{{ ++$count }}</th>
|
||||
<td>{{ $shopping_payment->getPaymentType() }}</td>
|
||||
<td>{{ $shopping_payment->getPaymentAmount() }}</td>
|
||||
<td>{!! \App\Services\Payment::getShoppingPaymentBadge($shopping_payment) !!}</td>
|
||||
<td>{{ $shopping_payment->created_at->format('d.m.Y H:i') }}</td>
|
||||
<td>{{ $shopping_payment->reference }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
{{-- Daten werden per AJAX über DataTables geladen --}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@push('scripts')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#datatable-order-payments').DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
ajax: '{!! route('portal.my_orders.payments_datatable', $shopping_order->id) !!}',
|
||||
columns: [
|
||||
{ data: 'line_number', name: 'line_number', searchable: false, orderable: false },
|
||||
{ data: 'payment_type', name: 'clearingtype' },
|
||||
{ data: 'amount', name: 'amount' },
|
||||
{ data: 'status', name: 'txaction' },
|
||||
{ data: 'created_at', name: 'created_at' },
|
||||
{ data: 'reference', name: 'reference' },
|
||||
],
|
||||
bLengthChange: false,
|
||||
bPaginate: false,
|
||||
bInfo: false,
|
||||
ordering: false,
|
||||
language: {
|
||||
url: '/js/datatables-{{ \App::getLocale() }}.json'
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue