@php $project = json_decode(json_encode($message->message['project'])); @endphp @if($message->from_user == 1)
@if($data->client?->image) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ $data->client?->fullname }} @else @endif @else {{ __('author') }} @endif

@if(!empty($message->message['message'])) {{ $message->message['message'] ?? '' }} @endif @if(!empty($message->file))

@php $ext = pathinfo($message->file, PATHINFO_EXTENSION); @endphp @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) @if($ext == 'pdf' || $ext == 'docx' || $ext == 'zip' || $ext == 'doc' || $ext == 'csv' || $ext == 'txt' || $ext == 'xlx' || $ext == 'xlsx' || $ext == 'ppt' || $ext == 'pptx' || $ext == 'rar' || $ext == '7z') {{ __('Download file') }} @else
{{ __('Download file') }} @endif @else @if($ext == 'pdf' || $ext == 'docx' || $ext == 'zip' || $ext == 'doc' || $ext == 'csv' || $ext == 'txt' || $ext == 'xlx' || $ext == 'xlsx' || $ext == 'ppt' || $ext == 'pptx' || $ext == 'rar' || $ext == '7z') {{ __('Download file') }} @else {{ $message->file ?? '' }}
{{ __('Download file') }} @endif @endif @endif

@if(!empty($project))
@if(($project->type ?? '') == 'job') @else @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ $project->image }} @else {{ $project->image ?? ''}} @endif @endif
{{ $project->title }}
@if(($project->type ?? '') == 'job') {{ __('View details') }} @else {{ __('View details') }} @endif
@if(($project->type ?? '') == 'job')
{{ $project->interview_message ?? '' }}
@endif
@endif {{ $message->created_at->diffForHumans() }}
@endif @if($message->from_user == 2)
@if($data->freelancer?->image) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ $data->freelancer?->fullname }} @else @endif @else {{ __('author') }} @endif

@if(!empty($message->message['message'])) {{ $message->message['message'] ?? '' }} @endif @if(!empty($message->file))

@php $ext = pathinfo($message->file, PATHINFO_EXTENSION); @endphp @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) @if($ext == 'pdf' || $ext == 'docx' || $ext == 'zip' || $ext == 'doc' || $ext == 'csv' || $ext == 'txt' || $ext == 'xlx' || $ext == 'xlsx' || $ext == 'ppt' || $ext == 'pptx' || $ext == 'rar' || $ext == '7z') {{ __('Download file') }} @else
{{ __('Download file') }} @endif @else @if($ext == 'pdf' || $ext == 'docx' || $ext == 'zip' || $ext == 'doc' || $ext == 'csv' || $ext == 'txt' || $ext == 'xlx' || $ext == 'xlsx' || $ext == 'ppt' || $ext == 'pptx' || $ext == 'rar' || $ext == '7z') {{ __('Download file') }} @else {{ $message->file ?? '' }}
{{ __('Download file') }} @endif @endif @endif

@if(!empty($project))
@if(($project->type ?? '') == 'job') @else @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ $project->image }} @else {{ $project->image ?? '' }} @endif @endif
{{ $project->title }}
{{ __('View details') }}
@endif {{ $message->created_at->diffForHumans() }}
@endif