diff options
| author | Developer | 2026-06-27 02:47:40 +0200 |
|---|---|---|
| committer | Developer | 2026-06-27 02:47:40 +0200 |
| commit | 34ee983becfa088d0c39c4f0d9b35f038b351a78 (patch) | |
| tree | 25737516a97c596b8b88d2da8dfb0ded5a76a1b6 /resources/views/topicindex.blade.php | |
| download | curious-34ee983becfa088d0c39c4f0d9b35f038b351a78.tar.gz | |
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
Diffstat (limited to 'resources/views/topicindex.blade.php')
| -rw-r--r-- | resources/views/topicindex.blade.php | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/resources/views/topicindex.blade.php b/resources/views/topicindex.blade.php new file mode 100644 index 0000000..67b0de4 --- /dev/null +++ b/resources/views/topicindex.blade.php @@ -0,0 +1,50 @@ +@extends('layouts.app') + +@section('styles') +@include ('layouts.footer-style') +html { + height: inherit; +} +@endsection + +@section ('content') + +<div class="text-center container"> + +<div class="container row text-white text-lg"> + <ul class="list-inline"> + @foreach ($letters as $letter) + <li class="list-inline-item"> + <a href="#{{$letter->name}}" class="text-white">{{$letter->name}}</a> + </li> + @endforeach + </ul> +</div> + +@php ($curLetter = "") +@foreach ($topics->get() as $topic) + @if ( "" != $topic->name ) + @php ( $firstLetter = strtoupper(substr($topic->name, 0, 1)) ) + @if ( $curLetter != $firstLetter ) + <div class="container row"> + <h2 id="{{$firstLetter}}"> + <a class="text-white" href="#{{$firstLetter}}"> + {{ $firstLetter }} + </a> + </h2> + </div> + <hr> + + @php ($curLetter = $firstLetter) + + @endif + <a href="{{ route('topic', $topic->name) }}" class="btn btn-lg btn-outline-primary">{{ ucwords($topic->name) }}</a> + @endif +@endforeach + +</div> +@endsection + +@section ('footer') + @include ('layouts.footer') +@endsection |
