@extends('layouts.admin') @section('styles') @endsection @section('breadcrumb') @endsection @section('content')
{{ tr('settings') }}
@csrf @method('PUT') @php $fileSettings = ['site_logo', 'site_icon']; $remitterSettings = ['remitter_kyc', 'remitter_kyb']; $supportedSelected = json_decode( collect($settings)->get('supported_currencies'), true ) ?? []; $supportedSelected = array_unique($supportedSelected); $supportedCurrencies = array_unique($supported_currencies); @endphp @foreach($settings as $key => $value) @if($key === 'supported_currencies') @continue @endif @php $label = ucwords(str_replace('_', ' ', $key)); $type = 'text'; if (str_contains($key, 'email')) $type = 'email'; elseif (str_contains($key, 'url')) $type = 'url'; elseif (is_numeric($value)) $type = 'number'; @endphp
@if(in_array($key, $fileSettings)) @if($value)
{{ $key }}
@endif @elseif(in_array($key, $remitterSettings)) @elseif($key === 'kyc_service') @php $kyc_services = kyc_services(); @endphp @elseif($key === 'compliance_panel') @elseif(strlen($value) > 150) @else @endif
@endforeach
@endsection @section('scripts') @endsection