-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show customer info when opening new conversation draft - closes #2402
- Loading branch information
1 parent
c24efff
commit 4bb7e22
Showing
4 changed files
with
51 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
resources/views/conversations/partials/customer_sidebar.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@if (!empty($customer)) | ||
<div class="conv-customer-header"></div> | ||
<div class="conv-customer-block conv-sidebar-block"> | ||
@include('customers/profile_snippet', ['customer' => $customer, 'main_email' => $conversation->customer_email, 'conversation' => $conversation]) | ||
<div class="dropdown customer-trigger" data-toggle="tooltip" title="{{ __("Settings") }}"> | ||
<a href="#" class="dropdown-toggle glyphicon glyphicon-cog" data-toggle="dropdown" ></a> | ||
<ul class="dropdown-menu dropdown-menu-right" role="menu"> | ||
<li role="presentation"><a href="{{ route('customers.update', ['id' => $customer->id]) }}" tabindex="-1" role="menuitem">{{ __("Edit Profile") }}</a></li> | ||
@if (!$conversation->isChat()) | ||
<li role="presentation"><a href="{{ route('conversations.ajax_html', array_merge(['action' => | ||
'change_customer'], \Request::all(), ['conversation_id' => $conversation->id]) ) }}" data-trigger="modal" data-modal-title="{{ __("Change Customer") }}" data-modal-no-footer="true" data-modal-on-show="changeCustomerInit" tabindex="-1" role="menuitem">{{ __("Change Customer") }}</a></li> | ||
@endif | ||
@if (count($prev_conversations)) | ||
<li role="presentation" class="col3-hidden"><a data-toggle="collapse" href=".collapse-conv-prev" tabindex="-1" role="menuitem">{{ __("Previous Conversations") }}</a></li> | ||
@endif | ||
{{ \Eventy::action('conversation.customer.menu', $customer, $conversation) }} | ||
{{-- No need to use this --}} | ||
{{ \Eventy::action('customer_profile.menu', $customer, $conversation) }} | ||
</ul> | ||
</div> | ||
{{--<div data-toggle="collapse" href="#collapse-conv-prev" class="customer-hist-trigger"> | ||
<div class="glyphicon glyphicon-list-alt" data-toggle="tooltip" title="{{ __("Previous Conversations") }}"></div> | ||
</div>--}} | ||
</div> | ||
@action('conversation.before_prev_convs', $customer, $conversation, $mailbox) | ||
@if (count($prev_conversations)) | ||
@include('conversations/partials/prev_convs_short') | ||
@endif | ||
@action('conversation.after_prev_convs', $customer, $conversation, $mailbox) | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters