@include('new_layouts.header') @include('construction_project.side-menu')

{{__('Site Reports')}}

@can('create site reports')
@endcan
@can('manage site reports')
{{-- --}} @if(Gate::check('edit site reports') || Gate::check('delete site reports')) @endif @foreach ($data as $key=>$data_report) {{-- --}} @if(Gate::check('edit site reports') || Gate::check('delete site reports')) @endif @endforeach
{{__('SNo')}} {{__('Daily Report No')}} {{__('Contractor Name')}} {{__('Date')}} {{__('Weather')}} {{__('Site conditions')}} {{__('Day')}} {{__('Temparture')}} {{__('Minimum')}} {{__('Degree')}}{{__('Document')}}{{__('Remarks')}} {{__('Prepared By')}} {{__('Title')}}{{__('Action')}}
{{$loop->iteration}} {{$data_report->id}} {{$data_report->contractor_name}} {{ Utility::site_date_format($data_report->con_date,\Auth::user()->id) }} {{$data_report->weather}} {{$data_report->site_conditions}} {{$data_report->con_day}} {{$data_report->temperature}} {{$data_report->min_input}} {{$data_report->degree}} @php $file_explode = explode(',',$data_report->file_name); @endphp @forelse ($file_explode as $file_show) @if($file_show != "") {{$file_show}}
@else - @endif @empty @endforelse
{{$data_report->remarks}} {{$data_report->prepared_by}} {{$data_report->title}}
@can('edit site reports') @endcan @can('delete site reports') {!! Form::open(['method' => 'POST', 'route' => ['delete_site_reports', $data_report->id],'id'=>'delete-form-'.$data_report->id]) !!} {{ Form::hidden('id',$data_report->id, ['class' => 'form-control']) }} {{ Form::hidden('projectid',$projectid, ['class' => 'form-control']) }} {!! Form::close() !!} @endcan
@endcan
@include('new_layouts.footer')