@foreach($cards as $card_i => $card) @if ($card_i >= \Kanban::CARDS_PER_COLUMN)
@continue @endif
conversation_cached()) data-conversation-id="{{ $card->conversation_cached()->id }}" @endif class="btn btn-bordered btn-xs" @if ($card->name) data-remote="{{ route('kanban.ajax_html', ['action' => 'update_card', 'card_id' => $card->id]) }}" data-modal-on-show="knInitCardModal" data-modal-title="{{ $card->name }}"@else data-modal-body='' data-modal-title="{{ $card->conversation_cached()->getSubject() }} #{{ $card->conversation_cached()->number }}" @endif data-trigger="modal" data-modal-size="lg" data-modal-no-footer="true"> @if (!$card->conversation_cached())
{{ $card->name }}
@elseif ($card->conversation_cached()) @if ($card->linked)
@if ($card->linked && $card->conversation_cached()->customer) {{ $card->conversation_cached()->customer->getFullName(true) }} @endif {{ $card->conversation_cached()->getWaitingSince(new App\Folder()) }}
@endif
@if ($card->conversation_cached()->has_attachments)@endif @include('conversations/partials/badges', ['conversation' => $card->conversation_cached(), 'folder' => new App\Folder()]) @if (!$card->name){{ $card->conversation_cached()->getSubject() }}@else{{ $card->name }}@endif{{ '' }}@action('conversations_table.after_subject', $card->conversation_cached())@if ($card->conversation_cached()->threads_count > 1) {{ $card->conversation_cached()->threads_count }}@endif
@if ($card->conversation_cached()->isChat() && $card->conversation_cached()->getChannelName()){{ $card->conversation_cached()->getChannelName() }}@endif @if (!empty($card->conversation_cached()->tags)) @foreach ($card->conversation_cached()->tags as $i => $tag) {!! \View::make('tags::partials/conversation_list_tag', ['tag' => $tag])->render() !!} @if ($i != count($card->conversation_cached()->tags)-1) @endif @endforeach @endif
@if (($mailbox_id && $mailbox_id == \Kanban::ALL_MAILBOXES) || ($board_id && $card->kn_board_id && $card->kn_board && $card->kn_board->mailbox_id != $card->conversation_cached()->mailbox_id))
[{{ $card->conversation_cached()->mailbox->name }}]
@endif @if (($card->name && $card->conversation_cached()->preview != $card->name) || (!$card->name && $card->conversation_cached()->preview != $card->conversation_cached()->getSubject()))
{{ $card->conversation_cached()->preview }}
@endif @if (\Module::isActive('customfields') && $card->conversation_cached()->custom_fields) @php $kn_cf_nonempty = false; @endphp @foreach($card->conversation_cached()->custom_fields as $custom_field) @if ($custom_field->getAsText()) @php $kn_cf_nonempty = true; break; @endphp @endif @endforeach @if ($kn_cf_nonempty)
@php $kn_cf_separate = false; @endphp @foreach($card->conversation_cached()->custom_fields as $custom_field) @if ($custom_field->getAsText()) @if ($kn_cf_separate) | @endif {{ $custom_field->name }}: {{ $custom_field->getAsText() }} @php $kn_cf_separate = true; @endphp @endif @endforeach
@endif @endif @if ($card->linked || ($card->conversation_cached()->user_id && $card->conversation_cached()->user)) @endif @endif
@endforeach