 <?php $__env->startSection('content'); ?>

<style>

    #cke_notifications_area_editor1,#cke_notifications_area_editor2,#cke_notifications_area_editor3,#cke_notifications_area_editor4,#cke_notifications_area_editor5,#cke_notifications_area_editor6,#cke_notifications_area_editor7,#cke_notifications_area_editor8,#cke_notifications_area_editor9,#cke_notifications_area_editor10,#cke_notifications_area_editor11,#cke_notifications_area_editor12,#cke_notifications_area_editor13,#cke_notifications_area_editor14{
        display: none !important;
    
    }
    
    
    
    </style>
<div class="pageloader" style="display:none;" >
</div>
    <div class="common-content">
        <div class="page-content">
            <div class="page-heading">
                <div class="headings">
                    <h6>Edit Purchase Order</h6>
                </div>
            </div>
            <div class="boxings">
                <form id="save_purchaseorder" method="POST" action="<?php echo e(url('buyers/update_purchaseorder')); ?>"
                    enctype="multipart/form-data"> <?php echo csrf_field(); ?>
                   
                    <div class="row">
                        <?php if($buyer_type == 'proc'): ?>
                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label class="label">Consignee<sup>*</sup></label>
                                    <select id="buyer" class="form-control  invoiceselect" name="buyer">
                                        <option value="">Select</option>
                                        <?php if(!empty($individual_buyers)): ?>
                                            <?php $__currentLoopData = $individual_buyers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $buyers): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($buyers->id); ?>" <?php if($orderdetails->individual_buyerid==$buyers->id): ?> selected <?php endif; ?> ><?php echo e($buyers->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label class="label">Ship To<sup>*</sup></label>
                                    <select id="ship" class="form-control  invoiceselect" name="ship">
                                        <option value="">Select</option>
                                       
                                                <option value="1" <?php if($orderdetails->ship_to==1): ?> selected <?php endif; ?>>Consignee</option>
                                                <option value="2" <?php if($orderdetails->ship_to==2): ?> selected <?php endif; ?>>Procurement</option>
                                          
                                      
                                    </select>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>






                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label class="label">Vendor/Manufacturer<sup>*</sup></label>
                                    <select id="vendor" class="form-control  invoiceselect" name="vendor" disabled readonly="readonly">
                                        <option value="">Select</option>
                                        <?php $__currentLoopData = $vendorlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vendor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($vendor->id); ?>"
                                                <?php if($orderdetails->vendor_id == $vendor->id): ?> selected <?php endif; ?>><?php echo e($vendor->name); ?>

                                            </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                               <div class="form-group">
                                   <label class="label">Pre Dispatch Inspection Required</label>
                                  <div class="inspCheck">
                                       <div class="form-check form-check-inline">
                                     <input class="form-check-input" type="radio" name="predispatch" id="inlineRadio1" <?php if($orderdetails->predispatch_inspection==1): ?> checked <?php endif; ?> value="1">
                                     <label class="form-check-label" for="inlineRadio1">Yes </label>
                                   </div>
                                   <div class="form-check form-check-inline">
                                     <input class="form-check-input" type="radio" name="predispatch" id="inlineRadio2" <?php if($orderdetails->predispatch_inspection==0): ?> checked <?php endif; ?> value="0" >
                                     <label class="form-check-label" for="inlineRadio2">No</label>
                                   </div>
                                   </div>
                                
                               </div>
                           </div>
                       </div>
                       <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0" id="addnewproducts" style="display:block;">
                        <div class="form-inputs app-vend f-adj">
                            <div class="form-group">
                                <div class="green-button green-button2 d-flex justify-content-start">
                                    <button id="create"  class="addproducts"><i class="fa fa-plus" aria-hidden="true"></i>Add New Products</button>
                                </div>
                                
                            </div>
                        </div>
                    </div>
                        
                        <input name="_token" type="hidden" id="token_po" value="<?php echo e(csrf_token()); ?>">

                        <input name="po_id" type="hidden" id="po_id" value="<?php echo e($orderdetails->id); ?>">


                    </div>
                    <div id="products">
                        <hr>
                        <?php $counter=1; ?>
                        <?php $__currentLoopData = $orderdetails->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span id="products_span" class="products_span">
                                <div class="row">
                                    <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                        <div class="form-inputs app-vend f-adj">
                                            <div class="form-group">
                                                <label>Product<sup>*</sup></label>
                                                <select
                                                    class="form-control js-example-disabled-results invoiceselect product_id"
                                                    id="product_id<?php echo e($counter); ?>" name="product_id[]" data-id="<?php echo e($counter); ?>"
                                                    required>
                                                    <option value="">Select</option>
                                                    <?php $__currentLoopData = $productlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($productItem->product_id); ?>" data-id="" <?php if($item->productDetails->product_id == $productItem->product_id): ?> selected <?php endif; ?>><?php echo e($productItem->product_name); ?></option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>

                                            </div>
                                        </div>
                                        <div class="form-inputs app-vend f-adj">
                                            <div class="form-group">
                                                <label>Batch<sup></sup></label>
                                                <div class="check_B" >
                                                    <div class="form-check">
                                                        <input class="form-check-input dispatch_to" type="checkbox"  id="dispatchto<?php echo e($counter); ?>" value="<?php echo e($item->dispatch_to); ?>" class="form-control" <?php if($item->dispatch_to ==2): ?> checked <?php endif; ?> name="dispatch_to<?php echo e($counter); ?>">
                                                        <label class="form-check-label" for="defaultCheck1">Select as batch
                                                        </label>
                                                    </div>
                                            </div>
                                            </div>
                                        </div> 
                                    </div>
                                    <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">

                                        <div class="form-inputs app-vend f-adj">
                                            <div class="form-group">
                                                <label>Product Code<sup>*</sup></label>
                                                <input name="pr_code[]" id="pr_code<?php echo e($counter); ?>" value=""
                                                    type="text" class="form-control pr_code" disabled>
                                            </div>
                                        </div>
                                        <div class="form-inputs app-vend f-adj">
                                            <div class="form-group">
                                                <label>Quantity<sup>*</sup></label>

                                                <select class="form-control js-example-disabled-results invoiceselect quantity"
                                                    id="quantity<?php echo e($counter); ?>" name="quantity[]" required>
                                                    <option value="">Select</option>
                                                    <?php for($i = 1; $i < 101; $i++): ?>
                                                        <option value="<?php echo e($i); ?>" <?php if($item->quantity == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                                                    <?php endfor; ?>

                                                </select>

                                            </div>
                                        </div>
                                    </div>
                                  

                                    <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                                        <div class="form-inputs app-vend">
                                            <div class="form-group">
                                                <label>Product Information<sup>*</sup></label>
                                                <textarea style="    height: 35px;" class="form-control pr_des" rows="" id="pr_des<?php echo e($counter); ?>" name="pr_des[]" disabled></textarea>
                                            </div>
                                        </div>
                                    
                                    
                                    <div class="form-inputs app-vend f-adj">
                                        <div class="form-group">
                                            <label>Price<sup>*</sup></label>
                                            <input name="price[]" id="price<?php echo e($counter); ?>" value="<?php echo e($item->price); ?>"
                                                type="number" class="form-control">
                                        </div>
                                    </div>
                                 
                                </div>
                            </div>
                                <div class="row">
                                    <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                                        <div class="form-inputs app-vend f-adj">
                                            <div class="form-group">
                                                <label>Delivery Days<sup>*</sup></label>
                                                <select class="form-control js-example-disabled-results invoiceselect ddays"
                                                    id="delivery_days<?php echo e($counter); ?>" name="delivery_days[]" required>
                                                    <option value="">Select</option>
                                                    <?php for($i = 1; $i < 101; $i++): ?>
                                                        <option value="<?php echo e($i); ?>" <?php if($item->delivery_days == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                                                    <?php endfor; ?>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                                        <div class="form-inputs app-vend f-adj">
                                            <div class="form-group">
                                                <label>Goods & Service Tax(%)<sup>*</sup></label>
                                                <input name="tax[]" id="tax<?php echo e($counter); ?>" value="<?php echo e($item->tax); ?>" type="number"
                                                    class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-lg-4 form-inputs app-vend f-adj" style="[]">
                                        <div class="form-inputs app-vend f-adj">
                                        <div class="form-group">
                                        <label>Name & Address of Manufacturer<sup>*</sup></label>
                                        <select  class="form-control  invoiceselect1 name_manufa"  id="name_manufa' + counter + '" name="name_manufa[]">
                                        <option value="">Select</option>

                                        <?php $__currentLoopData = $manulist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <option value="<?php echo e($list->id); ?>"  <?php if($item->manufacturer_id == $list->id): ?> selected <?php endif; ?> ><?php echo e($list->name); ?></option>

                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    
                                        </select>
                                        </div>
                                        </div>
                                    
                                    </div>
                                
                                    <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                                        <div class="form-inputs app-vend f-adj">
                                            <div class="form-group">
                                                <div class="green-button green-button2 d-flex justify-content-start">
                                                    <button id="create" class="removproducts remP"><i class="fa fa-minus"
                                                            aria-hidden="true"></i> Remove Products</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <hr>
                            </span>
                            <?php $counter++; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="row">
                        <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend">
                                <div class="form-group">
                                    <label>Name & Address of the Purchaser <sup>*</sup></label>

                                    <input type="text"  class="form-control" name="name_purchaser" readonly value="<?php echo e($mainbuyer); ?>">

                                </div>
                            </div>
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Tender Number<sup>*</sup></label>
                                    <input id="tender_number" name="tender_number"
                                        value="<?php echo e($orderdetails->tender_number); ?>" type="text" class="form-control">
                                </div>
                            </div>
                        </div>

                        <?php if($main_buyer_id == 6): ?>
                            <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-inputs app-vend">
                                    <div class="form-group">
                                        <label>Name & Address of the Consignee(s)<sup>*</sup></label>
                                        <textarea class="form-control" rows="5" id="name_consigee" name="name_consigee"><?php echo e($orderdetails->name_consigee); ?></textarea>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>

                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                          
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Country of Origin<sup>*</sup></label>
                                    <select class="form-control js-example-disabled-results invoiceselect" id="country"
                                        name="country" required>
                                        <option value="">Select</option>
                                        <?php $__currentLoopData = $countrylist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($country->id); ?>"
                                                <?php if($country->id == $orderdetails->country_id) {?>selected<?php  }?>><?php echo e($country->name); ?>

                                            </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                        </div>

                        
                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Terms of Delivery<sup>*</sup></label>
                                    <textarea class="form-control" rows="5" id="terms_delivery" name="terms_delivery"><?php echo e($orderdetails->terms_service); ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Delivery Period<sup>*</sup></label>
                                    <textarea name="editor1" id="editor1" rows="10" cols="80"><?php echo $orderdetails->delivery_period; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Despatch Instructions <sup>*</sup></label>
                                    <textarea name="editor2" id="editor2" rows="10" cols="80"><?php echo $orderdetails->dispatch_instruction; ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Packing & Marking <sup>*</sup></label>
                                    <textarea name="editor3" id="editor3" rows="10" cols="80"><?php echo $orderdetails->packing_making; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Inspection Authority<sup>*</sup></label>
                                    <textarea name="editor4" id="editor4" rows="10" cols="80"><?php echo $orderdetails->inspection_authority; ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Inspecting Officer<sup>*</sup></label>
                                    <textarea name="editor5" id="editor5" rows="10" cols="80"><?php echo $orderdetails->inspecting_officer; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Pre despatch Inspection of goods Located in India <sup>*</sup></label>
                                    <textarea name="editor6" id="editor6" rows="10" cols="80"><?php echo $orderdetails->predespatch_goods; ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Performance Security<sup>*</sup></label>
                                    <textarea name="editor7" id="editor7" rows="10" cols="80"><?php echo $orderdetails->performance_security; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Warranty Terms <sup>*</sup></label>
                                    <textarea name="editor8" id="editor8" rows="10" cols="80"><?php echo $orderdetails->warranty_terms; ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label> Comprehensive Annual Maintenance Contract<sup>*</sup></label>
                                    <textarea name="editor9" id="editor9" rows="10" cols="80"><?php echo $orderdetails->annual_maintanace; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label> Liquidated damages <sup>*</sup></label>
                                    <textarea name="editor10" id="editor10" rows="10" cols="80"><?php echo $orderdetails->liquidated_damage; ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label> Paying Authority<sup>*</sup></label>
                                    <textarea name="editor11" id="editor11" rows="10" cols="80"><?php echo $orderdetails->paying_authority; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Payment Terms <sup>*</sup></label>
                                    <textarea name="editor12" id="editor12" rows="10" cols="80"><?php echo $orderdetails->payment_terms; ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Resolution of disputes <sup>*</sup></label>
                                    <textarea name="editor13" id="editor13" rows="10" cols="80"><?php echo $orderdetails->resolution_disputes; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <div class="form-inputs app-vend f-adj">
                                <div class="form-group">
                                    <label>Other Instructions <sup>*</sup></label>
                                    <textarea name="editor14" id="editor14" rows="10" cols="80"><?php echo $orderdetails->other_instruction; ?></textarea>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row" style="padding-top: 20px;">
                        <div class="col-12">
                            <div class="green-button green-button2 d-flex justify-content-center">
                                <button id="create">Submit</button>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>
        <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
        <script src="https://cdn.ckeditor.com/4.22.1/standard/ckeditor.js"></script>
        <script src="<?php echo e(URL::to('assets/js/buyernew.js')); ?>"></script>
        <script type="text/javascript">

            $(document).ready(function() {



                $("#vendor").on('change', function () {
            if($(this).val()!=''){
                $('label[for=vendor]').hide();
            }
            else{
                $('label[for=vendor]').show();
            }
        });
        $(document).on("change",".product_id",function(){   
            var id =$(this).attr('id');

            if($(this).val()!=''){

                $('label[for='+id+']').hide();
            }
            else{
                $('label[for='+id+']').show();   
            }
        });

        $(document).on("change",".quantity",function(){   
            var id =$(this).attr('id');

           
            if($(this).val()!=''){

                $('label[for='+id+']').hide();
            }
            else{
                $('label[for='+id+']').show();   
            }
        });

        $(document).on("change",".ddays",function(){   
            var id =$(this).attr('id');
            if($(this).val()!=''){

                $('label[for='+id+']').hide();
            }
            else{
                $('label[for='+id+']').show();   
            }
        });





        $(document).on("change",".name_manufa",function(){   
            var id =$(this).attr('id');   
            if($(this).val()!=''){

                $('label[for='+id+']').hide();
            }
            else{
                $('label[for='+id+']').show();   
            }
        });













             
                counter = <?php echo e($counter); ?>;
                for (let j = 1; j < counter; j++) {
                    var product		=$('#product_id'+j).find('option:selected').val();
                    var data = {
                        _token	: $('#token_po').val(),
                        product_id:product
                    }
                    $.ajax({
                        url: baseurl + 'buyers/venproductdetails',
                        type: "POST",
                        data: data,
                        success: function (res) {
                            var obj = jQuery.parseJSON(res);

                            $("#pr_code"+j).val(obj.prdetails[0].product_code);
                            $("#pr_des"+j).val(obj.prdetails[0].product_description);

                        }

                    });	
                }

                var vendor=$("#vendor option:selected").val();
                var data = {
                    _token: $('#token_po').val(),
                    vendor: vendor
                }
                $.ajax({
                    url: baseurl + 'buyers/vendorproductlist',
                    type: "POST",
                    data: data,
                    success: function (res) {
                        var obj = jQuery.parseJSON(res);
                        plist = obj.productlist;
                    }
                });
            });
            
            <?php if(Session::has('message')): ?>
                swal({
                    title: "",
                    text: "<?php echo e(Session::get('message')); ?>",
                    type: "success",
                    showCancelButton: false,
                    dangerMode: false,
                    confirmButtonText: 'OK',

                });
            <?php endif; ?>


            // Replace the <textarea id="editor1"> with a CKEditor
            // instance, using default configuration.
            CKEDITOR.editorConfig = function(config) {
                config.language = 'es';
                config.uiColor = '#F7B42C';
                config.height = 300;
                config.removePlugins = 'about';
               // config.toolbarCanCollapse = true;
            };

            CKEDITOR.on('instanceReady', function(ev) {
                ev.editor.on('change', function() {
                    if (CKEDITOR.plugins.get('updatemsg')) {
                        CKEDITOR.plugins.updatemsg.hide();
                    }
                });
            });
            
            CKEDITOR.replace('editor1');
            CKEDITOR.replace('editor2');

            CKEDITOR.replace('editor3');
            CKEDITOR.replace('editor4');
            CKEDITOR.replace('editor5');
            CKEDITOR.replace('editor6');
            CKEDITOR.replace('editor7');
            CKEDITOR.replace('editor8');
            CKEDITOR.replace('editor9');
            CKEDITOR.replace('editor10');
            CKEDITOR.replace('editor11');
            CKEDITOR.replace('editor12');
            CKEDITOR.replace('editor13');
            CKEDITOR.replace('editor14');
        </script>
    <?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/buyers/edit_purchase.blade.php ENDPATH**/ ?>