@extends('admin.layouts.app') @push('style-include') @endpush @section('main_content')

{{translate($title)}}

{{translate('Update Shipping Delivery')}}
@csrf
{{translate('Days')}}
{{$shippingDelivery->name}}
@if( $openAi->status == 1) @endif
@php $priceConfigurations = []; foreach (collect($shippingDelivery->price_configuration) as $item) { $rangeKey = $item->greater_than . '-' . $item->less_than_eq; if (!isset($priceConfigurations[$rangeKey])) { $priceConfigurations[$rangeKey] = [ "greater_than" => $item->greater_than, "less_than_eq" => $item->less_than_eq, "zones" => [] ]; } $priceConfigurations[$rangeKey]['zones'][] = (object)[ 'id' => $item->zone_id, 'price' => $item->cost ]; } $priceConfigurations = collect(array_values($priceConfigurations)); @endphp
{{translate('Shipping type')}}
shipping_type == "weight_wise") class="d-none" @endif>
@foreach ($priceConfigurations as $priceConfiguration) @php $priceConfiguration = convertArrayToObject($priceConfiguration); @endphp @foreach ($zones as $zone ) @php $price = collect($priceConfiguration->zones)->firstWhere('id',$zone->id)?->price; @endphp @endforeach @endforeach

{{translate('Applicable if price is greter than')}}

{{default_currency()->symbol}}

{{translate('Applicable if price is less than or equal')}}

{{default_currency()->symbol}}

{{$zone->name}}

{{default_currency()->symbol}}
shipping_type == "price_wise") class="d-none" @endif id="weight-wise-shipping">
@foreach ($priceConfigurations as $priceConfiguration) @php $priceConfiguration = convertArrayToObject($priceConfiguration); @endphp @foreach ($zones as $zone ) @php $price = collect($priceConfiguration->zones)->firstWhere('id',$zone->id)?->price; @endphp @endforeach @endforeach

{{translate('Applicable if weight is greter than')}}

{{default_currency()->symbol}}

{{translate('Applicable if weight is less than or equal')}}

{{default_currency()->symbol}}

{{$zone->name}}

{{default_currency()->symbol}}
@endsection @push('script-include') @endpush @push('script-push') @endpush