@extends('layouts.site') @section('content') @php $fullTitle = $production->translate('title'); $titlePart = $fullTitle; $stylePart = ''; if (preg_match('/^(.*?)\s*\((.*?)\)\s*$/u', $fullTitle, $matches)) { $titlePart = trim($matches[1]); $stylePart = trim($matches[2]); } $contentHtml = $production->translate('content'); $isYoutubeFormat = false; if (stripos($contentHtml, 'Provided to YouTube') !== false || stripos($contentHtml, 'Auto-generated by YouTube') !== false) { $isYoutubeFormat = true; } $trackNameParsed = null; $styleParsed = null; $distributor = null; $contributors = []; $label = null; $releasedOn = null; $remainingLines = []; if ($isYoutubeFormat) { $rawText = strip_tags(str_replace(['
', '
', '{{ $stylePart ?: $styleParsed }}
@endif @if($production->production_date){{ $production->production_date->format('d.m.Y') }}
@endif