@foreach ($candidate->prevPlacement as $prev_work)

{{$prev_work->school->title}}

{{$prev_work->job_title}} • {{$prev_work->contract_type->title}}
#{{\Carbon\Carbon::parse($prev_work->date_from)->format('d/m/Y')}} - {{\Carbon\Carbon::parse($prev_work->date_to)->format('d/m/Y')}}
@if($prev_work->school_review && $prev_work->school_review->school_rating_sum)
@if(Auth::user()->hasRole('consultant')) - Rating By candidate @endif
@endif @if(Auth::user()->hasRole('consultant') && $prev_work->candidate_review && $prev_work->candidate_review->candidate_rating_sum)
- Rating by School
@endif
View @if(Auth::user()->hasRole('candidate') && !$prev_work->school_review) Leave review @endif @if($prev_work->school_review && (Auth::user()->hasRole('candidate') || Auth::user()->hasRole('consultant')|| Auth::user()->hasRole('super-admin'))) View feedback @endif
@endforeach