<?php $__env->startSection('title', trans('reports.title', array(
    'year'  => $year
))); ?>

<?php $__env->startSection('page_stylesheets'); ?>
    <link href="<?php echo e(asset('assets/libs/morris/morris.css')); ?>" rel="stylesheet"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extra_stylesheets'); ?>
    <style>
        h1.font-light.text-white {
            margin-left:10px;
            margin-right:10px;
        }
    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('action_buttons'); ?>
            <div class="ui right floated segment transparent page-actions">
                <div class="ui labeled icon button primary top m-w-140 right pointing dropdown">
                    <i class="calendar alternate outline icon"></i> 
                    <?php echo e($year); ?>

                    <div class="menu">
                        <div class="header">
                            <?php echo e(trans('reports.dropdown.header')); ?>

                        </div>
                        <div class="divider"></div>
                        <?php if($year != date('Y')): ?>
                        <div class="item">
                            <a href="<?php echo e(action('ReportController@get')); ?>"><?php echo e(date('Y')); ?></a>
                        </div>
                        <?php endif; ?>
                        <?php if($year != (date('Y') - 1)): ?>
                        <div class="item">
                            <a href="<?php echo e(action('ReportController@get', array(
                                'year'  => date('Y') - 1
                            ))); ?>"><?php echo e(date('Y') - 1); ?></a>
                        </div>
                        <?php endif; ?>
                        <?php if($year != (date('Y') - 2)): ?>
                        <div class="item">
                            <a href="<?php echo e(action('ReportController@get', array(
                                'year'  => date('Y') - 2
                            ))); ?>"><?php echo e(date('Y') - 2); ?></a>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_scripts'); ?>
    <script src="<?php echo e(asset('assets/libs/morris/morris.min.js')); ?>" type="text/javascript"></script>
    <script src="<?php echo e(asset('assets/libs/morris/raphael.min.js')); ?>" type="text/javascript"></script>
    <script type="text/javascript">
        (function($insura, $) {
            $(document).ready(function() {
                $insura.helpers.initDropdown('div.dropdown');
                $insura.helpers.initScrollbar('div.scrollbar');
                $insura.helpers.listenForChats();
            });
        })(window.insura, window.jQuery);
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('global.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>