This commit is contained in:
Kevin Adametz 2024-08-05 12:05:24 +02:00
parent 3a81b8a0f5
commit 7ec90d7e18
1183 changed files with 47973 additions and 8742 deletions

View file

@ -3,13 +3,13 @@
<div class="card-body">
<div class="row">
<div class="col-md-3 mb-1">
<strong class="mr-2">Status:</strong>
<strong class="mr-2">{{ __('Status') }}:</strong>
<span class="text-big">
{!! \App\Services\Payment::getShoppingOrderBadge($shopping_order) !!}
</span>
</div>
<div class="col-md-3 mb-1">
<strong class="mr-2">Versand:</strong>
<strong class="mr-2">{{ __('order.shipping') }}:</strong>
@if($shopping_order->payment_for !== 8)
@if ($isAdmin)
@ -17,7 +17,7 @@
data-toggle="modal" data-target="#modals-shipped" data-id="{{ $shopping_order->id }}"
data-shipped="{{ $shopping_order->shipped }}" data-back="{{ url()->current() }}"
data-action="store_shipped">
<span class="far fa-edit"></span> <strong>{{ $shopping_order->getShippedType() }}</strong>
<span class="fa fa-edit"></span> <strong>{{ $shopping_order->getShippedType() }}</strong>
</button>
@else
<span class="text-big">
@ -28,7 +28,7 @@
@endif
</div>
<div class="col-md-3 mb-1">
<strong class="mr-2">Rechnung:</strong>
<strong class="mr-2">{{ __('order.invoice') }}:</strong>
@if ($isAdmin)
@if ($shopping_order->isInvoice())
<a href="{{ route('storage_file', [$shopping_order->id, 'invoice', 'download']) }}"
@ -49,7 +49,7 @@
data-target="#modals-invoice" data-id="{{ $shopping_order->id }}" //TODO //
data-invoice="{{ $shopping_order->invoice_status }}"
data-back="{{ url()->current() }}" data-action="create_invoice">
<span class="fa fa-file"></span> <strong>Rechnung erstellen</strong>
<span class="fa fa-file"></span> <strong>{{ __('order.create_invoice') }}</strong>
</button>
@endif
@endif
@ -68,7 +68,7 @@
</div>
<div class="col-md-3 mb-1">
@if ($isAdmin && $shopping_order->payment_for != 8)
<strong class="mr-2">Lieferschein:</strong>
<strong class="mr-2">{{ __('order.delivery_note') }}:</strong>
@if ($shopping_order->isInvoice())
<a href="{{ route('storage_file', [$shopping_order->id, 'delivery', 'download']) }}"
class="btn btn-primary btn-sm"><i class="fa fa-download"></i></a>
@ -87,19 +87,19 @@
<div class="card-body pb-1">
<div class="row">
<div class="col-md-3 mb-3">
<div class="text-muted small">Bestelldatum</div>
<div class="text-muted small">{{ __('order.order_date') }}</div>
{{ $shopping_order->created_at->format('d.m.Y H:i') }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Anzahl Artikel</div>
<div class="text-muted small">{{ __('order.number_of_items') }}</div>
{{ $shopping_order->getItemsCount() }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Preis gesamt</div>
<div class="text-muted small">{{ __('order.total_price') }}</div>
{{ $shopping_order->getFormattedTotalShipping() }} &euro;
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Points gesamt</div>
<div class="text-muted small">{{ __('order.points_total') }}</div>
{{ $shopping_order->points }}
</div>
</div>
@ -109,7 +109,7 @@
<div class="card-body pb-1">
<div class="row">
<div class="col-md-12 mb-3">
<div class="text-muted small">Punkte / Umsatz zugewiesen</div>
<div class="text-muted small">{{ __('order.points_turnover_assigned') }}</div>
@if($shopping_order->user_sales_volume && $shopping_order->user_sales_volume->user)
{{ $shopping_order->user_sales_volume->user->getFullName() }}
@endif
@ -141,7 +141,7 @@
</div>
</div>
@endif
<div class="text-muted small">Zugewiesener Berater</div>
<div class="text-muted small">{{ __('order.assigned_counsellor') }}</div>
@if ($isView === 'sales_user')
@if ($shopping_order->user_shop)
{{ $shopping_order->user_shop->title }}
@ -155,7 +155,7 @@
data-action="shopping-user-is-like-member"
data-back="{{ route('admin_sales_customers_detail', [$shopping_order->id]) }}"
data-modal="modal-xl" data-route="{{ route('modal_load') }}"><span
class="fa fa-edit"></span> Berater zuordnen</button>
class="fa fa-edit"></span> {{ __('order.assigned_advisor') }}</button>
@else
@if ($shopping_order->member)
<a class="btn btn-xs btn-outline-primary"
@ -174,8 +174,8 @@
</div>
<div class="col-md-4 mb-3">
<div class="text-muted small">Gekauft im Shop</div>
@if ($shopping_order->user_shop->user->isActive() && $shopping_order->user_shop->user->isActiveShop())
<div class="text-muted small">{{ __('order.purchased_from_shop') }}</div>
@if ($shopping_order->user_shop && $shopping_order->user_shop->user && $shopping_order->user_shop->user->isActive() && $shopping_order->user_shop->user->isActiveShop())
<a href="{{ $shopping_order->user_shop->getSubdomain(false) }}" class="badge badge-success"
target="_blank">{{ $shopping_order->user_shop->getSubdomain(false) }}</a>
@else
@ -195,59 +195,59 @@
<h6 class="small font-weight-semibold">
@if ($shopping_order->shopping_user->is_from === 'shopping' ||
$shopping_order->shopping_user->is_from === 'extern')
Rechnungsadresse des Kunden
{{ __('order.billing_address_of_client') }}
@else
Rechnungsadresse des Beraters
{{ __('order.billing_address_of_the_advisor') }}
@endif
</h6>
<div class="row">
@if ($shopping_order->shopping_user->billing_company)
<div class="col-md-12 mb-3">
<div class="text-muted small">Firma</div>
<div class="text-muted small">{{ __('Company') }}</div>
{{ $shopping_order->shopping_user->billing_company }}
</div>
@endif
<div class="col-md-3 mb-3">
<div class="text-muted small">Anrede</div>
<div class="text-muted small">{{ __('Salutation') }}</div>
{{ \App\Services\HTMLHelper::getSalutationLang($shopping_order->shopping_user->billing_salutation) }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Vorname</div>
<div class="text-muted small">{{ __('First name') }}</div>
{{ $shopping_order->shopping_user->billing_firstname }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Nachname</div>
<div class="text-muted small">{{ __('Last name') }}</div>
{{ $shopping_order->shopping_user->billing_lastname }}
</div>
</div>
<div class="row">
<div class="col-md-3 mb-3">
<div class="text-muted small">Straße</div>
<div class="text-muted small">{{ __('Street') }}</div>
{{ $shopping_order->shopping_user->billing_address }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Zusatz</div>
<div class="text-muted small">{{ __('Addition') }}</div>
{{ $shopping_order->shopping_user->billing_address_2 }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">PLZ</div>
<div class="text-muted small">{{ __('Postcode') }}</div>
{{ $shopping_order->shopping_user->billing_zipcode }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Stadt</div>
<div class="text-muted small">{{ __('City') }}</div>
{{ $shopping_order->shopping_user->billing_city }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">E-Mail</div>
<div class="text-muted small">{{ __('E-Mail') }}</div>
{{ $shopping_order->shopping_user->billing_email }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Telefon</div>
<div class="text-muted small">{{ __('Phone') }}</div>
{{ $shopping_order->shopping_user->billing_phone }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Land</div>
<div class="text-muted small">{{ __('Country') }}</div>
{{ $shopping_order->shopping_user->billing_country->getLocated() }}
</div>
</div>
@ -263,19 +263,19 @@
@if ($shopping_order->shopping_user->is_from === 'user_order' ||
$shopping_order->shopping_user->is_from === 'extern')
@if ($shopping_order->shopping_user->is_for === 'me')
Lieferadresse des Berater
{{ __('order.delivery_address_of_the_consultant') }}
@else
Lieferadresse des Kunden
{{ __('order.delivery_address_of_the_client') }}
@endif
@endif
@if ($shopping_order->shopping_user->is_from === 'wizard')
Lieferadresse des Berater
{{ __('order.delivery_address_of_the_consultant') }}
@endif
@if ($shopping_order->shopping_user->is_from === 'membership')
Lieferadresse des Berater
{{ __('order.delivery_address_of_the_consultant') }}
@endif
@if ($shopping_order->shopping_user->is_from === 'shopping')
Lieferadresse des Kunden
{{ __('order.delivery_address_of_the_client') }}
@endif
</h6>
@if ($shopping_order->shopping_user->same_as_billing)
@ -284,51 +284,51 @@
<div class="row">
@if ($shopping_order->shopping_user->shipping_company)
<div class="col-md-12 mb-3">
<div class="text-muted small">Firma</div>
<div class="text-muted small">{{ __('Company') }}</div>
{{ $shopping_order->shopping_user->shipping_company }}
</div>
@endif
<div class="col-md-3 mb-3">
<div class="text-muted small">Anrede</div>
<div class="text-muted small">{{ __('Salutation') }}</div>
{{ \App\Services\HTMLHelper::getSalutationLang($shopping_order->shopping_user->shipping_salutation) }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Vorname</div>
<div class="text-muted small">{{ __('First name') }}</div>
{{ $shopping_order->shopping_user->shipping_firstname }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Nachname</div>
<div class="text-muted small">{{ __('Last name') }}</div>
{{ $shopping_order->shopping_user->shipping_lastname }}
</div>
</div>
<div class="row">
<div class="col-md-3 mb-3">
<div class="text-muted small">Straße</div>
<div class="text-muted small">{{ __('Street') }}</div>
{{ $shopping_order->shopping_user->shipping_address }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Zusatz</div>
<div class="text-muted small">{{ __('Addition') }}</div>
{{ $shopping_order->shopping_user->shipping_address_2 }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">PLZ</div>
<div class="text-muted small">{{ __('Postcode') }}</div>
{{ $shopping_order->shopping_user->shipping_zipcode }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Stadt</div>
<div class="text-muted small">{{ __('City') }}</div>
{{ $shopping_order->shopping_user->shipping_city }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">E-Mail</div>
<div class="text-muted small">{{ __('E-Mail') }}</div>
{{ $shopping_order->shopping_user->shipping_email }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Telefon</div>
<div class="text-muted small">{{ __('Phone') }}</div>
{{ $shopping_order->shopping_user->shipping_phone }}
</div>
<div class="col-md-3 mb-3">
<div class="text-muted small">Land</div>
<div class="text-muted small">{{ __('Country') }}</div>
{{ $shopping_order->shopping_user->shipping_country->getLocated() }}
</div>
</div>
@ -343,26 +343,26 @@
<h6 class="small font-weight-semibold">
@if ($shopping_order->shopping_user->is_from === 'user_order')
@if ($shopping_order->shopping_user->is_for === 'me')
<strong>Bestellung für Berater</strong>
<strong>{{ __('order.order_for_consultant') }}</strong>
@else
<strong>Bestellung für Kunde</strong>
<strong>{{ __('order.order_for_client') }}</strong>
@endif
@endif
@if ($shopping_order->shopping_user->is_from === 'wizard')
<strong>Beraterbestellung für Registrierung</strong>
<strong>{{ __('order.adviser_order_for_registration') }}</strong>
@endif
@if ($shopping_order->shopping_user->is_from === 'membership')
<strong>Beraterbestellung für Mitgliedschaft</strong>
<strong>{{ __('order.adviser_order_for_membership') }}</strong>
@endif
@if ($shopping_order->shopping_user->is_from === 'shopping')
<strong>Kundenbestellung über Shop</strong>
<strong>{{ __('order.client_order_via_shop') }}</strong>
@endif
@if ($shopping_order->shopping_user->is_from === 'homeparty')
<h5>Beraterbestellung für eine Homeparty</h5>
<h5>{{ __('order.consultant_order_for_home_party') }} </h5>
<hr>
@endif
@if ($shopping_order->shopping_user->is_from === 'collection')
<h5>Berater Sammelrechnung</h5>
<h5>{{ __('order.adviser_collective_invoice') }}</h5>
<hr>
@endif
</h6>
@ -402,22 +402,22 @@
<div class="row">
<div class="col-sm-12">
<a href="{{ $shopping_order->wp_invoice_path }}" target="_blank"
class="btn btn-secondary btn-sm"><i class="fa fa-external-link-alt"></i> Link zur
Rechnung</a>
class="btn btn-secondary btn-sm"><i class="fa fa-external-link-alt"></i>
{{ __('order.link_to_the_invoice') }}</a>
</div>
</div>
@endif
@if ($shopping_order->api_notice['wp_advertising'])
<div class="row">
<div class="col-sm-12">
<b>Werbemittel: {!! $shopping_order->api_notice['wp_advertising'] !!}<br></b>
<b>{{ __('order.advertising_material') }}: {!! $shopping_order->api_notice['wp_advertising'] !!}<br></b>
</div>
</div>
@endif
@if ($shopping_order->api_notice['wp_incentives'])
<div class="row">
<div class="col-sm-12">
<b>Incentives: {!! $shopping_order->api_notice['wp_incentives'] !!}<br></b>
<b>{{ __('order.incentives') }}: {!! $shopping_order->api_notice['wp_incentives'] !!}<br></b>
</div>
</div>
@endif
@ -428,7 +428,7 @@
<!-- / Payment -->
<div class="card-body">
<h6 class="small font-weight-semibold">
Zahlung
{{ __('tables.payment') }}
</h6>
@if ($shopping_order->txaction !== 'extern')
<div class="table-responsive">
@ -436,11 +436,11 @@
<thead>
<tr>
<th style="min-width: 60px">#</th>
<th>Zahlungsart</th>
<th>Gesamt</th>
<th>Status</th>
<th>Datum</th>
<th>Referenznummer</th>
<th>{{ __('tables.payment_type') }}</th>
<th>{{ __('tables.total') }}</th>
<th>{{ __('tables.status') }}</th>
<th>{{ __('tables.date') }}</th>
<th>{{ __('tables.reference_number') }}</th>
</tr>
</thead>
<tbody>
@ -459,7 +459,7 @@
data-payment_id="{{ $shopping_payment->id }}"
data-txaction="{{ $shopping_payment->txaction }}"
data-back="{{ url()->current() }}" data-action="store_txaction">
<span class="far fa-edit"></span>
<span class="fa fa-edit"></span>
<strong>{{ \App\Services\Payment::getFormattedTxaction($shopping_payment->txaction) }}</strong>
</button>
@else
@ -478,9 +478,9 @@
<thead>
<tr>
<th style="min-width: 80px">Request</th>
<th style="min-width: 80px">Status</th>
<th style="min-width: 80px">{{ __('tables.status') }}</th>
<th style="min-width: 200px">TX-Action</th>
<th style="min-width: 120px">Datum</th>
<th style="min-width: 120px">{{ __('tables.date') }}</th>
</tr>
</thead>
<tbody>
@ -508,7 +508,7 @@
<div class="col-sm-12">
<div class="alert alert-info p-2 mt-2">
<ul>
<li>Bestellung über externen SHOP</li>
<li>{{ __('order.order_via_external_shop') }} </li>
</ul>
</div>
</div>
@ -533,7 +533,7 @@
<div class="modal-body">
<div class="form-group col-sm-12">
<label class="form-label" for="shipped">{{ __('Versand') }}</label>
{{ Form::select('shipped', \App\Models\ShoppingOrder::$shippedTypes, $shopping_order->shipped, ['data-live-search' => 'false', 'class' => 'selectpicker']) }}
{{ Form::select('shipped', \App\Models\ShoppingOrder::getTransShippedType(), $shopping_order->shipped, ['data-live-search' => 'false', 'class' => 'selectpicker']) }}
</div>
</div>
@ -555,7 +555,7 @@
<input type="hidden" name="back" value="{{ url()->current() }}">
<input type="hidden" name="view" value="{{ $isView }}">
<div class="modal-header">
<h5 class="modal-title">{{ __('Rechnung') }}</h5>
<h5 class="modal-title">{{ __('order.invoice') }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
</div>
<div class="modal-body">
@ -580,7 +580,7 @@
<div class="form-group col-sm-12">
<label class="custom-control custom-checkbox">
{!! Form::checkbox('invoice_send_mail', 1, false, ['class' => 'custom-control-input']) !!}
<span class="custom-control-label">Rechnung <strong>nicht</strong> senden an:
<span class="custom-control-label">{{ __('order.invoice') }} <strong>nicht</strong> senden an:
{{ $shopping_order->shopping_user->billing_email }}</span>
</label>
</div>
@ -603,13 +603,13 @@
<input type="hidden" name="action" value="store_txaction">
<input type="hidden" name="back" value="{{ url()->current() }}">
<div class="modal-header">
<h5 class="modal-title">{{ __('Bestellung') }} {{ __('Rechnung') }} </h5>
<h5 class="modal-title">{{ __('order.order') }} {{ __('order.invoice') }} </h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
</div>
<div class="modal-body">
<div class="form-group col-sm-12">
<label class="form-label" for="txaction">{{ __('Rechnung') }}</label>
{{ Form::select('txaction', \App\Services\Payment::$txaction_invoice, 'invoice_paid', ['data-live-search' => 'false', 'class' => 'selectpicker']) }}
<label class="form-label" for="txaction">{{ __('order.invoice') }}</label>
{{ Form::select('txaction', \App\Services\Payment::getTransTxactionInvoice(), 'invoice_paid', ['data-live-search' => 'false', 'class' => 'selectpicker']) }}
</div>
</div>