<div id="salary_withdrawal_modal"class="modal fade"tabindex="-1"role="dialog"aria-labelledby="myModalLabel"aria-hidden="true"style="display:none;">
    <div class="modal-dialog">
        <div class="modal-content card-outline-warning">
            <div class="card-header text-white text-center">Saff Payment Form</div>
            <div class="modal-body">
                <?php
                    $attributes = array('name' => 'formAdd', 'id' => 'formAdd', 'class' => 'form-validation');
                    echo form_open_multipart('/admin/staff/add_withdrawal', $attributes); //  Controller ka path yeh hai
                ?>
                <div class="row">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="small">Withdrawal Date</label>
                            <input type="date" name="staff_withdrawal_date" required class="form-control form-control-line">
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="small">Withdrawal Type</label>
                            <select name="staff_withdrawal_type" id="" class="form-control">
                                <option value="1">Advance</option>
                                <option value="2">Loan</option>
                                <option value="3">Salary</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="small">Staff Member</label>
                            <select name="staff_id" id="" class="form-control">
                                <option value="0">Select Staff</option>
                                        <?php foreach ($staff as $row) : ?>
                                <option value="<?php echo $row->id ?>" data-type="<?php echo $row->id ?>"><?php echo $row->staff_name ?></option>
                                        <?php endforeach; ?>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="small">Payment Amount</label>
                            <input type="number" name="staff_withdrawal_amount" required class="form-control form-control-line" step="0.01">
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="small">Note</label>
                            <input type="text" name="note" class="form-control form-control-line">
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-actions text-right">
                            <button type="submit" class="btn btn-warning">Submit</button>
                        </div>
                    </div>
                </div>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</div>