From 5a8c47e29afdbb61c32c1e03162abb1bb871ee9e Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 2 Apr 2020 21:52:04 +0200 Subject: Initial commit. --- resources/views/list.blade.php | 126 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 resources/views/list.blade.php (limited to 'resources/views/list.blade.php') diff --git a/resources/views/list.blade.php b/resources/views/list.blade.php new file mode 100644 index 0000000..82d53e5 --- /dev/null +++ b/resources/views/list.blade.php @@ -0,0 +1,126 @@ +@extends('layouts.app') + +@section('styles') +@if ( 0 != $count ) +html { + height: inherit; +} +.hn { + display: inline-block; + font-size: inherit; + height: 1em; + overflow: visible; + vertical-align: -.125em; + fill: #ff6600; +} +@endif +@endsection + +@section('content') +
+ +
+
+ @if ( "search" == Request::route()->getName() ) +

+ Search for "{{ Request::input("q") }}" + @if ( "1" != $articles->currentPage() ) + (Page {{ $articles->currentPage() }}) + @endif +

+
+

+ You searched for "{{ Request::input("q") }}". We found {{ $count }} matches. +

+ @include("search") +
+ @elseif ( "topic" == Request::route()->getName() ) +

+ Topic: {{ Request::route()->parameters()["topic"] }} + @if ( "1" != $articles->currentPage() ) + (Page {{ $articles->currentPage() }}) + @endif +

+
+

+ You are looking at all articles with the topic "{{ Request::route()->parameters()["topic"] }}". We found {{ $count }} matches. +

+
+ @elseif ( "random" == Request::route()->getName() ) +

+ {{ ucwords(Request::route()->getName()) }} Articles + @if ( "1" != $articles->currentPage() ) + (Page {{ $articles->currentPage() }}) + @endif +

+
+

+ Have a deep view into what people are curious about. +

+
+ @else +

+ Most {{ ucwords(Request::route()->getName()) }} Articles + @if ( "1" != $articles->currentPage() ) + (Page {{ $articles->currentPage() }}) + @endif +

+ + @endif +
+
+ + @foreach( $articles->all() as $article) +
+

+ + {{ $article->title }} + +

+
+ @if ( ! is_null($article->getCategories()) ) + @foreach ( $article->getCategories()->get() as $cat ) + + {{ $cat->name }} + + @endforeach + @endif +

+ {!! $article->excerpt_html !!} +

+ + + @if ( 0 != $article->comments ) +
+
+

Discussed on

+ +
+
+ @endif +
+
+ +
+ @endforeach + + {{ $articles->links() }} + +
+@endsection -- cgit v1.2.3