<?php
    use App\Http\Helper\ApiHelper;
    use GuzzleHttp\Client;

    $client = new Client([
        'timeout' => 10,
    ]);

    $data = [];

    $responder = $client->post(
        ApiHelper::apiUrl('/organization/partner/' . session('data')['username'] . '/check_add_institution'),
    );

    $responderBody = json_decode($responder->getBody(), true);

    $listmenu = $responderBody['data'];

?>


<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
    <div class="menu_section">
        <h3>Menu</h3>
        <ul class="nav side-menu">
            <li>
                <a href="<?php echo e(route('pages.dashboard')); ?>">
                    <i class="fa fa-home"></i> Dashboard
                </a>
            </li>
            <?php if(session('data')['account_category'] == 'PARTNER'): ?>
                <li>
                    <a>
                        <i class="fa fa-money"></i> Transaksi
                        <span class="fa fa-chevron-down"></span>
                    </a>
                    <ul class="nav child_menu">
                        <li>
                            <a href="<?php echo e(route('pages.transaction.history-payment-partner.index')); ?>"> Riwayat </a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a>
                        <i class="fa fa-money"></i> Responder
                        <span class="fa fa-chevron-down"></span>
                    </a>
                    <ul class="nav child_menu">
                        <li>
                            <a href="<?php echo e(route('pages.responder.akun.index')); ?>"> Akun </a>
                        </li>
                    </ul>
                </li>
            <?php endif; ?>
            <li>
                <a>
                    <i class="fa fa-users"></i> Akun
                    <span class="fa fa-chevron-down"></span>
                </a>
                <ul class="nav child_menu">
                    <?php $__currentLoopData = $listmenu; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li>
                            <?php if($item['menu'] == "KORAMIL" || $item['menu'] == "POLSEK"): ?>
                            <a href="<?php echo e(route('pages.account.partner.lihat-kodim', ['name' => session("data")['sub_category_organization_id']['name'], 'province_id' => session("data")['province_id'], 'regency_id' => session("data")['regency_id']])); ?>">
                                <?php echo e($item['menu']); ?>

                            </a>
                            <?php else: ?>
                            <a href="<?php echo e(route('pages.accounts.partner.index', ['name' => $item['menu']])); ?>">
                                <?php echo e($item['menu']); ?>

                            </a>
                            <?php endif; ?>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </li>
            <li>
                <a>
                    <i class="fa fa-gears"></i> Pengaturan
                    <span class="fa fa-chevron-down"></span>
                </a>
                <ul class="nav child_menu">
                    <li>
                        <a href="<?php echo e(route('pages.account.profil.index')); ?>">Profil Saya</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>

</div>
<?php /**PATH E:\XNS\Deployment\Dashboard-New-Ecommerce\resources\views/pages/layouts/components/sidebar/sidebar-partner.blade.php ENDPATH**/ ?>