@if(!empty($gigs) && !EMPTY($keyword) ) @endif
@if(!empty($page_loaded)) @if( !empty($gigs) && $gigs->count() > 0 ) @foreach($gigs as $gig)
@php $percentage = 0; $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; } } } if(!empty($gig->ratings_avg_rating)){ $percentage = ($gig->ratings_avg_rating/5)*100; } @endphp {{ __('gig.alt_image') }} @if($roleName == 'buyer' || Auth::guest()) @endif
@if($gig->is_featured) {{__('general.featured')}} @endif
{{$gig->gigAuthor->full_name}} @if($gig->gigAuthor->user->userAccountSetting->verification == 'approved') @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, $address_format) }}
@else
{{ $gig->country }}
@endif
{{__('gig.starting_from')}} {{getPriceFormat($currency_symbol, $gig->minimum_price)}}
@endforeach
{{ $gigs->links('pagination.custom') }}
@else
{{ __('general.no_record') }}

{{ __('general.no_record') }}

@endif @else
@endif
@push('scripts') @endpush