@extends('layouts.admin') @section('title', setting('school_name', 'ShulePoint') . ' | New Message') @section('page-title', 'New Message') @section('content') @push('scripts') @endpush
Back to Inbox

{{ isset($replyTo) ? 'Reply' : 'New message' }}

@csrf @if(isset($replyTo)) @endif
@if(isset($replyTo)) @php $root = $replyTo->threadRoot(); $other = $root->sender_id === auth()->id() ? $root->recipient : $root->sender; @endphp
Replying to {{ $other->name ?? 'User' }} — thread: “{{ $root->subject ?: \Illuminate\Support\Str::limit($root->body, 50) }}”.
@else
@error('recipient_id'){{ $message }}@enderror
@endif
@error('body'){{ $message }}@enderror
@error('attachment'){{ $message }}@enderror

Tips

Message any active user in the system — all roles included.

The recipient gets a portal bell notification plus an unread badge on the envelope icon.

@endsection