{{ html()->form('POST', route('handymanpayout.store'))->attribute('enctype', 'multipart/form-data')->attribute('data-toggle', 'validator')->id('handymanpayout')->open() }}
{{ html()->hidden('handyman_id',$payoutdata->handyman_id ?? null) }}
{{ html()->label(trans('messages.method') . ' *', 'method')->class('form-control-label')}}
{{ html()->select('payment_method', ['cash' => __('messages.cash'),'wallet' => __('messages.wallet')],old('method'))->class('form-select select2js')->id('method')->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))
->class('form-control')
->attribute('readonly', true)
->placeholder(__('messages.amount'))
}}
{{-- Use a hidden field to store the raw amount value for submission --}}
{{ html()->hidden('amount', old('amount') ?? $payoutdata->amount)->id('raw_amount') }}
{{ html()->label(__('messages.description'), 'description')->class('form-control-label') }}
{{ html()->textarea('description', null)->class('form-control textarea')->rows(3)->placeholder(__('messages.description')) }}
{{ html()->submit(trans('messages.save'))->class('btn btn-md btn-primary float-end')->id('saveButton') }}
{{ html()->form()->close() }}