{{ __('Report') }}
{{ $project->ref_store }}
{{ $project->ref_factory }}
{{ $project->deadline }}
@if(!empty($project->timeBlock)) {{ $project->timeBlock->visit_time }} @endif
@if(!empty($project->driver)) {{ $project->projectDriver->name }} @endif
@if(!empty($project->endUser)) {{ $project->endUser->name }} @endif
@if(!empty($project->endUser)) {{ $project->endUser->gml }} @endif
{{ $project->complaint->customer_complaint }}
@php $complaints = json_decode($project->complaint->complaints); @endphp @for($i = 1; $i <= 4; $i++) @if(!empty($complaints->{'complaint' . $i}->complaint))
{{ $project->complaint ? $project->complaint->complaint($i) : '' }}
{{ __($project->complaint ? $project->complaint->complaintSubject($i) : '') }}
{{ $project->complaint ? $project->complaint->complaintSolution($i) : '' }}
{{ __($project->complaint ? $project->complaint->complaintSolved($i) : 'no') }}
{{ __($project->complaint ? $project->complaint->complaintJustified($i) : 'no') }}
@if($project->complaint->complaintJustifiedDetails($i))
{{ __($project->complaint ? $project->complaint->complaintJustifiedDetails($i) : '') }}
@endif @endif @endfor
{{ $project->complaint->solution }}
@foreach($project->complaint->photos as $photo)

{{ $photo->name }}
{{ $photo->name }}

@endforeach
{{ $project->ref_factory }}
@if(!empty($project->invoiceToType)) {{ __($project->invoiceToType->title) }} @endif
{{ $project->complaint->extra_time }}
{{ __($project->complaint ? ucfirst($project->complaint->solved) : '') }}
{{ __($project->complaint ? ucfirst($project->complaint->money_received) : '') }}
{{ $project->complaint->amount_received }}
{{--
{{ $project->complaint->discount }}
{{ $project->complaint->reason_discount }}
--}}
{{ $project->complaint->subtotal }}
{{ $project->complaint->materials }}
{{ $project->complaint->price_material }}
{{ $project->complaint ? $project->complaint->total : '' }}
{!! $project->complaint->signature_display !!}
@if(allowedToSendDraftReport())
@endif @if(allowedToSendReport()) {{ __("Send report to client and enduser") }}
@endif @if(canViewUpdate('download report'))
{{ __("Download client report") }}
{{ __("Download End User report") }} @endif
@csrf
@push('child-scripts') @endpush