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

{{__("Edit")}}

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

{{$worker->name.' '.$worker->surname}}

id, $absentWorkers)) 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(!$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(!$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 @if(!empty($works))

{{__('Works')}}

@if($isColumnLeader || $isSuperAdmin) @endif @foreach($works as $num=>$work) @if($num == 0 && $work['category_id'] != null) @endif @if(isset($works[$num+1]) && $work['category_id'] === $works[$num+1]['category_id']) @else @endif @if($isColumnLeader || $isSuperAdmin || $isConstructionManager) @endif @if($echoCategory && isset($works[$num+1])) @endif @endforeach
{{__('Code')}} {{__('Works')}} {{__('Unit')}} {{__('Quantity')}}
{{$work['category']}}
{{$work['code']}} {{$work['work']}} {{$work['unit']}} {{$work['quantity']}}
{{$works[$num+1]['category']}}
@endif @endsection