Welcome Greetings
Greeting Status Guide:
@if (session('success'))
- Scheduled The status will update automatically based on the configured schedule. Please refresh the page to view the most recent status.
-
Active
The greeting is currently running and cannot be modified.
You cannot edit the schedule, manage room assignments, or delete this greeting while it is active.
To make changes, please Deactivate the greeting first. Once deactivated, the status will change to Expired and the end time will be set to the current time. After that, you can edit and update the greeting as needed. - Expired The greeting has passed its scheduled end time and must be rescheduled before it can be activated again.
- Never Expires The greeting will remain active indefinitely.
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
| No | Image | Title | Assignment Status | Active | Schedule | Timezone | Status | File Info | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
@if ($greeting->imageExists())
Missing
@endif
|
{{-- TITLE --}}
{{ $greeting->title }} @if (!$greeting->is_active && $greeting->schedule_status !== 'active') (Inactive) @endif | {{-- ASSIGNMENT --}}
@if ($greeting->assignment_summary['general'])
All Rooms
@elseif ($greeting->assignment_summary['personal_rooms']->count() > 0)
{{ $greeting->assignment_summary['personal_rooms']->count() }} Room(s)
{{ Str::limit($greeting->assignment_summary['personal_rooms']->pluck('room')->join(', '), 50) }}
@else
Not Assigned
@endif
|
{{-- ACTIVE --}}
@php
$shouldDisableSwitch =
$greeting->is_schedule_active ||
$greeting->is_schedule_expired ||
$greeting->is_general_assigned;
@endphp
is_active || $greeting->schedule_status === 'active') ? 'checked' : '' }}
{{ $shouldDisableSwitch ? 'disabled' : '' }}
onchange="updateActiveStatus({{ $greeting->id }}, this.checked)">
|
{{-- 🆕 SCHEDULE --}}
@if ($greeting->start_date && $greeting->expired_date)
From: {{ $greeting->start_date->format('d M Y H:i') }} To: {{ $greeting->expired_date->format('d M Y H:i') }} @else - @endif |
{{-- 🆕 TIMEZONE --}}
{{ $greeting->timezone->timezone ?? '-' }} | {{-- 🆕 EXPIRED --}}@switch($greeting->schedule_status) @case('scheduled') Scheduled @break @case('active') Active @break @case('expired') Expired @break @default Never Expires @endswitch |
{{ $greeting->human_file_size }} {{ pathinfo($greeting->original_filename, PATHINFO_EXTENSION) }} {{ $greeting->created_at->format('M d, Y') }} |
{{-- ACTIONS --}}
|
| No welcome greetings found. | |||||||||