diff --git a/resources/views/front/music-productions/show.blade.php b/resources/views/front/music-productions/show.blade.php index fbff45b..36c2651 100644 --- a/resources/views/front/music-productions/show.blade.php +++ b/resources/views/front/music-productions/show.blade.php @@ -29,11 +29,55 @@
- {{-- Cover Image --}} + @php + $videoId = null; + if ($production->youtube_video_id) { + $videoId = $production->youtube_video_id; + } elseif ($production->youtube_url) { + if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $production->youtube_url, $match)) { + $videoId = $match[1]; + } + } + @endphp + + {{-- CD Jewel Case 3D Mockup --}} @if($production->cover_image_url) -
- {{ $production->translate('title') }} -
+
+
+
+ {{-- Left Spine (Plastic Hinge) --}} +
+ {{-- Cover Graphic --}} +
+ {{-- Glass shine reflection --}} +
+ {{-- Play Button Overlay --}} + @if($videoId) +
+
+ +
+
+ @endif +
+
+
+
+ @endif + + {{-- YouTube Lightbox Modal --}} + @if($videoId) +
+ + +
@endif {{-- Content & Meta --}} @@ -49,7 +93,7 @@
{{-- Sidebar - Date & Client --}} -
+
- + {{ __('music_productions.back_to_list') }} @@ -134,6 +188,154 @@ @push('styles') @endpush + +@push('scripts') + +@endpush @endsection