@props(['project','currency_symbol', 'address_format', 'list_type' => 'search_project' , 'favourite_projects' => [], 'user_role' ]) @php $tag = ''; if($list_type == 'fav_project'){ $proposal = $project->proposals->first(); if(!empty( $proposal ) ){ $tag = getTag( $proposal->status ); } } $fav_class = ''; $_text = __('general.save'); if(in_array($project->id, $favourite_projects) || $list_type == 'fav_project'){ $fav_class = 'tk-saved tk-liked'; $_text = __('general.saved'); } @endphp
@if($project->is_featured) @endif
@if(!empty($tag) ) {{ $tag['text'] }} @endif {{ $project->projectAuthor->full_name}}
{{ $project->project_title }}
  • {{-- @dd(getTimeDiff( $project->updated_at )); --}} {{ __('project.project_posted_date',['diff_time'=> getTimeDiff( $project->updated_at )]) }}
  • {{ $project->projectLocation->id == 3 ? (!empty($project->address) ? getUserAddress($project->address, $address_format) : $project->project_country ) : $project->projectLocation->name }}
  • {{ !empty($project->expertiseLevel) ? $project->expertiseLevel->name : '' }}
  • {{ $project->project_hiring_seller .' '. ($project->project_hiring_seller > 1 ? __('project.freelancers') : __('project.freelancer')) }}
  • @if(!is_null($project->project_visits_count))
  • {{ $project->project_visits_count == 1 ? __('general.single_view') : __('general.user_views', ['count' => number_format($project->project_visits_count) ] ) }}
  • @endif @if($user_role == 'seller' || Auth::guest())
  • {{ $_text}}
  • @endif
{{ $project->project_type == 'fixed' ? __('project.fixed_project') : __('project.hourly_project') }}

{{ getProjectPriceFormat($project->project_type, $currency_symbol, $project->project_min_price, $project->project_max_price) }}

@if(!empty($project->project_description)) @php $description = @json_decode($project->project_description); $desc = ''; if(!empty($description)){ $string = preg_replace("/
|\n|\r|/", " ", $description ); $desc = strip_tags(trim($string)); } @endphp @if(!empty($desc))

{!! nl2br(add3DotsInText( $desc, '...', 330)) !!}

@endif @endif @if(!$project->skills->isEmpty())
@endif