From 34ee983becfa088d0c39c4f0d9b35f038b351a78 Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 27 Jun 2026 02:47:40 +0200 Subject: feat: add cinema module for browsing movies from hncrawler DB - Add 'cinema' database connection (hncrawler DB) to config/database.php - Create CinemaController with cinema(), show(), search() methods - Add /cinema, /cinema/movie/{imdb_id}, /cinema/search routes - Create cinema.blade.php (grid listing with posters, ratings, pagination) - Create cinema-show.blade.php (detail page with cast, genres, synopsis) - Add Cinema link to navbar - Update page title logic for cinema routes --- resources/views/list.blade.php | 177 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 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..5878aa9 --- /dev/null +++ b/resources/views/list.blade.php @@ -0,0 +1,177 @@ +@extends('layouts.app') + +@section('styles') + +@include ('layouts.footer-style') + +@if ( 0 != $count ) + html { + height: inherit; + } + .hn { + display: inline-block; + font-size: inherit; + height: 1em; + overflow: visible; + vertical-align: -.125em; + fill: #ff6600; + } + + .rss-link > svg { + display: inline-block; + font-size: inherit; + height: 1em; + overflow: visible; + vertical-align: -.125em; + fill: #f59436; + } +@endif + +.permalink:hover { + text-decoration: none; +} + +@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. +
+
+ Hint: + To view all topics, click here. Too see the most popular topics, click here instead. +

+
+ @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. +

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

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

+ @if ( "popular" == Request::route()->getName() ) +
+

+ Hint: + You are looking at the most popular articles. If you are interested in popular topics instead, click here. +

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

+ To stay up to date you can also follow on {!! file_get_contents(public_path() . "/img/mastodon.svg") !!} Mastodon. +

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

+ + 🔗 {{ $article->title }} + +@if ( "show" != Request::route()->getName() ) +
+ +
+@endif +

+
+ @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->appends(Request::input())->links() }} + +
+@endsection + +@section ('footer') + @include ('layouts.footer') +@endsection -- cgit v1.2.3