@extends('layouts.app', ['class' => '', 'elementActive' => 'listChat']) @section('content')

{{ __('Chats') }}

@if (count($errors) > 0) @if($errors->any()) @endif @endif @if (session('status')) @endif
@foreach ($listChat as $index => $chat) @php $isStarter = $chat->user_one_code == $userCode; $otherName = $isStarter ? $chat->user_two_name : $chat->user_one_name; $otherBusiness = $isStarter ? $chat->user_two_business : $chat->user_one_business; @endphp @endforeach
# Chat With Your Role Started At Action
{{ $index + 1 }} {{ $otherBusiness }} ({{ $otherName }}) {{ $isStarter ? 'Von Ihnen gestartet' : 'Von ihnen gestartet' }} {{ $chat->chat_added_date }}
Chat öffnen @if ($chat->is_unread) 💬 Neue Nachricht @endif
Löschen
@endsection @stack('css') @push('scripts') @endpush