@extends('admin.layouts.master') @section('content')

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

@if (is_incevio_package_loaded('shippo'))
@csrf
Get Shippo Carriers @endif @can('create', \App\Models\Carrier::class) {{ trans('app.add_carrier') }} @endcan
@can('massDelete', \App\Models\Carrier::class) @endcan @foreach ($carriers as $carrier) @can('massDelete', \App\Models\Carrier::class) @endcan @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.active') }} {{ trans('app.shipping_carrier_source') }} {{ trans('app.shipping_zones') }} {{ trans('app.option') }}
{{ trans('app.logo') }} {{ $carrier->name }} {{ $carrier->active ? trans('app.active') : trans('app.inactive') }} {{ $carrier->source ? ucwords($carrier->source) : trans('app.vendor') }} @foreach ($carrier->shippingZones->unique('name') as $zone) @endforeach @can('view', $carrier)   @endcan @can('update', $carrier)   @endcan @can('delete', $carrier) {!! Form::open(['route' => ['admin.shipping.carrier.trash', $carrier->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan

@can('massDelete', \App\Models\Carrier::class) {!! Form::open(['route' => ['admin.shipping.carrier.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ trans('app.logo') }} {{ $trash->name }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.shipping.carrier.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection