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

{{$client->cluster.' '.$client->street}}

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

{{__("Cluster")}}:

{{$client->cluster}}

{{__("Street")}}:

{{$client->street}}

{{__("Home number")}}:

{{$client->home_no}}

{{__("Entrance")}}:

{{$client->enterance}}

{{__("Floor")}}:

{{$client->floor}}

{{__("Flat")}}:

{{$client->apartment}}

ID:

{{$client->alt_id}}

{{__("Landline phone")}}:

{{$client->tel1}}

{{__("Tel")}}: 2

{{$client->tel2}}

{{__("Tel")}} 3

{{$client->tel3}}

{{__("City")}}:

{{$client->city}}

{{__("Email")}}:

{{$client->email}}

{{__("Status")}}:

{{$client->status}}

{{__("Withdrawal date")}}:

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

{{__("Withdrawal reason")}}:

{{$client->withdrawal_reason}}

{{__("Project manager")}}:

{{$client->pm_name.' '.$client->pm_surname}}

{{__("Full name")}}:

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

{{__("Address")}}:

{{$client->address}}

{{__("Cadastral parcel")}}:

{{$client->cadastral_parcel}}

{{__("Cadastral municipality")}}:

{{$client->cadastral_municipality}}

{{__("OIB")}}:

{{$client->oib}}

{{__("Power plant capacity")}}:

{{$client->power_plant_capacity}}

{{__("Price")}}:

{{$client->price}}

{{__("Leased power")}}:

{{$client->leased_power}}

{{__("OMM meter number - metering point code")}}:

{{$client->oom}}

{{__("Roof type")}}:

@if($client->roof_type_name){{__($client->roof_type_name)}}@endif

{{__("Roof covering")}}:

@if($client->roof_covering_name){{__($client->roof_covering_name)}}@endif

{{__("Connection type")}}:

@if($client->connection_type_name){{__($client->connection_type_name)}}@endif

{{__("Object")}}:

@if($client->object_name){{__($client->object_name)}}@endif

{{__("Miscellaneous: additional comments, questions and similar")}}:

{{$client->miscellaneous}}

{{__('Phones')}}:

@if($client->tel1) {!! nl2br('Fiksni: '.$client->tel1." \n")!!} @endif @if($client->tel2) {!! 'Mob: '.nl2br($client->tel2." \n") !!} @endif @if($client->tel3) {!! 'Mob2: '.nl2br($client->tel3) !!} @endif

{{__("Seller")}} (Text):

{{$client->seller}}

{{__("Seller")}}:

@if($client->seller_name){{$client->seller_name.' '.$client->seller_surname}}@endif

{{__("Montage date")}}:

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

{{__("Withdrawal date")}}:

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

{{__("Delay date")}}:

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

{{__("Assigned to fitter")}}:

{{$client->fitter_name.' '.$client->fitter_surname}}

{{__("Appointment date")}}:

@if($client->appointment_date){{date('d.m.Y. H:i', strtotime($client->appointment_date))}} @endif

{{__("Withdrawal reason")}}:

{{$client->withdrawal_reason}}

{{__("Intervention status")}}

{{$client->intervention_status}}

{{__("Intervention date")}}:

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

{{__("Reclamation fitter")}}:

{{$client->reclamation_name.' '.$client->reclamation_surname}}

{{__("Reclamation date")}}:

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

{{__("Montage type")}}:

{{$client->type}}

{{__('Area')}}:

{{$client->area}}

{{__('Provider')}}:

{{$client->provider}}

Status primljeno ees zahtev:

{{$client->ees_status}}

Status zahteva za otkup hep:

{{$client->hep_status}}

Izjava i zapisnik o ispitivanju:

{{$client->survey_status}}

Izjava izvođača:

{{$client->statement_status}}

Zahtjev za promenu statusa poslano:

{{$client->change_status}}

Zahtjev za promenu statusa odobreno:

{{$client->confirmed_change_status}}

Potvrda o upotrebljivosti instalacija (datum):

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

@if($isAdmin)

{{__("Račun 40% EUR")}}:

@if($client->invoice_amount_40){{number_format($client->invoice_amount_40, 2, ',', '.')}} @endif @if($client->invoice_date_40)({{date('d.m.Y.', strtotime($client->invoice_date_40))}}) @endif

{{__("Račun 50% EUR")}}:

@if($client->invoice_amount_50){{number_format($client->invoice_amount_50, 2, ',', '.')}} @endif @if($client->invoice_date_50)({{date('d.m.Y.', strtotime($client->invoice_date_50))}}) @endif

{{__("Završni račun EUR")}}:

@if($client->invoice_amount_total){{number_format($client->invoice_amount_total, 2, ',', '.')}} @endif @if($client->invoice_date_total)({{date('d.m.Y.', strtotime($client->invoice_date_total))}}) @endif

@endif

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

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

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

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

{{__("Returned")}} @foreach($vraceni as $vr)

{{'('.strtoupper($vr->uredjaj).') '.$vr->serijski_broj.' ('.date('d.m.Y. H:i:s', strtotime($vr->created_at)).') - '.$vr->razlog}}
@endforeach

{{__("Created by")}} {{$client->created_name.' '.$client->created_surname.' ('.date('d.m.Y. H:i:s', strtotime($client->created_at)).')'}}

{{__("Last change")}} {{$client->edited_name.' '.$client->edited_surname.' ('.date('d.m.Y. H:i:s', strtotime($client->updated_at)).')'}}

@if(count($history) > 1)
@endif
@if(!$spentMaterial->isEmpty())

{{__('Material')}}

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

{{__("Comments")}}

@foreach($comments as $br=>$com) {{__("Comment")}} {{$br+1}}
admins_only == 0) class="success" @else class="danger" @endif>

{{$com->comment}}

{{$com->ime.' '.$com->prezime}} {{date('d.m.Y. H:i:s', strtotime($com->created_at))}}
@endforeach
@endif @if(!empty($images[0]))

{{__("Images")}}

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

{{__("Files")}}

@foreach($files as $file) @endforeach
@endif @if($isAdmin) @if(!empty($imagesAdmin[0]))

{{__("Images")}} {{__("Admins")}}

@foreach($imagesAdmin as $img) @endforeach
@endif @if(!$filesAdmin->isEmpty())

{{__("Files")}} {{__("Admins")}}

@foreach($filesAdmin as $file) @endforeach
@endif @endif @endsection