From 094c29c0830a1b1b89938ad7b3e4f55ccab8c3e3 Mon Sep 17 00:00:00 2001 From: Constantin Plaiasu Date: Sun, 25 Aug 2024 02:39:05 +0300 Subject: [PATCH] add movie page backgrond image --- resources/views/movie.blade.php | 284 +++++++++++++++++--------------- 1 file changed, 155 insertions(+), 129 deletions(-) diff --git a/resources/views/movie.blade.php b/resources/views/movie.blade.php index fca2c5f..a990f6e 100644 --- a/resources/views/movie.blade.php +++ b/resources/views/movie.blade.php @@ -7,6 +7,29 @@ @section('head') @endsection @@ -14,133 +37,139 @@ {{-- {!! getMovieMarkupData($movie) !!} --}} {{-- @endsection --}} @section('app') -
+
+ + @if(isset($movie['backdrop']) && $movie['backdrop'] !== '') + + @endif + {{ str($movie['title'])->apa() }} ({{ $movie['year'] }}) +
-
-
-

{{ str($movie['title'])->apa() }}

-

"{{ $movie['tagline'] }}"

- +
+
+

{{ str($movie['title'])->apa() }}

+ @if($movie['tagline']) +

"{{ $movie['tagline'] }}"

+ @endif + +
-
-
-
-
-
- {{--
- - @if(isset($movie['backdrop']) && $movie['backdrop'] !== '') - - @endif - {{ str($movie['title'])->apa() }} ({{ $movie['year'] }}) - -
--}} -
-
-
-

Watch {{ str($movie['title'])->apa() }}

+
+
+
+
+
+
+
+

Watch {{ str($movie['title'])->apa() }}

- Type : Movie + Type : Movie Category: {{ $movie['genres'][0]['name'] }} - -
-
-
- - - - {{$movie['vote_average']}} - - - - {{$movie['vote_count']}} views - - - -
+
+
-
    -
  • Share :
  • + + + {{$movie['vote_average']}} + - @if (isset($movie['share']) && is_array($movie['share'])) + + + {{$movie['vote_count']}} views + + + + +
+ +
    +
  • Share :
  • + + @if (isset($movie['share']) && is_array($movie['share'])) @foreach ($movie['share'] as $share)
  • @endforeach - @endif -
+ @endif + +
-
- -
-
-
-
-
-
-
-
-

Details

-

{{ $movie['overview'] }}

-
  • - Genres:  - - @foreach($movie['genres'] as $genre) - {{ $genre['name'] }}@if(!$loop->last), @endif - @endforeach - -
  • -
  • - Language:  - - @foreach($movie['languages'] as $language) - {{ $language }}@if(!$loop->last), @endif - @endforeach - -
  • -
    -
    -

    Cast & Crew

    -
      -
    • - Cast: - - @foreach($movie['cast'] as $actor) - {{ $actor['name'] }}@if(!$loop->last), @endif - @endforeach -
    • -
    • - Director: - - @foreach($movie['crew']['directors'] as $actor) - {{ $actor['name'] }}@if(!$loop->last), @endif - @endforeach - -
    • - @unless (empty($movie['crew']['producers'])) -
    • - Producer: - - @foreach($movie['crew']['producers'] as $actor) - {{ $actor['name'] }}@if(!$loop->last), @endif - @endforeach -
    • - @endunless - - -
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Details

    +

    {{ $movie['overview'] }}

    +
      + +
    • + Genres:  + + @foreach($movie['genres'] as $genre) + {{ $genre['name'] }}@if(!$loop->last), @endif + @endforeach + +
    • +
    • + Language:  + + @foreach($movie['languages'] as $language) + {{ $language }}@if(!$loop->last), @endif + @endforeach + +
    • +
    +
    +
    +

    Cast & Crew

    +
      +
    • + Cast: + + @foreach($movie['cast'] as $actor) + {{ $actor['name'] }}@if(!$loop->last), @endif + @endforeach +
    • +
    • + Director: + + @foreach($movie['crew']['directors'] as $actor) + {{ $actor['name'] }}@if(!$loop->last), @endif + @endforeach + +
    • + @unless (empty($movie['crew']['producers'])) + +
    • + Producer: + + @foreach($movie['crew']['producers'] as $actor) + {{ $actor['name'] }}@if(!$loop->last), @endif + @endforeach +
    • + @endunless + + +
    +
    +
    +
    @@ -149,29 +178,26 @@
    -
    -
    -
    -
    -
    -
    -
    -
    -

    Similar Titles

    +
    +
    +
    +
    +
    +

    Similar Titles

    +
    +
    +
    +
    + @foreach ($movie['similar'] as $item) + @include('components.title_card', ['data_text' => ucfirst($item['type'])]) + @endforeach +
    -
    -
    -
    - @foreach ($movie['similar'] as $item) - @include('components.title_card', ['data_text' => ucfirst($item['type'])]) - @endforeach -
    -
    -
    +
    -@endsection -@section('footer') + @endsection + @section('footer') -@endsection + @endsection