@extends('admin.layouts.app') @section('title', __('admin.notifications.compose_announcement')) @section('content')

{{ __('admin.notifications.compose_announcement') }}

{{ __('admin.notifications.compose_subtitle') }}

@if($errors->any())
@endif
{{-- Compose form --}}
@csrf
{{ __('admin.notifications.message_content') }}
@error('title')
{{ $message }}
@enderror
@error('body')
{{ $message }}
@enderror
0 / 4000 {{ __('admin.notifications.chars') }}
{{ __('admin.notifications.audience') }}
@error('audience')
{{ $message }}
@enderror
{{-- Specific patient picker (shown only when patient_ids selected) --}}
{{ __('admin.notifications.delivery_channels') }}
@foreach($channels as $ch) @php $icon = match($ch) { 'email' => 'bi-envelope-fill text-info', 'sms' => 'bi-chat-dots-fill text-success', 'push' => 'bi-phone-fill text-warning', 'database', 'in_app' => 'bi-bell-fill text-primary', default => 'bi-circle text-secondary', }; $desc = match($ch) { 'email' => __('admin.notifications.channel_descriptions.email'), 'sms' => __('admin.notifications.channel_descriptions.sms'), 'push' => __('admin.notifications.channel_descriptions.push'), 'database' => __('admin.notifications.channel_descriptions.database'), 'in_app' => __('admin.notifications.channel_descriptions.in_app'), default => '', }; $checked = is_array(old('channels')) ? in_array($ch, old('channels')) : in_array($ch, ['database', 'email']); @endphp
@endforeach
@error('channels')
{{ $message }}
@enderror
{{ __('admin.cancel') }}
{{-- Sidebar: other workflow triggers --}}
{{ __('admin.notifications.other_workflow_triggers') }}
@csrf
@csrf
{{ __('admin.notifications.channel_guide') }}
  • {{ __('admin.notifications.channel_guide_labels.database_in_app') }} — {{ __('admin.notifications.channel_guide_help.database_in_app') }}
  • {{ __('admin.notifications.channels.email') }} — {{ __('admin.notifications.channel_guide_help.email') }}
  • {{ __('admin.notifications.channels.sms') }} — {{ __('admin.notifications.channel_guide_help.sms') }}
  • {{ __('admin.notifications.channels.push') }} — {{ __('admin.notifications.channel_guide_help.push') }}
@push('scripts') @endpush @endsection