@extends('layouts.app') @section('title', 'Edit API Transceiver') @section('content')

Edit API Transceiver

View Details Back to List
@if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif
Edit Transceiver Configuration
@csrf @method('PUT')
@error('api_client_id')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

Source & Target Configuration
@error('api_receiver_id')
{{ $message }}
@enderror The API receiver that will provide data
@error('api_target_id')
{{ $message }}
@enderror The API target where data will be forwarded

Scheduling Settings
@error('schedule_type')
{{ $message }}
@enderror
@error('direction')
{{ $message }}
@enderror
auto_sync) ? 'checked' : '' }}> Enable automatic synchronization
is_active) ? 'checked' : '' }}> Enable this transceiver

Field Mapping (Optional)
@error('field_mapping')
{{ $message }}
@enderror JSON object mapping source fields to target fields
@error('data_filter')
{{ $message }}
@enderror JSON object with conditions for data filtering
Cancel
Current Configuration
Statistics:
  • Total Forwarded: {{ number_format($apiTransceiver->total_forwarded) }}
  • Total Logs: {{ $apiTransceiver->logs->count() }}
  • Success Rate: @if($apiTransceiver->logs->count() > 0) {{ number_format(($apiTransceiver->logs->where('status', 'success')->count() / $apiTransceiver->logs->count()) * 100, 1) }}% @else N/A @endif
  • Created: {{ $apiTransceiver->created_at->format('M d, Y') }}
  • Last Updated: {{ $apiTransceiver->updated_at->format('M d, Y H:i') }}
Schedule Types:
  • Manual: Process data only when triggered manually
  • Real-time: Process data immediately when received
  • Hourly: Process data every hour(s)
  • Daily: Process data every day(s)
Field Mapping:

Use JSON to map source fields to target fields. Leave empty to forward data as-is.

Processing Conditions:

Use JSON to specify conditions that data must meet to be forwarded. Leave empty to forward all data.

Quick Actions
View Details View Logs
@csrf
@if($apiReceivers->isEmpty())
No API Receivers found!
You need at least one API receiver. Create Receiver
@endif @if($apiTargets->isEmpty())
No API Targets found!
You need at least one API target. Create Target
@endif
@endsection