@extends('layouts.app')
@section('title_full', '#'.$conversation->number.' '.$conversation->getSubject().($customer ? ' - '.$customer->getFullName(true) : ''))
@if (app('request')->input('print'))
@section('body_class', 'body-conv print')
@else
@section('body_class', 'body-conv')
@endif
@section('body_attrs')@parent data-conversation_id="{{ $conversation->id }}"@endsection
@section('sidebar')
@include('partials/sidebar_menu_toggle')
@include('mailboxes/sidebar_menu_view')
@endsection
@section('content')
@include('partials/flash_messages')
@if ($customer)
@action('conversation.before_prev_convs', $customer, $conversation, $mailbox)
@if (count($prev_conversations))
@include('conversations/partials/prev_convs_short')
@endif
@endif
@action('conversation.after_prev_convs', $customer, $conversation, $mailbox)
@include('conversations/partials/threads')
@endsection
@section('body_bottom')
@parent
@include('conversations.partials.settings_modal', ['conversation' => $conversation])
@append
@include('partials/editor')
@section('javascript')
@parent
initReplyForm();
initConversation();
@endsection