From fa17f4c7668feb0e01fb12317c0bfc0b828186cb Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 27 Jun 2026 03:17:41 +0200 Subject: fix: rename cinema-show.blade.php to cinema_show.blade.php Laravel resolves view names with underscores (cinema_show), not hyphens. --- resources/views/cinema-show.blade.php | 150 ---------------------------------- resources/views/cinema_show.blade.php | 150 ++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+), 150 deletions(-) delete mode 100644 resources/views/cinema-show.blade.php create mode 100644 resources/views/cinema_show.blade.php (limited to 'resources') diff --git a/resources/views/cinema-show.blade.php b/resources/views/cinema-show.blade.php deleted file mode 100644 index 346a1f4..0000000 --- a/resources/views/cinema-show.blade.php +++ /dev/null @@ -1,150 +0,0 @@ -@extends('layouts.app') - -@section('styles') -@include ('layouts.footer-style') - -.poster-detail { - width: 100%; - max-width: 350px; - border-radius: 4px; -} - -.year { - color: #868e96; -} - -.rating { - color: #868e96; - font-size: 0.9rem; -} - -.movie-credits { - columns: 2; - column-gap: 20px; -} - -@media (max-width: 768px) { - .movie-credits { - columns: 1; - } - .poster-detail { - max-width: 200px; - margin: 0 auto; - } -} - -@endsection - -@section('content') -
-
- - @if ( ! is_null($movie) ) -
-

- ← All Movies -

-
-
-
- @if ( ! is_null($movie->poster_url) ) - {{ $movie->primary_title }} poster - @else -
🎬
- @endif -
-
-

- {{ $movie->primary_title }} - @if ( ! is_null($movie->original_title) && $movie->original_title != $movie->primary_title ) - ({{ $movie->original_title }}) - @endif -

-
- @if ( ! is_null($movie->start_year) ) - {{ $movie->start_year }} - @endif - @if ( ! is_null($movie->runtime_minutes) ) - @if ( ! is_null($movie->start_year) ) - · - @endif - {{ $movie->runtime_minutes }} min - @endif - @if ( ! is_null($movie->title_type) ) - @if ( ! is_null($movie->start_year) || ! is_null($movie->runtime_minutes) ) - · - @endif - {{ $movie->title_type }} - @endif -
-
- @if ( ! is_null($movie->average_rating) ) - ⭐ {{ number_format($movie->average_rating, 1) }} - @if ( ! is_null($movie->num_votes) ) - ({{ number_format($movie->num_votes) }} votes) - @endif - @endif -
- - @if ( ! empty($genres) ) -
- @foreach( $genres as $genre ) - {{ $genre }} - @endforeach -
- @endif - - @if ( ! empty($movie->synopsis) ) -

- {{ strip_tags($movie->synopsis) }} -

- @endif - - @if ( ! empty($directors) ) -
-

Directed by

-
- @foreach( $directors as $person ) -
{{ $person->name }}
- @endforeach -
-
- @endif - - @if ( ! empty($actors) ) -
-

Starring

-
- @foreach( $actors as $person ) -
{{ $person->name }}
- @endforeach -
-
- @endif - - @if ( ! is_null($movie->imdb_id) ) - - @endif -
-
-
-
- @else -
-

Movie Not Found

-
-

The requested movie could not be found.

- Back to Movies -
-
- @endif - -
-
-@endsection - -@section('footer') - @include ('layouts.footer') -@endsection diff --git a/resources/views/cinema_show.blade.php b/resources/views/cinema_show.blade.php new file mode 100644 index 0000000..346a1f4 --- /dev/null +++ b/resources/views/cinema_show.blade.php @@ -0,0 +1,150 @@ +@extends('layouts.app') + +@section('styles') +@include ('layouts.footer-style') + +.poster-detail { + width: 100%; + max-width: 350px; + border-radius: 4px; +} + +.year { + color: #868e96; +} + +.rating { + color: #868e96; + font-size: 0.9rem; +} + +.movie-credits { + columns: 2; + column-gap: 20px; +} + +@media (max-width: 768px) { + .movie-credits { + columns: 1; + } + .poster-detail { + max-width: 200px; + margin: 0 auto; + } +} + +@endsection + +@section('content') +
+
+ + @if ( ! is_null($movie) ) +
+

+ ← All Movies +

+
+
+
+ @if ( ! is_null($movie->poster_url) ) + {{ $movie->primary_title }} poster + @else +
🎬
+ @endif +
+
+

+ {{ $movie->primary_title }} + @if ( ! is_null($movie->original_title) && $movie->original_title != $movie->primary_title ) + ({{ $movie->original_title }}) + @endif +

+
+ @if ( ! is_null($movie->start_year) ) + {{ $movie->start_year }} + @endif + @if ( ! is_null($movie->runtime_minutes) ) + @if ( ! is_null($movie->start_year) ) + · + @endif + {{ $movie->runtime_minutes }} min + @endif + @if ( ! is_null($movie->title_type) ) + @if ( ! is_null($movie->start_year) || ! is_null($movie->runtime_minutes) ) + · + @endif + {{ $movie->title_type }} + @endif +
+
+ @if ( ! is_null($movie->average_rating) ) + ⭐ {{ number_format($movie->average_rating, 1) }} + @if ( ! is_null($movie->num_votes) ) + ({{ number_format($movie->num_votes) }} votes) + @endif + @endif +
+ + @if ( ! empty($genres) ) +
+ @foreach( $genres as $genre ) + {{ $genre }} + @endforeach +
+ @endif + + @if ( ! empty($movie->synopsis) ) +

+ {{ strip_tags($movie->synopsis) }} +

+ @endif + + @if ( ! empty($directors) ) +
+

Directed by

+
+ @foreach( $directors as $person ) +
{{ $person->name }}
+ @endforeach +
+
+ @endif + + @if ( ! empty($actors) ) +
+

Starring

+
+ @foreach( $actors as $person ) +
{{ $person->name }}
+ @endforeach +
+
+ @endif + + @if ( ! is_null($movie->imdb_id) ) + + @endif +
+
+
+
+ @else +
+

Movie Not Found

+
+

The requested movie could not be found.

+ Back to Movies +
+
+ @endif + +
+
+@endsection + +@section('footer') + @include ('layouts.footer') +@endsection -- cgit v1.2.3