
<?php $__env->startSection('css-part'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/css/general.panel.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js-part'); ?>
<script src="<?php echo e(asset('assets/js/city.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/general.panel.js')); ?>"></script>
<script>
    const AcceptButton = document.getElementById("contractBtn");
    AcceptButton.addEventListener("click", function (e) {
        e.preventDefault();
        const ContractDiv = document.getElementById("editor");
        const ContractInput = document.getElementById("contract");
        const editForm = document.getElementById("contractForm");
        ContractInput.value = ContractDiv.innerHTML;
        editForm.submit();
    });
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('panel'); ?>
<?php echo $__env->make('layouts.header.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('layouts.nav.nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('container'); ?>
<div class="container">
    <h2 class=" text-center mt-3">تنظیمات سایت شما</h2>
    <?php echo $__env->make('layouts.notification.success', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('layouts.notification.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
     
    <?php echo $__env->make('layouts.editor.editor',['text' => $contract], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <form action="<?php echo e(route('admin.post.contract')); ?>" method="post" class="mt-3" id="contractForm">
        <?php echo e(csrf_field()); ?>

        <input type="hidden" name="contract" id="contract">
        <button type="submit" class=" btn btn-success" id="contractBtn">ذخیره قرارداد</button>
    </form>

    <form action="<?php echo e(route('admin.post.salary')); ?>" method="post" class="mt-4 mb-5">
        <?php echo e(csrf_field()); ?>

        <div class="row">
            <div class="group-control col-4">
                <label for="chiefWorkerPrice">دستمزد سرکارگر</label>
                <input type="number" class=" form-control" name="chiefWorkerPrice" id="chiefWorkerPrice" value="<?php echo e($chiefworker_salary); ?>">
            </div>
            <div class="group-control col-4">
                <label for="workerPrice">دستمزد کارگر</label>
                <input type="number" class=" form-control" name="workerPrice" id="workerPrice" value="<?php echo e($worker_salary); ?>">
            </div>
            <div class="group-control col-4">
                <label for="workerPrice">دستمزد خشک کن</label>
                <input type="number" class=" form-control" name="dryerPrice" id="dryerPrice" value="<?php echo e($dryer_salary); ?>">
            </div>
        </div>
        <button type="submit" class=" btn btn-success mt-3" id="contractBtn">ذخیره دستمزدها</button>
    </form>


</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home1/zarborji/public_html/resources/views/Admin/setting.blade.php ENDPATH**/ ?>