@php $user = Auth()->user(); @endphp @foreach ($cases as $case) @if (!isset($case->link_case_with_form)) @continue @endif @php $latest_record = $case->link_case_with_form->latest_linked_record(); $form = $case->link_case_with_form->form; $linked_form = $case->link_case_with_form; $reporter = $case->getReporter(); $progress = $case->percentComplete(); $reported_location = isset($linked_form->reported_location) ? $linked_form->reported_location : $case->location; $all_locations = $latest_record->getAllInvolvedSites(); @endphp @if(isset($form))
{{ $priority }}
{{ $case->created_at->format('d M Y (D) h:i a') }} ({{$case->created_at->diffForHumans() }})
{{ $case->updated_at->diffForHumans() }}
{{ $reported_location->trading_name }} | {{ $reported_location->ods_name }}
{{ $data['label'] }}
@if (is_array($data['value'])) @foreach ($data['value'] as $item){{ $item }}
@endforeach @else @if (isset($data['rating_icon']) && $data['rating_icon'] == 'stars')@for ($i = 1; $i <= $data['total_options']; $i++) @endfor
@elseif(isset($data['rating_icon']) && $data['rating_icon'] == 'label')@for ($i = 1; $i <= $data['total_options']; $i++) @endfor
@else{{ $data['value'] }}
@endif @endifN/A
@endif