@extends('layouts.app') @section('content') {{ $provider->user->username }} Editor World Profile
@if ($provider_svc_id == 1)

{{ $provider->user->username }} Editing Services

@else

{{ $provider->user->username }} Writing Services

@endif
{{--
--}} {{--
--}}
@if (Auth::check() && Auth::user()->hasRole('Member')) @if (Auth::user()->is_favorite($provider->user->id) == 1) @else @endif @endif
{{ $provider->alt_text}}
@php $rating = $provider->ratings()->whereHas('document', function($query) use($provider_svc_id) { $query ->where('service', '>=', $provider_svc_id !== 1 ? 12 : 1) ->where('service', '<=', $provider_svc_id !== 1 ? 29 : 10); }) ->avg('rating_value'); $rating = round($rating, 2); $cratings = $provider->ratings()->whereHas('document', function($query) use($provider_svc_id) { $query ->where('service', '>=', $provider_svc_id !== 1 ? 12 : 1) ->where('service', '<=', $provider_svc_id !== 1 ? 29 : 10); }) ->count(); @endphp @if ($cratings === 0) No ratings @else {{ $rating }}/5 (from {{ number_format($cratings) }} ratings) @endif
Services Offered
@foreach ($provider->permissions as $pm) @if ($pm && $pm->get_approval() === 'Approved') {{ $pm->service->service }} @endif @endforeach
Credentials
    @foreach ($provider->credentials as $cd)
  • {{ $cd->credential }}
  • @endforeach
@if (!Auth::check() || !Auth::user()->hasRole('Editor'))
@if (Auth::check() == true) Contact @endif @if (Auth::check() == false) Contact @endif
@if ($provider_svc_id == 1) @foreach ($provider->specialties as $s) {{-- If this editor offers free sample edits --}} @if ($s->cat_id == 12) @endif @endforeach @endif @endif
Alternative Document Types
PDFs @if ($provider->specializesIn(11)) @else @endif
LaTeX @if ($provider->specializesIn(10)) @else @endif
PowerPoint @if ($provider->specializesIn(9)) @else @endif
About {{ $provider->user->username }} {{-- {{ $provider->permissions }} --}} @if ($link_to_other_profile) @endif
{!! $provider_svc_id === 1 ? $provider->self_description : $provider->writer_description !!}
Reviews View All
@include('partials.ratings_distro_chart')
@foreach ($ratings as $rv)
{!! $rv->rating_value !!} / 5 {!! $rv->created_at !!}
@if (!isset($rv->review)) {{-- (This review was left empty.) --}} {{--
--}} @else {!! $rv->review !!} @endif
{{--
--}}
@endforeach
@stop @push('footer_js') @endpush