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

Welcome Greetings

Greeting Status Guide:
  • 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.
@if (session('success')) @endif @if (session('error')) @endif
@forelse ($welcomeGreetings as $greeting) {{-- TITLE --}} {{-- ASSIGNMENT --}} {{-- ACTIVE --}} {{-- 🆕 SCHEDULE --}} {{-- 🆕 TIMEZONE --}} {{-- 🆕 EXPIRED --}} {{-- ACTIONS --}} @empty @endforelse
No Image Title Assignment Status Active Schedule Timezone Status File Info Actions
{{ $loop->iteration }} @if ($greeting->imageExists()) {{ $greeting->alt_text ?? $greeting->title }} @else
Missing
@endif
{{ $greeting->title }} @if (!$greeting->is_active && $greeting->schedule_status !== 'active') (Inactive) @endif @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
@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)">
@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
{{ $greeting->timezone->timezone ?? '-' }} @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') }}
{{-- tombol lain --}} {{-- hidden delete form --}}
No welcome greetings found.
Feature Description

Welcome Greeting digunakan untuk menampilkan pesan atau gambar sambutan pada TV kamar tamu hotel ketika tamu pertama kali masuk kamar.

How to Use
1
Klik Add New Greeting
2
Masukkan Title Greeting
3
Upload Welcome Image
4
Pilih Assignment Type
5
Jika memilih Personal → pilih kamar yang dituju
6
Atur Schedule jika diperlukan
7
Klik Create Greeting
Important Notes
Schedule tidak bisa diubah jika greeting sedang aktif
End Date harus lebih besar dari Start Date
Greeting yang expired harus dijadwalkan ulang
General greeting akan tampil di semua kamar
@endsection