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

Edit Welcome Greeting

Edit Details Welcome Greeting

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
For accessibility. If blank, the title will be used.
@if ($welcomeGreeting->hasImage())
{{ $welcomeGreeting->alt_text }}
@endif
@if ($summary['general'])
General Assignment

Applied to all rooms.

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

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

@foreach ($summary['personal_rooms'] as $room) {{ $room->room }} @endforeach
@else
No Assignment

Not assigned to any rooms.

@endif
@php $hasSchedule = $isPersonal || (!empty($welcomeGreeting->start_date) && !empty($welcomeGreeting->expired_date)); $status = $welcomeGreeting->schedule_status; $isActiveSchedule = $status === 'active'; @endphp

Schedule Setting
@if($status === 'active') This schedule is currently active and cannot be modified. You may update the schedule once it has expired. @endif
@if($isActiveSchedule) @endif
@if($status === 'expired') This schedule has already passed. Please update it to a future date and time. @endif
@if($isActiveSchedule) @endif
The greeting will be active only within the specified time range.
Start Date must be later than the current date and time. When the schedule popup is opened, it will automatically default to 5 minutes after the current time (editable if needed).
End Date must be later than the selected Start Date and cannot be in the past. By default, it will automatically be set to 24 hours after the selected Start Date (editable if needed).
Cancel
@endsection