{{-- @extends('layouts.app') --}} @php use Illuminate\Support\Str; @endphp
@include('includes.sp_spinner') {{-- @include('includes.sidebar') --}} {{-- @if (!Auth::guest() && !Request::is('pricing')) @component('includes.sidebar') @endComponent @else @endif --}} {{-- @include('includes.sidebar') @include('includes.navbar') --}} @include('includes.sp_dialogue_overlay') @include('includes.sp_error_dialogue') @include('includes.sp_success_dialogue')
@include('includes.navbar') {{-- @section('content') --}}

Stories for {{ $hospital->name }}

@if ($stories->isEmpty()) @else
@foreach ($stories as $story)
@if (!empty($story->imagePath)) Story Image @endif
@php // Limit the story text to 150 characters for excerpt $excerpt = Str::limit(strip_tags($story->storyText), 150, '...'); @endphp

{{ $excerpt }}

@if (strlen(strip_tags($story->storyText)) > 150)

{{ strip_tags($story->storyText) }}

@endif Posted on {{ $story->created_at->format('d M Y') }}
@endforeach
@endif ← Back
{{-- Optional JS for Read More toggle --}} @foreach ($stories as $story) @endforeach {{-- @endsection --}} @include('includes.footer')