diff options
| author | horus | 2026-06-27 07:03:14 +0200 |
|---|---|---|
| committer | horus | 2026-06-27 07:03:14 +0200 |
| commit | a45365d0be7c336f5f7395866b4a86cdd7db1dda (patch) | |
| tree | baf58873cab0cfb2c347be9fdc3fec5709bd9af8 /resources | |
| parent | 7ff83424592cd5a3c58fe2e6d7e67aeef5144caf (diff) | |
| parent | 7d1d61757a39e7f949e65e0d9f8b6555f5010b90 (diff) | |
| download | curious-a45365d0be7c336f5f7395866b4a86cdd7db1dda.tar.gz | |
Merge branch 'master' of git.iamfabulous.de:curious-web
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/views/cinema_show.blade.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/resources/views/cinema_show.blade.php b/resources/views/cinema_show.blade.php index d8ff794..49c5977 100644 --- a/resources/views/cinema_show.blade.php +++ b/resources/views/cinema_show.blade.php @@ -111,9 +111,16 @@ @endif @if ( ! empty($movie->synopsis) ) - <p class="card-text mt-3"> - {{ strip_tags($movie->synopsis) }} - </p> + @php + $paragraphs = preg_split('/\\n\\s*\\n/', strip_tags($movie->synopsis)); + @endphp + @foreach($paragraphs as $i => $para) + @if ( trim($para) !== '' ) + <p class="card-text{{ $i === 0 ? ' mt-3' : '' }}"> + {{ trim($para) }} + </p> + @endif + @endforeach @endif @if ( ! empty($directors) ) |
