move to custom x-form component and fix htmlspecialentities issue

This commit is contained in:
hackerESQ
2024-09-18 19:51:05 -05:00
parent 835c2115f2
commit 5bb601f869
4 changed files with 52 additions and 35 deletions
@@ -105,7 +105,7 @@ new class extends Component {
}; ?>
<div class="" x-data="{ transaction_type: @entangle('transaction_type') }">
<x-form wire:submit="{{ $transaction ? 'update' : 'save' }}" class="">
<x-ib-form wire:submit="{{ $transaction ? 'update' : 'save' }}" class="">
@if(empty($portfolio))
@@ -155,13 +155,13 @@ new class extends Component {
<x-slot:actions>
@if ($transaction)
<x-button
class="ms-3 btn btn-ghost text-error"
wire:click="$toggle('confirmingTransactionDeletion')"
wire:loading.attr="disabled"
label="{{ __('Delete') }}"
title="{{ __('Delete Transaction') }}"
/>
<x-button
wire:click="$toggle('confirmingTransactionDeletion')"
wire:loading.attr="disabled"
icon="o-trash"
class="btn btn-ghost btn-circle text-error"
title="{{ __('Delete Transaction') }}"
/>
@endif
<x-button
@@ -172,7 +172,7 @@ new class extends Component {
spinner="{{ $transaction ? 'update' : 'save' }}"
/>
</x-slot:actions>
</x-form>
</x-ib-form>
<x-confirmation-modal wire:model.live="confirmingTransactionDeletion">
<x-slot name="title">