diff options
Diffstat (limited to 'resources/views')
| -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) ) |
