@php $tc = $tc ?? null; $defaults = [ 'name' => $tc->name ?? '', 'description' => $tc->description ?? '', 'code' => $tc->code ?? '', 'feature_code' => $tc->feature_code ?? '', 'feature_code_pin' => $tc->feature_code_pin ?? '', 'time_group_id' => $tc->time_group_id ?? '', 'override_mode' => $tc->override_mode ?? 'auto', 'use_holidays' => $tc ? (int) $tc->use_holidays : 1, 'holiday_calendar_id' => $tc->holiday_calendar_id ?? '', 'match_dest_type' => $tc->match_dest_type ?? '', 'match_dest_id' => $tc->match_dest_id ?? '', 'nomatch_dest_type' => $tc->nomatch_dest_type ?? '', 'nomatch_dest_id' => $tc->nomatch_dest_id ?? '', 'fallback_dest_type' => $tc->fallback_dest_type ?? '', 'fallback_dest_id' => $tc->fallback_dest_id ?? '', 'is_active' => $tc ? (int) $tc->is_active : 1, 'tz' => $tc->tz ?? config('app.timezone', 'Africa/Johannesburg'), ]; @endphp
Basics
Dialed by IVRs/inbound routes to enter this TC.
Cycles AUTO → OPEN → CLOSED → AUTO when dialed.
Require PIN to use the toggle code.
Live overrides (via toggle code or buttons) take priority over this setting.

Schedule
Manage time groups

Routing Destinations
@include('applications.timeconditions._destination_picker', [ 'label' => 'In-Hours Destination — where calls go during business hours', 'help' => 'When the schedule matches (office is open), route calls here.', 'typeName' => 'match_dest_type', 'idName' => 'match_dest_id', 'currentType' => old('match_dest_type', $defaults['match_dest_type']), 'currentId' => old('match_dest_id', $defaults['match_dest_id']), 'destinations' => $destinations, 'required' => true, ]) @include('applications.timeconditions._destination_picker', [ 'label' => 'After-Hours Destination — where calls go outside business hours', 'help' => 'When the office is closed, on holidays, or on weekends, route calls here.', 'typeName' => 'nomatch_dest_type', 'idName' => 'nomatch_dest_id', 'currentType' => old('nomatch_dest_type', $defaults['nomatch_dest_type']), 'currentId' => old('nomatch_dest_id', $defaults['nomatch_dest_id']), 'destinations' => $destinations, 'required' => true, ]) @include('applications.timeconditions._destination_picker', [ 'label' => 'Failsafe Destination (optional)', 'help' => 'Emergency fallback if something goes wrong. Defaults to after-hours destination if blank.', 'typeName' => 'fallback_dest_type', 'idName' => 'fallback_dest_id', 'currentType' => old('fallback_dest_type', $defaults['fallback_dest_type']), 'currentId' => old('fallback_dest_id', $defaults['fallback_dest_id']), 'destinations' => $destinations, 'required' => false, ])