<?php $item_settings = get_item_settings(); ?>
<style type="text/css">
    body{color: #000;}
    <?php if($app_direction == 'rtl'){ ?>
        .reports-menu-item a{ font-size: 20px !important; }
    <?php }else{ ?>
        .reports-menu-item a{ font-size: 15px !important; }
    <?php } ?>
    .col-md-6{padding: 2px !important;}
    .double-items-sets{margin: 0;}
    .reports-menu-head .reports-menu-item > a{width: 95%;}
</style>

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2><?= print_lang($app_lang,'mod_financial_accounts_ledger_breadcrumb'); ?></h2>
        <ol class="breadcrumb">
            <li>
                <a class="url-elem" href="<?php echo url('/dashboard'); ?>"><?= print_lang($app_lang,'home'); ?></a>
            </li>
            <li class="active">
                <strong><?= print_lang($app_lang,'mod_financial_accounts_ledger_breadcrumb'); ?></strong>
            </li>
        </ol>
    </div>
    <div class="col-lg-2">
        
    </div>
</div>


<div class="wrapper wrapper-content animated fadeInUp">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content" style="background: #e2fbe1 !important;">

                    <!-- Statements Section -->
                    <div class="row">

                        <h2 style="border-bottom: 1px dotted;"><?= print_lang($app_lang,'reports_title_statements_title_main'); ?></h2>
                        <?php 
                        foreach($root_accounts as $row){
                            $value = $row['uid'];
                            if(check_user_access($value) === TRUE){
                        ?>
                            <div class="col-md-12" style="width: 100%; margin: 0 5%; border-bottom: 1px dotted; padding: 7px !important;"><a href="<?php echo url('/financial-accounts-ledger-view').'?type='.$row['uid']; ?>" style="color: #000; font-size: 17px; font-weight: 500 !important; font-family: sans-serif !important;"><?= print_lang($app_lang,'reports_title_statements_title_'.$row['uid']); ?></a></div>
                        <?php }} ?>

                        <?php if(check_user_access('all_accounts_statement') === TRUE){ ?>
                            <div class="col-md-12" style="width: 100%; margin: 0 5%; border-bottom: 1px dotted; padding: 7px !important;"><a href="<?php echo url('/reports/accounts').'?type=all_accounts_statement&currency=usd'; ?>" style="color: #000; font-size: 17px; font-weight: 500 !important; font-family: sans-serif !important;"><?= print_lang($app_lang,'reports_title_statements_title_general'); ?></a></div>
                        <?php } ?>

                    </div>
                    <!-- Statements Section -->

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