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

{{ $message->message }}

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