@extends('layouts.partials.master') @section('title', 'Configurações de Integração') @push('styles') @endpush @section('content') @include('layouts.components.alerts') @include('layouts.components.section-title', ['title' => 'Configurações de Integração'])
@csrf @method('PUT') @php $currentModuleLockers = old('module_lockers', $moduleLockers); $lockySettings = $settings->filter(fn($s) => in_array($s->key, ['locky_partner_id', 'locky_partner_name', 'locky_login', 'locky_password'])); $smartlockersApiKey = $settings->firstWhere('key', 'smartlockers_api_key'); $activeShippingMethod = old('shipping_method', $activeShippingMethod); $cttSettings = $settings->filter(fn($s) => in_array($s->key, ['ctt_shipping_api_authentication_id', 'ctt_shipping_contract_id'])); $dpdSettings = $settings->filter(fn($s) => in_array($s->key, ['dpd_shipping_shipment_username', 'dpd_shipping_shipment_password', 'dpd_shipping_shipment_client_id', 'dpd_shipping_shipment_client_secret'])); $mbeSettings = $settings->filter(fn($s) => in_array($s->key, ['mbe_shipping_api_username', 'mbe_shipping_api_password', 'mbe_shipping_logistics_centre_email'])); @endphp @include('layouts.components.section-marker', ['section_name' => 'Módulo de Cacifos'])
@if ($errors->has('module_lockers'))
{{ $errors->first('module_lockers') }}
@endif
@include('layouts.components.section-marker', ['section_name' => 'Método de Envio'])
@if ($errors->has('shipping_method'))
{{ $errors->first('shipping_method') }}
@endif
@endsection @push('scripts') @endpush