@extends('admin.layouts.master') @php $can_update = Gate::allows('update', $config) ?: null; $active_shipping_methods = $config->shippingMethods->pluck('id')->toArray(); $has_config = false; @endphp @section('content')

{{ trans('app.shipping_methods') }}

@foreach ($shipping_method_types as $type_id => $type) @php $shipping_providers = $shipping_methods->where('type', $type_id)->where('enabled',1); $logo_path = sys_image_path('shipping-method-types') . "{$type_id}.svg"; @endphp @if ($shipping_providers->count())
@if (File::exists($logo_path)) {{ $type }} @else

{{ $type }}

@endif

{!! get_shipping_method_type($type_id)['description'] !!}

@foreach ($shipping_providers as $shipping_provider) @php $has_config = false; $logo_path = sys_image_path('shipping-methods') . "{$shipping_provider->code}.png"; @endphp @endforeach
@unless ($loop->last)
@endunless @endif @endforeach
@endsection