@extends('layouts.app') @section('content')

Edit Time Condition: {{ $timecondition->name }}

Code: {{ $timecondition->code }} · Timezone: {{ $timecondition->getTimezone() }}

Back
@if($errors->any())
@endif @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('info'))
{{ session('info') }}
@endif
{{-- Live Status Card --}}
Live Status @php $stateBadge = match($liveState) { 'OPEN' => 'bg-success', 'CLOSED' => 'bg-danger', default => 'bg-secondary', }; $stateLabel = match($liveState) { 'OPEN' => 'OPEN (Always In-Hours)', 'CLOSED' => 'CLOSED (Always After-Hours)', default => 'AUTO (Following Schedule)', }; @endphp {{ $stateLabel }}
Currently:
@if($evaluation['result'] === 'MATCH') {{ $evaluation['result'] }} @else {{ $evaluation['result'] }} @endif
Reason:
{{ $evaluation['reason'] }}
Routing to:
{{ $evaluation['destination'] }}
Evaluated at:
{{ $evaluation['evaluated_at'] }} ({{ $evaluation['timezone'] }})

@csrf
@csrf
@csrf

These buttons take effect instantly — no reload needed. Use for temporary overrides (e.g., close early today).

{{-- Test At Time Card --}}
Test at a specific time
@csrf
@csrf @method('PUT') @include('applications.timeconditions._form', [ 'tc' => $timecondition, 'groups' => $groups, 'holidayCalendars' => $holidayCalendars, 'timeConditions' => $timeConditions, 'destinations' => $destinations, 'timezones' => $timezones, ])
Cancel
@endsection