@include('admin.crud.form', [ 'action' => route('admin.payments.store'), 'formId' => 'add-payment-form', 'submitText' => 'Create Payment', 'class' => 'ajax-crud-form', 'redirect' => route('admin.payments.index'), 'fields' => [ [ 'type' => 'select2', 'name' => 'order_id', 'id' => 'order_id', 'label' => 'Order', 'required' => true, 'options' => $orders, 'col' => 6 ], [ 'type' => 'hidden', 'name' => 'user_id', 'id' => 'user_id', 'value' => '' ], [ 'type' => 'select2', 'name' => 'package_id', 'id' => 'package_id', 'label' => 'Package', 'required' => true, 'options' => $packages, 'col' => 6 ], [ 'type' => 'select', 'name' => 'payment_status', 'id' => 'payment_status', 'label' => 'Payment Status', 'required' => true, 'value' => 'paid', 'options' => [ 'pending' => 'Pending', 'paid' => 'Paid', 'failed' => 'Failed', 'refunded' => 'Refunded' ], 'col' => 6 ], [ 'type' => 'number', 'name' => 'amount_total', 'id' => 'amount_total', 'label' => 'Total Amount', 'placeholder' => '0.00', 'step' => '0.01', 'required' => true, 'col' => 4 ], [ 'type' => 'number', 'name' => 'amount_paid', 'id' => 'amount_paid', 'label' => 'Amount Paid', 'placeholder' => '0.00', 'step' => '0.01', 'required' => true, 'col' => 4 ], [ 'type' => 'text', 'name' => 'transaction_id', 'id' => 'transaction_id', 'label' => 'Transaction ID', 'placeholder' => 'Enter transaction ID (optional)', 'col' => 4 ], [ 'type' => 'textarea', 'name' => 'remarks', 'id' => 'remarks', 'label' => 'Remarks', 'placeholder' => 'Enter any remarks (optional)', 'rows' => 3, 'col' => 12 ], ] ])