@extends('global.app') @section('title', trans('communication.title.main')) @section('action_buttons')
{{ trans('communication.table.header.number') }} | {{ trans('communication.table.header.name') }} | {{ trans('communication.table.header.type') }} | {{ trans('communication.table.header.email') }} | {{ trans('communication.table.header.text') }} | {{ trans('communication.table.header.actions') }} | |
---|---|---|---|---|---|---|
{{ $key + 1 }} | {{ $contact->first_name . ' ' . $contact->last_name }} | {{ studly_case($contact->role) }} | {{ $contact->incomingEmails->where('sender_id', $user->id)->count() + $user->incomingEmails->where('sender_id', $contact->id)->count() }} | {{ $contact->incomingTexts->where('sender_id', $user->id)->count() + $user->incomingTexts->where('sender_id', $contact->id)->count() }} | {{ trans('communication.table.data.action.emails') }} | {{ trans('communication.table.data.action.texts') }} |
{{ trans('communication.table.message.empty') }} | ||||||
{{ trans('communication.table.data.pagination.showing', array( 'start' => $contacts->total() > 0 ? ((($contacts->currentPage() - 1) * $contacts->count()) + 1) : 0, 'stop' => $contacts->currentPage() * $contacts->count(), 'total' => $contacts->total() )) }} | {!! $contacts->render($presenter) !!} |