@extends('layouts.app') @section('content')
{{ csrf_field() }}

{{__("Edit")}}

@if($errors->has('date'))
@endif
date) value="{{date('d.m.Y', strtotime($site->date))}}"@endif/> @if($errors->has('date')) @endif
@if($errors->has('date'))
@endif {{--
--}} @if(!$isColumnLeader) @if($errors->has('leader'))
@endif
@if($errors->has('leader'))
@endif @endif
@if($errors->has('number_of_workers'))
@endif
@if($errors->has('number_of_workers'))
@endif
@if($errors->has('work_start'))
@endif
@if($errors->has('work_start')) @endif
@if($errors->has('work_start'))
@endif
@if($errors->has('work_end'))
@endif
@if($errors->has('work_end')) @endif
@if($errors->has('pause'))
@endif
@if($errors->has('pause')) @endif
@if($errors->has('pause'))
@endif
@if($errors->has('street'))
@endif
@if($errors->has('street'))
@endif @if($errors->has('cluster'))
@endif
@if($errors->has('cluster'))
@endif @if($errors->has('pan'))
@endif
@if($errors->has('pan'))
@endif
@if($errors->has('provider'))
@endif
@if($errors->has('provider'))
@endif @if($someAdmin)
@if($errors->has('polish_date')) @endif
report_confirmed == 1) checked @endif/>
@endif
maintenance == 1) checked @endif/>
@if($isSuperAdmin || $isAdmin || $isProjectManager)
@endif
{{__('Change')}} {{__('Choose image')}} {{__('Remove')}}
{{__('Change')}} {{__('Choose file')}} {{__('Remove')}}

{{__("Absent workers")}}:

@foreach($workers as $worker)
is_absent == 1) checked @endif/>
@endforeach
@if(!$mountedDevices->isEmpty()) @foreach($mountedDevices as $mont) @if($isAdmin) @endif @endforeach
{{'('.strtoupper($mont->uredjaj).') '.$mont->serial}}
@endif
@if(!$equipment->isEmpty()) @foreach($equipment as $equip) @if($isAdmin) @endif @endforeach
@if($equip->code) ({{$equip->code}}) @endif{{$equip->naziv.' ( '.__("quantity").': '.$equip->quantity.')'}}
@endif
@if(!$returned->isEmpty()) @foreach($returned as $vr) @endforeach
{{'('.$vr->uredjaj.') '.$vr->serijski_broj}}
@endif
@if(!$vehicleList->isEmpty()) @foreach($vehicleList as $vehicle) @if($isAdmin) @endif @endforeach
@if($vehicle->marka){{$vehicle->marka. ' - '}}@endif @if($vehicle->tip){{$vehicle->tip. ' - '}}@endif @if($vehicle->reg_br){{$vehicle->reg_br}}@endif
@endif
@if(!$spentMaterial->isEmpty())

{{__('Material')}}

@if($isSuperAdmin) @endif @foreach($spentMaterial as $mat) @if($isSuperAdmin) @endif @endforeach
{{__('Code')}} {{__('Material')}} {{__('Quantity')}}
{{$mat->code}} {{$mat->material}} {{$mat->quantity}}
@endif @if(!$siteWorks->isEmpty())

{{(__('Works'))}}

@if($isSuperAdmin || $isAdmin) @endif @foreach($siteWorks as $work) @if($isSuperAdmin || $isAdmin) @if($isSuperAdmin) @endif @endif @endforeach @if($isSuperAdmin || $isAdmin) @endif
{{(__('Code'))}} {{(__('Works'))}} {{(__('Unit'))}} {{(__('Quantity'))}}{{(__('Price'))}} {{(__('Total'))}}
{{$work->code}} {{$work->work}} {{$work->unit_short}} {{$work->quantity}}{{$price}} {{$work->quantity*$price}}
{{__("Total")}}: {{$total}}
@endif @if(!$comments->isEmpty())

{{__('Comments')}}

@foreach($comments as $br=>$comment) {{__('comment')}} {{$br+1}}

{{$comment->comment}}

{{$comment->ime.' '.$comment->prezime}} {{date('d.m.Y. H:i:s', strtotime($comment->created_at))}} @if($isSuperAdmin) @endif
@endforeach
@endif @if(!$images->isEmpty())

{{__('Images')}}

@foreach($images as $img) @endforeach
@endif @if(!$files->isEmpty())

{{__('Files')}}

@foreach($files as $file)
{{$file->filename}} @if($isSuperAdmin) @endif
@endforeach
@endif @endsection