{{ html()->form('POST', route('providerpayout.store'))->attributes(['enctype' => 'multipart/form-data', 'data-toggle' => 'validator', 'id' => 'providerpayout'])->open() }}
{{ html()->hidden('provider_id',$payoutdata->provider_id ?? null) }}
{{ html()->hidden('redirect_type', $redirect_type) }}
{{ html()->label(trans('messages.method') . ' *', 'method')->class('form-control-label') }}
{{ html()->select('payment_method', ['bank' => __('messages.bank'),'cash' => __('messages.cash'),'wallet' => __('messages.wallet'),], old('method'))->attributes(['id' => 'method', 'class' => 'form-select select2js', 'required']) }}
{{ html()->label(__('messages.amount'), 'amount')->class('form-control-label') }}
{{-- Display the formatted amount in a readonly input field --}}
{{ html()->text('formatted_amount', getPriceFormat($payoutdata->amount ?? 0))->attributes([
'class' => 'form-control',
'readonly' => true,
'placeholder' => __('messages.amount'),
]) }}
{{-- Use a hidden field to store the raw amount value for submission --}}
{{ html()->hidden('amount', old('amount') ?? $payoutdata->amount)->attributes(['id' => 'raw_amount']) }}
{{ html()->label(__('messages.description'), 'description')->class('form-control-label') }}
{{ html()->textarea('description', null)->attributes(['class' => 'form-control textarea', 'rows' => 3, 'placeholder' => __('messages.description')]) }}
{{ html()->submit(trans('messages.save'))->attributes(['class' => 'btn btn-md btn-primary float-end', 'id' => 'saveButton']) }}
{{ html()->form()->close() }}