@extends('layouts.app') @php $is_in_chat_mode = $conversation->isInChatMode(); @endphp @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'.($is_in_chat_mode ? ' chat-mode' : '')) @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')
@php $actions = \App\Misc\ConversationActionButtons::getActions($conversation, Auth::user(), $mailbox); $toolbar_actions = \App\Misc\ConversationActionButtons::getActionsByLocation($actions, \App\Misc\ConversationActionButtons::LOCATION_TOOLBAR); $dropdown_actions = \App\Misc\ConversationActionButtons::getActionsByLocation($actions, \App\Misc\ConversationActionButtons::LOCATION_DROPDOWN); @endphp {{-- There should be no spaces between buttons --}} @foreach ($toolbar_actions as $action_key => $action) @if ($action_key === 'delete') {{-- Special handling for delete button --}} @elseif (!empty($action['url'])) {{-- Action with URL (like move, merge) --}} $attr_value) {{ $attr_key }}="{{ $attr_value }}" @endforeach @endif data-toggle="tooltip" data-placement="bottom" title="{{ $action['label'] }}" aria-label="{{ $action['label'] }}"> @else {{-- Simple button action --}} $attr_value) {{ $attr_key }}="{{ $attr_value }}" @endforeach @endif > @endif @endforeach @action('conversation.action_buttons', $conversation, $mailbox) {{-- More Actions Dropdown --}}
    @action('conversation.convinfo.prepend', $conversation, $mailbox) @if ($conversation->state != App\Conversation::STATE_DELETED)
  • getAssigneeName(true) }}">
  • @endif
  • getStatusName() }}"> @if ($conversation->state != App\Conversation::STATE_DELETED) @else @endif
  • @action('conversation.convinfo.before_nav', $conversation, $mailbox)
{{ $conversation->getSubject() }}
@if ($conversation->isChat() && $conversation->getChannelName()) @if (\Helper::isChatMode()) {{ __('Chat Mode') }}@else {{ __('Chat Mode') }}@endif {{ $conversation->getChannelName() }} @endif @action('conversation.after_subject', $conversation, $mailbox)
  # {{ $conversation->number }}
@foreach ($viewers as $viewer) @include('partials/person_photo', ['person' => $viewer['user']]) @endforeach
@if ($is_in_chat_mode)
@if ($conversation->user_id != Auth::user()->id) @elseif (!$conversation->isClosed()) @endif {{ __('Show Details') }}
@endif @action('conversation.after_subject_block', $conversation, $mailbox) @if ($conversation->isInChatMode())
@endif
@include('conversations/partials/customer_sidebar') @action('conversation.after_customer_sidebar', $conversation)
@include('conversations/partials/threads') @action('conversation.after_threads', $conversation)
@endsection @section('body_bottom') @parent @include('conversations.partials.settings_modal', ['conversation' => $conversation]) @append @include('partials/editor') @section('javascript') @parent initReplyForm(); initConversation(); @endsection