@extends('appshell::layouts.private') @section('title') {{ __('Shipping Methods') }} @stop @section('content')
| {{ __('Name') }} | {{ __('Zone') }} | {{ __('Calculation') }} | {{ __('Carrier') }} | {{ __('Enabled') }} | |
|---|---|---|---|---|---|
| @can('view shipping methods') {{ $shippingMethod->name }} @else {{ $shippingMethod->name }} @endcan | @if($shippingMethod->zone_id) @can('view zones') {{ $shippingMethod->zone->name }} @else {{ $shippingMethod->zone->name }} @endcan @else {{ __('Unrestricted') }} @endif | @if(null === $shippingMethod->calculator) {{ $shippingMethod->getCalculator()->getName() }} @else {{ $shippingMethod->getCalculator()->getName() }} @endif | @if(null === $shippingMethod->carrier) {{ __('No carrier assigned') }} @else @can('view carriers') {{ $shippingMethod->getCarrier()?->name() }} @else {{ $shippingMethod->getCarrier()->name() }} @endcan @endif | @if($shippingMethod->is_active) {!! icon('active') !!} @else {!! icon('inactive') !!} @endif | @can('edit shipping methods') {{ __('Edit') }} @endcan @can('delete shipping methods') {{ Form::open([ 'url' => route('vanilo.admin.shipping-method.destroy', $shippingMethod), 'data-confirmation-text' => __('Delete this shipping method: ":name"?', ['name' => $shippingMethod->name]), 'method' => 'DELETE' ])}} {{ Form::close() }} @endcan |