@extends('layouts.app') @section('title', __('(no subject)')) @section('body_class', 'body-conv') @if (!empty($conversation->id)) @section('body_attrs')@parent data-conversation_id="{{ $conversation->id }}"@endsection @endif @section('sidebar') @include('partials/sidebar_menu_toggle') @include('mailboxes/sidebar_menu_view') @endsection @section('content') @include('partials/flash_messages') @php if (empty($thread)) { $thread = $conversation->threads()->first(); } if (!$thread) { $thread = new App\Thread(); } @endphp

{{ __("New Conversation") }}

#@if ($conversation->number){{ $conversation->number }}@else{{ __("Pending") }}@endif
@include('conversations/partials/customer_sidebar') @action('conversation.new.customer_sidebar', $conversation, $mailbox)
{{ csrf_field() }} {{-- For phone conversation --}} {{-- For drafts --}} {{-- Customer ID is needed not to create empty customers when creating a new phone conversations --}} @if ($conversation->created_by_user_id)
@endif
@include('partials/field_error', ['field'=>'name'])
@include('partials/field_error', ['field'=>'phone'])
@include('partials/field_error', ['field'=>'to'])
@if (count($from_aliases)) @endif
@include('partials/field_error', ['field'=>'to'])
@action('conversation.create_form.subject_append') @include('partials/field_error', ['field'=>'subject'])
@action('conversation.create_form.after_subject', $conversation, $mailbox, $thread)
    @include('partials/field_error', ['field'=>'body'])
    @include('conversations/editor_bottom_toolbar', ['new_converstion' => true]) @action('new_conversation_form.after', $conversation) @endsection @include('partials/editor') @section('javascript') @parent initReplyForm(true, true, true); initNewConversation(@if ($conversation->type == App\Conversation::TYPE_PHONE){{ 'true' }}@endif); @endsection