@php $flat = $zone->shippingZoneShippingMethods->where('shipping_method_id', 3)->first(); $local = $zone->shippingZoneShippingMethods->where('shipping_method_id', 2)->first(); $free = $zone->shippingZoneShippingMethods->where('shipping_method_id', 1)->first(); @endphp {{-- Free Shipping --}}
{{ preg_replace('/[0-9\.]+/', '', formatNumber('')) }}
calculation_type) && $free->calculation_type == 1 ? 'checked' : '' }}>
status) && $free->status == 1 ? 'checked' : '' }}>
{{-- Local pickup --}}
{{ preg_replace('/[0-9\.]+/', '', formatNumber('')) }}
status) && $local->status == 1 ? 'checked' : '' }}>
{{-- Flat Rate --}}
{{ preg_replace('/[0-9\.]+/', '', formatNumber('')) }}
status) && $flat->status == 1 ? 'checked' : '' }}>
@if ($zoneClasses->count() > 1)
{{ __('Shipping class costs') }}

{{ __('These costs can optionally be added based on the product shipping class.') }}

@foreach ($zoneClasses as $class) @php $zoneClass = $class->shippingZoneShippingClasses->where('shipping_zone_id', $zone->id)->first(); @endphp
{{ preg_replace('/[0-9\.]+/', '', formatNumber('')) }}
@endforeach
@endif