@extends('layouts.app') @section('content')

{{$site->name}}    (ID: {{$site->id}})

@if(session('search_route')) @endif

{{__('Date')}}:

{{date('d.m.Y.', strtotime($site->date))}}

{{__('Polish date')}}:

@if($site->polish_date){{date('d.m.Y', strtotime($site->polish_date))}}@endif

{{__('User')}}:

{{$changedBy}} @if(count($logs) > 1) @endif

{{__('Column leader')}}:

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

{{__('Area')}}:

{{$site->area}}

{{__('Number of workers')}}:

{{$site->number_of_workers}}

{{__('Work').' '.__("start")}}:

{{$site->work_start}}

{{__('Work').' '.__("end")}}:

{{$site->work_end}}

{{__('Pause')}}:

{{$site->pause}} min.

{{__('Work hours')}}:

{{date('H:i', strtotime("-$site->pause minutes", strtotime($workHours)))}}

{{__('City')}}:

{{$site->place}}

{{__('Provider')}}:

{{$site->provider}}

{{__('Street')}}:

{{$site->street}}

POP:

{{$site->pop}}

DP:

{{$site->dp}}

@if(count($history) >= 1)
@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))}}
@endforeach
@endif @if(!$images->isEmpty())

{{(__('Images'))}}

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

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

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