commit 08-2025

This commit is contained in:
Kevin Adametz 2025-08-12 18:01:59 +02:00
parent 9ae662f63e
commit 480fdc65ed
404 changed files with 65310 additions and 2600431 deletions

View file

@ -25,7 +25,7 @@
</div>
<div class="card mb-2">
{!! Form::open(['url' => route('admin_shipping_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
{!! Form::open(['action' => route('admin_shipping_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
<input type="hidden" name="id" value="@if($value->id>0){{$value->id}}@else new @endif">
<h5 class="card-header">
{{ __('order.shipping_costs') }}
@ -201,24 +201,30 @@
<div class="card-datatable table-responsive">
<table class="datatables-style table table-striped table-bordered">
<tbody>
@if(isset($value->countries))
@foreach($value->countries as $country)
<tr>
<td>
{{ $country->country->de }}
</td>
<td>
@if(!$country->shopping_orders->count())
<a class="text-danger" href="{{ route('admin_shipping_country_delete', [$country->id]) }}" onclick="return confirm('{{__('Really delete entry?')}}');"><i class="fa fa-trash-alt"></i></a>
@if(isset($country->country))
{{ $country->country->de }}
@else
-
@endif
</td>
<td>
@if(!$country->hasShoppingOrders())
<a class="text-danger" href="{{ route('admin_shipping_country_delete', [$country->id]) }}" onclick="return confirm('{{__('Really delete entry?')}}');">
<i class="fa fa-trash-alt"></i></a>
@else
-
@endif
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
@if(!$value->countries->count())
@if(!$value->countries || !$value->countries->count())
<div class="mt-4 ml-4">
<button type="button" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-country"
data-id="new"