<?php $__env->startSection('headCss'); ?>
    <link href="<?php echo e(asset('assets/stylesheets/jquery.bootstrap-touchspin.css')); ?>" rel="stylesheet"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('headJs'); ?>
    <script src="<?php echo e(asset('assets/javascripts/bootstrap3-typeahead.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/javascripts/jquery.bootstrap-touchspin.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('navBar'); ?>
    <?php echo $__env->make('layouts.navBar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('mainMenu'); ?>
    <?php echo $__env->make('layouts.mainMenu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div id="demo-settings" class="col-xs-12">
        <a id="demo-settings-toggler" class="fa fa-pencil"></a>
        <h5 class="header">Quotation <span id="quotationProfileId"></span></h5>

        <div class="row" id="editPanel">
        </div>
    </div>

    <div id="quotationContentPage">

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

<?php $__env->startSection('footerJs'); ?>
    <script type="text/javascript">

        var generateQuotationContentPage = function () {
            var generateQuotationContentPageUrl = '<?php echo e(URL::action("QuotationController@generateQuotationContentPage")); ?>';
            $.post(generateQuotationContentPageUrl, {
                _token: '<?php echo e(csrf_token()); ?>'
            }).done(function (data) {
                $('#quotationContentPage').html(data);
            }).fail(function (data) {
                new PNotify({
                    title: 'Reading Failed!',
                    text: '',
                    type: 'error',
                    icon: 'fa fa-times'
                });
            });
        };
        generateQuotationContentPage();

        <?php if(Auth::user()->hasRole(['Aims'])): ?>
        $("#aimsServiceProviderSelector").selectize({
            onChange: function (value) {
                switchClientServiceProvider(generateQuotationContentPage);
            }
        });
        $("#aimsClientSelector").selectize({
            onChange: function (value) {
                switchClientServiceProvider(generateQuotationContentPage);
            }
        });
        <?php endif; ?>
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>