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 cannot be manually switched on or off while it is in the βActiveβ period. It will automatically turn on when the schedule becomes active and automatically turn off once it reaches the expiration time.
- 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->schedule_status === 'active' ||
$greeting->assignment_summary['general'] ||
$greeting->isExpired;
@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. | |||||||||