@extends('layouts.people') @section('content')

Add Remote Transfer

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif
@csrf
@php $fields = $remotecontacts->remotecontactapis->first()->mandatory_fields; $fields = array_map('trim', explode(',', $fields)); @endphp @foreach ($fields as $field) @php $pair = array_map('trim', explode(':', $field)); $key = $pair[0] ?? ''; $value = ($pair[1] == 'file') ? 'file' : $document->{$pair[1]}; @endphp @if ($value == null || strlen($value) == 0) @continue; @elseif($value == 'file')
{{--
{{__('Upload')}}
--}}
@else
@endif @endforeach
@endsection