@if($project->is_featured) @endif

{{ $project->project_title }}

  • {{ __('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 }}
@php $video_url = ''; $files = ''; if(!empty($project->attachments)){ $attachments = unserialize($project->attachments); if(!empty($attachments['video_url'])){ $video_url = $attachments['video_url']; } if(!empty($attachments['files'])){ $files = $attachments['files']; } } @endphp @if($video_url != '')
@php $width = 780; $height = 402; $url = parse_url( $video_url ); $video_html = ''; if ($url['host'] == 'vimeo.com' || $url['host'] == 'player.vimeo.com') { $video_html .= '
'; $content_exp = explode("/" , $video_url); $content_vimo = array_pop($content_exp); $video_html .= ''; $video_html .= '
'; } else if($url['host'] == 'youtu.be') { $video_html .= '
'; $video_html .= preg_replace( "/\s*[a-zA-Z\/\/:\.]*youtu(be.com\/watch\?v=|.be\/)([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i", "", $video_url ); $video_html .= '
'; } else if($url['host'] == 'dai.ly') { $path = str_replace('/','',$url['path']); $content = str_replace('dai.ly','dailymotion.com/embed/video/',$video_url); $video_html .= '
'; $video_html .= ''; $video_html .= '
'; }else { $video_html .= '
'; $content = str_replace(array ( 'watch?v=' , 'http://www.dailymotion.com/' ) , array ( 'embed/' , '//www.dailymotion.com/embed/' ) , $video_url); $content = str_replace('.com/video/','.com/embed/video/',$content); $video_html .= ''; $video_html .= '
'; } @endphp @if( !empty($video_html) ) {!! $video_html !!} @endif
@endif @if($project->project_description !='')

{{ __('project.pro_desc') }}

{!! json_decode($project->project_description) !!}
@endif @if(!$project->skills->isEmpty())

{{ __('project.skills_required') }}

@endif @if( !empty($files) && Auth::user() )
{{ __('project.attachments_available') }}

{{ __('project.attachments_available_txt',['buyer_name'=> $project->projectAuthor->full_name]) }}

@endif
@if(!$related_projects->isEmpty())

{{ __('project.project_you_like') }}

@foreach($related_projects as $single) @php if(!empty($single->projectAuthor->image)){ $image_path = getProfileImageURL($single->projectAuthor->image, '50x50'); $author_image = !empty($image_path) ? 'storage/' . $image_path : 'images/default-user-50x50.png'; }else{ $author_image = 'images/default-user-50x50.png'; } @endphp
@if(!empty($single->is_featured)) @endif {{-- {{ $single->project_type == 'fixed' ? __('project.fixed_project') : __('project.hourly_project') }} --}}
{{ \Carbon\Carbon::parse($single->updated_at)->format('M d, Y') }}
{{ $single->project_title }}
@role('seller') @endrole
{{--
{{ __('project.project_budget') }}
--}}
{{ $single->project_type == 'fixed' ? __('project.fixed_project_budget') : __('project.hourly_project_budget') }}

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

{{ __('project.project_paragraph') }}

  • {{ $single->projectLocation->id == 3 ? (!empty($single->address) ? getUserAddress($single->address, $address_format) : $single->project_country ) : $single->projectLocation->name }}
  • @if(!empty($single->expertiseLevel))
  • {{ $single->expertiseLevel->name }}
  • @endif
  • {{ $single->project_hiring_seller .' '. ($single->project_hiring_seller > 1 ? __('project.freelancers') : __('project.freelancer')) }}
@if(!empty($single->skills))
    @php $remainingSkillsCount = $single->skills->count() - 3; @endphp @foreach($single->skills->take(3) as $index => $skill)
  • {{ $skill->name }}
  • @endforeach @if($remainingSkillsCount > 0)
  • {{ __('general.more_skills',['count'=> $remainingSkillsCount]) }}
  • @endif @foreach($single->skills->slice(3) as $index => $skill) @endforeach
@endif
@endforeach
@endif
@push('scripts') @endpush