@extends('layouts.master') @section('title','View Field Report') @section('content') View Field Report : {{@$report->title}} Title {{@$report->title}} Zone {{@$report->site->name}} Circle {{@$report->circles->circle_name}} Distance {{@$report->distance}} Officer {{@$report->Employee->name}} Department {{@$report->Department->name}} Date {{@$report->created_at}} Description {{@$report->description}} @if(count($report->inspection) > 0) View Inspection Details @foreach($report->inspection as $i) Title @if(@$i->title) {{@$i->title}} @else {{"-"}} @endif Before Note {{@$i->before_note}} After Note {{@$i->after_note}} Location Before Images {{-- Click Here --}} @if(count($i->beforeImages()->get()) > 0) @foreach($i->beforeImages()->get() as $before_image) @endforeach @else {{"-"}} @endif After Images {{-- Click Here --}} @if(count($i->afterImages()->get()) > 0) @foreach($i->afterImages()->get() as $after_images) @endforeach @else {{"-"}} @endif Remark @if(count($i->inspectionRemarks()->get()) > 0) @foreach($i->inspectionRemarks()->get() as $rem) @if($rem->created_by === Auth::user()->id) {{@$rem->remark}} @else {{@$rem->remark}} @endif @endforeach @endif @endforeach @endif