Route::post('watchlist', ['as' => 'storeToWatchlist', 'uses' => 'WatchlistController@store']);
        /**
         * Authentication logout
         */
        Route::get('auth/logout', ['as' => 'getLogout', 'uses' => 'Auth\\AuthController@getLogout']);
    });
});
/*
Route::get('/{locale}', function ($locale) {
    App::setLocale($locale);

    return view('home/index');
});
*/
Route::get('create', function () {
    $auction = new \App\Auction();
    $auction->user_id = 1;
    $auction->category_id = 1;
    $auction->media_id = 1;
    $auction->style_id = 1;
    $auction->color_id = 1;
    $auction->artist_id = 1;
    $auction->year = 1;
    $auction->width = 1;
    $auction->height = 1;
    $auction->depth = 1;
    $auction->image_artwork = 'http://www.fillmurray.com/g/1920/800';
    $auction->image_signature = 'http://www.fillmurray.com/g/1920/700';
    $auction->image_optional = 'http://www.fillmurray.com/g/1920/600';
    $auction->minimum_price = 1;
    $auction->maximum_price = 1;
           @foreach($ogoloshenia as $post)
            <li><a href="{{action('NewsController@getArticle', ['slug' => $post->slug])}}">{{ $post->title }}</a></li>
            @endforeach
        </ul>
    </li>
</ul>


<ul>
    <li><a href="/auctions">Система електронних торгів</a>
        <ul>
           @foreach($categories as $category)
            <li><a href="{{ action('CategoriesController@index', ['id' => $category->id]) }}">{{ $category->name }}</a>
                <ul>
                    <?php 
$auctions = App\Auction::where('category', '=', $category->id)->where('status', '>', 0)->get();
?>
                    @foreach($auctions as $auction)
                        <li><a href="{{action('AuctionsController@getAuctionPageBySlug', ['id' => $auction->id, 'slug' => $auction->slug])}}">{{ $auction->title }}</a></li>
                    @endforeach
                </ul>
            </li>
            @endforeach
        </ul>
    </li>
</ul>

    </div>
</div>

            </div>