Add citizenship field and related logic to VisaMasterPaymentOrder

This commit is contained in:
Mekan1206
2026-08-27 20:57:38 +05:00
parent e1ab8f7950
commit 8393f1a867
8 changed files with 320 additions and 17 deletions

138
.cursor/debug-7b1469.log Normal file
View File

@@ -0,0 +1,138 @@
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/filters","method":"GET","isCreate":false,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787845997289}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845997289}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787845997293}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"GET","isCreate":false,"isUpdate":false,"isIndex":true,"isDetail":false},"timestamp":1787845997601}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845997601}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787845997602}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"GET","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787845999072}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845999073}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787845999075}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"TM","isTm":true},"timestamp":1787845999134}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787845999467}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845999468}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787845999471}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787845999585}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845999585}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787845999588}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787845999683}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845999684}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787845999687}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787845999813}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845999813}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787845999815}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"TM","isTm":true},"timestamp":1787845999821}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787845999996}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787845999996}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846000003}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846000113}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846000113}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846000116}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846000210}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846000210}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846000213}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/associatable\/user","method":"GET","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846003781}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846003781}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846003788}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846054780}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846054781}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846054782}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"TM","isTm":true},"timestamp":1787846054788}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846054789}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846054789}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846054790}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846054792}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846054792}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846054793}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846054797}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846054797}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846054798}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"TM","isTm":true},"timestamp":1787846054801}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-order-items","method":"GET","isCreate":false,"isUpdate":false,"isIndex":true,"isDetail":false},"timestamp":1787846056238}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846056238}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846056240}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-order-items\/actions","method":"GET","isCreate":false,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846056343}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846056344}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846056347}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-order-items\/actions","method":"GET","isCreate":false,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846056349}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846056349}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846056349}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/filters","method":"GET","isCreate":false,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846071015}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846071015}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846071018}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"GET","isCreate":false,"isUpdate":false,"isIndex":true,"isDetail":false},"timestamp":1787846071220}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846071220}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846071223}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"GET","isCreate":false,"isUpdate":false,"isIndex":true,"isDetail":false},"timestamp":1787846071235}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846071235}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846071235}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"GET","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846073115}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846073116}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846073123}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"TM","isTm":true},"timestamp":1787846073130}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846073433}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846073433}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846073436}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846073532}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846073532}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846073535}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846073630}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846073631}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846073633}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846073728}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846073728}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846073731}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"TM","isTm":true},"timestamp":1787846073734}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846073826}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846073826}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846073830}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846073922}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846073923}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846073926}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846074015}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846074015}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846074018}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/associatable\/user","method":"GET","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846077645}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846077645}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846077648}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846092434}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846092435}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846092442}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846092540}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846092540}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846092544}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846092640}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846092640}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846092643}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"AF","isTm":false},"timestamp":1787846092647}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846092742}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846092742}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846092745}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846092849}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846092849}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846092852}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders\/creation-fields","method":"PATCH","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846092949}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846092950}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846092953}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846119860}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846119860}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846119864}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"AF","isTm":false},"timestamp":1787846119869}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846119870}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846119870}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846119871}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846119873}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846119873}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846119874}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-orders","method":"POST","isCreate":true,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846119876}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846119876}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846119877}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:sender_passport_number.dependsOn","message":"dependsOn callback ran on Text sender_passport_number","data":{"citizenship":"AF","isTm":false},"timestamp":1787846119881}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-order-items","method":"GET","isCreate":false,"isUpdate":false,"isIndex":true,"isDetail":false},"timestamp":1787846121090}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846121090}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846121093}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-order-items\/actions","method":"GET","isCreate":false,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846121219}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846121219}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846121223}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"C","location":"NovaVisaMasterPaymentOrder.php:fields","message":"fields() invoked","data":{"path":"nova-api\/nova-visa-master-payment-order-items\/actions","method":"GET","isCreate":false,"isUpdate":false,"isIndex":false,"isDetail":false},"timestamp":1787846121225}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"dependsOn availability","data":{"novaInputmask":false,"select":true,"text":true,"simpleRepeatable":true},"timestamp":1787846121225}
{"sessionId":"7b1469","runId":"post-fix","hypothesisId":"A","location":"NovaVisaMasterPaymentOrder.php:fields","message":"about to call dependsOn on Text sender_passport_number","data":{"component":"text-field","hasDependsOn":true,"runId":"post-fix"},"timestamp":1787846121225}

View File

@@ -20,6 +20,7 @@ use Spatie\MediaLibrary\MediaCollections\Models\Media;
* @property string $type
* @property string $passport_name
* @property string $passport_surname
* @property null|string $citizenship
* @property string $phone
* @property string $email
* @property string $region

