<aside class="aside">
    <nav class="sidebar">

        <ul class="nav">
            <li>
                <a href="#" title="{{ __('s.profiles') }}" data-toggle="collapse-next" class="has-submenu">
                    <em class="fa fa-share-alt"></em>
                    <span class="item-text">{{ __('s.profiles') }}</span>
                </a>

                <ul class="nav collapse">
                    <li class="active">
                        <a href="{{ URL::to('/') }}/profile/create" title="{{__('s.create_profile')}}" data-toggle=""
                           class="no-submenu">
                            <span class="item-text">{{__('s.create_profile')}}</span>
                        </a>
                    </li>
                    <li>
                        <a href="{{ URL::to('/') }}/profiles" title="{{__('s.view_profiles')}}" data-toggle=""
                           class="no-submenu">
                            <span class="item-text">{{__('s.view_profiles')}}</span>
                        </a>
                    </li>

                </ul>
            </li>
            <li>
                <a href="#" title="{{ __('s.tasks') }}" data-toggle="collapse-next" class="has-submenu">
                    <em class="fa fa-share-alt"></em>
                    <span class="item-text">{{ __('s.tasks') }}</span>
                </a>

                <ul class="nav collapse">
                    <li class="active">
                        <a href="{{ URL::to('/') }}/task/create-selector" title="{{__('s.create_task')}}" data-toggle=""
                           class="no-submenu">
                            <span class="item-text">{{__('s.create_task')}}</span>
                        </a>
                    </li>
                    @role('supervisor')
                    <li>
                        <a href="{{ URL::to('/') }}/tasks" title="{{__('s.view_tasks')}}" data-toggle=""
                           class="no-submenu">
                            <span class="item-text">Panel de Tareas</span>
                        </a>
                    </li>

                    @endrole
                    @role('teamleader')
                    <li>
                        <a href="{{ URL::to('/') }}/tasks" title="{{__('s.view_tasks')}}" data-toggle=""
                           class="no-submenu">
                            <span class="item-text">Panel de Tareas</span>
                        </a>
                    </li>

                    @endrole

                    @role('teammember')
                    <li>
                        <a href="{{ URL::to('/') }}/mytasks" title="{{__('s.view_tasks')}}" data-toggle=""
                           class="no-submenu">
                            <span class="item-text">Mis Tareas</span>
                        </a>
                    </li>

                    @endrole

                    <li>
                        <a href="{{ URL::to('/') }}/home" title="{{__('s.view_tasks')}}" data-toggle=""
                           class="no-submenu">
                            <span class="item-text">Tareas creadas</span>
                        </a>
                    </li>

                </ul>
            </li>
            @if($is_admin)

                <li>
                    <a href="#" title="{{__('s.unit')}}" data-toggle="collapse-next" class="has-submenu">
                        <em class="fa fa-share-alt"></em>
                        <span class="item-text">{{__('s.unit')}}</span>
                    </a>

                    <ul class="nav collapse">
                        <li class="active">
                            <a href="{{ URL::to('/') }}/admin/unit/create" title="Default" data-toggle=""
                               class="no-submenu">
                                <span class="item-text">{{__('s.add_unit')}}</span>
                            </a>
                        </li>
                    </ul>
                    <ul class="nav collapse">
                        <li class="active">
                            <a href="{{ URL::to('/') }}/admin/unit" title="Default" data-toggle="" class="no-submenu">
                                <span class="item-text">{{__('s.view_units')}}</span>
                            </a>
                        </li>
                    </ul>

                </li>

                <li>
                    <a href="#" title="{{__('s.pipelines')}}" data-toggle="collapse-next" class="has-submenu">
                        <em class="fa fa-share-alt"></em>
                        <span class="item-text">{{__('s.pipelines')}}</span>
                    </a>

                    <ul class="nav collapse">
                        <li class="active">
                            <a href="{{ URL::to('/') }}/admin/pipeline" title="Default" data-toggle=""
                               class="no-submenu">
                                <span class="item-text">{{__('s.view_pipelines')}}</span>
                            </a>
                        </li>
                    </ul>
                    <ul class="nav collapse">
                        <li class="active">
                            <a href="{{ URL::to('/') }}/admin/pipeline/create" title="Default" data-toggle=""
                               class="no-submenu">
                                <span class="item-text">{{__('s.add_pipeline')}}</span>
                            </a>
                        </li>
                    </ul>
                </li>
            @endif
        </ul>
    </nav>
</aside>