@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}}

PAN:

{{$site->pan}}

{{__("Report confirmed")}}

@if($site->report_confirmed == 0){{__("NO")}} @else {{__("YES")}} @endif

{{__("Maintenance")}}

@if($site->maintenance == 0){{__("NO")}} @else {{__("YES")}} @endif

{{__("Distributive knot")}}

{{$site->knot}}

@if($isSuperAdmin)

{{__("Status")}}

{{$site->status}}

@endif

{{__('Cluster')}}:

{{$site->cluster}}

{{__("Devices")}} @foreach($mountedDevices as $mont)

{{'('.strtoupper($mont->uredjaj).') '.$mont->serial}}
@endforeach

{{__("Equipment")}} @foreach($equipment as $equip)

{{$equip->naziv.' ('.__("quantity").': '.$equip->quantity.') ('.date('d.m.Y. H:i:s', strtotime($equip->created_at)).')'}}
@endforeach

{{__('Connection ID')}}:

{{$site->connection_id}}

{{__('Work order number')}}:

{{$site->work_order_number}}

@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(!$files->isEmpty())

{{(__('Files'))}}

@foreach($files as $file) @endforeach
@endif @if(!$spentMaterial->isEmpty())

{{__('Material')}}

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

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

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