@php
$extensions = ['jpg' ,'JPG' , 'jpeg' , 'JPEG' , 'png' , 'PNG' , 'gif' , 'GIF' , 'jfif' , 'JFIF'];
@endphp
@inject('carbon', 'Carbon\Carbon')
@foreach($conversationMessages as $message)
@if($message->sender_id == auth()->user()->id)
{{$message->conversation}}
@if($message->is_file == 1)
@php
$fileInformation = explode(".",$message->file);
$fileExtension = $fileInformation[sizeof($fileInformation)-1];
@endphp
@endif
{{$carbon::parse( $message->created_at)->format('g:i A')}}
@else
{{$carbon::parse( $message->created_at)->format('g:i A')}}
{{$message->conversation}}
@if($message->is_file)
@php
$fileInformation = explode(".",$message->file);
$fileExtension = $fileInformation[sizeof($fileInformation)-1];
@endphp
@endif
@endif
@endforeach