profile.jpg
{{ $deliveryman->first_name . ' ' . $deliveryman->last_name }}
@forelse ($messages as $message) @php $positionClass = $message->sender_role == 'deliveryman' ? "message-left" : " message-right"; $imgURL = $message->sender_role == 'deliveryman' ? show_image(file_path()['profile']['delivery_man']['path'] . '/' . $message->deliveryMan->image, file_path()['profile']['delivery_man']['size']) : show_image(file_path()['profile']['user']['path'] . '/' . $message->customer->image, file_path()['profile']['user']['size']) @endphp
profile.jpg
@if ($message->sender_role == 'deliveryman') {{ $message->deliveryMan->first_name . ' ' . $message->deliveryMan->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 != 'deliveryman') @endif
@empty @include('frontend.partials.empty', [ 'message' => translate('No message found'), ]) @endforelse
@csrf