<?php $__env->startSection('title', 'Company Balance Sheet'); ?>


<?php $__env->startSection('internal-js'); ?>
    <script>
        $(document).ready(function () {
            var target_url = '/load-company-balance-sheet';
            $.ajax({
                type: 'GET',
                url: target_url,
                success: function (res) {
                    $('#load-balance-sheet').html(res);
                }
            });

            /**When Data is Supplied:- Run as Below**/
            $('#submit-search').click(function (){
                $('#load-balance-sheet').html('<div style="text-align: center; margin: 20px 0 20px 0;"><img src="<?php echo e(asset('images/loads/loader.gif')); ?>" border=0></div>');
                let date = $('#as-of-selector').val();

                var target_url = '/load-company-balance-sheet/'+date;
                $.ajax({
                    type: 'GET',
                    url: target_url,
                    success: function (res) {
                        $('#load-balance-sheet').html(res);
                    }
                });
            });
        });

        function viewLedgerReport(id, dateFrom, dateTo){
            var url_link = '/view-ledger-balance-sheet/'+id+'/'+dateFrom+'/'+dateTo;

            $('#edit_dialog_content').html('<div style="text-align: center; margin: 20px 0 20px 0;"><img src="<?php echo e(asset('images/loads/loader.gif')); ?>" border=0></div>')
                .load(encodeURI(url_link))
                .dialog({
                    modal: true,
                    width: 800,
                    title: "View Balance Sheet for the Selected Ledger",
                    open: function() {
                        $(this).parent().css({'top': 50});
                    }
                });
        }
    </script>
<?php $__env->stopSection(); ?>


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

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


<?php $__env->startSection('headers'); ?>
    <?php echo $__env->make('headers.finance-header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('heading', 'Company Balance Sheet'); ?>


<?php $__env->startSection('content'); ?>
    <div class="guestDetails_input">
        <div class="guestDetails_Label">
            <b>Balance Sheet As Of: </b> <?php echo Form::date('date', date('Y-m-d'), ['class'=>'input-text-height', 'id'=>'as-of-selector']); ?>

        </div>
    </div>
    <div class="guestDetails_input">
        <div class="guestDetails_input">
            <button type="button" id="submit-search" style="width: auto; height: 24px; cursor: pointer"
                    title="Generate Balance Sheet"><i class="fa fa-search" aria-hidden="true"></i></button>
        </div>
    </div>
    <div class="guestDetails_inputDivider"></div>
    <div class="inputDivider">
        <div class="fields">
            <h3 class="error"></h3>
            <div style="text-align: center;font-size: 18px"><b id="balance-sheet-information"></b></div>
            <div id="load-balance-sheet" style="text-align: center; margin: 20px 0 20px 0;"><img src="<?php echo e(asset('images/loads/loader.gif')); ?>" border=0></div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('modal_heading'); ?>
    <h1>Company Balance Sheet</h1>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('modal_title'); ?>
    <h3><u>Dashboard Functionalities</u></h3>
    <b>
        <ol>
            <li>View Company Balance Sheet</li>
            <li>Filter Report for specific Periods </li>
            <li>Export Report in Excel</li>
        </ol>
    </b>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\finewood\resources\views/audits/company-balance-sheet.blade.php ENDPATH**/ ?>