@extends('companyuser::layouts.master') @section('title',__('companyuser::integration.general_configurations')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')

{{__('companyuser::integration.general_configurations')}}:

@if(!$generalSettingAllowed)
@lang('companyuser::integration.general settings is not allowed for this integration type')
@else @if(env('SYNC_INTEGRATED_ORDERS_ON') && env('SYNC_INTEGRATED_' . strtoupper($source) . '_ORDERS_ON') && $integrationConfig) @include('superadmin::errors.lists')
@csrf @method('PUT')
@php $data = []; foreach ($generalConfigKeys as $key => $label) { $value = 0; if (!empty($checkConfigType)) { foreach ($checkConfigType as $config) { if ($config->key === $label) { $value = $config->value; break; // Found match, stop loop } } } $data[$label] = $value; } @endphp @foreach ($generalConfigKeys as $key => $label)
@endforeach
@else
@lang('companyuser::integration.integration is not available currently')
@endif @endif
@endsection @section('extra_scripts') @endsection