@extends('layouts.app') @section('content')
@include('partials.header') @include('partials.sidebar')

View Welcome Greeting

@if (session('success')) @endif @if (session('error')) @endif

Welcome Greeting Details

Welcome Greeting Content {{ $welcomeGreeting->is_active ? 'Active' : 'Inactive' }}
{!! $welcomeGreeting->content !!}
@if ($welcomeGreeting->hasImage())
Welcome Image
@if ($welcomeGreeting->imageExists()) {{ $welcomeGreeting->alt_text }}

Image Title: {{ $welcomeGreeting->title }}

@if ($welcomeGreeting->alt_text)

Alt Text: {{ $welcomeGreeting->alt_text }}

@endif

File Size: {{ $welcomeGreeting->human_file_size }}

@else
Image File Not Found

The image file could not be located on the server.

@endif
@endif
Assignment Information
@if ($summary['general'])
General Assignment

This greeting is assigned to ALL rooms.

@endif @if ($summary['personal_rooms']->count() > 0)
Personal Assignment

Assigned to {{ $summary['personal_rooms']->count() }} specific room(s):

@foreach ($summary['personal_rooms'] as $room) {{ $room->room }} @endforeach
@endif @if (!$summary['general'] && $summary['personal_rooms']->count() == 0)
No Assignment

This greeting is not currently assigned to any rooms.

@endif
Basic Information
Title: {{ $welcomeGreeting->title }}
Status: @if ($welcomeGreeting->is_active) Active @else Inactive @endif
Created: {{ $welcomeGreeting->created_at->format('M d, Y \a\t H:i') }}
Last Updated: {{ $welcomeGreeting->updated_at->format('M d, Y \a\t H:i') }}
Actions
@if (!$summary['general']) @endif Edit Greeting Back to List
@if ($welcomeGreeting->hasImage())
Technical Details
Original Filename: {{ $welcomeGreeting->original_filename }}
MIME Type: {{ $welcomeGreeting->mime_type }}
Storage Path: {{ $welcomeGreeting->image_path }}
Image URL: View URL
@endif
@endsection