{{ $pageTitle ?? trans('messages.list') }}
{{ __('messages.back') }}
{{ 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.select_bank', ['select' => __('messages.select_bank')]) . ' *', 'bank')->class('form-control-label') }} {{ trans('messages.add_form_title', ['form' => trans('messages.bank')]) }}
{{ html()->select('bank', []) ->attributes(['class' => 'select2js form-group col-md-12 bank','id' => 'bank', 'data-placeholder' => __('messages.select_bank', ['select' => __('messages.')])]) }}
{{ 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() }}
@section('bottom_script') @endsection