Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
2.0 KiB

<x-modal id="api-form-modal" :title="$this->title" size="modal-fullscreen" wire:submit="save" wire:loading form livewire>
<div class="row g-3">
@foreach($this->endpoints as $key => $endpoint)
<div class="col-sm-12 col-md-4">
<x-card :subtitle="$endpoint['label']">
<x-slot:actions>
<x-button type="button" theme="danger" wire:click="runSynchronization('{{ $key }}')" icon="tabler-player-play" />
</x-slot:actions>
<div class="row">
<div class="col-sm-12 col-md-6">
<x-form.select
name="{{ $key }}"
wire:model="field.{{ $key }}.client_id"
:options="$this->clients->mapWithKeys(function ($item) {
return [$item->ulid => $item->name];
})"
:disabled="$mode == 'view'"
:label="__('domains/channel/field.client.name')"
/>
</div>
<div class="col-sm-12 col-md-6">
<x-form.input
name="{{ $key }}"
wire:model="field.{{ $key }}.value"
:disabled="$mode == 'view'"
label="URL"
/>
</div>
</div>
</x-card>
</div>
@endforeach
</div>
<x-slot:footer>
<x-button type="button" theme="secondary" :label="__('ui/button.cancel')" data-bs-dismiss="modal" />
@if($mode == 'view')
<x-button type="button" theme="info" :label="__('ui/button.update-mode')" wire:click="editMode" />
@else
<x-button type="submit" theme="primary" :label="__('ui/button.save')" />
@endif
</x-slot:footer>
</x-modal>