@php use App\Models\Shipping\ShippingMethod; @endphp @php /** @var ShippingMethod $shippingMethod */ @endphp

{{ $shippingMethod->title }} tariffs

This section allows you to manage the tariffs for {{ $shippingMethod->title }}. You can change prices, enable or disable countries for delivery, and set the status to "inactive" for countries you want to exclude from delivery. Please make the necessary changes below:

@php $tariffsGroupedByZone = $shippingMethod->tariffs->groupBy(['zone', 'country_id']); @endphp @foreach($tariffsGroupedByZone as $zoneNumber => $tariffsGroupByCountry) @foreach($tariffsGroupByCountry as $countryId => $ccc) @php $chunks = $ccc->chunk(8); @endphp @foreach($chunks as $countryTariff) @foreach($countryTariff as $col) @endforeach @foreach($countryTariff as $key => $tariff) @endforeach @endforeach @endforeach
Zone: {{ $zoneNumber }}
{{ $col->weight_from }} - {{ $col->weight_to }} (kg)
{{ $countryTariff->first()->country->title }}
id . '.is_active', $tariff->is_active) ? 'checked' : '' }} >
@endforeach
@push('script') @endpush