Ejemplo n.º 1
0
<header id="head">
    <h1><a href="{{ getUrl('/')}}"><img src="{{url('/images/main/logo-top.png')}}" alt="woman x auditor"></a></h1>
    @if(isAgent('sp'))
    <span class="mega-octicon octicon-three-bars sp-menu"></span>
    @endif
</header>

<nav id="navmenu" class="clearfix">
<?php 
$pageMenus = App\Page::where(['closed' => '公開中'])->whereNotIn('url_name', ['', 'about', 'privacy', 'company', 'corporation', 'contact', 'topics', 'blog', 'recruit'])->orderBy('created_at', 'asc')->get();
$irohas = App\Iroha::where(['slug' => 'irohas', 'closed' => '公開中'])->orderBy('created_at', 'asc')->get();
?>
	@if(isAgent('sp'))
    	<ul class="spmain-m">
            <li><a href="{{getUrl('/')}}"><span class="octicon octicon-triangle-right"></span>ホーム</a></li>
            <li><a href="{{getUrl('about')}}"><span class="octicon octicon-triangle-right"></span>woman x auditorとは</a></li>
            <li><a href="{{getUrl('topics')}}"><span class="octicon octicon-triangle-right"></span>トピックス</a></li>
            @if(!$pageMenus->isEmpty())
            
            <li class="dropdown"><a href="{{getUrl('#')}}" class="dd-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="octicon octicon-triangle-down"></span>その他</a>
                <ul class="dropdown-menu" role="menu">
                    @foreach($pageMenus as $pageMenu)
                    <li><a href="{{getUrl($pageMenu->url_name)}}">{{ $pageMenu->sub_title }}</a></li>
                    @endforeach
                </ul>
            </li>
        	@endif

            <li><a href="{{getUrl('contact')}}"><span class="octicon octicon-triangle-right"></span>お問い合わせ</a></li>
            @if(Auth::user())
            <li><a href="{{getUrl('recruit')}}"><span class="octicon octicon-triangle-right"></span>案件一覧</a></li>
Ejemplo n.º 2
0
    --}}
    
    <aside>
        <h3><span class="octicon octicon-tag"></span>監査役について</h3>
        <ul>
        <?php 
$irohas = App\Iroha::where(['slug' => 'irohas', 'closed' => '公開中'])->get();
?>
        
        @foreach($irohas as $iroha)
        	<li><a href="{{getUrl('iroha/'.$iroha->id)}}">{{ $iroha->sub_title }}</a></li>
        @endforeach
        
        <li><a href="{{getUrl('iroha/study')}}">勉強会一覧</a></li>
        </ul>
    </aside>
    
    <aside>
        <h3><span class="octicon octicon-tag"></span>勉強会</h3>
        <ul>
        <?php 
$irohas = App\Iroha::where(['slug' => 'study', 'closed' => '公開中'])->orderBy('created_at', 'desc')->take(5)->get();
?>
        
        @foreach($irohas as $iroha)
        	<li><a href="{{getUrl('iroha/study/'.$iroha->id)}}">{{ $iroha->title }}</a></li>
        @endforeach
        </ul>
    </aside>
</div>