

<?php $__env->startSection('title'); ?>
    الحولات | حوالة جديدة
<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('header-content'); ?>
    الحولات
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-body'); ?>
    <!--**********************************
                                    Content body start
                                ***********************************-->
                                <?php echo $__env->make('massages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <!-- row -->
    <div class="container-fluid">

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <h4 class="card-title">حوالة جديدة</h4>
                    </div>
                    <div class="card-body">
                        <div class="form-validation">
                            <form class="needs-validation validation" novalidate="" method="post" action="<?php echo e(route('storTransfer')); ?>">
                                <?php echo csrf_field(); ?>
                                <div class="row">
                                    <div class="col-xl-6">
                                        <div class="mb-3 row">
                                            <label class="col-lg-4 col-form-label titleInput" for="typepetrol">النوع
                                                <span class="text-danger">*</span>
                                            </label>
                                            <div class="col-lg-6">
                                                <select name="type"
                                                    class="form-control form-white form-control-sm typePetrodiesel inputRead"
                                                    id="type" required onchange="functionSelect()">
                                                    <option value="-1" selected="selected" disabled="disabled">الرجاء
                                                        اختيار احدى الأنواع</option>
                                                    <option value=0 rel="petrolselect">بترول</option>
                                                    <option value=1 rel="desilselect">ديزيل</option>

                                                </select>
                                                <div class="invalid-feedback">
                                                    الرجاء اختيار احدى الخيارات الموجودة
                                                </div>

                                            </div>
                                        </div>

                                        <div class="mb-3 row">
                                            <label class="col-lg-4 col-form-label titleInput" id="text"
                                                for="validationCustom02">اسم المستلم<span class="text-danger">*</span>
                                            </label>
                                            <div class="col-lg-6">
                                                <input name="recipientName" type="text"
                                                    class="form-control form-control-sm inputRead" id="validationCustom02"
                                                    placeholder="ادخل المستلم" required="">
                                                <div class="invalid-feedback">
                                                    الرجاء ادخال اسم المستلم
                                                </div>
                                            </div>
                                        </div>
                                        <div class="mb-3 row">
                                            <label class="col-lg-12 col-form-label titleInput" for="validationCustom02">ملاحظة لعملية التحويل<span class="text-danger">*</span>
                                            </label>
                                            <div class="col-lg-12">
                                                <input name="notice" value="<?php echo e(old('notice')); ?>" type="text" class="form-control form-control-sm inputRead" id="validationCustom02" placeholder="بتوجيه من ...." required="">
                                                <div class="invalid-feedback">
                                                    الرجاء ادخال  ملاحظة لعملية التحويل
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xl-6">
                                        <div class="mb-3 row">
                                            <label class="col-lg-4 col-form-label titleInput" for="validationCustom01">اسم المرسل<span
                                                    class="text-danger">*</span>
                                            </label>
                                            <div class="col-lg-6">
                                                <select class="form-control form-white inputChecked inputRead"
                                                    data-placeholder="Choose a color..." id="dieselSelectList"
                                                    name="senderName" required>

                                                    <option disabled selected value="">الرجاء اختيار احد العملاء
                                                    </option>

                                                    <?php $__currentLoopData = $senders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sender): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php if($sender->balance>1): ?>
                                                        <option hidden value="<?php echo e($sender->name); ?>"
                                                            class="account_clint p-2">
                                                            <?php echo e($account->deleteTypeAccount($sender->name)); ?>

                                                            متبقي له <?php echo e($sender->balance); ?> لتر </option>
                                                    <?php endif; ?>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                                <div class="invalid-feedback">
                                                    الرجاء ادخال اسم المرسل
                                                </div>
                                            </div>
                                        </div>
                                        <div class="mb-3 row">
                                            <label class="col-lg-4 col-form-label titleInput" for="validationCustom06">الكمية
                                                <span class="text-danger">*</span>
                                            </label>
                                            <div class="col-lg-6">
                                                <input name="quantity" type="number" class="form-control form-control-sm inputChecked inputRead" disabled
                                                    id="validationCustom06" placeholder="ادخل الكمية" required="" >
                                                <div class="invalid-feedback">
                                                    الرجاء ادخل الكمية بشكل صحيح
                                                </div>
                                                <div class="errorMassege" style="color: red;font-size: 0.875em;margin-top: 0.25rem"></div>
                                            </div>
                                        </div>
                                        <div class="mb-3 row">
                                            <label class="col-lg-4 col-form-label titleInput" for="validationCustom06">العمولة
                                                <span class="text-success">*</span>
                                            </label>
                                            <div class="col-lg-6">
                                                <input name="rate" type="number" value="0" class="form-control form-control-sm inputChecked inputRead"
                                                    id="validationCustom06" placeholder="ادخل العمولة"  >
                                                <div class="invalid-feedback">
                                                    الرجاء ادخل العمولة بشكل صحيح
                                                </div>
                                                <div class="errorMassege" style="color: red;font-size: 0.875em;margin-top: 0.25rem"></div>
                                            </div>
                                        </div>

                                        <div class="mb-3 row">
                                            <div class="col-lg-5 me-auto">
                                                <button type="button" class="btn btn-primary btnValidation showModal"
                                                data-title="هل انت متأكد من هذه الحوالة ؟">اضافة</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <?php echo $__env->make('print_confirmation.print_confirmation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>

    <!--**********************************
                                    Content body end
                                ***********************************-->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
    <script src="<?php echo e(asset('/js/selected/selected.js')); ?>"></script>
    <script src="<?php echo e(asset('/vendor/datatables/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/js/plugins-init/datatables.init.js')); ?>"></script>
    <script src="<?php echo e(asset('/js/validation.js')); ?>"></script>
    <script src="<?php echo e(asset('/js/validation/validationQuantity.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/transfers/new-Transfer.blade.php ENDPATH**/ ?>