@extends('layouts.app') @section('title', 'Informasi') @section('content')

Informasi

Kelola informasi dan pengumuman

@if(auth()->user()->isAdminOrSuperAdmin()) @endif
@if(auth()->user()->isAdminOrSuperAdmin()) @else
Info Therapist
@endif
@forelse($informations as $info)
@if($info->photos->count() > 0) @php $photoPath = $info->photos->first()->photo_path ?? null; $photoUrl = $photoPath ? (route('media.show', ['path' => ltrim($photoPath, '/')]) . '?v=' . time()) : null; @endphp {{ $info->title }} @else
@endif
{{ ucfirst($info->type) }} {{ $info->created_at->format('d/m/Y') }}

{{ $info->title }}

{{ Str::limit($info->content, 100) }}

@if(auth()->user()->isAdminOrSuperAdmin())
@endif
@empty

Belum ada informasi

@endforelse
@if(auth()->user()->isAdminOrSuperAdmin()) @endif @if(auth()->user()->isAdminOrSuperAdmin()) @endif @push('scripts') @endpush @endsection