@if ($image = Arr::get($rate, 'provider_image_75')) {{ Arr::get($rate, 'servicelevel.name') }} @endif {{ Arr::get($rate, 'servicelevel.name') }} @php $days = Arr::get($rate, 'days', Arr::get($rate, 'estimated_days', 0)); @endphp
{{ trans('plugins/shippo::shippo.estimated_days', ['day' => $days]) }}
@include('plugins/shippo::address')
@php $rateCreated = Carbon\Carbon::create(Arr::get($rate, 'object_created')); @endphp
{{ trans('plugins/ecommerce::shipping.shipping_fee') }}
{{ trans('plugins/ecommerce::shipping.amount') }} {{ format_price((float) Arr::get($rate, 'amount_local'), null, true, false) }}
{{ trans('plugins/ecommerce::payment.currency') }} {{ Arr::get($rate, 'currency_local') }}
{{ trans('core/base::tables.created_at') }} {{ BaseHelper::formatDateTime($rateCreated) }}
@if ($cod = Arr::get($shipmentShippo, 'extra.COD')) {{ trans('plugins/ecommerce::shipping.cash_on_delivery') }}
{{ trans('plugins/ecommerce::shipping.amount') }} {{ format_price(Arr::get($cod, 'amount'), null, true, false) }}
{{ trans('plugins/ecommerce::payment.currency') }} {{ Arr::get($cod, 'currency') }}
{{ trans('plugins/shippo::shippo.order_amount') }} {{ format_price($order->amount) }}
@endif
{{ trans('plugins/shippo::shippo.parcel') }} @php $parcel = Arr::get($shipmentShippo, 'parcels.0'); $distanceUnit = Arr::get($parcel, 'distance_unit'); $massUnit = Arr::get($parcel, 'mass_unit'); @endphp
{{ trans('plugins/ecommerce::products.form.shipping.weight') }} {{ trans('plugins/ecommerce::products.form.shipping.length') }} {{ trans('plugins/ecommerce::products.form.shipping.wide') }} {{ trans('plugins/ecommerce::products.form.shipping.height') }}
{{ number_format(Arr::get($parcel, 'weight'), 2) . ' ' . $massUnit }} {{ number_format(Arr::get($parcel, 'length'), 2) . ' ' . $distanceUnit }} {{ number_format(Arr::get($parcel, 'width'), 2) . ' ' . $distanceUnit }} {{ number_format(Arr::get($parcel, 'height'), 2) . ' ' . $distanceUnit }}
@php $url = route('ecommerce.shipments.shippo.transactions.create', $shipment->id); $isShowButton = true; if (!is_in_admin(true)) { if (is_plugin_active('marketplace')) { $url = route('marketplace.vendor.orders.shippo.transactions.create', $shipment->id); } } elseif (Auth::check() && !Auth::user()->hasPermission('ecommerce.shipments.edit')) { $isShowButton = false; } @endphp @if ($isShowButton)
@if (\Carbon\Carbon::now()->subHours(24)->gt($rateCreated))
{{ trans('plugins/shippo::shippo.note_5') }}
@endif @endif