View File

@@ -8,6 +8,7 @@ use App\Modules\VisaMasterPaymentOrder\Nova\Resources\NovaVisaMasterPaymentOrder
use App\Nova\Resources\Branch\Branch;
use App\Nova\User;
use App\Repos\Order\OrderRepo;
use App\Repos\System\Location\CountryRepo;
use App\Repos\System\Settings\Legal\PassportRepo;
use App\Repos\System\Settings\Location\RegionRepo;
use Ebess\AdvancedNovaMediaLibrary\Fields\Files;
@@ -30,6 +31,8 @@ class VisaMasterPaymentOrderFieldsForDetail
*/
public static function make(NovaVisaMasterPaymentOrder $resource): array
{
$isTm = ($resource->citizenship ?? 'TM') === 'TM';
return [
new Panel(__('Status'), [
ID::make()
@@ -99,6 +102,13 @@ class VisaMasterPaymentOrderFieldsForDetail
->fullWidth()
->rules('required', 'string', 'max:255'),
Select::make(__('Citizenship'), 'citizenship')
->displayUsingLabels()
->searchable()
->options(CountryRepo::values())
->default('TM')
->fullWidth(),
NovaInputmask::make(__('Phone'), 'phone')
->fullWidth()
->phonenumber('TM')
@@ -133,16 +143,21 @@ class VisaMasterPaymentOrderFieldsForDetail
})->asHtml(),
SimpleRepeatable::make(__('Payee information'), 'payment_reciever', [
Select::make(__('Passport serie'), 'passport_serie')
->displayUsingLabels()
->searchable()
->options(PassportRepo::values())
->rules('required')
->sortable(),
$isTm
? Select::make(__('Passport serie'), 'passport_serie')
->displayUsingLabels()
->searchable()
->options(PassportRepo::values())
->rules('required')
->sortable()
: Text::make(__('Permit serie'), 'passport_serie')
->rules('required', 'max:255'),
NovaInputmask::make(__('Passport number'), 'passport_number')
->mask('999999')
->rules('required', 'max:255'),
$isTm
? Text::make(__('Passport number'), 'passport_number')
->rules('required', 'max:255')
: Text::make(__('Permit number'), 'passport_number')
->rules('required', 'max:255'),
Text::make(
name: sprintf('%s %s %s', __('Name'), __('Surname'), __('Patronic name')),

View File

@@ -14,6 +14,7 @@ use App\Nova\Resource;
use App\Nova\User;
use App\Repos\Order\Card\CardOrderRepo;
use App\Repos\Order\OrderRepo;
use App\Repos\System\Location\CountryRepo;
use App\Repos\System\Nova\NovaRepo;
use App\Repos\System\Settings\Legal\PassportRepo;
use App\Repos\System\Settings\Location\RegionRepo;
@@ -246,6 +247,14 @@ class NovaVisaMasterPaymentOrder extends Resource
->fullWidth()
->rules('required', 'string', 'max:255'),
Select::make(__('Citizenship'), 'citizenship')
->displayUsingLabels()
->searchable()
->options(CountryRepo::values())
->default('TM')
->fullWidth()
->rules('required'),
NovaInputmask::make(__('Phone'), 'phone')
->fullWidth()
->phonenumber('TM')
@@ -270,12 +279,73 @@ class NovaVisaMasterPaymentOrder extends Resource
->options(PassportRepo::values())
->rules('required')
->fullWidth()
->sortable(),
->sortable()
->dependsOn('citizenship', function ($field, $request, $formData) {
if (($formData->citizenship ?? 'TM') !== 'TM') {
$field->hide()->rules([]);
}
})
->fillUsing(function ($request, $model, $attribute) {
if (($request->citizenship ?? 'TM') !== 'TM') {
return;
}
NovaInputmask::make(__('Passport number'), 'sender_passport_number')
->mask('999999')
$model->{$attribute} = $request->{$attribute};
}),
Text::make(__('Permit serie'), 'sender_permit_serie')
->hide()
->fullWidth()
->rules('required', 'max:255'),
->dependsOn('citizenship', function ($field, $request, $formData) {
if (($formData->citizenship ?? 'TM') !== 'TM') {
$field->show()->rules('required', 'max:255');
}
})
->resolveUsing(function ($value, $resource) {
return $resource->sender_passport_serie;
})
->fillUsing(function ($request, $model) {
if (($request->citizenship ?? 'TM') === 'TM') {
return;
}
$model->sender_passport_serie = $request->sender_permit_serie;
}),
Text::make(__('Passport number'), 'sender_passport_number')
->fullWidth()
->rules('required', 'max:255')
->dependsOn('citizenship', function ($field, $request, $formData) {
if (($formData->citizenship ?? 'TM') !== 'TM') {
$field->hide()->rules([]);
}
})
->fillUsing(function ($request, $model, $attribute) {
if (($request->citizenship ?? 'TM') !== 'TM') {
return;
}
$model->{$attribute} = $request->{$attribute};
}),
Text::make(__('Permit number'), 'sender_permit_number')
->hide()
->fullWidth()
->dependsOn('citizenship', function ($field, $request, $formData) {
if (($formData->citizenship ?? 'TM') !== 'TM') {
$field->show()->rules('required', 'max:255');
}
})
->resolveUsing(function ($value, $resource) {
return $resource->sender_passport_number;
})
->fillUsing(function ($request, $model) {
if (($request->citizenship ?? 'TM') === 'TM') {
return;
}
$model->sender_passport_number = $request->sender_permit_number;
}),
Text::make(
name: sprintf('%s %s %s', __('Name'), __('Surname'), __('Patronic name')),
@@ -303,15 +373,62 @@ class NovaVisaMasterPaymentOrder extends Resource
->rules('required')
->sortable(),
NovaInputmask::make(__('Passport number'), 'passport_number')
->mask('999999')
Text::make(__('Passport number'), 'passport_number')
->rules('required', 'max:255'),
Text::make(
name: sprintf('%s %s %s', __('Surname'), __('Name'), __('Patronic name')),
attribute: 'full_name'
)->rules('required', 'max:255'),
])->maxRows(1)->minRows(1)->rules('required'),
])
->maxRows(1)
->minRows(1)
->rules('required')
->dependsOn('citizenship', function ($field, $request, $formData) {
if (($formData->citizenship ?? 'TM') !== 'TM') {
$field->hide()->rules([]);
}
})
->fillUsing(function ($request, $model, $attribute) {
if (($request->citizenship ?? 'TM') !== 'TM') {
return;
}
$value = $request->input($attribute) ?? null;
$model->payment_reciever = is_string($value) ? json_decode($value, true) : $value;
}),
SimpleRepeatable::make(__('Payee information'), 'payment_reciever_permit', [
Text::make(__('Permit serie'), 'passport_serie')
->rules('required', 'max:255'),
Text::make(__('Permit number'), 'passport_number')
->rules('required', 'max:255'),
Text::make(
name: sprintf('%s %s %s', __('Surname'), __('Name'), __('Patronic name')),
attribute: 'full_name'
)->rules('required', 'max:255'),
])
->hide()
->maxRows(1)
->minRows(1)
->dependsOn('citizenship', function ($field, $request, $formData) {
if (($formData->citizenship ?? 'TM') !== 'TM') {
$field->show()->rules('required');
}
})
->resolveUsing(function ($value, $resource) {
return $resource->payment_reciever;
})
->fillUsing(function ($request, $model, $attribute) {
if (($request->citizenship ?? 'TM') === 'TM') {
return;
}
$value = $request->input($attribute) ?? null;
$model->payment_reciever = is_string($value) ? json_decode($value, true) : $value;
}),
]),
new Panel(__('Reciver files'), [

View File

@@ -79,7 +79,7 @@ return [
],
'pulse' => [
'driver' => 'mysql',
'driver' => env('PULSE_DB_CONNECTION', 'mysql'),
'url' => env('PULSE_DATABASE_URL'),
'host' => env('PULSE_DB_HOST', '127.0.0.1'),
'port' => env('PULSE_DB_PORT', '3306'),

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('visa_master_payment_orders', function (Blueprint $table) {
$table->string('citizenship')->nullable()->default('TM');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('visa_master_payment_orders', function (Blueprint $table) {
$table->dropColumn('citizenship');
});
}
};

View File

@@ -165,6 +165,8 @@
"Citizenship": "Гражданство",
"Work location and your position": "Место работы и ваша должность",
"Passport serie": "Паспортная серия",
"Permit serie": "Серия разрешения",
"Permit number": "Номер разрешения",
"Passport id": "Номер паспорта",
"Passport date of issue": "Дата выдачи паспорта",
"Passport files": "Паспортные файлы",

View File

@@ -326,6 +326,8 @@
"Currencies": "Walýutalar",
"Currency rate": "Walýuta kursy",
"Passport number": "Pasport nomeri",
"Permit serie": "Ygtyýarnama seriýasy",
"Permit number": "Ygtyýarnama nomeri",
"Fetch loan history": "Karz taryhyny görmek",
"See": "Görmek",
"Online payment": "Onlaýn töleg",