vmbsw

mail@pastecode.io avatar
unknown
html
a month ago
11 kB
2
Indexable
Never
<div class="col-md-3 left_col">
    <div class="left_col scroll-view">
        <div class="navbar nav_title" style="border: 0;">
            <a href="{{ url('/') }}" class="site_title"><img id="dynamic-logo" class="img-responsive"/></a>
        </div>

        <div class="clearfix"></div>
        <br>

        <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            <div class="menu_section">
                <h3>General</h3>
                <ul class="nav side-menu">
                    <li><a href="{{ url('/') }}"><i class="fa fa-home"></i> Dashboard</a></li>
                    @if($date_transaction->user->is_admin != "1")
                        <li><a href="{{ url('/profile') }}"><i class="fa fa-user" aria-hidden="true"></i> Profile</a>
                        </li>
                    @endif
                    @if($date_transaction->merchant->is_parent == "1")
                        <li><a><i class="fa fa-user-secret"></i> Operator <span class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                @if($date_transaction->merchant->id == "1")
                                    <li><a>Operator Data<span class="fa fa-chevron-down"></span></a>
                                        <ul class="nav child_menu">
                                            <li><a href="{{ url('/operator/list') }}">Operator List</a></li>
                                            @if($date_transaction->user->is_admin == "1")
                                                <li><a href="{{ url('/operator/new') }}">New Operator</a></li>
                                            @endif
                                        </ul>
                                    </li>
                                @else
                                    <li><a href="{{ url('/operator/detail/'.$date_transaction->merchant->id) }}">
                                            Operator Data</a></li>
                                @endif
                                <li><a>Operator User<span class="fa fa-chevron-down"></span></a>
                                    <ul class="nav child_menu">
                                        <li><a href="{{ url('/operator/user/list') }}">User List</a></li>
                                        @if($date_transaction->user->is_admin == "1")
                                            <li><a href="{{ url('/operator/user/new') }}">New User</a></li>
                                        @endif
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    @endif
                    @if($date_transaction->user->is_admin == "1" && $date_transaction->merchant->is_parent == "1")
                        <li><a><i class="fa fa-users"></i> Merchant <span class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                @if($date_transaction->merchant->is_parent == "1")
                                    <li><a>Merchant Data<span class="fa fa-chevron-down"></span></a>
                                        <ul class="nav child_menu">
                                            <li><a href="{{ url('/merchant/list') }}">Merchant List</a></li>
                                            @if($date_transaction->user->is_admin == "1" && $date_transaction->merchant->id == "1")
                                                <li><a href="{{ url('/merchant/new') }}">New Merchant</a></li>
                                            @endif
                                        </ul>
                                    </li>
                                @else
                                    <li><a href="{{ url('/merchant/detail/'.$date_transaction->merchant->id) }}">
                                            Merchant Data</a></li>
                                @endif
                                <li><a>Merchant User<span class="fa fa-chevron-down"></span></a>
                                    <ul class="nav child_menu">
                                        <li><a href="{{ url('/merchant/user/list') }}">User List</a></li>
                                        @if($date_transaction->user->is_admin == "1")
                                            <li><a href="{{ url('/merchant/user/new') }}">New User</a></li>
                                        @endif
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    @elseif($date_transaction->merchant->is_parent == "0")
                        <li><a><i class="fa fa-users"></i> Merchant <span class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                @if($date_transaction->merchant->is_parent == "1")
                                    <li><a>Merchant Data<span class="fa fa-chevron-down"></span></a>
                                        <ul class="nav child_menu">
                                            <li><a href="{{ url('/merchant/list') }}">Merchant List</a></li>
                                            @if($date_transaction->user->is_admin == "1" && $date_transaction->merchant->id == "1")
                                                <li><a href="{{ url('/merchant/new') }}">New Merchant</a></li>
                                            @endif
                                        </ul>
                                    </li>
                                @else
                                    <li><a href="{{ url('/merchant/detail/'.$date_transaction->merchant->id) }}">
                                            Merchant Data</a></li>
                                @endif
                                <li><a>Merchant User<span class="fa fa-chevron-down"></span></a>
                                    <ul class="nav child_menu">
                                        <li><a href="{{ url('/merchant/user/list') }}">User List</a></li>
                                        @if($date_transaction->user->is_admin == "1")
                                            <li><a href="{{ url('/merchant/user/new') }}">New User</a></li>
                                        @endif
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    @endif
                    <li><a href="#"><i class="fa fa-file"></i> Transaction <span class="fa fa-chevron-down"></span></a>
                        
                        <ul class="nav child_menu">
                            @for($i=($date_transaction->range_date->max_date ?? date('Y')); $i>=$date_transaction->range_date->min_date; $i--)
                                <li>
                                    <a>{{$i}}<span class="fa fa-chevron-down"></span></a>
                                    <ul class="nav child_menu">
                                        @for($j=1; $j<=12; $j++)
                                            <li>
                                                <a href="{{ url('/transaction/list/'.date('Y-m', mktime(0, 0, 0, $j, 1, $i))) }}">{{date('F', mktime(0, 0, 0, $j, 1, $i))}}</a>
                                            </li>
                                        @endfor
                                    </ul>
                                </li>
                            @endfor
                        </ul>
                    </li>
                    <li><a><i class="fa fa-file "></i>File Transaction <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li><a href="{{ url('/filetransaction/list') }}">List All File</a></li>
                            <li><a href="{{ url('/filetransaction/new') }}">New File</a></li>
                        </ul>
                    </li>
                   
                    @if($date_transaction->user->is_admin == "1")
                        <li><a><i class="fa fa-cog"></i> Administrator <span class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                @if($date_transaction->merchant->id == "1")
                                    <li><a href="{{ url('/administrator/virtual_account') }}">Virtual Account</a></li>
                                @endif
                                <li><a href="{{ url('/administrator/log') }}">Log</a></li>
                            </ul>
                        </li>
                    @endif

                    <li><a><i class="fa fa-file"></i></i>Report<span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li><a href="{{ url('/report/transaction') }}">Transaction</a></li>
                        </ul>
                    </li>
                    @if($date_transaction->merchant->id == "1")
                        <li><a><i class="fa fa-book"></i> User Manual <span class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                @if($date_transaction->user->is_admin == "1")
                                    <li><a href="{{ url('/usermanual') }}">Upload</a></li>
                                @endif
                                <li><a href="{{ url('/downloadUM') }}">Download</a></li>
                            </ul>
                        </li>
                    @else
                        <li><a href="{{ url('/downloadUM') }}"><i class="fa fa-download" aria-hidden="true"></i>
                                Download User Manual</a></li>
                    @endif
                    
                    <li><a href="{{ url('/logout') }}"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="top_nav">
    <div class="nav_menu">
        <nav>
            <div class="nav toggle" style="padding-bottom:16px;">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
            </div>
            <div style="padding-top:10px;"><a class="btn btn-primary" onclick="GoBackWithRefresh()"><i
                            class="fa fa-chevron-left" aria-hidden="true"></i> Back</a></div>
        </nav>
    </div>
</div>

<script>
    function GoBackWithRefresh(event) {
        if ('referrer' in document) {
            window.location = document.referrer;
            /* OR */
            //location.replace(document.referrer);
        } else {
            window.history.back();
        }
    }
</script>
<script src="{{asset('js/custom/logo_loader.js')}}"></script>
Leave a Comment