@forelse($locations as $locationData)
@if(!is_null($locationData->job))
{{ $locationData->job->title }}
{{ $locationData->job->jobType->job_type }}
{{ $locationData->job->team->team_name }}
{{ ucwords($locationData->location->location) }}
@endif
@empty
@endforelse