@php
$gig_image = 'images/default-img-286x186.png';
if(!empty($gig->attachments['files'])){
$images = $gig->attachments['files'];
$latest = current($images);
if( !empty($latest) && substr($latest->mime_type, 0, 5) == 'image'){
if(!empty($latest->sizes['286x186'])){
$gig_image = 'storage/'.$latest->sizes['286x186'];
} elseif(!empty($latest->file_path)){
$gig_image = 'storage/'.$latest->file_path;
}
}
}
@endphp
@guest
@endguest
@role('buyer')
@endrole
@php
if( !empty($gig->gigAuthor->image) ){
$image_path = getProfileImageURL( $gig->gigAuthor->image, '50x50' );
$seller_image = !empty($image_path) ? '/storage/' . $image_path : '/images/default-user-50x50.png';
}else{
$seller_image = '/images/default-user-50x50.png';
}
@endphp
{!! $gig->gigAuthor->full_name !!}
@if($gig->is_featured == 1)
{{ __('general.pro') }}
@endif
{!! $gig->title !!}
{{ratingFormat($gig->ratings_avg_rating)}} /5.0 ( {{ $gig->ratings_count == 1 ? __('general.user_review') : __('general.user_reviews', ['count' => number_format($gig->ratings_count)]) }} )
@if(!empty($gig->address))
{!! getUserAddress($gig->address, 'city_state_country') !!}
@endif