@extends('layouts.master') @section('title','View Field Report') @section('content')
View Field Report : {{@$report->title}}
{{@$report->title}}
{{@$report->site->name}}
{{@$report->circles->circle_name}}
{{@$report->distance}}
{{@$report->Employee->name}}
{{@$report->Department->name}}
{{@$report->created_at}}
{{@$report->description}}
@if(count($report->inspection) > 0)
View Inspection Details
@foreach($report->inspection as $i)
@if(@$i->title) {{@$i->title}} @else
{{"-"}}
@endif
{{@$i->before_note}}
{{@$i->after_note}}
{{-- Click Here --}}
@if(count($i->beforeImages()->get()) > 0) @foreach($i->beforeImages()->get() as $before_image) @endforeach @else
{{"-"}}
@endif
{{-- Click Here --}}
@if(count($i->afterImages()->get()) > 0) @foreach($i->afterImages()->get() as $after_images) @endforeach @else
{{"-"}}
@endif
@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
@endsection @push('js') @endpush('js')