
<?php $__env->startSection('content'); ?>
    <!-- begin::main content -->
    <style>
        textarea{
    min-height: 30px !important;
}

.form-control, .swal-modal input.swal-content__input{
    height: 43px !important;
}

.btn.btn-add, .btn.btn-add-payment {
    padding-left: 2.8571428571em;
    background-repeat: no-repeat;
    background-position: 1.4285714286em center;
}




input{
    border: 1px solid #c6d9e0 !important;
}

.search-btn {
    position: relative;
    right: 31px;
    top: 1px;
    color: #bdbdbd;
}

label {
    display: block;
    font-size: 13px;
    line-height: 1.3846153846em;
    color: #526069;
    margin-bottom: 0.7692307692em;
    user-select: none;
    cursor: pointer;
    font-weight: 500;
    width: 10.7692307692em;
}

.search-card{
    width:100%;
    border:none;
}
.tab {
    display: inline-block;
    padding: 16px 12px;
    cursor: pointer;
    
    background-color: #E6EAED;
    margin-right: -4px; /* Remove spacing between tabs */
  }

  /* Style for highlighted tab */
  .tab.active {
    background-color: white;
  }

  /* Content area style */
  .tab-content {
    
    padding: 20px;
    border-radius: 0 0 5px 5px;
    display: none; /* Hide all content areas by default */
  }

  /* Show active content area */
  .tab-content.active {
    display: block;
  }
    </style>

    <main class="main-content">

        <div class="container">

            <!-- begin::page header -->
            <div class="page-header">
                <h3><?php echo e(__('message.add')); ?> Bank Details</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>"><?php echo e(__('message.dashboard')); ?></a></li>
                        <li class="breadcrumb-item" aria-current="page"><a href="<?php echo e(asset('account/bank')); ?>">Bank</a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('message.add')); ?></li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->

            <div class="row">
                <div class="col-md-12">

                    <?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
                   
                    
                    <div class="card">
                        <div class="card-body py-0">
                            
                            <div class="bg-white">
                                <div class="row pb-5">
                                    <div class="col-md-6" style="border-right: 1px solid #e5e5e5;">
                                        <div class="card-body">
                                            <form action="<?php echo e(asset('account/add-bank')); ?>" method="post" enctype="multipart/form-data">
                                                <?php echo csrf_field(); ?>
                                                
                                                

                                                <!-- Bank Name -->
                                                <div class="form-group d-flex align-items-center">
                                                    <label for="bank_name">Bank Name <span class="text-danger">*</span></label>
                                                    <input type="text" class="form-control" name="bank_name" required>
                                                </div>
                                                <div class="d-flex justify-content-end px-3">
                                                    <?php if($errors->has('bank_name')): ?>
                                                        <div class="text-danger">
                                                            <p><?php echo e($errors->first('bank_name')); ?></p>
                                                        </div>
                                                    <?php endif; ?>
                                                </div>

                                                <!-- Account Number -->
                                                <div class="form-group d-flex align-items-center">
                                                    <label for="account_number">Account Number</label>
                                                    <input type="text" class="form-control" name="account_number">
                                                </div>
                                                <div class="d-flex justify-content-end px-3">
                                                    <?php if($errors->has('account_number')): ?>
                                                        <div class="text-danger">
                                                            <p><?php echo e($errors->first('account_number')); ?></p>
                                                        </div>
                                                    <?php endif; ?>
                                                </div>

                                                <!-- IFSC Code -->
                                                <div class="form-group d-flex align-items-center">
                                                    <label for="ifsc_code">IFSC</label>
                                                    <input type="text" class="form-control" name="ifsc">
                                                </div>
                                                <div class="d-flex justify-content-end px-3">
                                                    <?php if($errors->has('ifsc_code')): ?>
                                                        <div class="text-danger">
                                                            <p><?php echo e($errors->first('ifsc_code')); ?></p>
                                                        </div>
                                                    <?php endif; ?>
                                                </div>

                                                <!-- Branch Name -->
                                                <div class="form-group d-flex align-items-center">
                                                    <label for="branch_name">Branch Name</label>
                                                    <input type="text" class="form-control" name="branch_name">
                                                </div>

                                                

                                                <!-- Opening Balance -->
                                                <div class="form-group d-flex align-items-center">
                                                    <label for="opening_balance">Opening Balance</label>
                                                    <input type="number" class="form-control" name="opening_balance" step="0.01" value="0.00">
                                                </div>

                                        </div>
                                    </div>
                                    
                                    <div class="col-md-6 py-4">
                                        
                                        
                                        <!-- Form Submission Buttons -->
                                        <div class="row bg-white py-4 w-100" style="position:fixed;bottom:0;left:266px">
                                            <div class="col-12 py-2 px-4">
                                                <button class="btn btn-success text-white mx-4" type="submit">
                                                    <i class="fa fa-check fa-lg"></i>&nbsp; SAVE
                                                </button>
                                                <button class="btn btn-primary" type="button">CANCEL</button>
                                            </div>
                                        </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                            
                        </div>
                    </div>



                </div>

            </div>

                     
        </div>

    </main>
    <!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
    <!-- begin::select2 -->
    <link rel="stylesheet" href="<?php echo e(asset('public/admin/vendors/select2/css/select2.min.css')); ?>" type="text/css">
    <script src="<?php echo e(asset('public/admin/vendors/select2/js/select2.min.js')); ?>"></script>
    <!-- end::select2 -->
    <script>
       
        $(document).ready(function() {
            
            $('#js-example-basic-roles').select2({});

            $(".employee_change").on('change',function(){
                    var user_unique_id = $(this).val(); 
                   
                    $.ajaxSetup({
                                headers: {
                                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                                }
                            });

                    $.ajax({
                        type: "post",
                        url: "<?php echo e(asset('hrms/fetch-emp-salary')); ?>",
                        data:{
                            user_unique_id:user_unique_id
                        },
                        dataType: "html",
                        success: function(result) 
                        {
                            var res = JSON.parse(result);
                            var allData = JSON.parse(result).data;
                         
                            if(res.message === "not_salary")
                            {
                                $("#gross_salary").val("");
                                $("#net_salary").val("");
                                $("#designation").val(allData.designation);
                                return false;
                            }
                            if(res.message === "success")
                            {
                                var gross_salary = allData.gross_salary;
                                var net_salary = allData.net_salary;
                                var salary_details = allData.salary_details;
                                salary_details = JSON.parse(salary_details);

                                $("#gross_salary").val(gross_salary);
                                $("#net_salary").val(net_salary);
                                $("#designation").val(allData.designation);
                                $.each(salary_details, function(key, value) {
                                    $("."+key).val(value);
                                });
                            }
                            
                                                       
                        },
                        error:function(xhr,status,error)
                        {
                            console.log(xhr);
                            $("#gross_salary").val();
                            $("#net_salary").val();
                            $("#designation").val();
                        }
                    });

            });      
        });    

    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\blurb_erp\resources\views/accounting/bank/add.blade.php ENDPATH**/ ?>