profile.jpg
{{ $user->name . ' ' . $user->last_name }}
@forelse ($messages as $message) @php $positionClass = $message->sender_role == 'customer' ? "message-left" : " message-right"; $imgURL = $message->sender_role == 'customer' ? show_image(file_path()['profile']['user']['path'] . '/' . $message->customer->image, file_path()['profile']['user']['size']) :show_image(file_path()['profile']['seller']['path'] . '/' . $message->seller->image, file_path()['profile']['seller']['size']) @endphp
profile.jpg
@if ($message->sender_role == 'customer') {{ $message->customer->name . ' ' . $message->customer->last_name }} @else {{ $message->seller->name.' '.$message->seller->last_name }} @endif

{{ $message->message }}

@if( $message->files)
@foreach ( $message->files as $file ) {{$file}} @endforeach
@endif
{{ $message->created_at->diffForHumans() }}
@if ($message->sender_role != 'customer') @endif
@empty @include('frontend.partials.empty', [ 'message' => translate('No message found'), ]) @endforelse
@csrf