@php $activeCount = $policies->count(); $hasDefault = $policies->firstWhere('is_default'); @endphp @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
{{ __('Unified Inbox') }} / {{ __('SLA policies') }}

{{ __('Response') }} {{ __('targets') }}

{{ __('Set how fast your team should first respond to and resolve conversations. When a customer messages, the clock starts — reply in time or the chat is flagged breached.') }}

{{-- ===== Existing policies ===== --}}
@forelse ($policies as $p)
{{-- Two sibling forms, buttons wired by the HTML5 `form=` attribute — a proper blade-only edit + delete with no JS. --}}
@csrf @method('PUT')
@csrf @method('DELETE')
@if ($p->is_default) {{ __('Default') }} @endif
@empty
{{ __('No SLA policies yet') }}

{{ __('Create your first one below to start tracking response times.') }}

@endforelse
{{-- ===== Create new ===== --}}
@csrf
{{ __('New policy') }}

{{ __('Add a policy') }}