@extends('front.layouts.front') @section('css') {{-- --}} @endsection @section('content')
{{-- Begin:: Movie Details --}}
{{ $Title->title }}

{{ $Title->title }}

{{ $Title->ratings }}

{{ $Title->description }}

Created By @if ($Title->type == '1') {{ $Title->directors }} @endif @if ($Title->type == '2') {{ $Title->creaters }} @endif
Starring {{-- @foreach ($Title->casts as $key => $casts) @if ($casts->cast_type == 1) {{ $casts->casts->name }} @if ($key == 3) @break @endif, @endif @endforeach --}} {{ $Title->actors }}
Genre {{-- @php $Genre= ''; @endphp @foreach ($Title->genres as $key => $genres) @php $Genre .= $genres->genres->title.', '; @endphp @endforeach {{ rtrim($Genre,', ') }} --}} {{ $Title->genre }}
MPAA Rating {{ __(App\Models\Title::$mpaa[$Title->mpaa_rating]) }}
@if($Title->url != null)
{{-- Trailer --}} Trailer
@endif {{-- {{dd($Title->video)}} --}} @if(count($Title->video) > 0) @endif
{{-- Images slider --}}
{{-- End:: Movie Details --}} @if ($Title->season) {{-- Begin:: Episode --}}

Episodes

{{-- View All --}}
{{-- End:: Episode --}} {{-- Begin:: Seasons --}}

Seasons

{{-- View All --}}
{{-- End:: Seasons --}} @endif
Details:
    @if ($Title->type == '1')
  • Director: {{-- @foreach ($Title->casts as $key => $casts) @if ($casts->cast_type == 2) {{ $casts->casts->name }} @if ($key == 3) @break @endif, @endif @endforeach --}} {{ $Title->directors }}
  • Producer: {{-- @foreach ($Title->casts as $key => $casts) @if ($casts->cast_type == 3) {{ $casts->casts->name }} @if ($key == 1) @break @endif, @endif @endforeach --}} {{ $Title->producers }}
  • @endif
  • Actors: {{-- @foreach ($Title->casts as $key => $casts) @if ($casts->cast_type == 1) {{ $casts->casts->name }} @if ($key == 3) @break @endif, @endif @endforeach --}} {{ $Title->actors }}
  • @if ($Title->type == '1')
  • Writers: {{-- @foreach ($Title->casts as $key => $casts) @if ($casts->cast_type == 4) {{ $casts->casts->name }} @if ($key == 3) @break @endif, @endif @endforeach --}} {{ $Title->writers }}
  • Release Date: {{ date('d.m.Y', strtotime($Title->release_date)) }}
  • @endif
  • Runtime: {{ floor($Title->running_time / 60) . ' H : ' . ($Title->running_time - floor($Title->running_time / 60) * 60) . ' min' }}
  • Genre: {{-- @php $Genre = ''; @endphp @foreach ($Title->genres as $key => $genres) @php $Genre .= $genres->genres->title."," @endphp @endforeach {{ rtrim($Genre,', ') }} --}} {{ $Title->genre }}
  • @if ($Title->type == '2')
  • Creators: {{-- @foreach ($Title->casts as $key => $casts) @if ($casts->cast_type == 5) {{ $casts->casts->name }}, @endif @endforeach --}} {{ $Title->creaters }}
  • @endif
  • Country: {{ $Title->country }}

Reviews

    @foreach ($Review as $rating)
  • user->profile_photo_path == null) src="{{ url('assets/img/user.svg') }}" @else src="{{ $rating->user->profile_photo_path }}" @endif alt=""> {{ $rating->user->first_name . ' ' . $rating->user->last_name }} {{ date('d.m.Y, H:i', strtotime($rating->created_at)) }}

    {{ $rating->comment }}

    ({{ $rating->ratinglike->count() }})
  • @endforeach
@csrf
@endsection @section('end-content') @include('front.layouts.latest-release') @endsection @section('script') {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endsection